/* ============================================================================
   FAHKO.DE · style.css
   Ablage:     files/fahko/css/style.css
   Einbindung: Layout -> "Style-Sheets" / "Externe CSS-Dateien" -> diese Datei
   ----------------------------------------------------------------------------
   Eine Datei für alle 4 Layouts (Haupt-Portal, Landwirtschaft, Engineering,
   KfZ-Werkstatt). Welche Marken-Farbe greift, entscheidet nur die
   body-Klasse, die im jeweiligen Layout unter "Rahmen" -> "CSS-Klasse des
   Dokuments" gesetzt wird:

     (keine Klasse)   = Hauptseite + KfZ-Werkstatt   -> Anthrazit/Grün
     theme-white      = Landwirtschaft (lawi)         -> Weiß/Grün
     theme-steel       = Engineering                   -> Stahlgrau/Grün

   Entspricht 1:1 den Farben aus dem HTML-Entwurf (index.php, Tailwind-
   Konfiguration: Farbtoken fk-dark, fk-card, fk-green, fk-white, fk-steel).

   SCHRIFTEN LOKAL EINGEBUNDEN (kein Google-Fonts-CDN mehr, DSGVO/Abmahn-
   Risiko durch externe IP-Übertragung an Google vermieden). Dateien:
     files/fahko/fonts/dm-sans-latin.woff2
     files/fahko/fonts/dm-serif-display-latin.woff2
   Beides Variable Fonts - EINE Datei deckt jeweils alle Schriftstärken ab
   (DM Sans 300-700), daher reicht ein @font-face-Block pro Familie mit
   font-weight als Bereich.
   ========================================================================== */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../../files/fahko/fonts/dm-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../files/fahko/fonts/dm-serif-display-latin.woff2') format('woff2');
}

:root {
  /* Anthrazit/Grün (Default: Hauptseite + KfZ-Werkstatt) */
  --fk-bg: #121212;
  --fk-card: #1c1c1c;
  --fk-border: rgba(255, 255, 255, 0.05);
  --fk-green: #96bd4b;
  --fk-green-soft: rgba(150, 189, 75, 0.1);
  --fk-text: #e8e4dc;
  --fk-dim: #999999;
}

body.theme-white {
  --fk-bg: #fafaf6;
  --fk-card: #ffffff;
  --fk-border: #e8e5da;
  --fk-text: #2b2b22;
  --fk-dim: #726f60;
  /* --fk-green bleibt gleich - verbindet alle 3 Bereiche */
}

body.theme-steel {
  --fk-bg: #eef0f1;
  --fk-card: #ffffff;
  --fk-border: #d9dee1;
  --fk-text: #262b2f;
  --fk-dim: #68727a;
}

body {
  background: var(--fk-bg);
  color: var(--fk-text);
  font-family: 'DM Sans', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.fk-serif {
  font-family: 'DM Serif Display', serif;
}

/* ----------------------------------------------------------------------
   SITE-HEADER · Logo-Leiste ganz oben (aktuell nur fahko.de-Startseite,
   siehe Hinweis in portal_logo.html.twig zur späteren Layout-Umstellung)
   ---------------------------------------------------------------------- */
/* Contaos Layout-Wrapper um den Kopfbereich lösen sich als Box auf. Sonst
   endet der Klebebereich von position:sticky an der Höhe von #header und die
   Kopfleiste scrollt mit weg (gleiche Lösung wie bei Saaletal). */
#header,
#header > .inside {
  display: contents;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}
/* Hintergrund + Weichzeichner liegen auf einem Pseudo-Element, NICHT auf
   .site-header selbst: backdrop-filter macht seinen Träger zum Bezugsrahmen
   für position:fixed-Kinder - das Vollbild-Mobilmenü der Navigation
   (.navigation-main) wäre sonst auf die Header-Höhe eingesperrt. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--fk-bg) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fk-border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  /* padding-left/-right kommen von .container (nicht per Shorthand überschreiben) */
}
.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--fk-text);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo span {
  color: var(--fk-green);
}
/* Bereichs-Zusatz hinter dem Logo ("| WERKSTATT") */
.site-logo .site-logo-area {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--fk-border);
}
@media (max-width: 479px) {
  .site-logo .site-logo-area { display: none; }
}

