/*
Theme Name: Die Modellmacher
Theme URI: https://olliewp.com
Description: A child theme for Ollie.
Author: Julian Berger
Author URI: https://julianberger.me
Template:     ollie
Version: 1.0.5
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         blog, portfolio, entertainment, grid-layout, one-column, two-columns, three-columns, four-columns, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, translation-ready, wide-blocks
Text Domain: ollie-modellmacher
*/

@media (max-width: 781px) {
    .modellmacher-logo .icon-container {
        width: 254px !important;
    }
}

.paged .aktuelles-hero-container {
  display: none;
}

.page-template-page-no-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #bd1329;
  margin: 2rem 0 1.5rem 0;
  line-height: 1.2;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.page-template-page-no-title h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #bd1329;
  margin: 2.5rem 0 1.25rem 0;
  line-height: 1.3;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid #bd1329;
}

.page-template-page-no-title h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
  position: relative;
}

.page-template-page-no-title h3::before {
  content: "▶";
  color: #bd1329;
  font-size: 0.8em;
  margin-right: 0.5rem;
}

.page-template-page-no-title h4 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #555;
  margin: 1.5rem 0 0.75rem 0;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-template-page-no-title h1 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem 0;
  }

  .page-template-page-no-title h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
  }

  .page-template-page-no-title h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
  }

  .page-template-page-no-title h4 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem 0;
  }
}

/* Hover effects for interactive feel */
.page-template-page-no-title h2:hover {
  color: #bd1329;
  transition: color 0.3s ease;
}

.page-template-page-no-title h3:hover::before {
  transform: translateX(3px);
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  .reverse-mobile {
    flex-direction: column-reverse;
  }
}

.footer-auth-group {
  .login-remember {
    display: none;
  }
}

.landing-content {
  overflow-x: hidden;
}

.rounded-image {
  border-radius: 10px;
  overflow: hidden;
}

.wp-block-post-author__avatar {
  display: none;
}

/* Style login form inputs and submit button only in the site footer's footer-auth-group */
.site-footer .footer-auth-group input[type="text"],
.site-footer .footer-auth-group input[type="password"] {
  width: 100%;
  max-width: 200px;
  padding: 0.25rem 0.75rem;
  font-size: 0.95em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 0.5em;
  background: #fafbfc;
  transition: border-color 0.2s;
}

.site-footer .footer-auth-group input[type="text"]:focus,
.site-footer .footer-auth-group input[type="password"]:focus {
  border-color: #888;
  outline: none;
}

/* Modern, compact submit button */
.site-footer .footer-auth-group input[type="submit"],
.site-footer .footer-auth-group button[type="submit"] {
  max-width: 200px;
  width: 100%;
  padding: 0.4rem 0.75rem;
  font-size: 0.95em;
  border: none;
  border-radius: 4px;
  background: #c7cdd7;
  color: #000;
  cursor: pointer;
  transition: background 0.2s;
}

.site-footer .footer-auth-group input[type="submit"]:hover,
.site-footer .footer-auth-group button[type="submit"]:hover {
  background: #dfe2e9;
}

.site-footer .footer-auth-group .login-username,
.site-footer .footer-auth-group .login-password {
  margin: 0;
}

.site-footer .footer-auth-group label {
  margin-bottom: 0.25rem;
}

/* Shared link styles for site footer and header */
.site-footer a,
.site-header a {
  font-weight: 500;
  text-decoration: initial;
  transition: filter 0.3s;
}

/* On hover, brighten links and remove underline */
.site-footer a:hover,
.site-header a:hover {
  filter: brightness(1.25);
  text-decoration: none;
}

/** Dont add the filter for the header logo link */
.site-header .custom-logo-link,
.site-header .custom-logo-link:hover {
  filter: none !important;
}

/** smaller header logo on mobile */
@media (max-width: 768px) {
  .site-header .custom-logo-link {
    width: 248px;
  }
}

/* Remove underline from current menu item and hovered child menu buttons */
.wp-block-navigation__container .current-menu-item > a,
.wp-block-navigation__container .has-child button:hover {
  text-decoration: none;
}

