/* ===========================
   CUSTOM FONTS – WOFF2 ONLY
   (maximale Performance)
=========================== */

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   RESET & BASE
=========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-page-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   DESIGN TOKENS
=========================== */

:root {
  /* Farben */
  --color-page-bg: #fffaf3;        /* Weiß */
  --color-surface: #fff9f0;        /* helle Fläche */
  --color-surface-strong: #2d423b; /* Tannengrün */
  --color-accent: #fed262;         /* Honiggelb */
  --color-accent-soft: #f4e0aa;
  --color-text: #2d423b;
  --color-text-soft: #4b6157;
  --color-text-on-dark: #fffaf3;

  /* Typografie */
  --font-body: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-heading: "Nunito", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --fs-body: 16px;
  --fs-small: 14px;
  --fs-eyebrow: 14px;
  --fs-section-title: 40px;
  --fs-section-subtitle: 24px;
  --fs-section-subtitle-h3: 20px;
  --fs-card-title: 24px;
  --fs-hero-title: 128px;
  --fs-hero-subtitle: 24px;

  /* Spacing */
  --space-page-x-desktop: 80px;
  --space-page-x-mobile: 32px;
  --space-section-y: 80px;
  --space-section-y-small: 56px;

  --gap-section-content: 40px;
  --gap-buttons: 24px;

  /* Headline-Token (Vorgabe) */
  --space-h1-sub: 0px;    /* Abstand zwischen Heading 1 und Subheading */
  --space-sub-text: 16px; /* Abstand zwischen Subheading und Text */

  /* Layout */
  --container-max: 1450px;
  --radius-lg: 40px;
  --radius-md: 24px;
  --radius-pill: 999px;
}

/* ===========================
   LAYOUT UTILITIES
=========================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-page-x-desktop); /* immer 80px */
}

.section {
  padding: var(--space-section-y) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-section-title);
  font-weight: 700;
    letter-spacing: -0.01em;
  line-height: 1.5;
  margin: 0;
  color: var(--color-text);
}

.section-title-center {
    text-align: center;
}

.section-subtitle {
  font-size: var(--fs-section-subtitle);
  font-weight: 400;
  margin: var(--space-h1-sub) 0 var(--space-sub-text);
  color: var(--color-text-soft);
}

.section-subtitle.center {
  text-align: center;
}

.p-text {
  font-size: var(--fs-body);
  color: var(--color-text-soft);
  margin: 0 0 16px;
}

.section-center-header {
  text-align: center;
  margin-bottom: var(--gap-section-content);
}

.section-subtitle-h3 {
  font-size: var(--fs-section-subtitle-h3);
  font-weight: 400;
  margin: var(--space-h1-sub) 0 var(--space-sub-text);
  color: var(--color-text-soft);
}

/* Zwei-Spalten Layout */
.section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.section-layout-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

/* ===========================
   BUTTONS
=========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: var(--fs-body);
  font-weight: 500;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn span {
  display: inline-block;
}

.btn-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-small {
  padding: 10px 20px;
  font-size: var(--fs-small);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-surface-strong);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-text-on-dark);
  color: var(--color-text-on-dark);
}

.btn-dark-outline {
  background: transparent;
  border: 2px solid var(--color-text);
  color: var(--color-text);
}

/* Hover: leicht nach oben, kein Schatten, Icon leicht nach rechts */
.btn:hover {
  transform: translateY(-2px);
}

.btn:hover .btn-icon {
  transform: translateX(2px);
}

/* ===========================
   REVEAL ANIMATION
=========================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   HEADER
=========================== */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-surface-strong);
  padding: 24px var(--space-page-x-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.header__logo img {
  height: 24px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-page-bg);
  padding-bottom: 2px;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

/* Hover: kein Unterstrich, sondern gelb */
.nav-link:hover {
  color: var(--color-accent);
}

.header__phone {
  background: var(--color-accent);
  color: var(--color-surface-strong);
}

/* Hamburger */

.header__toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  position: relative;
  z-index: 30;
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-page-bg);
  margin: 4px 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.header__toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.header__toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header__toggle.is-open span {
  background: var(--color-surface-strong); /* Tannengrün */
}

