/* --- LOKALE SCHRIFTARTEN EINBINDEN --- */
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Condensed';
  src: url('assets/fonts/Roboto_Condensed-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Condensed';
  src: url('assets/fonts/Roboto_Condensed-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- GRUNDEINSTELLUNGEN & VARIABLEN --- */
:root {
  --primary-color: #FFC107;
  --dark-bg: #111111;
  --text-light: #FFFFFF;
  --text-dark: #111111;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Roboto Condensed', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { /* scroll-behavior: smooth; wurde entfernt, um Konflikte mit JS zu vermeiden */ }
body { font-family: var(--font-secondary); background-color: var(--dark-bg); color: var(--text-light); overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: fixed; /* Ändern von 'absolute' auf 'fixed' */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease; /* Übergang für den Effekt */
}

/* Neuer Zustand für den Header beim Scrollen */
.site-header.scrolled {
  background-color: rgba(17, 17, 17, 0.85); /* Dunkler Hintergrund mit Transparenz */
  backdrop-filter: blur(10px); /* Moderner " Milchglas"-Effekt */
  -webkit-backdrop-filter: blur(10px); /* Für Safari-Browser */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 15px 0; /* Header wird beim Scrollen etwas kompakter */
}
.site-header.scrolled .logo img {
  height: 65px; /* Logo wird ebenfalls etwas kleiner */
}

.site-header .container { display: flex; justify-content: space-between; align-items: center; }

.logo img {
  height: 75px;
  width: auto;
  display: block;
  transition: height 0.3s ease; /* Übergang für die Größenänderung */
}

/* NAV DESKTOP */
.main-nav { display: flex; gap: 40px; align-items: center; }
.main-nav a { font-family: var(--font-primary); font-weight: 600; color: var(--text-light); text-decoration: none; font-size: 1.25rem; position: relative; transition: all .25s ease; padding: .5rem .8rem; border-radius: 10px; }
@media (min-width: 769px) {
  .main-nav a:hover { background-color: rgba(255,255,255,0.08); transform: translateY(-1px); }
}

/* Burger standardmäßig aus */
.burger-menu { display: none; }

/* MOBILE: Off-Canvas + Overlay */
@media (max-width: 768px) {
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 80%; max-width: 340px;
    padding: 90px 24px 24px; flex-direction: column; gap: 18px;
    background: rgba(17,17,17,0.98); box-shadow: -12px 0 32px rgba(0,0,0,.45);
    transform: translateX(100%); transition: transform .3s ease;
    z-index: 1100; /* Liegt innerhalb des Headers, der hochgestuft wird */
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .burger-menu { display: inline-block; background: none; border: 0; cursor: pointer; z-index: 1200; }
  .burger-menu span { display: block; width: 28px; height: 3px; background-color: var(--text-light); margin: 6px 0; transition: transform .25s ease, opacity .25s ease; }
  .main-nav a { font-size: 1.05rem; width: 100%; padding: .9rem 1rem; border-radius: 12px; background: rgba(255,255,255,0.04); }
  .main-nav a:active { background: rgba(255,255,255,0.12); }
}

/* Overlay */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1050; }
/* Scroll lock */
body.nav-open { overflow: hidden; }

/* Wenn das Menü offen ist, hebe den GANZEN Header über das Overlay */
body.nav-open .site-header {
  z-index: 1100; /* Muss höher sein als der z-index vom Overlay (1050) */
}

/* --- ABSTAND FÜR FIXED HEADER --- */
/* Fügt einen Platzhalter-Abstand hinzu, damit der Seiteninhalt nicht vom fixed Header überdeckt wird. */
/* Die genaue Höhe sollte der Höhe des Headers entsprechen oder leicht darüber liegen. */
body > main > section:first-of-type {
  padding-top: 110px; /* Standardhöhe für Desktop. Wird später im JS dynamisch angepasst, aber gut als Fallback */
}

/* --- HERO SECTION --- */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -3; background: url('assets/img/hero.png') no-repeat center center/cover; filter: brightness(0.4) contrast(1.1); animation: zoomInBackground 20s infinite alternate ease-in-out; }

/* Gelbe Streifen Container */
.hero-stripes {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
}

/* Die Streifen selbst (pseudoelemente, für saubere Animation) */
.hero-stripes::before, .hero-stripes::after {
  content: '';
  position: absolute;
  background-color: var(--primary-color);
  opacity: 0; /* Startet unsichtbar */
  height: 300px;
  width: 150%;
  transform-origin: left center; /* Animationsursprung links */
  transform: rotate(-15deg) scaleX(0); /* Startzustand (gedreht aber Breite 0) */
}
.hero-stripes::before { top: 30%; left: -25%; }
.hero-stripes::after { bottom: 5%; left: -25%; }

/* Keyframe-Animation für das "Wachsen" der Streifen */
@keyframes growFromLeft {
  from { transform: rotate(-15deg) scaleX(0); opacity: 0; }
  50% { opacity: 0.35; }
  to { transform: rotate(-15deg) scaleX(1); opacity: 0.35; }
}

/* Diese Klassen werden per JS hinzugefügt, um die Animationen zu starten */
.hero-stripes.animate::before,
.hero-stripes.animate::after {
  animation: growFromLeft 1.2s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-stripes.animate::after {
  animation-delay: 0.1s; /* Leichte Verzögerung für den zweiten Streifen */
}

.hero-content { position: relative; z-index: 1; } /* Über den Streifen */
.main-headline { font-family: var(--font-primary); font-weight: 800; font-size: 5rem; line-height: 1.1; margin-bottom: 25px; text-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.main-headline .line1 { display: block; font-size: 2.2rem; color: var(--primary-color); margin-bottom: 5px; }
.main-headline .line2 { display: block; }
.sub-headline { font-size: 1.3rem; line-height: 1.6; max-width: 600px; margin: 0 auto 40px auto; text-shadow: 0 3px 10px rgba(0,0,0,0.3); }
.sub-headline strong { font-weight: 700; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-button { display: inline-block; background-color: var(--primary-color); color: var(--text-dark); font-family: var(--font-primary); font-weight: 700; font-size: 1.2rem; text-decoration: none; padding: 18px 40px; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.cta-button.secondary { background-color: transparent; color: var(--text-light); border: 2px solid var(--primary-color); }
.cta-button.secondary:hover { background-color: var(--primary-color); color: var(--text-dark); }


/* Hero Text Animation - initialer Zustand */
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
}
/* Zustand, der die Animation auslöst (wird per JS hinzugefügt) */
.reveal-text.animate {
  animation: fadeInMoveUp 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Keyframe-Animation für Text und Buttons im Hero */
@keyframes fadeInMoveUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomInBackground { from{transform:scale(1)} to{transform:scale(1.1)} }

/* --- SERVICES --- */
.services-section { padding: 100px 0; background-color: #ffffff; color: #111; text-align: center; }
.section-title { font-family: var(--font-primary); font-size: 2.5rem; color: #111; font-weight: 800; margin-bottom: 60px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card { position: relative; height: 280px; border-radius: 16px; background-size: cover; background-position: center; color: var(--text-light); overflow: hidden; cursor: pointer; transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease; }
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.7));
  transition: background 0.4s ease; /* HINZUGEFÜGT: Für den weichen Übergang */
}

/* NEU HINZUGEFÜGT: Der Hover-Effekt, der die Karte aufhellt */
.service-card:hover::before {
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
}
.service-content { position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 2; text-align: left; }
.service-content h3 { font-family: var(--font-primary); font-size: 1.4rem; margin-bottom: 10px; font-weight: 700; }
.service-content p { font-size: 1rem; line-height: 1.4; }
.service-card:hover { transform: scale(1.03); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
/* Animation für Service Cards */
.service-card { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.service-card.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* --- PREISRECHNER --- */
.preisrechner-section { padding: 80px 0; background: #f8f8f8; text-align: center; color: #111; }
.section-subtitle { margin-bottom: 40px; font-size: 1.1rem; color: #444; }
.taxi-form { max-width: 600px; margin: 0 auto 40px auto; display: flex; flex-direction: column; gap: 20px; }
.input-group { text-align: left; margin-bottom: 20px; }
.input-group label { font-weight: bold; display: block; margin-bottom: 6px; }
.input-group input { width: 100%; padding: 12px; font-size: 1rem; border-radius: 6px; border: 1px solid #ccc; }
.calculate-button { padding: 14px; background-color: var(--primary-color); color: #000; font-weight: 700; font-size: 1rem; border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; }
.calculate-button:hover { background-color: #e0a800; }
.ergebnis-box { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); max-width: 600px; margin: 0 auto; text-align: left; }
.ergebnis-box h3 { margin-bottom: 15px; }
.preis-hinweis { font-size: 0.85rem; color: #555; max-width: 600px; margin: 20px auto 0; text-align: center; line-height: 1.4; }

/* --- ANFRAGE --- */
#anfrage { scroll-margin-top: 90px; }
.anfrage-section { background: #ffffff; min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 24px; color: #111; }
.anfrage-wrapper { width: 100%; max-width: 760px; background: #ffffff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); padding: 28px; margin: 0; }
.anfrage-section h2 { text-align: center; font-family: var(--font-primary); font-weight: 800; font-size: 2rem; margin-bottom: 20px; }
.anfrage-form { display: grid; gap: 16px; }
.anfrage-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .anfrage-row { grid-template-columns: 1fr; } }
.anfrage-section .input-group label { font-weight: 700; color: #222; }
.anfrage-section .input-group input { border-color: #dcdcdc; }
.primary-button { height: 48px; font-weight: 800; border-radius: 10px; margin-top: 4px; background: var(--primary-color); color: var(--text-dark); border:0; cursor: pointer; width: 100%; font-size: 1.1rem; }
.payment-accept { margin-top: 32px; text-align: center; }
.payment-title { font-weight: 800; font-family: var(--font-primary); color: #111; margin-bottom: 16px; font-size: 1rem; }
.payment-image img { max-width: 100%; height: auto; display: inline-block; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

/* --- KONTAKTSECTION --- */
.kontakt-section { padding: 80px 0; background: #f8f8f8; text-align: center; color: #111; }
.kontakt-title { font-family: var(--font-primary); font-size: 2.5rem; font-weight: 800; margin-bottom: 40px; }
.kontakt-box { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.kontakt-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #111; font-size: 1.2rem; font-weight: 600; padding: 14px 24px; border: 2px solid #ddd; border-radius: 12px; transition: all 0.25s ease; width: fit-content; }
.kontakt-item img { width: 24px; height: 24px; }
.kontakt-item:hover { background-color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.kontakt-item.whatsapp { border-color: #25D366; color: #25D366; }
.kontakt-item.whatsapp:hover { background-color: #25D366; color: #fff; }
.kontakt-item.whatsapp:hover img { filter: brightness(0) invert(1); }
@media (min-width: 768px) { .kontakt-box { flex-direction: row; justify-content: center; } }

/* --- FOOTER NEUGESTALTUNG --- */
.site-footer {
  background-color: #111;
  color: #ccc;
  padding: 50px 0; /* Mehr Innenabstand für mehr Höhe */
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-direction: column; /* Alle Elemente untereinander anordnen */
  align-items: center;     /* Horizontale Zentrierung */
  text-align: center;
  gap: 28px; /* Abstand zwischen den Elementen */
}

.footer-nav {
  display: flex;
  flex-direction: column; /* Navigations-Links untereinander */
  gap: 12px; /* Abstand zwischen den Links */
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-primary);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--primary-color);
}

.footer-credit {
  margin-top: 10px; /* Etwas mehr Abstand nach oben */
  font-size: 0.9rem;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-credit a {
  display: inline-flex;
  margin-left: 6px;
}

.footer-credit img {
  height: 36px; /* Logo etwas vergrößert */
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-credit a:hover img {
  opacity: 1;
}





/* --- ANPASSUNGEN FÜR MOBILE GERÄTE --- */
@media (max-width: 768px) {
  .main-headline {
    font-size: 3rem; /* Verkleinert die Hauptüberschrift */
  }

  .main-headline .line1 {
    font-size: 1.8rem; /* Passt die Größe der oberen Zeile an */
  }

  .sub-headline {
    font-size: 1.15rem; /* Verkleinert optional auch den Untertitel */
  }
}

/* --- Allgemeine Scroll-Animation für Sektionen --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- STYLING FÜR GOOGLE AUTOCOMPLETE DROPDOWN --- */
.pac-container {
  background-color: #333; /* Dunkler Hintergrund */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border: 1px solid #555;
  z-index: 1200 !important; /* Stellt sicher, dass es über allem liegt */
}

.pac-item {
  padding: 10px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: #f0f0f0; /* Hellerer Text */
  cursor: pointer;
  border-top: 1px solid #555;
}
.pac-item:first-child {
  border-top: none;
}

.pac-item:hover, .pac-item-selected {
  background-color: var(--primary-color);
  color: var(--text-dark); /* Dunkler Text auf gelbem Grund */
}

.pac-item-query {
  font-weight: 600;
  color: #fff; /* Weißer Text für den getippten Teil */
}
.pac-item:hover .pac-item-query, .pac-item-selected .pac-item-query {
  color: var(--text-dark);
}