/* Hide the original label text of the login form */
.site-footer .footer-auth-group label[for="user_login"] {
  text-indent: -9999px; /* Move original text off-screen */
  white-space: nowrap; /* Prevent line breaks */
  overflow: hidden; /* Hide overflow */
  text-overflow: ellipsis; /* Add ... if too long */
  display: block; /* Ensure label is block-level */
  width: 100%; /* Use full width of container */
  position: relative;
  height: auto;
  padding: 0;
}

.site-footer .footer-auth-group label[for="user_login"]::after {
  content: "Benutzername";
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  height: 100%;
  text-indent: 0;
  display: block;
  pointer-events: none;
}

.footer-left-side {
  max-width: 475px;
  width: 100%;
  flex: 1 1 300px; /* Allows shrinking and growing, minimum 300px */
  box-sizing: border-box;
  padding-right: 2rem; /* Space to next column */
}

@media (max-width: 1024px) {
  .footer-left-side {
    max-width: 312px;
    flex: 1 1 200px;
    padding-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer-left-side {
    max-width: unset;
    flex: 1 1 200px;
    padding-right: 1.5rem;
  }
}

.entry-content img {
  border-radius: 10px;
}

/** Hero container */
.hero-container {
  position: relative;
  pointer-events: auto;
  margin: 48px;
  padding: 48px;
  padding-bottom: 116px;
  max-width: 1356px;
  margin: auto;
}

@media (max-width: 1024px) {
  .hero-container {
    margin: 12px;
    padding: 18px;
  }
}

.hero-container > div:first-child {
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.hero-container > div:first-child > * {
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-container > div:first-child {
    padding-bottom: 82px;
  }
}

.hero-container > div:last-child img {
  transform: translate(68px, 0);
  padding-left: 52px;
}

@media (max-width: 768px) {
  .hero-container > div:last-child {
    position: absolute;
    z-index: 0;
    bottom: 0;
    right: 0;
    width: 75%;
  }

  .hero-container > div:last-child img {
    transform: translate(118px, 16px);
    padding-left: 50px;
  }
}

@media (max-width: 781px) {
    .start-hero-video {
        min-height: 320px !important;
    }
}
/* Intro animation for h1 */
@keyframes slideInUpModellmacher {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

@media (max-width: 768px) {
  @keyframes slideInUpModellmacher {
    0% {
      opacity: 0;
      transform: translateY(12px);
    }
    100% {
      opacity: 1;
      transform: translateY(0px);
    }
  }
}

.hero-container h1,
.hero-container h2 {
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  transform: translateY(0px);
  animation: slideInUpModellmacher 0.4s ease-out both;
}

@media (max-width: 1024px) {
  .hero-container h1,
  .hero-container h2 {
    font-size: 1.875rem;
  }
}

.hero-container p {
  margin: 0;
  padding: 0;
  text-wrap-style: balance;
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 500;
  transform: translateY(0px);
  animation: slideInUpModellmacher 0.4s ease-out both;
  animation-delay: 0.15s;
}

.hero-container .wp-block-buttons {
  transform: translateY(0px);
  animation: slideInUpModellmacher 0.4s ease-out both;
  animation-delay: 0.3s;
}

@media (max-width: 1024px) {
  .hero-container p {
    font-size: 1.15rem;
  }
}

.feature-grid {
  max-width: 1324px;
  margin: auto;
}

.feature-grid h3 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.85rem;
  font-weight: 600;
}

.feature-grid p {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 1rem;
  color: rgba(0, 0, 0, 0.7);
}

.feature-grid .icon-container {
  height: 30px !important;
  width: 30px !important;
  position: relative;
  margin: 12px;
  color: var(--wp--preset--color--custom-modellmacher-rot, red);
}

.feature-grid .icon-container::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 11px;
  border: 4px solid rgb(255, 211, 211);
  background-color: rgb(255, 235, 235);
  z-index: -1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)) !important;
  justify-content: center !important;
}

@media (max-width: 768px) {
  .services-grid {
    row-gap: 42px;
  }
}

.services-grid a {
  text-decoration: none;
}