/* Anchor-Offset */
#hero,
#journey,
#sustainability,
#contact {
  scroll-margin-top: 120px;
}

#services {
  scroll-margin-top: 80px;
}

#sustainability {
  scroll-margin-top: 64px;
}


/* Mobile: Header höher → mehr Offset */
@media (max-width: 900px) {
  #journey, 
  #contact {
    scroll-margin-top: 80px;
  }
}


/* ===========================
   HERO
=========================== */

.hero {
  background: var(--color-surface-strong);
  color: var(--color-text-on-dark);
}

/* Oberer Bereich */
.hero-main {
  padding: 80px 80px; /* Abstand nach oben und unten */
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-left {
  flex: 1;
}

.hero-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-illustration {
  max-width: 312px;
  height: auto;
}

/* Typo oben */

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero-title);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero-location {
  color: var(--color-accent);
  border-right: 4px solid var(--color-accent);
  padding-right: 6px;
  display: inline-block;
  line-height: 1;
  animation: cursor-blink 1.1s step-end infinite;
}

@keyframes cursor-blink {
  50% { border-color: transparent; }
}

.hero-subtitle {
  font-size: var(--fs-hero-subtitle);
  margin: 0 0 var(--space-sub-text);
  color: var(--color-text-on-dark);
}

/* ===========================
   HERO – SERVICE-LEISTE UNTEN
=========================== */

.hero-services-strip {
  background: var(--color-page-bg);
}

.hero-services-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 0px;      /* 80px Seitenabstand wie oben */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.hero-service {
  display: flex;
  align-items: center;
  gap:8px;
}

.hero-service-icon img {
  width: 60px;
  height: 60px;
  display: block;
}

.hero-service-text {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-text)
}

.section-actions.hero {
  margin-top: 48px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px) {
  /* weniger Seitenabstand & vertikal komprimiert */
  .hero-main {
    padding: 0px var(--space-page-x-mobile); /* statt 80px 80px */
  }

  .hero-inner {
    padding: 0;                     /* kein zusätzliches Padding mehr */
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-right {
 order: -1;                /* <<< hier passiert die Magie */
    align-self: center;
    margin-bottom: 16px;      /* optional: etwas Luft unter dem Bild */
    margin-top: -40px;
  }

/* Wrapper schneidet unten ab */
  .hero-figure {
    max-height: 240px;       /* sichtbarer Ausschnitt */
    overflow: hidden;        /* schneidet unten (und nur unten, wenn breit genug) */
    padding: 16px;    /* links & rechts etwas Luft */
  }

  .hero-figure img.hero-illustration {
  display: block;
  width: 100%;             /* füllt den verfügbaren Bereich, passt sich an */
}

   /* Text danach */
  .hero-left {
    order: 1;
  }

  .hero-services-inner {
    padding: 24px var(--space-page-x-mobile);
    flex-direction: column;
    gap: 24px;
  }

  .hero-service {
    justify-content: flex-start;
  }
}


/* ===========================
   INTRO
=========================== */

.section-intro {
  background: var(--color-page-bg);
}

.section-text {
  display: flex;
  flex-direction: column;
}

.section-actions {
  display: flex;
  gap: var(--gap-buttons);
  margin-top: 24px;
}

.section-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ===========================
   LEISTUNGEN + ACCORDION
=========================== */

.section-services {
  background: var(--color-page-bg);
}

/* Accordion untereinander */
.service-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.service-detail-card {
  background: var(--color-surface-strong);
  border-radius: 32px;
  padding: 40px 32px;
  color: var(--color-text-on-dark);
  transition: transform 0.2s ease-out;
}

/* Accordion Button */

.accordion-toggle {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
    flex-shrink: 0;
}

.service-detail-icon img {
  width: 48px;
  height: 48px;
}

.service-detail-heading {
  flex: 1;
}

.service-detail-title {
  margin: 0 0 var(--space-h1-sub);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight:700;
  letter-spacing: -0.01em;
  color: var(--color-text-on-dark);
}

.service-detail-title .highlight {
  color: var(--color-accent);
}

.card-text {
  font-size: var(--fs-body);
  margin: 0 0 8px;
}

.card-text-light {
  color: var(--color-text-on-dark);
  line-height: 1.5;
}


/* Accordion Panel */

.accordion-panel {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 250, 243, 0.16);
  padding-top: 16px;
}