/* Navigation (Contao-Modul mod_navigation_accessible) - Contao liefert
   Burger, Mobil-Overlay und Untermenü-Dropdown fertig, wir skinnen nur ihre
   eigenen --nav-*-Variablen. Auf body statt :root, damit die Werte nach den
   Marken-Themes (body.theme-*) aufgelöst werden und Contaos :root-Werte
   ohne !important überstimmen (näherer Vorfahre gewinnt). */
body {
  --nav-breakpoint: 900;
  --nav-color: var(--fk-dim);
  --nav-active-color: var(--fk-green);
  --nav-font-size: 0.78rem;
  --nav-font-weight: 600;
  --nav-item-line-height: 1.4;
  --nav-icon: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2396bd4b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'><path d='m9 18 6-6-6-6'/></svg>");
  --nav-mobile-icon: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none' stroke='%2396bd4b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'><path d='m9 18 6-6-6-6'/></svg>");
  --nav-icon-background: transparent;
  --nav-burger-line-color: var(--fk-green);
  --nav-submenu-background: var(--fk-card);
  --nav-mobile-background: var(--fk-bg);
  --nav-mobile-color: var(--fk-dim);
  --nav-mobile-active-background: var(--fk-bg);
  --nav-mobile-active-color: var(--fk-green);
  --nav-mobile-active-border-color: var(--fk-green);
  --nav-mobile-btn-clr: var(--fk-green);
  --nav-mobile-separator-color: var(--fk-border);
  --nav-mobile-padding: 6rem 1.5rem 2rem;
  --nav-mobile-font-size: 1rem;
  --skip-background: var(--fk-card);
  --skip-color: var(--fk-text);
  --skip-focus-border-color: var(--fk-green);
}
body.nav-is-desktop .navigation-main a,
body.nav-is-desktop .navigation-main strong {
  letter-spacing: 0.02em;
}
/* Untermenü-Einträge (Dropdown "Leistungen") heller als die Hauptebene,
   dezenter Rahmen statt hartem Schlagschatten */
body.nav-is-desktop .navigation-main ul ul {
  border: 1px solid var(--fk-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border-radius: 1rem;
  overflow: hidden;
}
body.nav-is-desktop .navigation-main .level_1 ul a,
body.nav-is-desktop .navigation-main .level_1 ul strong {
  color: var(--fk-text);
}
body.nav-is-desktop .navigation-main ul ul a:hover,
body.nav-is-desktop .navigation-main ul ul a:focus-visible {
  background: var(--fk-green-soft);
  color: var(--fk-green);
}
body.nav-is-desktop .navigation-main ul ul li:not(:last-of-type) {
  border-bottom-color: var(--fk-border);
}
.site-header-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}
body.nav-is-mobile .site-header-nav {
  margin-left: auto;
}

/* "Termin buchen"-Button rechts im Header */
.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--fk-green);
  border-radius: 999px;
  color: var(--fk-green);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-cta:hover {
  background: var(--fk-green);
  color: var(--fk-bg);
}
@media (max-width: 479px) {
  .nav-cta { padding: 0.45rem 0.9rem; font-size: 0.7rem; }
}

/* Inhaltsbreite wie im Entwurf (Tailwind "max-w-7xl mx-auto px-4 sm:px-8").
   Wiederverwendbar für jeden Abschnitt - aktuell: portal-intro, portal-grid.
   Später auch für Header/Footer, sobald die gebaut werden. */
