/* ============================================================================
   main.css — hm-werbung.at, 1:1-Nachbau (E5, Nora)
   Aufbau: (1) Tokens  (2) Reset/Basis  (3) Layout/Container
           (4) Globale Bausteine (Kopf, Menü, Burger, Untermenü, Sticky, Fuß,
               Nach-oben)  (5) Seitenarten  (6) Zustände (Hover/Fokus)
           (7) Media Queries (767 / 1024)  (8) prefers-reduced-motion
   Werte gemessen (doku/messwerte.md / DESIGN.md). Keine CDN, kein Inline-JS.
   ========================================================================== */

/* ====== (1) TOKENS ======================================================== */
:root {
  /* Flächen */
  --farbe-seite:        #FFFFFF;
  --farbe-hero:         #000000;
  --farbe-fuss:         #2D2D2D;
  --farbe-kopf-1:       #2B2B2B;
  --farbe-kopf-2:       #000000;

  /* Text */
  --farbe-text:         #1E1C1C;
  --farbe-primaer:      #2A2F31;
  --farbe-sekundaer:    #54595F;
  --farbe-text-grau:    #777777;
  --farbe-fuss-text:    #CFCFC9;

  /* Akzent Olive */
  --farbe-akzent:       #D1CC7D;
  --farbe-akzent-hover: #A49E42;

  /* Menü / Untermenü / Mobilmenü */
  --farbe-menue-text:   #FFFFFF;
  --farbe-menue-hover:  #54595F;
  --farbe-untermenue-text:          #33373D;
  --farbe-untermenue-flaeche:       #FFFFFF;
  --farbe-untermenue-hover-flaeche: #3F444B;
  --farbe-untermenue-hover-text:    #A49E42;
  --farbe-mobil-aktiv-flaeche:      #3F444B;
  --farbe-mobil-aktiv-text:         #FFFFFF;
  --farbe-fussmenue-mobil-flaeche:  #2A2F31;
  --farbe-fussmenue-mobil-text:     #D1CC7D;

  /* Sonstiges */
  --farbe-akkordeon-text:  #333333;
  --farbe-feld-text:       #1E1C1C;
  --farbe-feld-unterkante: #D1CC7D;
  --farbe-fehler:          #B00020;
  --farbe-nav-pfeil:       #D5D8DC;

  /* Schrift-Familien (austauschbar; Ersatzschrift siehe DESIGN 7) */
  --font:      "Futura LT Pro", Arial, Helvetica, sans-serif;
  --font-cond: "Futura LT Pro Cond", "Futura LT Pro", Arial, sans-serif;

  /* Schriftgrößen (gemessen) */
  --fs-hero:        136px;
  --fs-h1-detail:    50px;
  --fs-404:          40px;
  --fs-team-spaxi:   34px;
  --fs-kunden-h2:    32px;
  --fs-intro:        28px;
  --fs-kontakt-adr:  22px;
  --fs-weiterlesen-titel: 22px;
  --fs-auszug:       21px;
  --fs-kunden-liste: 20px;
  --fs-body:         18px;
  --fs-filter:       18px;
  --fs-overlay:      18px;
  --fs-weiterlesen:  15px;
  --fs-menue:        14px;
  --fs-nav-label:  14.4px;
  --fs-copyright:    13px;
  --fs-nav-titel:  12.6px;
  --fs-autor:        12px;

  /* Anzeige anpassen (W4, A11Y-WIDGET.md 4.1/4.2): Faktoren Schrift/Zeilen.
     Standard 1 = pixelgleich; nur a11y.css setzt andere Werte. */
  --a11y-s: 1;
  --a11y-z: 1;

  /* Layout */
  --breite-inhalt:   1140px;
  --breite-projekte: 1080px;
  --gutter-mobil:    16px;

  /* Kopfhöhen (Ruhe / Sticky) je Breite — per MQ überschrieben */
  --kopf-h:         100px;
  --kopf-h-sticky:   88px;
  --logo-b:         200px;
  --logo-h:          80px;
  --logo-b-sticky:  162px;
  --logo-h-sticky:   65px;

  /* Radien / Übergänge / Ebenen */
  --radius-klein: 3px;
  --radius-button: 4px;
  --t-schnell:  .3s ease;
  --t-standard: .4s ease;
  --t-sticky:   .5s ease-in-out;
  --t-overlay-ein: .5s ease;
  --t-overlay-aus: 1s ease;
  --t-filter:   .45s ease-in-out;
  --t-fusslinie: .3s cubic-bezier(.58,.3,.005,1);

  --z-untermenue: 3;
  --z-nachoben:  50;
  --z-kopf:      99;
  --z-mobilpanel: 9997;
  --z-lightbox:  9999;

  /* Einwilligungs-Banner (D6/F6) */
  --radius-banner: 12px;
  --schatten-banner: 0 10px 20px 0 rgba(0,0,0,.19), 0 6px 6px 0 rgba(0,0,0,.23);
  --z-banner:    9999;
}

/* ====== (2) RESET / BASIS ================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  padding-top: var(--kopf-h);                 /* Platz für den fixierten Kopf */
  font-family: var(--font-cond);
  font-weight: 300;                            /* Light Cond = Fließtext */
  font-size: calc(var(--fs-body) * var(--a11y-s));
  line-height: calc(28px * var(--a11y-s) * var(--a11y-z));
  color: var(--farbe-text);
  background: var(--farbe-seite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
/* E7: <picture> (AVIF/WebP) darf das Layout des <img> nicht verändern */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }

/* 1px-Wächter für den Sticky-Umschalter (liegt bei y=100 im Fluss) */
#kopf-waechter {
  position: absolute; top: 100px; left: 0;
  width: 1px; height: 1px; pointer-events: none;
}

/* Barrierefreiheit: nur für Screenreader sichtbar */
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Skip-Link: bei Fokus sichtbar */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 10000;
  background: var(--farbe-primaer); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-klein);
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* Einheitlicher, sichtbarer Fokusring (WCAG 2.4.7/2.4.11) */
:focus-visible {
  outline: 3px solid var(--farbe-primaer);
  outline-offset: 2px;
}
/* Auf dunklem Grund heller Ring */
.kopf :focus-visible,
.fuss :focus-visible,
.hero :focus-visible,
.nach-oben:focus-visible,
.lightbox :focus-visible {
  outline-color: #fff;
}

