/* ==========================================================================
   Auto Mittermeier – Relaunch
   Aufgebaut auf Bootstrap 5.3
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts – Opel Next (lokal eingebunden, keine externen Font-Dienste)
   300 = Überschriften, 400 = Fließtext, 700 = Buttons/Navigation
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Opel Next";
  src: url("../fonts/OpelNextW01-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Opel Next";
  src: url("../fonts/OpelNextW01-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Opel Next";
  src: url("../fonts/OpelNextW01-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  --am-yellow: #f7ff14;
  --am-yellow-hover: #e6ee00;
  --am-black: #000;
  --am-ink: #1a1a1a;
  --am-muted: #5c5c5c;
  --am-bg: #f9f9f9;
  --am-white: #fff;
  --am-line: #e3e3e3;
  --am-placeholder: #d9dde2;

  --am-radius: 16px;
  --am-radius-lg: 24px;
  --am-pill: 70px;
  --am-header-h: 64px;

  --am-font: "Opel Next", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Bootstrap-Variablen überschreiben */
  --bs-body-font-family: var(--am-font);
  --bs-body-color: var(--am-black);
  --bs-body-bg: var(--am-bg);
  --bs-link-color-rgb: 0, 0, 0;
  --bs-link-hover-color-rgb: 0, 0, 0;
  --bs-border-radius: var(--am-radius);
}

/* Sprungmarken (#formular, #modelle …) nicht unter Header/Navigation verstecken */
html { scroll-padding-top: calc(var(--am-header-h) + 16px); }
@media (min-width: 992px) {
  html { scroll-padding-top: calc(var(--am-header-h) + 70px); }
}

body {
  font-family: var(--am-font);
  background: var(--am-bg);
  color: var(--am-black);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 2000;
  background: var(--am-black); color: var(--am-white);
  padding: .5rem 1rem; border-radius: var(--am-pill);
}

:focus-visible { outline: 2px solid var(--am-black); outline-offset: 3px; }