.container {
  max-width: 80rem; /* 1280px */
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

/* ----------------------------------------------------------------------
   PORTAL-INTRO · Einleitungstext oberhalb der 3 Boxen (fahko.de Startseite)
   ---------------------------------------------------------------------- */
.portal-intro {
  position: relative;
  padding: 3rem 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .portal-intro {
    grid-template-columns: 7fr 5fr;
  }
}
.portal-intro-text {
  position: relative;
  z-index: 1;
}

/* Grüner Schein hinter der Überschrift */
.portal-intro-glow {
  position: absolute;
  top: -2.5rem;
  left: -2.5rem;
  width: 22rem;
  height: 22rem;
  background: var(--fk-green-soft);
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* Rotierende Ringe neben dem Text, reine Deko */
.portal-intro-graphic {
  position: relative;
  z-index: 1;
  display: none;
  height: 320px;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .portal-intro-graphic {
    display: flex;
  }
}
/* position:absolute + inset:0 + margin:auto zentriert zuverlässig, auch
   während die eigene rotate()-Animation läuft (kein Transform-Konflikt,
   anders als bei top/left:50% + transform:translate) */
.portal-orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid var(--fk-border);
}
.portal-orbit-outer {
  width: 280px;
  height: 280px;
  animation: portalRotateCW 25s linear infinite;
}
.portal-orbit-inner {
  width: 200px;
  height: 200px;
  border-color: rgba(150, 189, 75, 0.25);
  animation: portalRotateCCW 20s linear infinite;
}
.portal-orbit-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--fk-green-soft), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-orbit-core svg {
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(150, 189, 75, 0.45);
  animation: portalIconPulse 3s ease-in-out infinite;
}
@keyframes portalIconPulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.1); opacity: 0.75; }
}
@keyframes portalRotateCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes portalRotateCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.portal-intro p:first-of-type {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fk-border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fk-dim);
  margin: 0 0 2rem;
}
.portal-intro p:first-of-type::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--fk-green);
  animation: portalPulse 2s ease-in-out infinite;
}
@keyframes portalPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.portal-intro h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.1;
  color: var(--fk-text);
  margin: 0 0 1.5rem;
}
.portal-intro h1 em,
.portal-intro h1 i {
  color: var(--fk-green);
  font-style: italic;
}

.portal-intro p:last-of-type {
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--fk-dim);
  line-height: 1.7;
  margin: 0;
}

/* ----------------------------------------------------------------------
   PORTAL · Übersichtsseite mit den 3 Karten (fahko.de Startseite)
   ---------------------------------------------------------------------- */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch; /* Grid-Zellen gleich hoch - Karten füllen das aus (s.u.) */
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
  /* margin-left/-right kommen von .container (Zentrierung nicht überschreiben) */
}
@media (min-width: 768px) {
  .portal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portal-card {
  display: flex;
  flex-direction: column;
  height: 100%; /* füllt die gestreckte Grid-Zelle -> alle 3 Karten gleich hoch */
  background: var(--fk-card);
  border: 1px solid var(--fk-border);
  border-radius: 1.5rem;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.portal-card:hover {
  transform: translateY(-6px);
  border-color: rgba(150, 189, 75, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.portal-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #151515;
}
.portal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.portal-card:hover .portal-photo img {
  opacity: 1;
  transform: scale(1.05);
}
.portal-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 60%);
}

.portal-card-body {
  flex: 1; /* nimmt den restlichen Platz der Karte ein -> Basis fürs Andocken unten */
  display: flex;
  flex-direction: column;
  padding: 0.75rem 2.75rem 2rem 2rem; /* rechts Platz für den Pfeil lassen */
  position: relative;
}
/* Contaos natives Text-Element rendert Überschrift/Absätze in einem
   "rte"-Div - das wird selbst zur Flex-Spalte, damit genau der LETZTE
   Absatz (der mit dem Link, siehe portal_card_body.html.twig) nach unten
   rutschen kann - unabhängig davon, wie lang der Beschreibungstext ist. */
.portal-card-body .rte {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.portal-card-body .rte p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}
/* Icon-Badge - welches Symbol erscheint, hängt allein von der
   CSS-Klasse der Elementgruppe ab (portal-card--eng/--lawi/--kfz),
   siehe portal_card.html.twig. Reine CSS-Maske, kein Bild nötig.
   Sitzt als erstes Kind im Kicker (text/portal_card_kicker), Kicker wird
   dafür zur Flex-Zeile. */
.portal-icon {
  display: none;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--fk-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.portal-card:hover .portal-icon {
  background: var(--fk-green);
  border-color: var(--fk-green);
}
.portal-icon::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--fk-green);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 50%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 50%;
  transition: background-color 0.3s ease;
}
.portal-card:hover .portal-icon::before {
  background-color: var(--fk-bg);
}

.portal-card--eng .portal-icon,
.portal-card--lawi .portal-icon,
.portal-card--kfz .portal-icon {
  display: block;
}