/* Listen im Accordion */

.list {
  margin: 0 0 16px 1.25rem;
  padding: 0;
}

.list li {
  margin-bottom: 4px;
}

/* Accordion Icon (plus/minus.svg) */

.accordion-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Hover: Cards leicht nach oben, kein Schatten */

.service-detail-card:hover {
  transform: translateY(-3px);
}

/* CTA unter Accordion */

.services-cta {
  margin-top: 32px;
  display: flex;
  gap: var(--gap-buttons);
  justify-content: center;
}

/* ===========================
   Accordion Title Mobile Fix
=========================== */

/* ===========================
   UNSER WEG
=========================== */

.section-journey {
  background: var(--color-page-bg);
}

/* Mobile: nur den Haupttitel (highlight) zeigen, Unterzeile ausblenden */
@media (max-width: 640px) {
  .service-detail-title {
    font-size: 0;          /* alles im h3 bekommt Größe 0 */
    line-height: 0;
    margin: 0 0 8px;       /* kleiner Abstand nach unten */
  }

  .service-detail-title .highlight {
    display: inline-block;
    font-size: var(--fs-section-subtitle);       /* eigentliche Größe des Titels */
    line-height: 1.2;
    color: var(--color-accent);
  }
}


/* ===========================
   NACHHALTIG UNTERWEGS
=========================== */

.section-sustainability {
  background: var(--color-page-bg);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.fleet-card {
  border-radius: 32px;
  background: var(--color-surface-strong);
  color: var(--color-text-on-dark);
  padding: 32px;
  transition: transform 0.2s ease-out;
}

.fleet-card-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
    align-items: center;
}

.fleet-vehicle {
  border-radius: 24px;
  overflow: hidden;
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-card-title);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-h1-sub);
}

.card-title-highlight {
  color: var(--color-accent);
}

.fleet-card:hover {
  transform: translateY(-3px);
}

.section-actions.center {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
  align-items: stretch;
    align-items: center;
}

/* ===========================
   KONTAKT
=========================== */

.section-contact {
  background: var(--color-page-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

.contact-text-block {
  display: flex;
  flex-direction: column;
}

.contact-info {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 40px
}

.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.info-icon img {
  width: 100%;
  height: 100%;
}

.info-row p {
  margin: 0;
  color: var(--color-text-soft);
}

.info-row a {
  text-decoration: underline;
}

/* Kontaktformular im tannengrünen Rechteck –
   Wrapper passt sich komplett an Formular-Breite an */

.contact-form-wrapper {
  border-radius: 32px;
  background: var(--color-surface-strong);
  padding: 32px 32px 40px;
  color: var(--color-text-on-dark);
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-2 {
  flex-direction: row;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
   min-width: 0;          /* <<< WICHTIG gegen Überlaufen */
}

.form-field label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-on-dark);
}

.form-field input,
.form-field textarea {
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 243, 0.3);
  background: transparent;
  padding: 10px 14px;
  font-size: var(--fs-body);
  color: var(--color-text-on-dark);
  font-family: var(--font-body);
}

.form-field textarea {
  border-radius: 16px;
  min-height: 120px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 250, 243, 0.6);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: transparent;
}

.form-row-submit {
  margin-top: 8px;
}

.form-row-submit .btn {
  width: 100%;
}

button {
  font-family: var(--font-body);
}