.display-light {
  font-weight: 300;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.eyebrow {
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}

.lead-muted { color: var(--am-muted); font-size: 1.125rem; max-width: 46rem; }

.section { padding: clamp(3rem, 2rem + 4vw, 6rem) 0; }
.section-white { background: var(--am-white); }
.section-head { margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head .lead-muted { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-pill {
  border-radius: var(--am-pill);
  font-weight: 700;
  font-size: 1rem;
  padding: .7rem 1.5rem;
  border-width: 1px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-pill.btn-dark { background: var(--am-black); border-color: var(--am-black); }
.btn-pill.btn-dark:hover { background: #333; border-color: #333; }
.btn-yellow { background: var(--am-yellow); border-color: var(--am-yellow); color: var(--am-black); }
.btn-yellow:hover, .btn-yellow:focus { background: var(--am-yellow-hover); border-color: var(--am-yellow-hover); color: var(--am-black); }
.btn-light-pill { background: var(--am-white); border-color: var(--am-white); color: var(--am-black); }
.btn-light-pill:hover { background: var(--am-black); border-color: var(--am-black); color: var(--am-white); }
.btn-pill.btn-outline-dark { border-color: var(--am-black); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--am-black);
  font-size: 1.35rem; text-decoration: none;
  transition: background-color .15s ease;
}
.icon-btn:hover { background: #f0f0f0; color: var(--am-black); }

.round-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--am-white); color: var(--am-black);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.round-btn:hover { background: var(--am-black); color: var(--am-white); }

.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow i { transition: transform .15s ease; display: inline-block; }
.link-arrow:hover i { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { background: var(--am-white); z-index: 1030; }

.header-bar { height: var(--am-header-h); border-bottom: 1px solid var(--am-line); }
.header-bar > .container-xxl { height: 100%; position: relative; }
.header-left, .header-right { flex: 1 1 0; }
.header-right { justify-content: flex-end; }

.brand {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none; color: var(--am-black);
  display: flex; align-items: center;
}
.brand-logo { height: 40px; width: auto; display: block; }

.notice-bar {
  display: block; text-align: center;
  background: var(--am-yellow); color: var(--am-black);
  font-weight: 700; font-size: .9375rem;
  padding: .55rem 1rem; text-decoration: none;
}
.notice-bar:hover { text-decoration: underline; color: var(--am-black); }

/* --------------------------------------------------------------------------
   Hauptnavigation
   Ein Menü, zwei Darstellungen (Bootstrap navbar-expand-lg + offcanvas):
   ab 992px Leiste mit Dropdowns, darunter Offcanvas von links.
   -------------------------------------------------------------------------- */
.main-nav {
  --bs-navbar-padding-y: 0;
  --bs-navbar-color: var(--am-muted);
  --bs-navbar-hover-color: var(--am-black);
  --bs-navbar-active-color: var(--am-black);
  --bs-navbar-nav-link-padding-x: 1rem;
  background: var(--am-white);
}
.main-nav .nav-link { font-weight: 700; }

.main-nav .dropdown-menu {
  --bs-dropdown-border-width: 0;
  --bs-dropdown-border-radius: var(--am-radius);
  --bs-dropdown-padding-y: .5rem;
  --bs-dropdown-min-width: 14rem;
  --bs-dropdown-item-padding-x: 1.25rem;
  --bs-dropdown-item-padding-y: .6rem;
  --bs-dropdown-link-active-bg: var(--am-black);
  --bs-dropdown-link-hover-bg: var(--am-bg);
}

.menu-contact { margin-top: 2rem; display: grid; gap: .75rem; font-weight: 700; }
.menu-contact a { text-decoration: none; }
.menu-contact i { margin-right: .5rem; }

/* Desktop: Leiste unter dem Header, bleibt beim Scrollen stehen */
@media (min-width: 992px) {
  .main-nav {
    position: sticky; top: var(--am-header-h); z-index: 1029;
    border-bottom: 1px solid var(--am-line);
  }
  .main-nav .offcanvas-body { flex-grow: 1; }
  .main-nav .nav-link {
    font-size: .9375rem;
    padding-top: .8rem; padding-bottom: .8rem;
    border-bottom: 2px solid transparent;
  }
  .main-nav .nav-link.active { border-bottom-color: var(--am-black); }
  .main-nav .dropdown-menu {
    margin-top: 0;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    font-weight: 700;
  }
  /* Langes Service-Menü zweispaltig */
  .main-nav .dropdown-menu-cols {
    columns: 2; column-gap: 0; min-width: 34rem;
    left: 50%; transform: translateX(-50%);
  }
  .main-nav .dropdown-menu-cols li { break-inside: avoid; }
}

/* Smartphone/Tablet: Offcanvas */
@media (max-width: 991.98px) {
  .main-nav .offcanvas { --bs-offcanvas-width: 420px; }
  .main-nav .offcanvas-header { height: var(--am-header-h); border-bottom: 1px solid var(--am-line); justify-content: space-between; }
  .main-nav .offcanvas-title { font-weight: 700; font-size: 1.125rem; }
  .main-nav .navbar-nav > .nav-item { border-bottom: 1px solid var(--am-line); }
  .main-nav .nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem .25rem; font-size: 1.25rem; font-weight: 300; color: var(--am-black);
  }
  .main-nav .nav-link.active { font-weight: 700; }
  .main-nav .dropdown-menu {
    background: transparent; box-shadow: none;
    padding: 0 0 1rem;
  }
  .main-nav .dropdown-item { padding: .4rem .25rem; color: var(--am-muted); }
  .main-nav .dropdown-item:hover { background: none; color: var(--am-black); text-decoration: underline; }
  .main-nav .dropdown-divider { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; background: #e9edf1; }
.hero .carousel { position: relative; }

.hero-media {
  height: clamp(460px, 75vh, 820px);
  background-color: var(--am-placeholder);
  background-image: linear-gradient(180deg, #eef1f4 0%, #cfd6dd 100%);
  background-size: cover;
  background-position: center;
}

.hero-caption {
  position: absolute; top: 3rem; left: 0; right: 0;
  text-align: center; z-index: 2; padding: 0 1rem;
}
.hero-title { font-weight: 300; font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); margin: 0; line-height: 1; color: var(--am-white); }
.hero-sub { margin: .5rem 0 0; font-size: 1.0625rem; color: var(--am-white);}
/* Dezenter Schatten hinter dem weißen Text – lesbar auch auf hellen Bildern */
.hero-title,
.hero-sub { text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 18px rgba(0,0,0,.45); }

.hero-actions {
  position: absolute; bottom: 4.5rem; left: 50%; transform: translateX(-50%); z-index: 3;
}
.hero-arrows {
  position: absolute; bottom: 4.5rem; right: max(1rem, calc((100% - 1320px) / 2 + 1rem));
  z-index: 3; display: flex; gap: .5rem;
}
/* Ruhiger Bildwechsel statt Slide-Animation */
.hero .carousel-fade .carousel-item { transition-duration: .4s; }

/* --------------------------------------------------------------------------
   Angebotsleiste
   -------------------------------------------------------------------------- */
.offer-strip-wrap { position: relative; z-index: 4; margin-top: -2.5rem; }
.offer-strip {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center;
  background: var(--am-white); border-radius: var(--am-radius);
  padding: 1.5rem 2rem; box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.offer-badge {
  border: 2px solid var(--am-black); border-radius: 12px;
  padding: .6rem 1rem; text-align: center; line-height: 1.1; min-width: 150px;
}
.offer-badge .small-caps { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.offer-badge .big { display: block; font-weight: 300; font-size: 1.25rem; margin-top: .2rem; }
.offer-kicker { margin: 0 0 .15rem; font-size: .9375rem; }
.offer-title { font-weight: 300; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0 0 .35rem; }
.offer-fine { margin: 0; font-size: .875rem; color: var(--am-muted); }

/* --------------------------------------------------------------------------
   Teaser-Karten (Rail)
   -------------------------------------------------------------------------- */
.card-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.tile {
  position: relative; border-radius: var(--am-radius); overflow: hidden;
  min-height: 460px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--am-placeholder); color: var(--am-black);
}
.tile-media {
  position: absolute; inset: 0;
  background-color: var(--am-placeholder);
  background-size: cover; background-position: center;
  transition: transform .4s ease;
}
.tile:hover .tile-media { transform: scale(1.03); }
/* Heller Verlauf oben, damit Titel und Text auf jedem Foto lesbar bleiben */
.tile-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 30%, rgba(255,255,255,0) 60%);
}
.tile-body { position: relative; padding: 1.75rem 1.75rem 0; }
.tile-title { font-weight: 300; font-size: 1.75rem; margin: 0 0 .5rem; }
.tile-text { font-size: .9375rem; max-width: 26rem; margin: 0; }
.tile-btn { position: relative; align-self: flex-start; margin: 0 1.75rem 1.75rem; }

/* --------------------------------------------------------------------------
   Banner
   -------------------------------------------------------------------------- */
.banner { position: relative; overflow: hidden; color: var(--am-white); background: #2a2f35; }
.banner-media {
  position: absolute; inset: 0;
  background-color: #2a2f35; background-size: cover; background-position: center;
}
.banner-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 75%, rgba(0,0,0,0) 100%);
}
/* Schmale Screens: Text läuft über die volle Breite, daher gleichmäßig abdunkeln */
@media (max-width: 767.98px) {
  .banner-media::after { background: rgba(0,0,0,.6); }
}
.banner-content {
  position: relative; min-height: 560px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: 4rem; padding-bottom: 4rem;
}
.banner-content .display-light { max-width: 40rem; }
.banner-text { max-width: 36rem; font-size: 1.0625rem; margin: 1rem 0 2rem; }

/* --------------------------------------------------------------------------
   Seiten-Header (Unterseiten): Bild mit Headline, Subline und CTA
   -------------------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; color: var(--am-white); background: #1d2126; }
.page-hero-media {
  position: absolute; inset: 0;
  background-color: #1d2126; background-size: cover; background-position: center;
}
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 80%, rgba(0,0,0,0) 100%);
}
.page-hero-content {
  position: relative; min-height: clamp(380px, 55vh, 560px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: 3rem; padding-bottom: 3rem;
}
.page-hero-breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255,255,255,.6);
  --bs-breadcrumb-item-active-color: rgba(255,255,255,.8);
  font-size: .875rem; font-weight: 700; margin-bottom: 1rem;
}
.page-hero-breadcrumb a { color: var(--am-white); text-decoration: none; }
.page-hero-breadcrumb a:hover { text-decoration: underline; }
.page-hero-title {
  font-weight: 300; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  line-height: 1.05; letter-spacing: -.01em; max-width: 40rem; margin-bottom: 1rem;
}
.page-hero-sub { font-size: 1.125rem; max-width: 34rem; margin-bottom: 2rem; }
@media (max-width: 767.98px) {
  .page-hero-media::after { background: rgba(0,0,0,.6); }
}

/* Fahrzeugbestand: Container für das AutoScout24-iFrame */
.listing-embed { background: var(--am-white); border-radius: var(--am-radius); overflow: hidden; }
.listing-embed iframe { display: block; width: 100%; min-height: 1200px; border: 0; }
.listing-placeholder {
  min-height: 420px; padding: 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  text-align: center; color: var(--am-muted);
  border: 2px dashed var(--am-line); border-radius: var(--am-radius);
}
.listing-placeholder i { font-size: 2.5rem; }

/* --------------------------------------------------------------------------
   Neuwagen: Modellkarten mit freigestellten Fahrzeugen (2:1)
   -------------------------------------------------------------------------- */
.car-card {
  height: 100%; display: flex; flex-direction: column;
  background: var(--am-white); border-radius: var(--am-radius); overflow: hidden;
  transition: box-shadow .2s ease;
}
.car-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.car-media {
  aspect-ratio: 2 / 1; padding: 1rem 1rem 0;
  background: linear-gradient(180deg, var(--am-white) 0%, #eef0f2 100%);
}
.car-media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.car-card:hover .car-media img { transform: scale(1.04); }
.car-body { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem 1.5rem 1.5rem; }
.car-name { font-weight: 300; font-size: 1.5rem; margin: 0; }
.car-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-pill.btn-sm { font-size: .875rem; padding: .5rem 1rem; }

/* Fließtext-Blöcke neben einer Überschrift */
.text-block p { font-size: 1.0625rem; line-height: 1.65; }

/* Liste mit Häkchen */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; font-weight: 700; }
.check-list li { display: flex; gap: .6rem; align-items: baseline; }
.check-list li::before {
  content: "\F26E"; font-family: "bootstrap-icons"; font-weight: 400;
  color: var(--am-black); background: var(--am-yellow); border-radius: 50%;
  width: 1.4rem; height: 1.4rem; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem;
}

/* --------------------------------------------------------------------------
   Textseiten (Impressum, Datenschutz): ohne Headerbild, direkt Inhalt
   -------------------------------------------------------------------------- */
.text-page { background: var(--am-white); padding: clamp(2rem, 1.5rem + 2.5vw, 4rem) 0 clamp(3rem, 2rem + 4vw, 6rem); }
.text-page-inner { max-width: 52rem; }
.text-page-breadcrumb {
  --bs-breadcrumb-divider-color: var(--am-muted);
  --bs-breadcrumb-item-active-color: var(--am-muted);
  font-size: .875rem; font-weight: 700; margin-bottom: 1.5rem;
}
.text-page-breadcrumb a { text-decoration: none; }
.text-page-breadcrumb a:hover { text-decoration: underline; }

.legal-content { font-size: 1rem; line-height: 1.65; overflow-wrap: break-word; }
.legal-content h1 {
  font-weight: 300; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  line-height: 1.05; letter-spacing: -.01em; margin-bottom: 2rem;
}
.legal-content h2 {
  font-weight: 300; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--am-line);
  scroll-margin-top: 130px; /* Platz für Header + Navigation beim Sprung über das Inhaltsverzeichnis */
}
.legal-content h1 + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content h3 { font-weight: 700; font-size: 1.125rem; margin: 2rem 0 .5rem; }
.legal-content h4 { font-weight: 700; font-size: 1rem; margin: 1.5rem 0 .5rem; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content li { margin-bottom: .4rem; }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }

/* Inhaltsverzeichnis (Datenschutz) */
.legal-toc { background: var(--am-bg); border-radius: var(--am-radius); padding: 1.5rem 1.75rem; margin-bottom: 2.5rem; }
.legal-toc-title { font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.legal-toc a { text-decoration: none; font-weight: 700; }
.legal-toc a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Formulare (Servicetermin)
   -------------------------------------------------------------------------- */
.am-form {
  background: var(--am-white); border-radius: var(--am-radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  --bs-border-radius: 12px;
  --bs-form-invalid-color: #b3261e;
  --bs-form-invalid-border-color: #b3261e;
}
.form-required-note { color: var(--am-muted); font-size: .875rem; margin-bottom: 1.5rem; }
.am-form fieldset { margin-bottom: 2rem; }
.form-legend {
  font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding-bottom: .75rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--am-line);
}
.am-form .form-label { font-weight: 700; font-size: .9375rem; margin-bottom: .4rem; }
.am-form .req { color: var(--am-muted); }
.am-form .form-control,
.am-form .form-select { padding: .75rem 1rem; border-color: #c9ccd1; }
.am-form .form-control:focus,
.am-form .form-select:focus { border-color: var(--am-black); box-shadow: 0 0 0 3px rgba(0,0,0,.12); }

/* Auswahl-Pillen (Checkboxen / Radios als Buttons) */
.choice-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.am-form .choice {
  border: 1px solid #c9ccd1; border-radius: var(--am-pill);
  padding: .5rem 1rem; font-weight: 700; font-size: .9375rem; color: var(--am-black); background: var(--am-white);
}
.am-form .choice:hover { border-color: var(--am-black); }
.am-form .btn-check:checked + .choice { background: var(--am-black); border-color: var(--am-black); color: var(--am-white); }
.am-form .btn-check:focus-visible + .choice { outline: 2px solid var(--am-black); outline-offset: 2px; box-shadow: none; }
.choice-group .invalid-feedback { margin-top: .5rem; }
.choice-group.is-invalid .invalid-feedback { display: block; }
.choice-group.is-invalid .choice { border-color: var(--bs-form-invalid-border-color); }

.btn-submit { padding: .9rem 2rem; font-size: 1.0625rem; }
.form-privacy { margin: 1.5rem 0 0; font-size: .8125rem; color: var(--am-muted); }
.form-privacy a { color: inherit; }

/* Spam-Schutz: für Menschen unsichtbar, für Bots ein normales Feld */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Seitenspalte mit Hinweis und Kontakt */
@media (min-width: 992px) {
  .form-aside { position: sticky; top: calc(var(--am-header-h) + 70px); }
}
.notice-box { background: var(--am-yellow); border-radius: var(--am-radius); padding: 1.5rem; font-weight: 700; }
.notice-box-title { font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.notice-box-title i { margin-right: .35rem; }
.aside-contact { background: var(--am-white); border-radius: var(--am-radius); padding: 1.5rem; margin-top: 1rem; }
.aside-phone { font-size: 1.5rem; font-weight: 300; text-decoration: none; }
.aside-phone i { font-size: 1.25rem; margin-right: .35rem; }

/* Danke-Seite */
.thanks-icon {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--am-yellow); font-size: 2rem;
}

/* --------------------------------------------------------------------------
   Service-Unterseiten: Vorteile-Karten und Abschluss-CTA
   -------------------------------------------------------------------------- */
.usp-card { height: 100%; background: var(--am-white); border-radius: var(--am-radius); padding: 1.75rem; }
.usp-icon {
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 1.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--am-yellow); font-size: 1.4rem;
}
.usp-title { font-weight: 700; font-size: 1.125rem; margin-bottom: .5rem; }

.cta-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--am-white); border-radius: var(--am-radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

/* Finanzierung: erklärende Grafiken und nummerierte Optionen */
.finance-graphic { padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.finance-graphic img { display: block; width: 100%; height: auto; }

.option-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.option-steps li { background: var(--am-white); border-radius: var(--am-radius); padding: 1.5rem; }
.option-num {
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--am-yellow); font-weight: 700; font-size: 1.125rem;
}

/* FlexCare: Leistungspakete und Zusatzleistungen */
.package-card {
  height: 100%; display: flex; flex-direction: column;
  background: var(--am-bg); border-radius: var(--am-radius);
  padding: 1.75rem; border-top: 6px solid var(--am-line);
}
.package-card-top { border-top-color: var(--am-yellow); }
.package-tier { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--am-muted); margin-bottom: .35rem; }
.package-name { font-weight: 300; font-size: 1.5rem; margin-bottom: .75rem; }
.package-text { font-size: .9375rem; }
.package-features { list-style: none; padding: 1rem 0 0; margin: auto 0 0; border-top: 1px solid var(--am-line); display: grid; gap: .45rem; font-size: .9375rem; font-weight: 700; }
.package-features li::before { content: "\F26E"; font-family: "bootstrap-icons"; font-weight: 400; margin-right: .5rem; }
.package-features li.is-off { color: #9a9ea4; font-weight: 400; text-decoration: line-through; }
.package-features li.is-off::before { content: "\F2EA"; }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { background: var(--am-white); border-radius: var(--am-pill); padding: .55rem 1.1rem; font-weight: 700; font-size: .9375rem; }

/* Pannendienst: großer, anklickbarer Notruf-Block */
.emergency-card {
  display: flex; align-items: center; gap: clamp(1rem, .5rem + 2vw, 2rem);
  background: var(--am-yellow); color: var(--am-black); text-decoration: none;
  border-radius: var(--am-radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  transition: background-color .15s ease;
}
.emergency-card:hover { background: var(--am-yellow-hover); color: var(--am-black); }
.emergency-icon {
  flex: none; width: clamp(56px, 40px + 3vw, 80px); height: clamp(56px, 40px + 3vw, 80px); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--am-black); color: var(--am-yellow); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
}
.emergency-text { display: flex; flex-direction: column; min-width: 0; }
.emergency-label { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.emergency-number { font-weight: 300; font-size: clamp(1.75rem, 1.1rem + 3vw, 3.5rem); line-height: 1.1; white-space: nowrap; }
.emergency-arrow { margin-left: auto; font-size: 1.75rem; transition: transform .15s ease; }
.emergency-card:hover .emergency-arrow { transform: translateX(4px); }
@media (max-width: 575.98px) {
  .emergency-arrow { display: none; }
}

/* Preiskarte (z. B. Reifenlagerung) */
.price-card { background: var(--am-yellow); border-radius: var(--am-radius); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
@media (min-width: 992px) {
  .price-card { position: sticky; top: calc(var(--am-header-h) + 70px); }
}
.price-label { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.price-value { font-weight: 300; font-size: clamp(2.75rem, 2rem + 3vw, 4rem); line-height: 1; margin-bottom: 1.25rem; }
.price-includes { list-style: none; padding: 1rem 0 0; margin: 0 0 1.5rem; border-top: 1px solid rgba(0,0,0,.15); display: grid; gap: .4rem; font-weight: 700; }
.price-includes li::before { content: "\F26E"; font-family: "bootstrap-icons"; font-weight: 400; margin-right: .5rem; }

/* Angebotskarten mit Preis (Sommer-/Winterreifen) – Button immer unten bündig */
.offer-card {
  height: 100%; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--am-white); border-radius: var(--am-radius); padding: 1.75rem;
}
.offer-card p:last-of-type { flex: 1; }
.offer-card .btn { margin-top: .5rem; }
.offer-card-highlight { box-shadow: inset 0 6px 0 var(--am-yellow); }
.offer-price { font-weight: 300; font-size: 2rem; line-height: 1.1; margin-bottom: .75rem; }
.offer-price span { font-size: .9375rem; font-weight: 400; color: var(--am-muted); }

/* Info-Kasten auf weißem Abschnitt (z. B. Rechte nach einem Unfall) */
.info-panel { height: 100%; background: var(--am-bg); border-radius: var(--am-radius); padding: 1.75rem; }

/* Kleingedrucktes / Fußnote unter einem Abschnitt */
.small-print { margin: 1rem 0 0; font-size: .8125rem; color: var(--am-muted); }

/* Checklisten-Raster (Urlaubs-Check, Winter-Sofort-Check) */
.check-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.check-grid li {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--am-bg); border-radius: 12px; padding: 1rem 1.25rem; font-weight: 700; font-size: .9375rem;
}
.check-grid li::before {
  content: "\F26E"; font-family: "bootstrap-icons"; font-weight: 400; flex: none;
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--am-yellow);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}

/* Kontakt: drei Info-Boxen und schmaleres Formular */
.contact-box {
  height: 100%; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--am-white); border-radius: var(--am-radius); padding: 1.75rem;
  scroll-margin-top: 130px; /* Sprungmarke #anfahrt nicht unter Header/Navigation verstecken */
}
.contact-box address { font-style: normal; line-height: 1.6; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; width: 100%; }
.contact-list li span { display: block; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--am-muted); }
.contact-list a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

.am-form-narrow { max-width: 860px; }
.am-form .optional { font-weight: 400; color: var(--am-muted); }

/* Header-Bild nach rechts ausrichten (Motiv rechts, Text links) */
.page-hero-media-right { background-position: 70% center; }

/* Team: Personen-Karten */
.person-card { height: 100%; background: var(--am-white); border-radius: var(--am-radius); overflow: hidden; }
.person-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; background: var(--am-placeholder); }
.person-body { padding: 1.5rem 1.75rem 1.75rem; }
.person-name { font-weight: 300; font-size: 1.625rem; margin-bottom: .75rem; }
.person-roles { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .9375rem; }
.person-roles li::before { content: "\F26E"; font-family: "bootstrap-icons"; margin-right: .5rem; }

/* Jobs: Stellenanzeigen und Hinweis „keine Stellen“ */
.job-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  background: var(--am-white); border-radius: var(--am-radius); padding: 1.75rem; margin-bottom: 1rem;
}
.job-title { font-weight: 300; font-size: 1.5rem; margin-bottom: .35rem; }
.jobs-empty {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--am-white); border-radius: var(--am-radius); padding: 1.75rem;
}
.jobs-empty .usp-icon { margin-bottom: 0; flex: none; }