/* Engineering - Würfel-Symbol */
.portal-card--eng .portal-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7.5 4.27 9 5.15M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5M12 22V12'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7.5 4.27 9 5.15M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5M12 22V12'/%3E%3C/svg%3E");
}

/* Landwirtschaft/Hoffleischerei - Schild-Symbol */
.portal-card--lawi .portal-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10zM12 8v8M8 12h8'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10zM12 8v8M8 12h8'/%3E%3C/svg%3E");
}

/* KfZ-Werkstatt - Schraubenschlüssel-Symbol */
.portal-card--kfz .portal-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}

.portal-kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fk-green);
  margin: 1.5rem 2rem 0;
}
.portal-kicker p {
  margin: 0;
}

.portal-card-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  margin: 0.5rem 0 1rem;
  color: var(--fk-text);
}
.portal-card-body p {
  font-size: 0.9rem;
  color: var(--fk-dim);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.portal-card-body a {
  color: var(--fk-green);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.portal-card-body a:hover {
  text-decoration: underline;
}
.portal-card-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  color: var(--fk-green);
  font-weight: 700;
  transition: transform 0.3s ease;
}
.portal-card:hover .portal-card-arrow {
  transform: translateX(4px);
}

/* ----------------------------------------------------------------------
   KFZ-HERO · Startseite kfz.fahko.de (Text links, Foto rechts)
   Zuordnung der Absätze RELATIV zur Überschrift (:has / ~), nicht per
   "erster/letzter Absatz" - fehlt ein Teil, verrutscht nichts anderes.
   ---------------------------------------------------------------------- */
.kfz-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 1rem;
}
@media (min-width: 1024px) {
  .kfz-hero {
    grid-template-columns: 1fr 1fr;
    padding-top: 4rem;
  }
}
.kfz-hero-glow {
  position: absolute;
  top: -2.5rem;
  left: -2.5rem;
  width: 22rem;
  height: 22rem;
  background: var(--fk-green-soft);
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.kfz-hero-text {
  position: relative;
  z-index: 1;
}
/* Badge = Absatz direkt vor der Überschrift */
.kfz-hero-text p:has(+ h1) {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--fk-green-soft);
  border: 1px solid rgba(150, 189, 75, 0.25);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fk-green);
  margin: 0 0 1.5rem;
}
.kfz-hero-text h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  color: var(--fk-text);
  margin: 0 0 1.5rem;
}
/* letzte Titelzeile grün: automatisch per main.js (.hero-accent) oder
   manuell im Editor kursiv gesetzt (em/i) - dann grün und NICHT kursiv */
.kfz-hero-text h1 .hero-accent,
.kfz-hero-text h1 em,
.kfz-hero-text h1 i {
  color: var(--fk-green);
  font-style: normal;
}
.kfz-hero-text h1 ~ p {
  max-width: 34rem;
  font-size: 1rem;
  color: var(--fk-dim);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
/* Absatz, der NUR einen Link enthält = Button */
.kfz-hero-text h1 ~ p:has(> a:only-child) {
  display: inline-block;
  margin: 0 1rem 1rem 0;
}
.kfz-hero-text h1 ~ p > a:only-child {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 0.85rem;
  background: var(--fk-green);
  color: #121212;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(150, 189, 75, 0.18);
  transition: transform 0.2s ease;
}
.kfz-hero-text h1 ~ p > a:only-child:hover {
  transform: scale(1.02);
}
/* der zweite Link-Absatz = Zweit-Button */
.kfz-hero-text h1 ~ p:has(> a:only-child) ~ p:has(> a:only-child) > a:only-child {
  background: color-mix(in srgb, var(--fk-text) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--fk-text) 14%, transparent);
  color: var(--fk-text);
  font-weight: 600;
  box-shadow: none;
}

.kfz-hero-photo {
  position: relative;
  height: 380px;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--fk-border);
  background: var(--fk-card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.kfz-hero-photo figure,
.kfz-hero-photo picture {
  display: block;
  height: 100%;
  margin: 0;
}
.kfz-hero-photo figure {
  position: relative;
}
.kfz-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.kfz-hero-photo figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1) 55%, transparent);
  pointer-events: none;
}
.kfz-hero-photo figcaption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.25rem;
  z-index: 1;
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: #e8e4dc;
}