main { display: block; }
main:focus { outline: none; }

/* ====== (3) LAYOUT / CONTAINER =========================================== */
.container {
  width: 100%;
  max-width: var(--breite-inhalt);
  margin-inline: auto;
  padding-inline: var(--gutter-mobil);
}
.container--projekte { max-width: var(--breite-projekte); }

/* ====== (4) GLOBALE BAUSTEINE ============================================= */

/* --- Kopf -------------------------------------------------------------- */
.kopf {
  position: fixed; inset: 0 0 auto 0;
  height: var(--kopf-h);
  z-index: var(--z-kopf);
  background: linear-gradient(140deg, var(--farbe-kopf-1) 0%, var(--farbe-kopf-2) 100%);
  transition: background var(--t-schnell), height var(--t-sticky);
}
.kopf__inner {
  display: flex; align-items: center;
  height: 100%;
}
.kopf__logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.kopf__logo img {
  width: var(--logo-b); height: var(--logo-h);
  object-fit: contain;
  transition: width var(--t-sticky), height var(--t-sticky);
}

/* Sticky-Zustand: flächig olive, Kopf + Logo schrumpfen. Menütext bleibt
   weiß (strikt 1:1 — A-2 abgelehnt). */
.kopf.is-sticky {
  background: var(--farbe-akzent);
  height: var(--kopf-h-sticky);
}
.kopf.is-sticky .kopf__logo img {
  width: var(--logo-b-sticky); height: var(--logo-h-sticky);
}

/* --- Hauptmenü (Desktop ab 1025px) ------------------------------------ */
.hauptnav { margin-left: 120px; }
.hauptnav__list { display: flex; align-items: center; }
.hauptnav__item { position: relative; }
.hauptnav__link {
  display: inline-block;
  padding: 13px 30px;
  font-family: var(--font-cond);
  font-weight: 500;                 /* Medium Cond */
  font-size: calc(var(--fs-menue) * var(--a11y-s));
  line-height: calc(20px * var(--a11y-s) * var(--a11y-z));
  letter-spacing: .3px;
  color: var(--farbe-menue-text);
  background: none; border: 0;
  transition: color var(--t-standard);
}
.hauptnav__link:hover,
.hauptnav__link.is-active { color: var(--farbe-menue-hover); }

/* PROFIL-Untermenü (Desktop) */
.subnav {
  position: absolute; top: 100%; left: 0;
  min-width: 130px;
  background: var(--farbe-untermenue-flaeche);
  z-index: var(--z-untermenue);
  display: none;
}
.hauptnav__item--hat-sub.is-open > .subnav { display: block; }
.subnav__link {
  display: block;
  padding: 13px 20px;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: calc(13px * var(--a11y-s)); line-height: calc(20px * var(--a11y-s) * var(--a11y-z)); letter-spacing: 1.6px;
  color: var(--farbe-untermenue-text);
  transition: background var(--t-standard), color var(--t-standard);
}
.subnav__link:hover,
.subnav__link:focus-visible,
.subnav__link.is-active {
  background: var(--farbe-untermenue-hover-flaeche);
  color: var(--farbe-untermenue-hover-text);
}

/* --- Burger (bis 1024px) ---------------------------------------------- */
.burger {
  display: none;                    /* erst ab MQ sichtbar */
  margin-left: auto;
  width: 33px; height: 33px;
  padding: 5.5px;
  border: 0; border-radius: var(--radius-klein);
  background: none; color: #fff;
  align-items: center; justify-content: center;
}
.burger .icon { width: 22px; height: 22px; display: block; }
.burger__symbol--zu { display: none; }
.kopf.is-menue-offen .burger__symbol--auf { display: none; }
.kopf.is-menue-offen .burger__symbol--zu { display: block; }

/* --- Fuß --------------------------------------------------------------- */
.fuss {
  background: var(--farbe-fuss);
  color: var(--farbe-fuss-text);
  padding: 34px 0;
}
.fuss__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.fuss__copy {
  margin: 0;
  font-family: var(--font-cond); font-weight: 300;   /* 1:1: Copyright leicht (Original fw300, nicht 500) */
  font-size: calc(var(--fs-copyright) * var(--a11y-s)); line-height: calc(28px * var(--a11y-s) * var(--a11y-z));
  color: var(--farbe-fuss-text);
}
.fuss__liste { display: flex; align-items: center; }
.fuss__link {
  position: relative; display: inline-block;
  padding: 13px 20px;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(18px * var(--a11y-s)); line-height: calc(20px * var(--a11y-s) * var(--a11y-z));
  color: var(--farbe-fuss-text);
}
.fuss__link::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 8px;
  height: 3px; background: var(--farbe-akzent);
  opacity: 0; transform: scaleX(0); transform-origin: left center;
  transition: opacity var(--t-fusslinie), transform var(--t-fusslinie);
}
.fuss__link:hover::after,
.fuss__link:focus-visible::after,
.fuss__link.is-active::after { opacity: 1; transform: scaleX(1); }

/* --- Nach-oben-Button -------------------------------------------------- */
.nach-oben {
  position: fixed; right: 10px; bottom: 10px;
  z-index: var(--z-nachoben);
  display: inline-flex; align-items: center; justify-content: center;
  width: 70px; height: 46px;
  background: var(--farbe-akzent);
  color: var(--farbe-primaer);
  border-radius: var(--radius-button);
  transition: background var(--t-schnell);
}
.nach-oben .icon { width: 16px; height: 16px; }
.nach-oben:hover { background: var(--farbe-akzent-hover); }

/* ====== (5) SEITENARTEN =================================================== */

