/* ==========================================================================
   FUAD YANIK MEDIENDESIGN - Design System
   Designsprache abgeleitet von carrera-studio.de (Tokens gemessen 15.08.2026),
   Farbwelt auf das monochrome Branding gezogen: kein Akzentton, nur
   Schwarz, Weiss und ein kuehles Hellgrau.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Schrift (selbst gehostet, kein Google-CDN wegen DSGVO)
   -------------------------------------------------------------------------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-800.woff2") format("woff2"); }

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Flaechen */
  --bg:            #1b1a1a;   /* Seitengrund, etwas tiefer als die Karten   */
  --bg-raise:      #252424;   /* Grund der grossen Abschnitts-Container     */
  --bg-shell:      rgba(53, 53, 53, .55);
  --bg-nav:        rgba(56, 53, 53, .82);
  --bg-solid:      #252525;   /* dunkler Button, Pfeil-Container            */
  --bg-thumb:      #000000;   /* Videoflaeche                              */

  --surface-1:     rgba(255, 255, 255, .03);
  --surface-2:     rgba(255, 255, 255, .05);
  --surface-3:     rgba(255, 255, 255, .08);

  --line:          rgba(255, 255, 255, .08);
  --line-2:        rgba(255, 255, 255, .12);
  --line-3:        rgba(255, 255, 255, .18);

  /* Schrift */
  --fg:            #ffffff;
  --fg-soft:       #d6dede;   /* zweiter Teil der Ueberschrift, gemessen    */
  --fg-mute:       #aaaaaa;
  /* Vorlage nutzt hier #8a8a8a. Das haelt auf dem nackten Seitengrund 5,1:1,
     faellt in einer Karte in einem Container aber auf 3,5:1 und damit unter
     die geforderten 4,5:1. #a3a3a3 haelt 4,9:1 auch auf der hellsten Flaeche. */
  --fg-dim:        #a3a3a3;
  --fg-invert:     #1b1a1a;

  /* Radien */
  --r-pill:  100px;
  --r-nav:    70px;
  --r-shell:  40px;
  --r-card:   20px;
  --r-inner:  16px;
  --r-thumb:  18px;
  --r-sm:     10px;

  /* Raster */
  --wrap:      1245px;
  --wrap-tight: 1180px;
  --gap:       24px;
  --section-y: clamp(72px, 9vw, 130px);

  /* Schattierung */
  --shadow-nav:  0 0 10px -4px rgba(0, 0, 0, .19);
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, .05);
  --shadow-deep: 0 0 23px -2px rgba(0, 0, 0, .6);

  /* Bewegung, bewusst zurueckhaltend */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  .32s;
}