/* ----------------------------------------------------------------------
   ABSCHNITTSKOPF · Kicker + Titel + Einleitung, zentriert
   ---------------------------------------------------------------------- */
.section-header {
  max-width: 44rem;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 1.5rem;
}
.section-header p:has(+ h2) {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fk-green);
  margin: 0 0 0.5rem;
}
.section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--fk-text);
  margin: 0 0 1rem;
}
.section-header h2 ~ p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fk-dim);
  margin: 0;
}

/* ----------------------------------------------------------------------
   LEISTUNGEN · Karten-Raster (KfZ-Startseite)
   ---------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: var(--fk-card);
  border: 1px solid var(--fk-border);
  border-radius: 1.25rem;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(150, 189, 75, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}
.service-card .rte {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fk-text);
  margin: 0 0 0.5rem;
}
.service-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fk-dim);
  margin: 0 0 1rem;
}
/* letzter Absatz = Link, immer unten in der Karte */
.service-card .rte p:last-child {
  margin: auto 0 0;
  padding-top: 0.5rem;
}
.service-card .rte p:last-child a {
  color: var(--fk-green);
  font-weight: 600;
  text-decoration: none;
}
.service-card .rte p:last-child a::after {
  content: ' \2192';
}

/* Icon-Kachel - Symbol allein über die CSS-Klasse des Elements (svc-*),
   reine CSS-Maske wie bei den Portal-Karten */
.service-icon {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  background: var(--fk-green-soft);
  border: 1px solid rgba(150, 189, 75, 0.15);
}
.service-icon::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--fk-green);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 52%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 52%;
}
.svc-dryice .service-icon,
.svc-hu .service-icon,
.svc-service .service-icon,
.svc-detail .service-icon {
  display: block;
}
/* Trockeneisstrahlen - Schneeflocke */
.svc-dryice .service-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7'/%3E%3C/svg%3E");
}
/* AU / HU - Schild mit Haken */
.svc-hu .service-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
/* KfZ-Service - Schraubenschlüssel */
.svc-service .service-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}
/* Fahrzeugaufbereitung - Glanz-Sterne */
.svc-detail .service-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3l1.9 5.1L17 10l-5.1 1.9L10 17l-1.9-5.1L3 10l5.1-1.9z'/%3E%3Cpath d='M19 14l.8 2.2L22 17l-2.2.8L19 20l-.8-2.2L16 17l2.2-.8z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3l1.9 5.1L17 10l-5.1 1.9L10 17l-1.9-5.1L3 10l5.1-1.9z'/%3E%3Cpath d='M19 14l.8 2.2L22 17l-2.2.8L19 20l-.8-2.2L16 17l2.2-.8z'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------------
   ÜBER UNS · Karte links, Feature-Boxen rechts (KfZ-Startseite)
   ---------------------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 420px;
  padding: 2rem;
  background: var(--fk-card);
  border: 1px solid var(--fk-border);
  border-radius: 1.5rem;
}
.about-card-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
}
.about-card-pattern svg {
  display: block;
  width: 100%;
  height: 100%;
}
/* Inhalt (Contaos Wrapper um die Kind-Elemente) über das Muster legen */
.about-card > :not(.about-card-pattern) {
  position: relative;
  z-index: 1;
}
/* Kicker = Absatz direkt vor der Überschrift, Fließtext = Absätze danach */
.about-card p:has(+ h2) {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fk-green);
  margin: 0 0 0.5rem;
}
.about-card h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--fk-text);
  margin: 0 0 1.25rem;
}
.about-card h2 ~ p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fk-dim);
  margin: 0 0 1rem;
}
/* Aufzählungsliste = Kennzahlen-Box unten in der Karte */
.about-card ul {
  display: inline-flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--fk-border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--fk-card) 80%, transparent);
}
.about-card ul li {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fk-dim);
}
.about-card ul li strong {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fk-green);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--fk-card);
  border: 1px solid var(--fk-border);
  border-radius: 1.25rem;
}
.about-feature .rte {
  flex: 1;
}
.about-feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fk-text);
  margin: 0 0 0.25rem;
}
.about-feature p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fk-dim);
  margin: 0;
}