.form-message {
  margin-top: 16px;
  font-size: var(--fs-body);
  border-radius: 16px;
  padding: 12px 16px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* sichtbar schalten */
.form-message--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Erfolg */
.form-message--success {
  background: rgba(254, 210, 98, 0.18);      /* weiches Honiggelb */
  border: 1px solid var(--color-accent);
  color: var(--color-text-on-dark);
}

/* Fehler */
.form-message--error {
  background: rgba(255, 120, 120, 0.15);
  border: 1px solid #ff7878;
  color: var(--color-text-on-dark);
}


/* ===========================
   FOOTER
=========================== */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px var(--space-page-x-desktop) 56px;
  background: var(--color-accent);
  color: var(--color-surface-strong);
  gap: 32px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.footer-logo {
  width: 128px;
  height: auto;
}

.footer-address {
  font-size: var(--fs-small);
  line-height: 1.5;
}

.footer-section {
  font-size: var(--fs-small);
  line-height: 1.5;
  min-width: 150px;
}

.footer-section a {
  text-decoration: underline;
}

.footer-socials {
  visibility: hidden; /* nimmt Platz ein, ist aber unsichtbar */
  width: 80px;
  align-items: center;
  gap: 8px;
}

.footer-socials img {
  width: 24px;
  height: 24px;
}

/* ===========================
   ANIMATIONEN
=========================== */

html {
  scroll-behavior: smooth;
}

.header__logo img, .footer-socials img {
  transition: transform 0.2s ease;
  transform-origin: left center; /* wirkt natürlicher */
}

.header__logo:hover img, .footer-socials img:hover {
  transform: scale(1.04);
}

/* Container: schneidet den Zoom sauber ab */
.section-image {
  overflow: hidden;
}

/* Bild: Basiszustand */
.section-image img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.3s ease;
}

/* Hover: leichtes Reinzoomen */
.section-image:hover img {
  transform: scale(1.01);
}

/* Hero: sanftes Wippen / Nicken */
/* Desktop & Tablet */
@media (min-width: 901px) {
  .hero-illustration {
    transform-origin: bottom center;
    animation: hero-bobble-desktop 4.5s ease-in-out infinite;
  }
}

@keyframes hero-bobble-desktop {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-4px) rotate(-1.2deg); }
  50%  { transform: translateY(0) rotate(0deg); }
  75%  { transform: translateY(-3px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Mobile */
@media (max-width: 900px) {
 /* Bild selbst: wippen um die verschobene Position */
  .hero-illustration {
    max-width: 320px;
    transform-origin: bottom center;
    animation: hero-bobble-mobile 4.5s ease-in-out infinite;
  }
}

@keyframes hero-bobble-mobile {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-3px) rotate(-1deg); }
  50%  { transform: translateY(0) rotate(0deg); }
  75%  { transform: translateY(-2px) rotate(0.8deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* INTRO-BILD */
/* Intro-Auto: Grundzustand */
#intro .section-image img {
  transform: translateX(0);
  transition: transform 0.05s linear; /* optional, macht die Bewegung etwas smoother */
}


/* Keyframes: Vor- und zurückfahren auf der X-Achse */
@keyframes drive-x {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-32px); /* Strecke nach rechts */
  }
}