/* --------------------------------------------------------------------------
   3. Grundlagen
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap  { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--tight { width: min(100% - 40px, var(--wrap-tight)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--flush { padding-block: 0 var(--section-y); }

/* Der grosse gerundete Abschnitts-Container, Kernmerkmal der Vorlage */
.shell {
  background: var(--bg-shell);
  border: 1px solid var(--line-2);
  border-radius: var(--r-shell);
  padding: clamp(28px, 4vw, 50px);
  backdrop-filter: blur(25px) saturate(1.5);
  -webkit-backdrop-filter: blur(25px) saturate(1.5);
}
.shell--plain { background: var(--bg-raise); backdrop-filter: none; -webkit-backdrop-filter: none; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack   { display: grid; gap: 14px; }
.stack-l { display: grid; gap: 26px; }

.center     { text-align: center; }
.center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Typografie
   -------------------------------------------------------------------------- */
.h-hero {
  font-size: clamp(38px, 6.4vw, 78px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .98;
}
.h-xl { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.032em; line-height: 1.06; }
.h-lg { font-size: clamp(24px, 3vw, 34px);   letter-spacing: -.028em; }
.h-md { font-size: clamp(19px, 2vw, 23px);   letter-spacing: -.02em; font-weight: 700; }
.h-sm { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }

/* Zweifarbige Ueberschrift: zweiter Teil in Hellgrau */
.dim { color: var(--fg-soft); }

.lead {
  color: var(--fg-mute);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  max-width: 62ch;
}
.body   { color: var(--fg-mute); line-height: 1.68; }
.body strong { color: var(--fg); font-weight: 600; }
.small  { font-size: 14px; color: var(--fg-mute); line-height: 1.6; }
.micro  { font-size: 13px; color: var(--fg-dim); }

/* Kleines Grossbuchstaben-Label ueber einem Wert.
   Vorlage setzt 9,5px. Fuer Inhaber von Handwerksbetrieben ist das zu klein,
   deshalb 11px. Versalien, Sperrung und Farbe bleiben, der Charakter also auch. */
.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Eyebrow-Pille ueber der Ueberschrift */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 7px 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.badge svg { width: 13px; height: 13px; }

.section-head { display: grid; gap: 16px; margin-bottom: clamp(30px, 4vw, 46px); }
.section-head .badge { justify-self: start; }
.center .section-head .badge { justify-self: center; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--r-pill);
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn:hover { transform: translateY(-1px); }

.btn--light  { background: #fff; color: var(--fg-invert); box-shadow: var(--shadow-soft); }
.btn--light:hover { background: #ececec; }

.btn--dark   { background: var(--bg-solid); color: var(--fg); border: 1px solid var(--line-2); }
.btn--dark:hover { background: #303030; border-color: var(--line-3); }

.btn--ghost  { background: var(--surface-2); color: var(--fg); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--surface-3); }

.btn--sm { padding: 9px 18px; font-size: 11px; }
.btn--lg { padding: 15px 30px; font-size: 12px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */
.nav-outer {
  position: sticky;
  top: 18px;
  z-index: 60;
  padding-inline: 20px;
  margin-top: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 1010px);
  margin-inline: auto;
  background: var(--bg-nav);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--r-nav);
  box-shadow: var(--shadow-nav);
  padding: 10px 12px 10px 12px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.nav__brand { display: flex; align-items: center; gap: 10px; flex: none; padding-left: 6px; }
/* Wortmarke laeuft ueber die Hoehe, die Breite ergibt sich aus dem Seitenverhaeltnis */
.nav__logo  { height: 30px; width: auto; flex: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav__link {
  padding: 8px 15px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-soft);
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { color: #fff; background: var(--surface-2); }
.nav__link[aria-current="page"] {
  color: #fff;
  background: var(--surface-3);
  border-color: var(--line-2);
}

.nav__cta { flex: none; }

/* Der Button im aufgeklappten Menue erscheint erst auf dem Handy */
.nav__links > .btn { display: none; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  align-items: center; justify-content: center;
}
.nav__burger span {
  display: block; width: 15px; height: 1.5px; background: #fff; border-radius: 2px;
  position: relative;
}
.nav__burger span::before,
.nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 15px; height: 1.5px;
  background: #fff; border-radius: 2px;
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after  { top:  5px; }

/* --------------------------------------------------------------------------
   8. Karten
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.4vw, 30px);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card--glass { background: var(--surface-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card--tight { padding: 8px; }
.card--round { border-radius: 30px; }
.card:hover  { border-color: var(--line-2); }

/* Rundes Portraet. Der quadratische Ausschnitt liegt schon richtig, deshalb
   reicht object-fit als Absicherung gegen abweichende Dateien. */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
  flex: none;
}

/* Karten, die nebeneinander in einer Rasterzeile stehen: gleicher Innenabstand
   und ein Button, der unabhaengig von der Textlaenge unten buendig sitzt. */
.grid--3 > .card,
.grid--4 > .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 14px;
}
.grid--3 > .card > .btn:last-child,
.grid--4 > .card > .btn:last-child { margin-top: auto; }
.grid--3 > .card > .card__icon,
.grid--4 > .card > .card__icon { margin-bottom: 2px; }

.card__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  margin-bottom: 16px;
}
.card__icon svg { width: 16px; height: 16px; }

/* Kleines Wertepaar: Label oben, Wert darunter, in einer eingelassenen Zeile */
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 14px;
}
.info-row svg { width: 15px; height: 15px; flex: none; color: var(--fg-dim); }
.info-row__value { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }

/* --------------------------------------------------------------------------
   9. Medien
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-thumb);
  background: var(--bg-thumb);
  border: 1px solid var(--line);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--9x16 { aspect-ratio: 9 / 16; }
.media--1x1  { aspect-ratio: 1 / 1;  }
.media--4x3  { aspect-ratio: 4 / 3;  }

.media img,
.media video,
.media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* Platzhalter, solange kein echtes Bild liegt */
.media--empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 12px, transparent 12px 24px),
    #121212;
}
.media--empty .media__hint {
  position: absolute;
  left: 12px; right: 12px; bottom: 14px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #808080; font-weight: 700; text-align: center; line-height: 1.5;
}