/* --- Startseite: Hero -------------------------------------------------- */
.hero {
  position: relative;
  background: var(--farbe-hero);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  height: 621px;                                /* 1:1: Titel-Unterkante y721 (Band ab y100) */
}
.hero__titel {
  position: absolute; left: var(--gutter-mobil); top: 254px;  /* 1:1: abs y354 */
  z-index: 1; margin: 0;
  max-width: 600px;
  font-family: var(--font-cond); font-weight: 300;
  font-size: var(--fs-hero); line-height: .9;
  letter-spacing: 10px;
  color: var(--farbe-primaer);
}
.hero__bild {
  position: absolute; right: 0; top: 181px;     /* 1:1: abs y281 */
  width: 788px; height: 392px;
  z-index: 2;
}
.hero__bild img { width: 100%; height: 100%; object-fit: cover; }

/* --- Startseite: Intro ------------------------------------------------- */
.start-intro {
  max-width: 892px;
  margin: 87px auto 60px;                        /* 1:1: Intro bleibt bei abs y808 */
  padding-inline: var(--gutter-mobil);
}
.start-intro p {
  margin: 0;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(var(--fs-intro) * var(--a11y-s)); line-height: calc(42px * var(--a11y-s) * var(--a11y-z));
  color: var(--farbe-text);
}

/* --- Startseite: Abschnitt „Aktuelle Projekte" ------------------------- */
.abschnitt-kopf {
  display: flex; align-items: center; gap: 24px;
  justify-content: flex-end;
  margin: 140px 0 30px;                          /* 1:1: Intro->Aktuelle Projekte ~140px */
}
.abschnitt-kopf::before {
  content: ""; flex: 0 0 180px; height: 1px; background: var(--farbe-primaer);
}
.abschnitt-kopf__titel {
  margin: 0;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(25px * var(--a11y-s)); line-height: calc(1.2 * var(--a11y-z));   /* 1:1: Original "Aktuelle Projekte" = 25px (nicht 28px wie Intro) */
  color: var(--farbe-text);
}

/* --- Projektraster + Kachel (Start & /projekte/) ---------------------- */
.projektraster { display: grid; gap: 20px; }
.projektraster--start { grid-template-columns: repeat(5, 1fr); }
.projektraster--alle  { grid-template-columns: repeat(4, 1fr); }

.projektkarte { position: relative; margin: 0; }
.projektkarte__link { display: block; position: relative; }
.projektkarte__bild {
  width: 100%; height: auto; aspect-ratio: 199 / 236; object-fit: fill;  /* 1:1 Original-Kachel 199x236; height:auto, damit aspect-ratio greift */
  background: #f2f2f2;
  display: block;
}
.projektkarte__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; text-align: center;
  background: var(--farbe-akzent);
  opacity: 0; transition: opacity var(--t-overlay-aus);   /* aus = 1s */
}
.projektkarte__link:hover .projektkarte__overlay,
.projektkarte__link:focus-visible .projektkarte__overlay,
.projektkarte:focus-within .projektkarte__overlay {
  opacity: 1; transition: opacity var(--t-overlay-ein);   /* ein = 0,5s */
}
.projektkarte__titel {
  font-family: var(--font); font-weight: 400;
  font-size: calc(var(--fs-overlay) * var(--a11y-s)); line-height: calc(1.1 * var(--a11y-z));
  text-transform: uppercase; color: #fff;
}

/* --- Startseite: Beitrags-Teaser -------------------------------------- */
.teaser-raster {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 30px; row-gap: 35px;
  margin: 194px 0 120px;                          /* 1:1: Reihe->Teaser ~194px, Teaser->Fuss groesser */
}
.teaser__titel {
  margin: 0 0 6px;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(var(--fs-weiterlesen-titel) * var(--a11y-s)); line-height: calc(26.4px * var(--a11y-s) * var(--a11y-z));
  color: var(--farbe-sekundaer);
}
.teaser__titel a { color: inherit; }
.teaser__titel a:hover { color: var(--farbe-akzent-hover); }
.teaser__meta {
  margin: 0 0 18px;
  font-family: var(--font-cond); font-weight: 500;
  font-size: calc(var(--fs-autor) * var(--a11y-s)); line-height: calc(15.6px * var(--a11y-s) * var(--a11y-z));
  color: var(--farbe-akzent);
}
.teaser__auszug {
  margin: 0 0 14px;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(var(--fs-auszug) * var(--a11y-s)); line-height: calc(28px * var(--a11y-s) * var(--a11y-z)); letter-spacing: 1.3px;
  color: var(--farbe-text-grau);
}
.teaser__mehr {
  font-family: var(--font-cond); font-weight: 500;
  font-size: calc(var(--fs-weiterlesen) * var(--a11y-s)); line-height: calc(22.5px * var(--a11y-s) * var(--a11y-z));
  color: var(--farbe-akzent);
}
.teaser__mehr:hover { color: var(--farbe-akzent-hover); }

/* --- Projektübersicht: Filter ----------------------------------------- */
.projekt-seite { padding-top: 70px; padding-bottom: 60px; }  /* 1:1: Filter sitzt 70px unter dem Kopf (Original) */
.filter { margin-bottom: 56px; }
.filter__liste {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0 10px;
}
.filter__btn {
  position: relative;
  padding: 8px; margin: 0 5px;
  background: none; border: 0;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(var(--fs-filter) * var(--a11y-s)); line-height: calc(27px * var(--a11y-s) * var(--a11y-z));
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--farbe-primaer);
}
/* A-3: aktiver Filter mit 3px Oliv-Unterstreichung */
.filter__btn::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px;
  height: 3px; background: var(--farbe-akzent);
  opacity: 0; transition: opacity var(--t-schnell);
}
.filter__btn.is-active::after { opacity: 1; }

/* ausgeblendete Kacheln beim Filtern */
.projektkarte[hidden] { display: none; }

/* --- Projekt-Detail ---------------------------------------------------- */
.projekt { padding-top: 90px; padding-bottom: 40px; }
.projekt__layout {
  display: grid;
  grid-template-columns: 366px 1fr;   /* RF6: Textspalte startet ~556px (Original), Oliv ~724px */
  gap: 20px;
  align-items: start;
}
.projekt__bildspalte { grid-column: 1; }
.projekt__hauptbild {
  width: 100%; height: auto; object-fit: fill; background: #f2f2f2;
}
.projekt__inhalt { grid-column: 2; }