/* --------------------------------------------------------------------------
   Modell-Karten (Elektro)
   -------------------------------------------------------------------------- */
.model-card {
  position: relative; height: 100%;
  background: var(--am-white); border-radius: var(--am-radius); overflow: hidden;
  transition: box-shadow .2s ease;
}
.model-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.model-media {
  aspect-ratio: 4 / 3;
  background-color: var(--am-placeholder); background-size: cover; background-position: center;
}
.model-body { padding: 1.5rem; }
.model-body h3 { font-weight: 300; font-size: 1.625rem; margin-bottom: .5rem; }
.model-body p { color: var(--am-muted); }

/* --------------------------------------------------------------------------
   Service-Raster
   -------------------------------------------------------------------------- */
.service-item {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  padding: 1.25rem 1.25rem; border-radius: var(--am-radius);
  background: var(--am-bg); text-decoration: none; font-weight: 700;
  transition: background-color .15s ease;
}
.service-item i {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--am-yellow); font-size: 1.35rem;
  color: var(--am-black);
}
.service-item:hover { background: var(--am-black); color: var(--am-white); }

/* --------------------------------------------------------------------------
   Feature-Karten („Mehr von …“)
   -------------------------------------------------------------------------- */
.feature-card { background: var(--am-white); border-radius: var(--am-radius); overflow: hidden; }
.feature-media {
  height: 100%; min-height: 340px;
  background-color: var(--am-placeholder); background-size: cover; background-position: center;
}
.feature-media-sm { min-height: 260px; }
.feature-body { padding: 2rem; }
.feature-body h3 { font-weight: 300; font-size: 1.75rem; margin-bottom: .75rem; }
.feature-body p { font-size: .9375rem; margin-bottom: 1.5rem; }
.feature-wide .feature-body { padding: 2.5rem; }