/* Icon-Kachel - Symbol allein über die CSS-Klasse des Elements (about-ico-*) */
.about-icon {
  display: none;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--fk-green-soft);
  border: 1px solid rgba(150, 189, 75, 0.15);
}
.about-icon::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--fk-green);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 52%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 52%;
}
.about-ico-car .about-icon,
.about-ico-bolt .about-icon,
.about-ico-check .about-icon {
  display: block;
}
/* Mehrmarken-Kompetenz - Auto */
.about-ico-car .about-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17v-4l2-6h14l2 6v4h-2M3 17h2M9 17h6M5 13h14'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17v-4l2-6h14l2 6v4h-2M3 17h2M9 17h6M5 13h14'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
}
/* Motorentechnik & Getriebespülung - Blitz */
.about-ico-bolt .about-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 10V3L4 14h7v7l9-11h-7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 10V3L4 14h7v7l9-11h-7z'/%3E%3C/svg%3E");
}
/* Direktannahme - Klemmbrett mit Haken */
.about-ico-check .about-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4h6v3H9z'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4h6v3H9z'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------------
   GALERIE & LIGHTBOX · Raster (natives Galerie-Element) + Vollbild-Ansicht
   aus main.js, Abschnitt 3. Das Hover-Overlay (.gallery-overlay) legt
   main.js an; die Bildunterschrift (figcaption) bleibt nur im Raster
   unsichtbar und wird in der Lightbox als Beschreibung gezeigt.
   ---------------------------------------------------------------------- */
.kfz-gallery {
  margin-top: 1.5rem;
  margin-bottom: 4rem;
}
.kfz-gallery ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .kfz-gallery ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
.kfz-gallery li {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--fk-card);
  border: 1px solid var(--fk-border);
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.kfz-gallery figure,
.kfz-gallery figure > a,
.kfz-gallery picture {
  display: block;
  height: 100%;
  margin: 0;
}
.kfz-gallery figure > a {
  position: relative;
  cursor: zoom-in;
}
.kfz-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.kfz-gallery li:hover img,
.kfz-gallery li:focus-within img {
  opacity: 1;
  transform: scale(1.05);
}
.kfz-gallery figcaption {
  display: none;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
  color: #e8e4dc;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.kfz-gallery li:hover .gallery-overlay,
.kfz-gallery li:focus-within .gallery-overlay {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.95);
}
.lightbox.is-open {
  display: flex;
}
.lightbox-figure {
  margin: 0;
  max-width: 56rem;
  text-align: center;
}
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-figure figcaption {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}
.lightbox-title {
  display: block;
  color: #96bd4b;
  font-size: 1.1rem;
}
.lightbox-desc {
  display: block;
  margin-top: 0.4rem;
  color: #999999;
  font-size: 0.8rem;
  line-height: 1.6;
}
.lightbox-btn {
  position: absolute;
  z-index: 1;
  padding: 0.25rem 0.75rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  color: #96bd4b;
}
.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 2.25rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

/* ----------------------------------------------------------------------
   FORMULAR · Karte (element_group/form_card) + Standard-Markup der Contao-
   Formularfelder (.widget-text/-select/-textarea/-checkbox/-submit).
   Alles unter .form-card, damit andere Formulare auf der Seite unberührt
   bleiben.
   ---------------------------------------------------------------------- */
.form-card-wrap {
  margin-top: 1rem;
  margin-bottom: 4rem;
}
.form-card {
  position: relative;
  overflow: hidden;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--fk-card);
  border: 1px solid color-mix(in srgb, var(--fk-text) 10%, transparent);
  border-radius: 1.5rem;
}
@media (min-width: 640px) {
  .form-card { padding: 3rem; }
}
.form-card::before {
  content: '';
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: var(--fk-green-soft);
  filter: blur(48px);
  pointer-events: none;
}
.form-card > * {
  position: relative;
  z-index: 1;
}

/* Kopfbereich (Text-Element über dem Formular) */
.form-card .rte {
  margin-bottom: 2rem;
  text-align: center;
}
.form-card p:has(+ h2) {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fk-green);
}
.form-card h2 {
  margin: 0.25rem 0 0.5rem;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--fk-text);
}
.form-card h2 ~ p {
  max-width: 32rem;
  margin: 0.5rem auto 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--fk-dim);
}