/* Projekt-Detail @1440: Original-Überlappung 1:1 (NICHT Beitrag — der nutzt
   dieselben Klassen ohne Bild). Original: Bild 436 breit (x153), rechte Spalte
   ~684 (x606), Oliv-Block margin-left:-60px (überlappt die Bild-Rechtskante ~50px,
   rechtsbündig an der Inhaltskante, liegt über dem Bild). Titel y190 bündig mit
   Bildoberkante, Oliv y290 (Abstand über titel margin-bottom:50). */
.projekt:not(.beitrag) .projekt__layout {
  grid-template-columns: 436px minmax(0, 1fr);
  column-gap: 10px;
}
.projekt:not(.beitrag) .projekt__inhalt { min-width: 0; }
.projekt:not(.beitrag) .projekt__text {
  width: calc(100% + 60px);
  margin-left: -60px;          /* Oliv ragt nach links über das Bild (Original) */
  position: relative; z-index: 1;
}
.projekt__titel {
  margin: 0 0 50px;   /* 1:1: Titel bündig mit Bildoberkante (y190), 50px bis zum Oliv-Block (Original-Abstand 100px gesamt) */
  font-family: var(--font); font-weight: 400;
  font-size: var(--fs-h1-detail); line-height: 50px;
  text-transform: uppercase; color: var(--farbe-primaer);
}
.projekt__text {
  background: var(--farbe-akzent);
  padding: 40px;   /* 1:1: Original Oliv-Block padding 40px uniform */
}
.projekt__text p {
  margin: 0 0 1em;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(var(--fs-body) * var(--a11y-s)); line-height: calc(28px * var(--a11y-s) * var(--a11y-z));
  color: var(--farbe-text);
}
.projekt__text p:last-child { margin-bottom: 0; }

/* Belassi-Karussell (Vanilla, A15) */
/* 1:1: Original-Slider 584 breit (3×188 + 2×10 Gap), ~30px in die Spalte
   eingerückt (x636). Bei ≤1024 wieder voll breit (2 sichtbar). */
.karussell { margin-top: 2px; position: relative; max-width: 584px; margin-left: 30px; }
.karussell__fenster { overflow: hidden; }
.karussell__spur {
  display: flex; gap: 10px;
  transition: transform .6s ease;
}
.karussell__folie {
  flex: 0 0 calc((100% - 20px) / 3);     /* 3 sichtbar (Desktop) */
  margin: 0;
}
.karussell__folie a { display: block; }
.karussell__bild { width: 100%; height: auto; object-fit: cover; background:#f2f2f2; }
.karussell__pfeil {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--farbe-primaer);
  border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.25);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
}
.karussell__pfeil .icon { width: 18px; height: 18px; }
.karussell__pfeil--prev { left: -8px; }
.karussell__pfeil--next { right: -8px; }
.karussell__pfeil[disabled] { opacity: .35; cursor: default; }

/* Vor/Zurück-Navigation */
.projekt-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; align-items: center;
  margin-top: 70px; padding-top: 20px;
  border-top: 1px solid #ededed;
}
.projekt-nav__prev, .projekt-nav__next {
  display: inline-flex; align-items: center; gap: 14px;
}
.projekt-nav__next { justify-self: end; text-align: right; flex-direction: row-reverse; }
.projekt-nav__pfeil { color: var(--farbe-nav-pfeil); font-size: calc(28px * var(--a11y-s)); line-height: calc(1 * var(--a11y-z)); }
.projekt-nav__label {
  display: block;
  font-family: var(--font-cond); font-weight: 500;
  font-size: calc(var(--fs-nav-label) * var(--a11y-s)); line-height: calc(21.6px * var(--a11y-s) * var(--a11y-z));
  text-transform: uppercase; color: var(--farbe-text);
}
.projekt-nav__titel {
  display: block;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(var(--fs-nav-titel) * var(--a11y-s)); line-height: calc(18.9px * var(--a11y-s) * var(--a11y-z));
  color: var(--farbe-sekundaer);
}
.projekt-nav a:hover .projekt-nav__label { color: var(--farbe-akzent-hover); }
.projekt-nav__alle { display: none; }

/* --- Kontakt ----------------------------------------------------------- */
.kontakt { padding-top: 60px; padding-bottom: 60px; }
.kontakt__linie { width: 320px; height: 1px; background: var(--farbe-primaer); margin: 0 0 30px; }
.kontakt__adresse {
  font-style: normal;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(var(--fs-kontakt-adr) * var(--a11y-s)); line-height: calc(33px * var(--a11y-s) * var(--a11y-z));   /* 1:1: Original-Adresse lh 33px (luftiger) */
  color: var(--farbe-text);
}
.kontakt__adresse p { margin: 0 0 1em; }
.kontakt__firma { font-weight: 500; }
.kontakt__adresse a { color: var(--farbe-akzent); }
.kontakt__adresse a:hover { color: var(--farbe-akzent-hover); }
.kontakt__intro {
  margin: 48px 0 40px;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(var(--fs-body) * var(--a11y-s)); line-height: calc(28px * var(--a11y-s) * var(--a11y-z));
  color: var(--farbe-text);
}
.kontakt__intro strong { font-weight: 500; }