/* Vorstellungsvideo im ersten Bildschirm. Die Steuerelemente kommen vom
   Browser, deshalb hier nur Passform und Ecken. */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: var(--bg-thumb);
}

.media__play {
  position: absolute; inset: 0; margin: auto;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.media__play svg { width: 16px; height: 16px; margin-left: 2px; }
a:hover > .media__play, .media:hover .media__play { transform: scale(1.07); background: rgba(255,255,255,.24); }

/* Hinweis ueber einem Vorschaubild. Braucht einen Verlauf als Untergrund,
   sonst haengt der Text vom Motiv ab und wird unlesbar. */
.media__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.media__tag {
  position: absolute; left: 10px; top: 10px;
  background: rgba(35, 35, 35, .8);
  border: 1px solid var(--line-3);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.thumb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* fuer Projekte, von denen nur zwei Nebenmotive vorliegen */
.thumb-row--2 { grid-template-columns: repeat(2, 1fr); }

/* --------------------------------------------------------------------------
   10. Logo-Leiste
   -------------------------------------------------------------------------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.logos__item {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  padding: 16px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-mute);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.logos__item:hover { color: var(--fg); border-color: var(--line-2); }

/* --------------------------------------------------------------------------
   10a. Bewertungs-Pille
   Verweist auf das Google-Unternehmensprofil. Bewusst klein gehalten, zwei
   Bewertungen tragen keine grosse Flaeche.
   -------------------------------------------------------------------------- */
.review-pill {
  display: inline-flex;
  align-items: center;
  /* ohne justify-self streckt das Raster die Pille auf volle Breite */
  justify-self: center;
  gap: 10px;
  min-height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 8px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.review-pill:hover { background: var(--surface-3); border-color: var(--line-3); }
.review-pill__stars { display: inline-flex; gap: 2px; color: var(--fg); }
.review-pill__stars svg { width: 13px; height: 13px; }
.review-pill__score { font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.review-pill__text  { font-size: 12.5px; color: var(--fg-mute); }

@media (max-width: 420px) {
  .review-pill { padding: 8px 16px; gap: 8px; }
  .review-pill__text { font-size: 11.5px; }
}

/* --------------------------------------------------------------------------
   11. Akkordeon
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 12px; align-content: start; }

.acc {
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-inner);
  overflow: hidden;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.acc[data-open="true"] { background: var(--surface-2); border-color: var(--line-3); }

.acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.acc__chev {
  width: 14px; height: 14px; flex: none; color: var(--fg-mute);
  transition: transform var(--dur) var(--ease);
}
.acc[data-open="true"] .acc__chev { transform: rotate(180deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.acc[data-open="true"] .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner > div { padding: 0 20px 19px; color: var(--fg-mute); font-size: 14.5px; line-height: 1.65; }

/* --------------------------------------------------------------------------
   12. Ablauf-Schritte
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }

.steps__nav { position: relative; display: grid; gap: 4px; padding-left: 18px; }
.steps__nav::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 2px; background: var(--line); border-radius: 2px;
}
/* Bewegt wird ueber transform, nicht ueber top und height. Das laeuft auf der
   Grafikkarte und loest kein Neuberechnen des Layouts aus. */
.steps__marker {
  position: absolute; left: 0; top: 0; width: 2px; height: 1px;
  border-radius: 2px; background: #fff;
  transform-origin: top;
  transition: transform var(--dur) var(--ease);
}

.steps__btn {
  display: grid; gap: 1px;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  color: var(--fg-dim);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.steps__btn:hover { color: var(--fg-mute); }
.steps__btn[aria-selected="true"] { color: var(--fg); background: var(--surface-1); }
.steps__btn .label { color: inherit; opacity: .55; }
.steps__btn .h-md  { font-weight: 700; }

.steps__panel { display: none; align-content: start; gap: 20px; }
.steps__panel[data-active="true"] { display: grid; animation: fade-up var(--dur) var(--ease); }

.steps__crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); font-weight: 700; }
.steps__crumbs span[aria-current="true"] { color: var(--fg); }
.steps__crumbs i { font-style: normal; opacity: .35; }

/* --------------------------------------------------------------------------
   13. Zahlen
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
.stat__num { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat__num sup { font-size: .45em; font-weight: 700; vertical-align: super; color: var(--fg-dim); margin-left: 2px; }
.stat .label { margin-top: 7px; display: block; }

/* --------------------------------------------------------------------------
   14. Filter + Raster
   -------------------------------------------------------------------------- */
.filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  background: var(--bg-solid);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 5px;
}
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  padding: 9px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-mute);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.filter:hover { color: var(--fg); }
.filter[aria-pressed="true"] { background: #fff; color: var(--fg-invert); }

.case { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.case--portrait { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); align-items: center; }
/* width:100% ist noetig, weil justify-self ein Grid-Item sonst auf
   Inhaltsbreite schrumpfen laesst und die Seitenverhaeltnis-Boxen darin
   dann auf null zusammenfallen. */
.case--portrait .case__media { width: 100%; max-width: 300px; justify-self: center; }
.case__body { display: grid; gap: 16px; align-content: start; }
.case__media { display: grid; gap: 10px; }

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   15. Karussell
   -------------------------------------------------------------------------- */
.rail-outer { display: grid; gap: 20px; }
.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 clamp(150px, 20vw, 190px); scroll-snap-align: start; }

.rail-nav {
  display: inline-flex;
  gap: 6px;
  background: var(--bg-solid);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 6px;
  justify-self: start;
}
.rail-nav button {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--fg-mute);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rail-nav button:hover { background: var(--surface-2); color: var(--fg); }
.rail-nav svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   16. Formular
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 7px; }
.field > .label { color: var(--fg-mute); }