/* Raster: 2 Spalten ab Tablet, Textarea/Checkbox/Button über die volle Breite */
.form-card .formbody {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .form-card .formbody { grid-template-columns: 1fr 1fr; }
}
.form-card .formbody > .widget-textarea,
.form-card .formbody > .widget-checkbox,
.form-card .formbody > .widget-radio,
.form-card .formbody > .widget-upload,
.form-card .formbody > .widget-submit,
.form-card .formbody > .widget-explanation,
.form-card .formbody > .widget-captcha,
.form-card .formbody > .widget-altcha,
.form-card .formbody > fieldset,
.form-card .formbody > p.error {
  grid-column: 1 / -1;
}
.form-card .formbody > fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Labels */
.form-card .widget > label,
.form-card .checkbox_container > legend {
  display: block;
  margin-bottom: 0.5rem;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fk-dim);
}
.form-card .mandatory {
  margin-left: 0.15rem;
  color: var(--fk-green);
}
/* Contao-Hilfsklasse für nur-für-Screenreader-Text, hier nicht sicher
   vorhanden - sicherheitshalber selbst definieren */
.form-card .invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Eingabefelder */
.form-card input.text,
.form-card input[type='date'],
.form-card select,
.form-card textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  background-color: var(--fk-bg);
  color: var(--fk-text);
  border: 1px solid color-mix(in srgb, var(--fk-text) 12%, transparent);
  border-radius: 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  color-scheme: dark;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-card ::placeholder {
  color: color-mix(in srgb, var(--fk-dim) 70%, transparent);
}
.form-card input.text:focus,
.form-card input[type='date']:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--fk-green);
  box-shadow: 0 0 0 3px rgba(150, 189, 75, 0.15);
}
.form-card select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2396bd4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}
.form-card textarea {
  min-height: 7rem;
  resize: vertical;
}

/* Hilfetext + Fehler */
.form-card p.help {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--fk-dim);
}
.form-card p.error {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: #f2877d;
}
.form-card input.error,
.form-card select.error,
.form-card textarea.error {
  border-color: #f2877d;
}

/* Checkbox (Datenschutz) */
.form-card .checkbox_container {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-card .checkbox_container > span {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.form-card input.checkbox {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--fk-green);
  color-scheme: dark;
}
.form-card .checkbox_container label {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--fk-dim);
}
.form-card .checkbox_container label a,
.form-card .widget-explanation a {
  color: var(--fk-green);
}
.form-card .widget-explanation {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--fk-dim);
}

/* Absende-Button */
.form-card button.submit {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--fk-green);
  color: #121212;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(150, 189, 75, 0.15);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.form-card button.submit:hover {
  transform: translateY(-2px);
}
.form-card button.submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Bestätigungsnachricht nach dem Absenden */
.form-card .form-confirmation {
  padding: 2rem;
  text-align: center;
  background: var(--fk-green-soft);
  border: 1px solid rgba(150, 189, 75, 0.25);
  border-radius: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fk-dim);
}
.form-card .form-confirmation h1,
.form-card .form-confirmation h2,
.form-card .form-confirmation h3 {
  margin: 0 0 0.75rem;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--fk-text);
}
.form-card .form-confirmation p {
  margin: 0 0 0.5rem;
}