/* Icons Animation Services */
/* Zoom / Puls */
@keyframes icon-zoom {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* X-Achse Vor-Zurück */
@keyframes icon-drive-x {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

/* Diagonale Bewegung */
@keyframes icon-diagonal {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(6px, -6px); }
  100% { transform: translate(0, 0); }
}

/* 1. Taxidienst – Zoom */
.hero-service:nth-of-type(1):hover .hero-service-icon img {
  animation: icon-zoom 0.8s ease-in-out;
}

/* 2. Krankentransport – X-Bewegung */
.hero-service:nth-of-type(2):hover .hero-service-icon img {
  animation: icon-drive-x 0.8s ease-in-out;
}

/* 3. Airport-Shuttle – Diagonal */
.hero-service:nth-of-type(3):hover .hero-service-icon img {
  animation: icon-diagonal 0.8s ease-in-out;
}


/* Accordion */
.service-detail-card:nth-of-type(1):hover .service-detail-icon img {
  animation: icon-zoom 3s ease-in-out infinite;
}

.service-detail-card:nth-of-type(2):hover .service-detail-icon img {
  animation: icon-drive-x 3s ease-in-out infinite;
}

.service-detail-card:nth-of-type(3):hover .service-detail-icon img {
  animation: icon-diagonal 3s ease-in-out infinite;
}

.service-detail-icon img {
  animation: none; /* Grundzustand */
}

/* Ausgangszustand */
.btn-icon {
  display: inline-block;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

/* Klingel-Animation beim Hover über den Button */
.btn:hover img[src*="anruf"] {
  animation: ring-wobble 1s ease-in-out infinite;
}

/* Keyframes: leichtes links/rechts Neigen */
@keyframes ring-wobble {
  0%   { transform: rotate(0deg) translateX(0); }
  20%  { transform: rotate(-12deg) translateX(-1px); }
  40%  { transform: rotate(12deg) translateX(1px); }
  60%  { transform: rotate(-8deg) translateX(-1px); }
  80%  { transform: rotate(8deg) translateX(1px); }
  100% { transform: rotate(0deg) translateX(0); }
}


/* ===========================
   RESPONSIVE
=========================== */

@media (min-width: 900px) {
  .fleet-grid {
    padding: 0 var(--space-page-x-mobile);
    padding-left: 100px;
    padding-right: 100px
  }
  }


@media (max-width: 900px) {
  .container {
    padding: 0 var(--space-page-x-mobile);
  }

  .header {
    padding: 24px var(--space-page-x-mobile);
  }

  .header__toggle {
    display: block;
  }

  .header__nav {
    position: fixed;
    inset: 0;
    background: var(--color-accent);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 25;
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__nav .nav-link {
    font-size: 24px;
    color: var(--color-textg);
  }

    .header__nav .nav-link:hover {
    color: var(--color-surface);
  }


  .header__phone {
    justify-content: center;
        /* NEUE MOBILE STYLES */
    font-size: 16px;
    padding: 18px 32px;
    background: var(--color-surface-strong);
    color: var(--color-text-on-dark);
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header__phone .btn-icon {
    width: 40px;
    height: 40px;
    content: url("icons/anruf-weiß.svg");
  }

  .header__toggle {
    position: fixed;
    top: 28px;
    right: 32px;
  }

  .hero-inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-services {
    flex-direction: column;
    margin-top: -24px;
  }

  .section-layout,
  .section-layout-reverse,
  .fleet-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form-wrapper {
    margin-top: 16px;
  }

  .section {
    padding: var(--space-section-y-small) 0;
  }

  .form-row-2 {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  :root {
    --fs-hero-title: 48px;
    --fs-hero-subtitle: 20px;
    --fs-section-title: 32px;
    --fs-section-subtitle: 20px;
  }

  .hero-inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .section-center-header {
    text-align: left;
  }

  .services-cta {
    flex-direction: column;
  }

  .section-actions {
    flex-direction: column;
  }

  .footer {
    padding: 32px var(--space-page-x-mobile) 48px;
    flex-direction: column;
  }
}

@media (max-width: 1200px) and (min-width: 601px) {
  :root {
    --fs-hero-title: 72px;
    --fs-hero-subtitle: 20px;
  }
}

/* Weniger Bewegung bei prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Impressum & Datenschutz – Links wie im Index */
.page-legal a {
  text-decoration: underline;
  color: var(--color-text-body);
}

/* ===========================
   uafach alls – Signatur-Banner
=========================== */

.ua-signature {
  width: 100%;
  height: 40px;
  padding: 11px 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #222222;
}

.ua-signature__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;
  border-radius: 999px;
}

.ua-signature__logo {
  height: 18px;
  width: auto;
  display: block;
}