/* Formular */
.kontaktform .feld { margin: 0 0 29px; }
.kontaktform label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-cond); font-weight: 500;
  font-size: calc(14px * var(--a11y-s)); letter-spacing: .5px;
  color: var(--farbe-primaer);
}
.kontaktform label .pflicht { color: var(--farbe-akzent-hover); }
.kontaktform input,
.kontaktform textarea {
  width: 100%;
  padding: 8px 16px;
  font-family: var(--font); font-weight: 400;
  font-size: calc(24px * var(--a11y-s)); line-height: calc(33.6px * var(--a11y-s) * var(--a11y-z)); letter-spacing: 1.7px;
  color: var(--farbe-feld-text);
  background: var(--farbe-seite);
  border: 0; border-bottom: 7px solid var(--farbe-feld-unterkante);
  border-radius: var(--radius-klein) var(--radius-klein) 0 0;
}
.kontaktform textarea { min-height: 151px; padding: 5px 14px; resize: vertical; }
.kontaktform ::placeholder { color: var(--farbe-feld-text); opacity: .6; }
/* A-7: sichtbarer Fokusring an Feldern (Olive-Unterkante bleibt) */
.kontaktform input:focus-visible,
.kontaktform textarea:focus-visible {
  outline: 3px solid var(--farbe-primaer); outline-offset: 2px;
}
/* A-5: Fehlerzustand */
.kontaktform .feld--fehler input,
.kontaktform .feld--fehler textarea { border-bottom-color: var(--farbe-fehler); }
.feld__fehler {
  display: none;
  margin-top: 6px;
  font-family: var(--font-cond); font-weight: 500;
  font-size: calc(14px * var(--a11y-s)); color: var(--farbe-fehler);
}
.kontaktform .feld--fehler .feld__fehler { display: block; }
/* Challenge-Zeile (selbst gebauter Spamschutz, Logik in E6) */
.kontaktform .feld--challenge input { font-size: calc(18px * var(--a11y-s)); max-width: 160px; }
/* Honeypot: für Menschen unsichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kontaktform__fuss {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.kontaktform__hinweis {
  margin: 0; max-width: 60ch;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(14px * var(--a11y-s)); line-height: calc(20px * var(--a11y-s) * var(--a11y-z)); color: var(--farbe-text);
}
.kontaktform__hinweis a { color: var(--farbe-akzent-hover); text-decoration: underline; }
.kontakt__cta { margin: 24px 0 0; }
.kontaktform__senden {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 142px; height: 40px;
  padding: 0 18px;
  background: var(--farbe-primaer); color: #fff; text-decoration: none;
  border: 0; border-radius: 0;
  font-family: var(--font-cond); font-weight: 500;
  font-size: calc(14px * var(--a11y-s)); letter-spacing: 10px; text-transform: uppercase;
  transition: background var(--t-schnell);
}
.kontaktform__senden:hover,
.kontaktform__senden:focus-visible { background: #3a4042; }  /* A-8: dezenter Hover */
.kontaktform__senden:disabled { opacity: .55; cursor: default; }

/* Erfolgs-/Fehler-Meldung (A-5) */
.form-meldung {
  padding: 18px 22px; margin-bottom: 24px;
  border-left: 5px solid var(--farbe-akzent);
  background: #f7f7f2; color: var(--farbe-text);
}
.form-meldung--ok { border-left-color: var(--farbe-akzent); }
.form-meldung--fehler { border-left-color: var(--farbe-fehler); }

/* --- Allgemeine Inhalts-/Textseiten (Gerüst für Linas Seiten) --------- */
.inhalt { padding-top: 60px; padding-bottom: 60px; }
.inhalt h1 { color: var(--farbe-primaer); }
.inhalt .fliesstext p {
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(var(--fs-body) * var(--a11y-s)); line-height: calc(28px * var(--a11y-s) * var(--a11y-z)); color: var(--farbe-text);
}

/* Akkordeon (DSGVO/Impressum, A16) — JS in main.js, Markup Lina */
.akkordeon__item { border-bottom: 1px solid #ececec; }
.akkordeon__kopf { margin: 0; }
.akkordeon__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 16px 0; text-align: left;
  background: none; border: 0;
  font-family: var(--font-cond); font-weight: 700;
  font-size: calc(15px * var(--a11y-s)); color: var(--farbe-primaer);
}
.akkordeon__item.is-offen .akkordeon__btn { color: var(--farbe-akzent); }
.akkordeon__symbol { flex: 0 0 auto; color: inherit; }   /* 1:1: +/- folgt der Knopffarbe (dunkel geschlossen, oliv offen) */
.akkordeon__symbol .icon { width: 18px; height: 18px; }
.akkordeon__item .akkordeon__symbol--minus { display: none; }
.akkordeon__item.is-offen .akkordeon__symbol--plus { display: none; }
.akkordeon__item.is-offen .akkordeon__symbol--minus { display: block; }
.akkordeon__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-schnell); }
.akkordeon__item.is-offen .akkordeon__panel { grid-template-rows: 1fr; }
.akkordeon__panel-inner { overflow: hidden; }
.akkordeon__panel-inner > div {
  padding: 0 0 16px;
  font-family: var(--font-cond); font-weight: 300;
  font-size: calc(var(--fs-body) * var(--a11y-s)); line-height: calc(28px * var(--a11y-s) * var(--a11y-z)); color: var(--farbe-akkordeon-text);
}

/* Location-Karussell (A14, Autoplay) — JS in main.js, Markup Lina */
.loc-karussell { overflow: hidden; }
.loc-karussell__spur { display: flex; gap: 10px; transition: transform .6s ease; }
.loc-karussell__folie { flex: 0 0 auto; }

/* 404 */
.fehler-404 { padding-top: 90px; padding-bottom: 80px; }
.fehler-404 h1 {
  font-family: var(--font); font-weight: 400;
  font-size: var(--fs-404); line-height: 48px; color: var(--farbe-primaer);
}
.fehler-404__links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.fehler-404__links a { color: var(--farbe-akzent-hover); text-decoration: underline; }

/* --- Lightbox (Belassi, A-9: Fokusfalle + Escape) --------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.9); padding: 40px;
}
.lightbox.is-offen { display: flex; }
.lightbox__bild { max-width: 90vw; max-height: 85vh; width: auto; height: auto; }
.lightbox__zu {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__zu .icon { width: 22px; height: 22px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__nav .icon { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

/* --- Routine-Seitenarten (Markup Lina, CSS-Vorschlag abgenommen + angepasst) --
   Location, Team, Kunden, Beitrag, Rechtstexte. Nur vorhandene Tokens. */