.input {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.input::placeholder { color: #6a6a6a; }
.input:focus { outline: none; border-color: var(--line-3); background: var(--surface-2); }
textarea.input { resize: vertical; min-height: 110px; }

/* Honigtopf gegen Bots. Nicht display:none, das ueberspringen manche Bots
   gezielt. Aus dem Sichtfeld schieben wirkt zuverlaessiger. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note--fehler {
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--line-3);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 14px;
}

.consent { display: flex; gap: 11px; align-items: flex-start; }
.consent input { margin-top: 1px; accent-color: #fff; width: 20px; height: 20px; flex: none; }

/* --------------------------------------------------------------------------
   17. Kontaktzeile
   -------------------------------------------------------------------------- */
.contact-line {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
a.contact-line:hover { border-color: var(--line-3); background: var(--surface-2); }
.contact-line__icon {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.contact-line__icon svg { width: 13px; height: 13px; }
.contact-line__value { font-size: 14.5px; font-weight: 600; }

/* --------------------------------------------------------------------------
   18. Fuss
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  border-radius: var(--r-shell) var(--r-shell) 0 0;
  padding: clamp(36px, 5vw, 56px) 0 30px;
  margin-top: var(--section-y);
}
.footer__grid { display: grid; grid-template-columns: 1.1fr .9fr 1.3fr; gap: 30px; align-items: start; }
.footer__logo { width: 190px; height: auto; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line);
  align-items: center; justify-content: space-between;
}
.footer a.small:hover { color: var(--fg); }

/* Die Fusszeilen-Links waren 22px hoch und lagen damit sogar unter dem
   AA-Minimum von 24px. Innenabstand statt Zwischenraum bringt sie auf 44px,
   ohne den Fuss optisch auseinanderzuziehen. Gilt fuer alle drei Spalten. */
.footer .stack { gap: 0; }
.footer .stack .label { margin-bottom: 10px; }
.footer .stack a.small,
.footer .stack p.small { display: flex; align-items: center; min-height: 44px; }
.footer__legal a.small { display: inline-flex; align-items: center; min-height: 44px; }

/* --------------------------------------------------------------------------
   18a. Feste Aktionsleiste, nur auf dem Handy
   Auf dem Desktop sitzt der Haupt-Button in der Navigation. Auf dem Handy war
   er im Burger-Menue versteckt, also war auf der ganzen Seite kein Kontaktweg
   sichtbar. Diese Leiste haelt Anruf und Anfrage dauerhaft in Daumenreichweite.
   -------------------------------------------------------------------------- */
.action-bar { display: none; }

/* Bricht das lange Wortpaar in der Hero-Ueberschrift nur auf grossen Schirmen */
.br-wide { display: inline; }

/* --------------------------------------------------------------------------
   19. Bewegung: sanftes Einblenden beim Scrollen
   -------------------------------------------------------------------------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Ohne JavaScript bleibt alles sichtbar. Das Ausblenden setzt erst die
   Klasse .has-js, die ein winziges Skript im Kopf der Seite vergibt. */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.has-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Umbrueche
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps   { grid-template-columns: 1fr; }
  .case, .case--portrait { grid-template-columns: 1fr; }
  .case--portrait .case__media { max-width: 300px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { padding: 8px 8px 8px 10px; gap: 10px; }
  .nav__logo { height: 26px; }
  .nav__links {
    position: absolute; left: 20px; right: 20px; top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    background: #232222;
    border: 1px solid var(--line-2);
    border-radius: 26px;
    padding: 10px;
    box-shadow: var(--shadow-deep);
  }
  .nav[data-open="true"] .nav__links { display: flex; }
  .nav__link { padding: 12px 16px; font-size: 15px; }
  .nav__burger { display: flex; }

  /* Daumengerechte Trefferflaechen ab hier. Auf dem Desktop bleiben die
     schlankeren Proportionen der Vorlage erhalten, dort zielt die Maus. */
  .btn { min-height: 44px; }
  .filter { min-height: 44px; }
  .nav__brand { min-height: 44px; }
  .rail-nav button { width: 44px; height: 44px; }
  .nav__cta { display: none; }
  .nav__links > .btn { display: inline-flex; margin-top: 6px; }
}

@media (max-width: 860px) {
  /* Aktionsleiste einblenden und Platz dafuer am Seitenende schaffen */
  .action-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    position: fixed;
    left: 12px; right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 70;
    padding: 8px;
    background: var(--bg-nav);
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  }
  body { padding-bottom: 92px; }

  /* Die Kundenleiste stapelte sich zu sechs vollbreiten Zeilen */
  .logos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .logos__item { padding: 14px 10px; font-size: 11.5px; text-align: center; }

  /* Filter bleiben in einer Zeile und werden seitlich gescrollt */
  .filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .shell { border-radius: 28px; }
  .thumb-row { gap: 8px; }
  html { scroll-padding-top: 96px; }

  /* Abstaende zusammenziehen. Auf dem Desktop tragen die grossen Abstaende
     die Ruhe der Vorlage, auf dem Handy erzeugen sie nur Leerlauf beim Wischen. */
  :root { --section-y: 58px; }
  .shell { padding: 22px 18px; }
  .card  { padding: 20px 18px; }

  /* Der erzwungene Umbruch liess "für" allein auf einer Zeile stehen */
  .br-wide { display: none; }
  .h-hero { font-size: clamp(34px, 9.4vw, 44px); }
}