/* ----------------------------------------------------------------------
   KONTAKT · 3 Boxen (Adresse, Öffnungszeiten, Kontakt)
   Das Icon sitzt als Kachel vor der Überschrift (h3::before) und hängt an
   der CSS-Klasse des Elements (ct-pin / ct-clock / ct-phone). Die Linien
   sind fest in Markengrün, das gilt in allen Themes.
   ---------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
.contact-card {
  height: 100%;
  padding: 1.5rem;
  background: var(--fk-card);
  border: 1px solid var(--fk-border);
  border-radius: 1.25rem;
}
.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fk-text);
}
.contact-card h3::before {
  content: '';
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(150, 189, 75, 0.15);
  background-color: var(--fk-green-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 52%;
}
.contact-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--fk-dim);
}
.contact-card a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-card a:hover {
  color: var(--fk-green);
}
/* Adresse - Standort-Pin */
.ct-pin h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396bd4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
/* Öffnungszeiten - Uhr */
.ct-clock h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396bd4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}
/* Kontakt - Telefonhörer */
.ct-phone h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396bd4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------------
   RECHTSTEXTE · Impressum, Datenschutz (text/legal_text und der per Script
   von Cockpit Legal nachgeladene Text in #lc-text). Schmale Lesespalte,
   die Typografie gilt für beide gleich. Der Cockpit-Text bringt kein
   eigenes Markup mit Klassen mit, deshalb wird nach Tag-Namen gestylt.
   ---------------------------------------------------------------------- */
.legal,
#lc-text {
  max-width: 48rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  overflow-wrap: break-word;
}
@media (min-width: 640px) {
  .legal,
  #lc-text {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
.legal {
  padding-top: 3rem;
  padding-bottom: 2rem;
}
#lc-text {
  padding-bottom: 4rem;
}
.legal > .rte > :first-child,
#lc-text > :first-child {
  margin-top: 0;
}

.legal h1 {
  margin: 0 0 1.5rem;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--fk-text);
}
.legal h2,
#lc-text h2 {
  margin: 2.5rem 0 1rem;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--fk-text);
}
.legal h3,
#lc-text h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fk-text);
}
.legal h4,
#lc-text h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fk-text);
}
/* Cockpit setzt <strong> in Überschriften - DM Serif Display gibt es nur in
   normaler Stärke, Fett wäre künstlich verdickt und unscharf */
.legal :is(h1, h2, h3, h4) strong,
#lc-text :is(h1, h2, h3, h4) strong {
  font-weight: inherit;
  color: inherit;
}

.legal p,
.legal li,
.legal td,
.legal th,
#lc-text p,
#lc-text li,
#lc-text td,
#lc-text th {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--fk-dim);
}
.legal p,
#lc-text p {
  margin: 0 0 1rem;
}
.legal strong,
.legal b,
#lc-text strong,
#lc-text b {
  font-weight: 600;
  color: var(--fk-text);
}
.legal ul,
.legal ol,
#lc-text ul,
#lc-text ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}
.legal li,
#lc-text li {
  margin-bottom: 0.4rem;
}
.legal li::marker,
#lc-text li::marker {
  color: var(--fk-green);
}
.legal a,
#lc-text a {
  color: var(--fk-green);
  text-decoration: underline;
  text-decoration-color: rgba(150, 189, 75, 0.4);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s ease;
}
.legal a:hover,
#lc-text a:hover {
  text-decoration-color: currentColor;
}
.legal hr,
#lc-text hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--fk-border);
}
.legal blockquote,
#lc-text blockquote {
  margin: 0 0 1.25rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--fk-green);
}
/* Tabellen (z. B. Cookie-Listen) dürfen auf dem Handy seitlich scrollen */
.legal table,
#lc-text table {
  display: block;
  max-width: 100%;
  margin: 0 0 1.5rem;
  overflow-x: auto;
  border-collapse: collapse;
}
.legal th,
.legal td,
#lc-text th,
#lc-text td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--fk-border);
}
.legal th,
#lc-text th {
  font-weight: 600;
  color: var(--fk-text);
}

/* ----------------------------------------------------------------------
   SITE-FOOTER · unterste Zeile der Übersichtsseite (fahko.de)
   ---------------------------------------------------------------------- */
.site-footer {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--fk-border);
  font-size: 0.75rem;
  color: var(--fk-dim);
  /* padding-left/-right kommen von .container (nicht per Shorthand überschreiben) */
}
/* Die Flex-Zeile sitzt eine Ebene tiefer: bei der Text-Element-Variante im
   "rte"-Div von Contao, bei der Layout-Modul-Variante (HTML-Modul) im
   .site-footer-inner. */
.site-footer .rte,
.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .site-footer .rte,
  .site-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.site-footer p {
  margin: 0;
}
.site-footer ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--fk-green);
}

/* ----------------------------------------------------------------------
   REVEAL-ANIMATION · per IntersectionObserver aus main.js, Punkt 1
   ---------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