/* Location /location/ */
.loc { position: relative; padding-top: 50px; }
.loc__raster {
  display: grid; grid-template-columns: 550px minmax(0, 1fr);
  gap: 40px; align-items: start;
}
.loc__titel {                                   /* wie Hero, über dem Text */
  position: absolute; z-index: 2; margin: 0;
  left: calc(550px + 40px + var(--gutter-mobil)); top: 30px;
  max-width: 560px; pointer-events: none;
  font-family: var(--font-cond); font-weight: 300;
  font-size: var(--fs-hero); line-height: .9; letter-spacing: 10px;
  color: var(--farbe-primaer);
}
.loc__text { padding-top: 295px; }
.loc__haupt {
  margin: 0 0 1em;
  font-family: var(--font-cond); font-weight: 300;   /* 1:1: Lead-Zeile nicht hervorgehoben (Original fw leicht, wie Fließtext) */
  font-size: calc(var(--fs-body) * var(--a11y-s)); line-height: calc(28px * var(--a11y-s) * var(--a11y-z)); color: var(--farbe-text);
}
.loc-karussell { position: relative; overflow: hidden; }
.loc-karussell__folie { flex: 0 0 100%; }       /* Desktop 1 sichtbar (550px-Spalte) */
.loc-karussell__bild { width: 100%; height: auto; object-fit: cover; background: #f2f2f2; }
/* RF5: dezenter Pause/Play-Knopf (von main.js eingefügt, nur bei aktivem Autoplay;
   neues, barrierefreies Element → WCAG 2.2.2 sauber erfüllt) */
.loc-karussell__pause {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(42,47,49,.75); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.loc-karussell__pause .icon { width: 16px; height: 16px; }
.loc-karussell__pause:hover { background: rgba(42,47,49,.92); }

/* Team /team/ */
.team__raster {
  display: grid; grid-template-columns: 550px minmax(0, 1fr);
  gap: 64px; align-items: start;
}
.team__foto { margin: 0 0 30px; }
.team__bild { width: 100%; height: auto; object-fit: fill; background: #f2f2f2; }
.team__person { margin: 0 0 30px; }
.team__name {
  margin: 0 0 14px;
  font-family: var(--font-cond); font-weight: 500;
  font-size: calc(var(--fs-body) * var(--a11y-s)); line-height: calc(28px * var(--a11y-s) * var(--a11y-z)); text-transform: uppercase; color: var(--farbe-text);
}
.team__tel { color: var(--farbe-akzent); }
.team__tel:hover { color: var(--farbe-akzent-hover); }
.team__spalte--spaxi { text-align: right; }
.team__spalte--spaxi .team__foto { max-width: 457px; margin: 0 0 14px auto; }
.team__spaxi-titel, .team__spaxi-text {
  margin: 0; font-family: var(--font-cond);
  font-size: var(--fs-team-spaxi); line-height: 44px; color: var(--farbe-text);
}
.team__spaxi-titel { font-weight: 700; }
.team__spaxi-text  { font-weight: 300; }

/* Kunden /kunden/ */
.kunden { padding-top: 120px; }
.kunden__titel {
  margin: 0 0 20px;
  font-family: var(--font-cond); font-weight: 300;
  font-size: var(--fs-kunden-h2); line-height: 1.25; color: var(--farbe-primaer);
}
.inhalt .fliesstext p.kunden__liste { font-size: calc(var(--fs-kunden-liste) * var(--a11y-s)); line-height: calc(30px * var(--a11y-s) * var(--a11y-z)); }

/* Beitrag (nutzt .projekt*-Layout) */
.beitrag .projekt__titel, .beitrag .beitrag__meta { padding-left: 60px; }
.beitrag__meta {
  margin: -8px 0 24px;
  font-family: var(--font-cond); font-weight: 500;
  font-size: calc(var(--fs-autor) * var(--a11y-s)); line-height: calc(18px * var(--a11y-s) * var(--a11y-z)); color: var(--farbe-akzent);
}
.beitrag__meta .beitrag__autor { text-transform: none; }

/* Rechtstexte /dsgvo/, /impressum/ */
.recht { padding-top: 50px; }
.recht__intro p { color: var(--farbe-text); }
.recht__adresse { font-style: normal; }
.recht__adresse p { font-size: calc(var(--fs-kontakt-adr) * var(--a11y-s)); line-height: calc(28px * var(--a11y-s) * var(--a11y-z)); }
.recht__adresse a { color: var(--farbe-akzent); }
.recht__adresse a:hover { color: var(--farbe-akzent-hover); }
.recht__akkordeon { margin-top: 36px; }
/* Akkordeon-Feinschliff + RF2: zugeklappte Panels aus Tab-Reihenfolge/SR nehmen */
.akkordeon__item { border: 1px solid #d5d8dc; border-bottom: 1px solid #d5d8dc; margin-bottom: 10px; }
.akkordeon__btn { padding: 9px 15px; min-height: 46px; }
.akkordeon__panel-inner > div { padding: 0 15px 16px; }
.akkordeon__panel {
  visibility: hidden;
  transition: grid-template-rows var(--t-schnell), visibility 0s .3s;
}
.akkordeon__item.is-offen .akkordeon__panel { visibility: visible; transition-delay: 0s; }
.akkordeon__symbol { display: inline-flex; align-items: center; }
.akkordeon__symbol .icon { display: block; }

/* 404: Original H1 Medium Cond; neue Hilfslinks mit AA-Kontrast (RF3) */
.fehler-404 { padding-top: 20px; }
.fehler-404 h1 { font-family: var(--font-cond); font-weight: 500; margin: 0 0 12px; color: var(--farbe-text); }  /* 1:1: Original-H1 #1E1C1C */
.fehler-404__links a { color: var(--farbe-primaer); text-decoration: underline; }
.fehler-404__links a:hover { color: var(--farbe-sekundaer); }

/* ====== EINWILLIGUNGS-BANNER (D6/F6, Original-Look) ====================== */
/* Nur ausgegeben, wenn config consent.aktiv = true. Optik 1:1 nach
   quelle/screenshots/cookie-banner-*.png; Inhalt ehrlich (kein Dark Pattern).
   Markup: partials/consent_banner.php, Verhalten: assets/js/consent.js. */
.consent {
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: 526px;
  max-width: calc(100vw - 20px);
  z-index: var(--z-banner);
  background: var(--farbe-seite);
  color: #222222;
  border-radius: var(--radius-banner);
  box-shadow: var(--schatten-banner);
  padding: 15px 20px 20px;
  font-family: var(--font);
  font-weight: 400;
  animation: consent-ein .3s ease both;
}
.consent[hidden] { display: none; }
.consent:focus { outline: none; }

@keyframes consent-ein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Kopf: Logo links, Titel mittig (kartenbezogen), Schließen rechts */
.consent__kopf {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 4px;
}
.consent__logo {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
}
.consent__titel {
  margin: 0;
  font-family: var(--font); font-weight: 500;
  font-size: calc(15px * var(--a11y-s)); line-height: calc(1.3 * var(--a11y-z));
  color: var(--farbe-primaer);
  text-align: center;
}
.consent__schliessen {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: #222222;
  border-radius: var(--radius-klein);
  transition: color var(--t-schnell);
}
.consent__schliessen svg { width: 18px; height: 18px; display: block; }
.consent__schliessen:hover { color: #000000; }

.consent__text {
  margin: 0 0 14px;
  font-family: var(--font); font-weight: 400;
  font-size: calc(12px * var(--a11y-s)); line-height: calc(18px * var(--a11y-s) * var(--a11y-z)); color: #222222;
}
.consent__text a { color: var(--farbe-akzent-hover); text-decoration: underline; }
.consent__text a:hover { color: var(--farbe-primaer); }

/* „Einstellungen ansehen" — ehrliche Angabe (eingeblendet per consent.js) */
.consent__details {
  margin: 0 0 14px;
  border-top: 1px solid #ECECEC;
  padding-top: 12px;
}
.consent__details[hidden] { display: none; }
.consent__details:focus { outline: none; }
.consent__kategorien { margin: 0 0 10px; }
.consent__kat-kopf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.consent__kat-titel { font-family: var(--font); font-weight: 500; font-size: calc(13px * var(--a11y-s)); color: var(--farbe-primaer); }
.consent__kat-status { font-family: var(--font); font-weight: 500; font-size: calc(12px * var(--a11y-s)); color: var(--farbe-akzent-hover); white-space: nowrap; }
.consent__kat-text { margin: 4px 0 0; font-size: calc(12px * var(--a11y-s)); line-height: calc(18px * var(--a11y-s) * var(--a11y-z)); color: #333333; }
.consent__kat-text code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: calc(11px * var(--a11y-s)); background: #F2F2F2; padding: 1px 4px; border-radius: 3px;
}
.consent__hinweis { margin: 0; font-size: calc(12px * var(--a11y-s)); line-height: calc(18px * var(--a11y-s) * var(--a11y-z)); color: #555555; }

/* Knopf-Reihe: drei gleich große Knöpfe (Ablehnen so leicht wie Zustimmen) */
.consent__knoepfe { display: flex; gap: 8px; }
.consent__knopf {
  flex: 1 1 0; min-width: 0; min-height: 45px;
  padding: 10px 10px;
  font-family: var(--font); font-weight: 500;
  font-size: calc(14px * var(--a11y-s)); line-height: calc(1.2 * var(--a11y-z)); text-align: center;
  white-space: nowrap;           /* „Einstellungen ansehen" einzeilig (wie Original) */
  border: 1px solid transparent; border-radius: 6px;
  cursor: pointer;
  transition: background var(--t-schnell), color var(--t-schnell), border-color var(--t-schnell);
}
/* Akzeptieren: dunkel gefüllt, weißer Text — auch im Hover hell-auf-dunkel */
.consent__knopf--ok { background: #080808; color: #FFFFFF; border-color: #080808; }
.consent__knopf--ok:hover { background: #2A2F31; border-color: #2A2F31; color: #FFFFFF; }
/* Ablehnen + Einstellungen: hell, dunkler Text; klar erkennbarer Knopf-Rand */
.consent__knopf--nein,
.consent__knopf--mehr { background: #F6F6F6; color: #222222; border-color: #E2E2E2; }
.consent__knopf--mehr { color: #333333; }
.consent__knopf--nein:hover,
.consent__knopf--mehr:hover { background: #ECECEC; border-color: #D4D4D4; color: #222222; }
/* Sichtbarer Tastatur-Fokusring (dunkel auf hellem Grund) */
.consent__knopf:focus-visible,
.consent__schliessen:focus-visible {
  outline: 3px solid var(--farbe-primaer); outline-offset: 2px;
}

/* Tablet + Mobil (≤1024px): unten über die volle Breite, Knöpfe gestapelt */
@media (max-width: 1024px) {
  .consent {
    left: 0; right: 0; bottom: 0;
    width: auto; max-width: none;
    border-radius: var(--radius-banner) var(--radius-banner) 0 0;
    padding: 16px var(--gutter-mobil) 20px;
  }
  .consent__knoepfe { flex-direction: column; }
  .consent__knopf { flex: 0 0 auto; width: 100%; min-height: 50px; }
}

/* ====== (7) MEDIA QUERIES ================================================= */

/* Tablet + Mobil: Burger statt Hauptmenü (bis 1024px) */
@media (max-width: 1024px) {
  :root { --kopf-h: 140px; }
  .burger { display: inline-flex; }

  /* Menü wird zum Panel unter dem Kopf */
  .hauptnav {
    position: absolute; left: 0; right: 0; top: 100%;
    margin-left: 0;
    background: var(--farbe-untermenue-flaeche);
    z-index: var(--z-mobilpanel);
    transform: scaleY(0); transform-origin: top; opacity: 0;
    max-height: 0; overflow: hidden;
    transition: transform var(--t-schnell), opacity var(--t-schnell), max-height var(--t-schnell);
    margin-top: 10px;
  }
  .kopf.is-menue-offen .hauptnav {
    transform: scaleY(1); opacity: 1; max-height: 520px;
    /* W6-M2: nie höher als der Platz unter dem Kopf (Querformat, große Schrift);
       sonst scrollt das Menü. Im Hochformat bleibt es bei 520px (pixelgleich). */
    max-height: min(520px, calc(100vh - var(--kopf-h) - 20px));
    max-height: min(520px, calc(100dvh - var(--kopf-h) - 20px));
    overflow-y: auto; overscroll-behavior: contain;
  }
  .hauptnav__list { flex-direction: column; align-items: stretch; }
  .hauptnav__item { position: static; }
  .hauptnav__link {
    width: 100%; padding: 10px 20px;
    color: var(--farbe-untermenue-text); letter-spacing: 1.6px;
    text-align: left;
  }
  .hauptnav__link.is-active {
    background: var(--farbe-mobil-aktiv-flaeche); color: var(--farbe-mobil-aktiv-text);
  }
  .hauptnav__toggle { display: flex; align-items: center; justify-content: space-between; }
  /* Untermenü im Panel: eingerückt aufklappen */
  .subnav {
    position: static; display: none; min-width: 0;
    background: var(--farbe-untermenue-flaeche);
  }
  .hauptnav__item--hat-sub.is-open > .subnav { display: block; }
  .subnav__link { padding-left: 36px; font-size: calc(11px * var(--a11y-s)); }

  /* Hero (Tablet 768–1024): Titel bündig links an der Viewport-Kante (Original
     x0), Bild rechtsbündig und auf Tablet-Größe skaliert (1:1: Original-Bild
     517×257 bei 768, rechte Kante an der Inhaltskante). Mobil (≤767) stapelt
     darunter. Zuvor lief das fixe 788px-Desktopbild hier über den Rand. */
  .hero__titel { left: 0; }
  .hero__bild  { width: min(788px, 67.4vw); height: auto; }
  .hero__bild img { height: auto; }

  .projektraster--start { grid-template-columns: repeat(2, 1fr); }
  .projektraster--alle  { grid-template-columns: repeat(2, 1fr); }
  .projekt__layout { grid-template-columns: 1fr; }
  .projekt__inhalt { grid-column: 1; }
  /* Projekt-Detail: Überlappung auflösen (gestapelt, kein Überlauf) */
  .projekt:not(.beitrag) .projekt__layout { grid-template-columns: 1fr; }
  .projekt:not(.beitrag) .projekt__inhalt { grid-column: 1; }
  .projekt:not(.beitrag) .projekt__text { width: auto; margin-left: 0; }
  .karussell { max-width: none; margin-left: 0; }           /* Tablet/Mobil: voll breit */
  .karussell__folie { flex-basis: calc((100% - 10px) / 2); }  /* 2 sichtbar */
  .teaser-raster { grid-template-columns: 1fr 1fr; }

  /* Routine-Seiten: stapeln; Location-Karussell voll breit, 2 sichtbar (RF4) */
  .loc__raster, .team__raster { grid-template-columns: 1fr; gap: 30px; }
  .loc__titel { position: static; max-width: none; margin: 0 0 16px;
                font-size: clamp(60px, 11vw, 112px); letter-spacing: 6px; }
  .loc__text { padding-top: 0; }
  .loc-karussell__folie { flex-basis: calc((100% - 10px) / 2); }
  .team__spalte--spaxi { text-align: left; }
  .team__spalte--spaxi .team__foto { margin-left: 0; }
  .beitrag .projekt__titel, .beitrag .beitrag__meta { padding-left: 0; }

  /* Fuß-Rechtslinks auf Tablet/Mobil in Markenfarbe */
  .fuss__link { color: var(--farbe-fussmenue-mobil-text); }
  .fuss__link::after { display: none; }
}

/* Mobil (bis 767px) */
@media (max-width: 767px) {
  :root {
    --kopf-h: 110px;
    --kopf-h-sticky: 98px;
    --logo-b-sticky: 100px;
    --logo-h-sticky: 40px;
  }
  .kopf__inner { height: 100%; }

  /* A-1: Hero-Titel auf schmalen Geräten per clamp verkleinern, bis er in die
     Breite passt (16px-Gutter bleibt, A-6). Desktop/Tablet unverändert 136px. */
  .hero__inner { height: auto; padding: 40px var(--gutter-mobil) 0; }
  .hero__titel {
    position: static; max-width: none; margin: 0 0 20px;
    font-size: clamp(44px, 13vw, 92px);
    letter-spacing: 2px;
  }
  .hero__bild {
    position: static; width: 100%; height: auto;
  }
  .hero__bild img { height: auto; }

  .start-intro { margin: 40px auto; }
  .start-intro p { font-size: calc(22px * var(--a11y-s)); line-height: calc(32px * var(--a11y-s) * var(--a11y-z)); }
  .abschnitt-kopf { justify-content: flex-start; }
  .abschnitt-kopf::before { flex-basis: 40px; }

  .projektraster--start,
  .projektraster--alle { grid-template-columns: 1fr; }
  .teaser-raster { grid-template-columns: 1fr; }

  .projekt__titel { font-size: 34px; line-height: 38px; }
  .projekt__text { padding: 24px 20px; }
  .karussell__folie { flex-basis: calc((100% - 10px) / 2); }

  .projekt-nav { grid-template-columns: 1fr; gap: 24px; }
  .projekt-nav__next { justify-self: start; text-align: left; flex-direction: row; }

  .kontaktform input, .kontaktform textarea { font-size: calc(20px * var(--a11y-s)); }
  .kontakt__linie { width: 180px; }

  .fuss__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .fuss__liste { flex-direction: column; align-items: flex-start; }

  /* Routine-Seiten mobil */
  .loc { padding-top: 40px; }
  .loc__titel { font-size: clamp(44px, 13vw, 92px); letter-spacing: 2px; }
  .kunden { padding-top: 60px; }
  .kunden__titel { font-size: calc(26px * var(--a11y-s)); }
  .recht { padding-top: 30px; }
  .team__spaxi-titel, .team__spaxi-text { font-size: calc(28px * var(--a11y-s)); line-height: calc(36px * var(--a11y-s) * var(--a11y-z)); }
}

/* Sehr schmal: Hero-Titel noch kleiner (jedes Wort passt in die Breite) */
@media (max-width: 480px) {
  .hero__titel { font-size: clamp(34px, 12vw, 64px); letter-spacing: 1px; }
}

/* ====== (8) REDUZIERTE BEWEGUNG ========================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