/* --------------------------------------------------------------------------
   Kontakt-Band
   -------------------------------------------------------------------------- */
.contact-band { background: var(--am-yellow); padding: 3rem 0; }
.band-label { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--am-black); color: var(--am-white); padding: 4rem 0 2rem; font-size: .875rem; }
.site-footer a { color: var(--am-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-head { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .4rem; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-social { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #333; }
.social-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--am-white); color: var(--am-black) !important;
}
.social-btn:hover { background: var(--am-yellow); text-decoration: none !important; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #333; font-weight: 700;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .offer-strip { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
  .offer-badge { justify-self: start; }

  .card-rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 80%);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem;
    scrollbar-width: none;
  }
  .card-rail::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; min-height: 420px; }

  .feature-media { min-height: 240px; }
}

@media (max-width: 767.98px) {
  /* Logo ist sehr breit (≈7:1) – auf schmalen Geräten an die Breite koppeln */
	.brand { position: absolute; left: 42%; top: 50%;}
  .brand-logo { height: auto; width: min(220px, 100vw - 190px); }
  .notice-bar { font-size: .8125rem; padding: .5rem .75rem; }
  .hero-caption { top: 2rem; }
  .hero-arrows { bottom: 4rem; }
  .hero-actions { bottom: 4rem; left: 1rem; transform: none; }
  .banner-content { min-height: 480px; }
  .feature-body, .feature-wide .feature-body { padding: 1.5rem; }}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
