/* HANDY Line Linz – Stylesheet
   Layout: helle Fachgeschäft-Flächen (Weiß + kühles Papiergrau). Navy trägt die Marke
   als Band (Header, Windows-Karte, Footer). Orange ist nur für die eine Aktion pro Bereich.
   Überschriften immer linksbündig. Eine Schrift für alles: Plus Jakarta Sans. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;

  /* Marke – aus dem Logo */
  --navy: #14146A;
  --navy-deep: #0C0C48;
  --navy-soft: #2B2B8F;
  --navy-wash: #EFEFF8;
  --navy-line: #D9DAEC;
  --orange: #F29104;
  --orange-bright: #FFA51F;
  --orange-deep: #A85A00;
  --orange-wash: #FFF3DF;

  /* Flächen und Text */
  --white: #FFFFFF;
  --paper: #F5F5F9;
  --line: #E2E3EE;
  --ink: #0F1034;
  --muted: #565879;

  /* Funktion */
  --red: #D3200C;
  --red-deep: #A31205;
  --red-wash: #FDECE8;
  --green: #0B7A4B;
  --green-wash: #E4F4EB;

  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 64px;
  --wrap: 1180px;
  --r-card: 22px;
  --shadow: 0 1px 2px rgba(15, 16, 52, .05), 0 14px 34px -14px rgba(15, 16, 52, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { /* Band über dem Sticky-Header bei Geräten mit Notch */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--navy);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: .18em; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; text-align: left; color: var(--ink); }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--white); color: var(--navy);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }
.nw { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; } /* Sammlung der Icons, selbst unsichtbar */

/* Typo-Rollen */
/* Label: kleine Überzeile in Großbuchstaben. Zahl: Telefonnummern und Uhrzeiten mit gleich breiten Ziffern. */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
  color: var(--navy-soft); display: flex; align-items: center; gap: .6em; flex-wrap: wrap;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange); flex: none; }
.h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.9rem); font-weight: 800; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.sec { padding-block: clamp(64px, 9vw, 116px); }
.sec--paper { background: var(--paper); }
.sec__head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: -.01em; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .18s, border-color .18s, transform .18s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--navy-deep); }
.btn--primary:hover { background: var(--orange-bright); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); }
.btn--ghost { background: var(--white); border-color: var(--navy-line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--onnavy { background: transparent; border-color: rgba(255, 255, 255, .38); color: var(--white); }
.btn--onnavy:hover { border-color: var(--white); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn.is-off {
  background: var(--paper); border-color: var(--line); color: var(--muted); cursor: default; pointer-events: none;
}
.on-navy .btn.is-off { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .72); }
.textlink { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--navy); }
.textlink:hover { text-decoration: underline; }

/* ───────── 1. Warn-Laufband ───────── */
.alert {
  position: relative; z-index: 2; display: flex; align-items: stretch; min-height: 46px;
  background: linear-gradient(90deg, var(--red-deep) 0%, var(--red) 38%, #E8520A 78%, var(--orange) 100%);
  color: var(--white);
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.alert__icon {
  flex: none; width: 52px; display: grid; place-items: center; position: relative;
  background: var(--red-deep); box-shadow: 8px 0 14px -6px rgba(0, 0, 0, .35); z-index: 1;
}
.alert__icon .i { width: 24px; height: 24px; stroke-width: 2.2; position: relative; animation: alert-blink 1.4s ease-in-out infinite; }
.alert__icon::before {
  content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8); animation: alert-ring 1.4s ease-out infinite;
}
@keyframes alert-ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
@keyframes alert-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .72; transform: scale(.92); } }
.alert__track {
  flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.alert__run { display: flex; flex: none; width: max-content; animation: alert-run 44s linear infinite; }
.alert__track:hover .alert__run, .alert__track:focus-within .alert__run, .alert:hover .alert__run { animation-play-state: paused; }
@keyframes alert-run { to { transform: translateX(-50%); } }
.alert__list { display: flex; flex: none; align-items: center; }
.alert__list li {
  display: flex; align-items: center; white-space: nowrap;
  font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.alert__list li::after { content: ""; width: 6px; height: 6px; margin-inline: 18px; background: var(--white); opacity: .75; transform: rotate(45deg); }
.alert__list .alert__tag {
  background: var(--white); color: var(--red-deep); padding: 3px 9px; border-radius: 4px; letter-spacing: .08em;
}
.alert__list .alert__tag::after { display: none; }
.alert__list .alert__tag + li { margin-left: 14px; }
.alert__cta {
  flex: none; display: flex; align-items: center; gap: .4em; padding: 0 16px; margin: 6px 8px 6px 0; border-radius: 999px;
  background: var(--white); color: var(--red-deep); font-weight: 800; font-size: .82rem; text-decoration: none; white-space: nowrap;
  box-shadow: -8px 0 14px -6px rgba(0, 0, 0, .28);
}
.alert__cta:hover { background: var(--orange-wash); }
.alert__cta .i { width: 1em; height: 1em; stroke-width: 2.4; }
@media (max-width: 420px) {
  .alert__icon { width: 44px; }
  .alert__cta { padding: 0 12px; font-size: .76rem; }
}

/* ───────── Header ───────── */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy); color: var(--white);
}
.header__row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
/* Reicht die Zeile nicht für alles, gibt unter 980 px das Logo nach und ab 980 px das Menü. Status, Button und die 20 px
   Seitenrand bleiben. Vorher ragte die Kopfzeile dann rechts über den Rand, am weitesten im geschlossenen Zustand:
   „Geschlossen“ und „Nachricht“ brauchen 37 px mehr als „Geöffnet“ und „Anrufen“. */
.logo { display: block; flex: 0 1 auto; min-width: 0; line-height: 0; border-radius: 4px; }
.logo img { width: 172px; height: auto; }
.nav { display: none; margin-left: auto; }
/* Jeder Menüpunkt hat links und rechts 12 px Innenabstand: 4 px fest und 8 px in einer Spalte, die schrumpfen darf.
   Fehlt Platz, verteilt das Raster ihn gleichmäßig auf alle Punkte. Passt alles, liegt das Menü wie vorher. */
.nav ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min-content, max-content); gap: 4px; }
.nav a {
  display: grid; grid-template-columns: minmax(0, 8px) auto minmax(0, 8px);
  padding: 8px 4px; border-radius: 999px; color: rgba(255, 255, 255, .86);
  text-decoration: none; font-size: .93rem; font-weight: 600; white-space: nowrap;
}
.nav a::before, .nav a::after { content: ""; }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.header__side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.status {
  display: inline-flex; align-items: center; gap: .55em; font-size: .95rem; font-weight: 500;
  line-height: 1.5; font-variant-numeric: tabular-nums;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #A9ABC6; flex: none; }
.status.is-open::before { background: #2FD07F; box-shadow: 0 0 0 4px rgba(47, 208, 127, .22); }
.status.is-soon::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 145, 4, .25); }
.status.is-closed::before { background: #FF6A5C; }
.header .status { color: rgba(255, 255, 255, .92); white-space: nowrap; font-size: .86rem; }
.header .status .status__long { display: none; margin-left: -.55em; }
.menu-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .3);
  background: transparent; color: var(--white); cursor: pointer;
}
.menu-btn .i { width: 22px; height: 22px; }
.header__call { display: none; }
@media (max-width: 400px) { .logo img { width: 142px; } .header__row { gap: 10px; } .header__side { gap: 8px; } }
.mnav { background: var(--navy-deep); border-top: 1px solid rgba(255, 255, 255, .12); }
.mnav ul { display: grid; padding-block: 8px 16px; }
.mnav a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mnav li:last-child a { border-bottom: 0; }
@media (min-width: 980px) {
  .nav { display: block; }
  .header__side { margin-left: 8px; }
  .menu-btn, .mnav { display: none !important; }
  .header__call { display: inline-flex; }
  .logo { flex: none; }
  .logo img { width: 190px; }
}
/* Ab 1240 px steht der Status ausgeschrieben da. Die Zeile ist dort höchstens 1180 px breit und hat bis zum Fensterrand
   Luft, darum bleibt das Menü ab hier starr. */
@media (min-width: 1240px) { .header .status .status__long { display: inline; } .nav { flex-shrink: 0; } }

/* ───────── 2. Hero ───────── */
/* 3D-Ebene: liegt nur über dem Hero und fängt keine Klicks ab. Darunter steht immer das Standbild.
   Das Skript legt den Canvas genau über das Standbild und zeigt ihn erst, wenn sein erstes Bild fertig ist.
   Ohne 3D (kein WebGL, schwaches Gerät, weniger Bewegung gewünscht) bleibt einfach das Standbild stehen. */
.hero__gl { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__gl canvas { position: absolute; left: 0; top: 0; width: 0; height: 0; visibility: hidden; }
.has-3d-hero .hero__gl canvas { visibility: visible; }
.has-3d-hero .hero__media img { visibility: hidden; }

.hero {
  position: relative;
  background:
    radial-gradient(60% 80% at 82% 38%, var(--navy-wash) 0%, rgba(239, 239, 248, 0) 70%),
    var(--white);
}
.hero__grid { display: grid; gap: 28px; padding-block: 40px 28px; }
.hero__text { display: grid; gap: 22px; align-content: center; position: relative; z-index: 2; min-width: 0; }
.hero h1 { font-size: clamp(2.55rem, 1.35rem + 5.6vw, 4.7rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.hero h1 em { font-style: normal; color: var(--navy); }
.hero .lead { max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__status { color: var(--ink); display: flex; align-items: baseline; }
.hero__media { display: grid; place-items: center; min-width: 0; }
.hero__media img { width: min(100%, 430px); height: auto; aspect-ratio: 785 / 1048; object-fit: contain; } /* festes Kästchen, egal welche Bildgröße der Browser wählt */
.proof { display: grid; gap: 10px; padding-top: 6px; }
.proof li { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: var(--ink); }
.proof .i { color: var(--green); width: 20px; height: 20px; stroke-width: 2.2; }
@media (min-width: 720px) { .proof { display: flex; flex-wrap: wrap; gap: 10px 26px; } }
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center;
    padding-block: 56px 48px; min-height: min(700px, calc(100vh - 110px));
  }
  /* Das Bild füllt den Platz der Spalte, ohne ihn zu vergrößern. So ist der Hero mit und ohne 3D gleich hoch. */
  .hero__media { position: relative; min-height: 540px; align-self: stretch; }
  .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
}

/* Bauteile: ruhiges Standbild mit fünf Markierungen */
.teardown { background: var(--white); border-top: 1px solid var(--line); }
.teardown__inner { display: grid; gap: 28px; padding-block: 56px; }
.teardown__media { display: grid; place-items: center; min-width: 0; }
.teardown__text { display: grid; gap: 18px; align-content: center; min-width: 0; position: relative; z-index: 0; }
.anno { --pad: 25%; position: relative; width: min(100% + 16px, 420px); }
/* Bühne: das Kästchen, in dem das Handy steht. Bild und 3D-Canvas ragen etwas darüber hinaus (Platz für den
   Schatten und fürs Neigen) und liegen deckungsgleich übereinander. Der Canvas übernimmt, sobald er bereit ist. */
.anno__stage { position: relative; width: calc(100% - 2 * var(--pad)); aspect-ratio: 637 / 1250; margin-inline: auto; }
.anno__stage img, .anno__stage canvas {
  position: absolute; left: 50%; top: 50%; width: 150%; height: 120%; max-width: none;
  transform: translate(-50%, -50%); pointer-events: none;
}
.anno__stage canvas { visibility: hidden; }
.has-3d-teile .anno__stage canvas { visibility: visible; }
.has-3d-teile .anno__stage img { visibility: hidden; }
.anno__marks { position: absolute; inset: 0; }
/* Ruhelage der Markierungen im Standbild. Läuft das 3D-Handy, setzt das Skript --x und --y laufend neu,
   damit die Linien beim Neigen am Gerät haften. Die Werte hier schreibt „npm run stills“. */
/* marks:start */
.mark[data-mark="kamera"] { --x: 0.5958; --y: 0.0666; }
.mark[data-mark="display"] { --x: 0.2509; --y: 0.2176; }
.mark[data-mark="platine"] { --x: 0.7184; --y: 0.4141; }
.mark[data-mark="akku"] { --x: 0.2905; --y: 0.5585; }
.mark[data-mark="ladebuchse"] { --x: 0.4656; --y: 0.9712; }
/* marks:end */
.mark {
  --at: calc(var(--pad) + var(--x) * (100% - 2 * var(--pad)));
  position: absolute; top: calc(var(--y) * 100%); height: 0; display: flex; align-items: center; cursor: default;
}
.mark--r { left: var(--at); right: 0; }
.mark--l { left: 0; right: calc(100% - var(--at)); flex-direction: row-reverse; }
.mark i {
  flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--navy);
  box-shadow: 0 0 0 3px var(--white); transition: background-color .18s;
}
.mark--r i { margin-left: -4.5px; }
.mark--l i { margin-right: -4.5px; }
.mark b { flex: 1; min-width: 6px; height: 1px; background: #9A9CCB; transition: background-color .18s; }
.mark span {
  flex: none; padding: 4px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--navy-line);
  font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; color: var(--navy);
  white-space: nowrap; transition: border-color .18s, background-color .18s;
}
.mark.is-active i { background: var(--orange); }
.mark.is-active b { background: var(--orange); }
.mark.is-active span { border-color: var(--navy); background: var(--navy-wash); }
.parts { display: grid; margin-top: 6px; border-top: 1px solid var(--line); }
.parts li {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: start;
  padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.parts li::before { /* Hervorhebung als Fläche dahinter, damit sich kein Text verschiebt */
  content: ""; position: absolute; inset: 0 -10px; z-index: -1; border-radius: 12px; background: var(--paper);
  opacity: 0; transition: opacity .18s;
}
.parts .parts__ico {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-wash); color: var(--navy); transition: background-color .18s, color .18s;
}
.parts h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; align-self: end; }
.parts p { color: var(--muted); font-size: .96rem; line-height: 1.45; }
.parts li.is-active::before { opacity: 1; }
.parts li.is-active .parts__ico { background: var(--navy); color: var(--white); }
@media (min-width: 520px) { .anno { --pad: 23%; width: min(100%, 540px); } .mark span { font-size: .72rem; padding: 5px 10px; } }
@media (min-width: 1024px) {
  .teardown__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 72px; }
}

/* ───────── 3. Support-Hub + 4. Ersatzteile ───────── */
.hub__grid { display: grid; gap: 28px; }
.hub__main { min-width: 0; display: grid; gap: 20px; align-content: start; }
@media (min-width: 1024px) { .hub__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; } }

.search { position: relative; }
.search .i { position: absolute; left: 20px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--navy); pointer-events: none; }
.search input {
  width: 100%; height: 64px; padding: 0 20px 0 56px; border-radius: 18px; border: 1.5px solid var(--navy-line);
  background: var(--white); font-size: 1.08rem; font-weight: 600; box-shadow: var(--shadow); appearance: none;
}
.search input::placeholder { color: #8587A6; font-weight: 500; }
.search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(20, 20, 106, .14); }
.hits { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .92rem; color: var(--muted); min-height: 36px; }
.hits button {
  border: 1px solid var(--navy-line); background: var(--white); color: var(--navy); border-radius: 999px; padding: 7px 14px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
}
.hits button:hover { border-color: var(--navy); }
.hits button b { font-weight: 800; }

/* Sechs Kacheln: am Handy 2 mal 3, ab 720 px 3 mal 2. In einer Reihe wäre eine Kachel zu schmal für „Ladebuchse“. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  display: grid; gap: 6px; justify-items: start; align-content: start; text-align: left; padding: 16px; border-radius: 18px;
  background: var(--white); border: 1.5px solid var(--line); cursor: pointer; min-width: 0;
  transition: border-color .18s, background-color .18s, color .18s, box-shadow .18s;
}
.tile .i { width: 26px; height: 26px; color: var(--navy); margin-bottom: 4px; }
.tile strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.tile span { font-size: .83rem; line-height: 1.35; color: var(--muted); }
.tile:hover { border-color: var(--navy); }
.tile[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.tile[aria-selected="true"] .i { color: var(--orange); }
.tile[aria-selected="true"] span { color: rgba(255, 255, 255, .8); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.help { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.help__body { display: grid; gap: 24px; padding: clamp(20px, 3vw, 32px); }
.help h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; }
.help__cols { display: grid; gap: 24px; }
@media (min-width: 720px) { .help__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; } }
.help h4 { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--navy-soft); margin-bottom: 10px; }
.help p { color: var(--ink); }
.steps { display: grid; gap: 12px; counter-reset: s; }
/* Die Nummer steht links im Einzug. So bleibt der Text ein Absatz, auch wenn ein Link darin steht. Als Raster wurde ein
   Link zu einer eigenen Zelle und landete in der 30 px schmalen Nummernspalte. */
.steps li { counter-increment: s; position: relative; min-height: 30px; padding-left: 42px; line-height: 1.5; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-wash); color: var(--navy); font-weight: 700; font-size: .88rem; font-variant-numeric: tabular-nums;
}
.steps strong { display: block; font-weight: 700; }
.note {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 16px;
  padding: 12px 14px; border-radius: 14px; background: var(--red-wash); color: var(--red-deep); font-size: .95rem; font-weight: 600; line-height: 1.45;
}
.note .i { width: 22px; height: 22px; margin-top: 1px; }
/* Action-Leiste unter jeder Karte: oben „Direkt klären für: …“ mit einer Zeile zur Erreichbarkeit, darunter die Buttons
   über die volle Breite. Alles steht bei jeder Breite untereinander. So bekommt der Text nie eine schmale Spalte neben
   den Buttons, egal wie lang Hinweis und Beschriftungen sind. */
.help__foot {
  display: grid; gap: 4px; padding: clamp(18px, 3vw, 24px) clamp(20px, 3vw, 32px); background: var(--navy-wash); border-top: 1px solid var(--navy-line);
}
.help__for { font-weight: 700; }
.help__for strong { font-weight: 800; color: var(--navy); }
.help__foot .reach__note { max-width: none; margin-bottom: 4px; font-size: .95rem; font-weight: 500; color: var(--muted); }
/* Zwei gleich breite Buttons. Passen sie nicht nebeneinander, stehen sie untereinander und dürfen umbrechen. */
.help__foot .reach .btn, .help__foot .reach .btn.is-off { flex: 1 1 13rem; padding: 10px 16px; white-space: normal; text-align: center; justify-content: center; }

/* Erreichbarkeits-Baustein (Anruf nur zu Öffnungszeiten) */
.reach { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.reach .btn { max-width: 100%; }
.reach .btn.is-off { white-space: normal; text-align: left; justify-content: flex-start; padding-block: 10px; }
.reach__note { flex: 1 1 100%; font-size: .98rem; font-weight: 600; line-height: 1.45; color: var(--ink); max-width: 46ch; }
.reach__num { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.on-navy .reach__note { color: var(--white); }

/* Lagerliste: ruhige Karte, normales Scrollen */
.stock { display: grid; gap: 14px; min-width: 0; }
.stock > * { min-width: 0; }
.stock__head h3 { font-size: 1.3rem; font-weight: 800; }
.stock__head p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.stock__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.stock__meta { padding: 14px 20px 12px; border-bottom: 1px solid var(--line); font-size: .86rem; font-weight: 500; color: var(--muted); }
.stock__scroll {
  height: 372px; overflow-y: auto; padding: 0 20px 8px; scrollbar-width: thin; scrollbar-color: var(--navy-line) transparent;
  background: /* weicher Rand oben und unten, solange es noch weitergeht */
    linear-gradient(var(--white) 40%, rgba(255, 255, 255, 0)) top / 100% 28px no-repeat local,
    linear-gradient(rgba(255, 255, 255, 0), var(--white) 60%) bottom / 100% 28px no-repeat local,
    linear-gradient(rgba(15, 16, 52, .09), rgba(15, 16, 52, 0)) top / 100% 10px no-repeat scroll,
    linear-gradient(rgba(15, 16, 52, 0), rgba(15, 16, 52, .09)) bottom / 100% 10px no-repeat scroll;
}
.stock__scroll:focus-visible { outline-offset: -3px; border-radius: 0 0 var(--r-card) var(--r-card); }
.stock__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.35; }
.stock__list li > span:first-child { min-width: 0; }
.stock__list li:last-child { border-bottom: 0; }
.stock__list li.stock__group {
  display: block; padding: 20px 0 8px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  line-height: 1.4; color: var(--navy-soft);
}
.stock__list li.stock__group:first-child { padding-top: 16px; }
.pill { flex: none; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.pill--in { background: var(--green-wash); color: #075A37; }
.pill--order { background: var(--orange-wash); color: #8A4A00; }
.stock__legend { font-size: .86rem; color: var(--muted); }
@media (min-width: 1024px) { .stock { position: sticky; top: calc(var(--header-h) + 24px); } .stock__scroll { height: 430px; } }

/* ───────── 5. Marken ───────── */
.brands { border-block: 1px solid var(--line); background: var(--white); padding-block: 34px; }
.brands__row { display: grid; gap: 18px; }
.brands h2 { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--muted); }
.brands ul { display: flex; flex-wrap: wrap; gap: 10px 34px; }
.brands li { font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem); font-weight: 800; letter-spacing: -.035em; color: #3A3C68; }
@media (min-width: 1024px) { .brands__row { grid-template-columns: 220px minmax(0, 1fr); align-items: center; } }

/* ───────── Leistungen ───────── */
.bento { display: grid; gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(22px, 3vw, 30px);
  display: grid; gap: 12px; align-content: start; min-width: 0;
}
.card h3 { font-size: 1.32rem; font-weight: 800; }
.card p { color: var(--muted); }
.card__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-wash); color: var(--navy); margin-bottom: 4px; }
.card__ico .i { width: 24px; height: 24px; }
.win {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); border: 0;
  border-radius: var(--r-card); padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; min-width: 0;
}
.win h3 { color: var(--white); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); font-weight: 800; }
.win h3 em { font-style: normal; color: var(--orange); }
.win__tag {
  justify-self: start; display: inline-flex; align-items: center; gap: .5em; padding: 6px 12px; border-radius: 6px;
  background: var(--red); color: var(--white); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
.win__lead { color: rgba(255, 255, 255, .86); font-size: 1.1rem; max-width: 54ch; }
.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; line-height: 1.4; }
.checks .i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--orange); stroke-width: 3; }
.checks b { font-weight: 700; }
.checks span { color: rgba(255, 255, 255, .78); }
.checks li.is-gift { padding: 12px 14px; margin-left: -14px; border-radius: 14px; background: rgba(242, 145, 4, .16); }
.checks li.is-gift .i { background: var(--orange); color: var(--navy-deep); }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr 1fr; gap: 14px 28px; } .checks li.is-gift { grid-column: 1 / -1; } }
.win__spec { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .78); border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 18px; }
.win__spec b { color: var(--orange); font-weight: 600; }
.bento__side { display: grid; gap: 16px; }
@media (min-width: 720px) { .bento__side { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .bento { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .bento__side { grid-template-columns: 1fr; }
}

/* ───────── 6. Mensch statt Bot ───────── */
.human__grid { display: grid; gap: 32px; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 460px; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% 100%, var(--navy-line) 0%, rgba(217, 218, 236, 0) 70%),
    linear-gradient(180deg, var(--navy-wash), var(--paper));
  border: 1px solid var(--navy-line); display: grid; place-items: end center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__figure { width: 78%; color: #B9BBDA; }
.portrait__figure svg { width: 100%; height: auto; }
.portrait__tag {
  position: absolute; left: 16px; top: 16px; background: var(--white); border: 1px solid var(--navy-line); border-radius: 8px; padding: 6px 10px;
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--navy);
}
.portrait__name {
  position: absolute; left: 16px; right: 16px; bottom: 16px; background: var(--white); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.portrait__name b { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.portrait__name span { font-size: .88rem; color: var(--muted); }
.human__text { display: grid; gap: 22px; align-content: center; min-width: 0; }
.quote { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; color: var(--ink); }
.quote em { font-style: normal; color: var(--navy); background: linear-gradient(transparent 62%, rgba(242, 145, 4, .42) 62%); }
.nots { display: flex; flex-wrap: wrap; gap: 10px; }
.nots li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); font-weight: 700; font-size: .95rem;
}
.nots .i { color: var(--red); width: 18px; height: 18px; stroke-width: 2.2; }
@media (min-width: 900px) { .human__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; } }

/* ───────── 8. Vertrauen ───────── */
.trust { display: grid; gap: 16px; }
@media (min-width: 860px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust .card { display: flex; flex-direction: column; align-items: flex-start; }
.trust .card .textlink { margin-top: auto; padding-top: 6px; }
.trust .card--seal { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.trust .card--seal h3 { color: var(--white); }
.trust .card--seal p { color: rgba(255, 255, 255, .8); }
.seal { width: 104px; height: 104px; border-radius: 50%; margin-bottom: 2px; }
.card__meta { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--navy-soft); }
.card--seal .card__meta { color: var(--orange); }

/* ───────── 7. Kontakt ───────── */
.contact { display: grid; gap: 16px; }
@media (min-width: 980px) { .contact { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: stretch; } }
.now { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; display: grid; align-content: start; }
.now > *, .contact > * { min-width: 0; }
.now__top { padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; }
.now__state { display: grid; gap: 4px; }
.now__state .status { color: var(--muted); }
.now__state strong { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.hours { border-top: 1px solid var(--line); padding: clamp(18px, 3vw, 26px) clamp(22px, 3vw, 32px); display: grid; gap: 2px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.hours dt { font-weight: 600; }
.hours dd { font-weight: 600; white-space: nowrap; }
.hours .is-today { background: var(--navy-wash); color: var(--navy); }
.hours .is-today dt::after { content: "heute"; margin-left: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep); }
.hours .is-shut dd { color: var(--muted); }
.place { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--white); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.place__info { padding: clamp(20px, 3vw, 28px) clamp(22px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.place address { font-style: normal; font-size: 1.3rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
.place__lines { display: grid; gap: 8px; border-top: 1px solid var(--line); padding: clamp(18px, 3vw, 24px) clamp(22px, 3vw, 32px); }
.place__lines li { display: flex; gap: 12px; align-items: center; min-width: 0; }
.place__lines .i { color: var(--navy); }
.place__lines a, .place__lines span { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.map {
  position: relative; min-height: 300px; border-top: 1px solid var(--line); display: grid; place-items: center; text-align: left;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px;
}
.map__ask { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 20px; display: grid; gap: 12px; max-width: 360px; box-shadow: var(--shadow); }
.map__ask p { font-size: .88rem; color: var(--muted); line-height: 1.45; }
/* Der Button füllt die Breite der Abfrage, sein Text steht mittig. Darum genügen 10 px fester Seitenabstand, und der Text
   darf umbrechen. Mit 24 px und einer Zeile war die Abfrage auf schmalen Handys breiter als der Kasten und rechts abgeschnitten. */
.map__ask .btn { padding-inline: 10px; white-space: normal; }
.map__pin { position: absolute; left: 50%; top: 50%; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ───────── Footer ───────── */
.footer { background: var(--navy); color: rgba(255, 255, 255, .84); padding-block: 56px 28px; }
.footer a { color: var(--white); }
.footer__grid { display: grid; gap: 32px; }
.footer__brand { display: grid; gap: 14px; align-content: start; }
.footer__brand img { width: 200px; }
.footer__brand p { max-width: 34ch; font-size: .98rem; }
.footer h2 { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--orange); margin-bottom: 12px; }
.footer li { padding: 3px 0; font-size: .98rem; font-variant-numeric: tabular-nums; }
.footer li a { text-decoration: none; }
.footer li a:hover { text-decoration: underline; }
.footer .num { font-weight: 600; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 10px; font-size: .82rem; color: rgba(255, 255, 255, .68); }
@media (min-width: 860px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__legal { grid-template-columns: auto minmax(0, 1fr); gap: 32px; }
  .footer__legal p:last-child { text-align: right; }
}

/* Feste Aktionsleiste am Handy */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; gap: 10px; backdrop-filter: blur(10px);
}
.dock .btn { flex: 1; min-height: 48px; padding: 0 12px; font-size: .95rem; }
.dock .reach { flex: 1; flex-wrap: nowrap; }
.dock .reach__note, .dock .reach .is-off { display: none; }
body { padding-bottom: 72px; }
@media (min-width: 980px) { .dock { display: none; } body { padding-bottom: 0; } }

/* Rechtstexte */
.legal { padding-block: clamp(40px, 6vw, 80px); }
.legal__body { max-width: 74ch; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; font-weight: 800; margin-top: 22px; }
.legal h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.015em; margin-top: 8px; }
.legal ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.legal dl { display: grid; gap: 0; border-top: 1px solid var(--line); }
.legal dl div { display: grid; gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal dt { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--muted); }
.legal dd { font-weight: 600; }
@media (min-width: 720px) { .legal dl div { grid-template-columns: 240px minmax(0, 1fr); align-items: baseline; } }
.todo { background: var(--orange-wash); color: var(--orange-deep); border-radius: 6px; padding: 1px 7px; font-size: .94em; font-weight: 600; }
.legal__hint { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: .95rem; color: var(--muted); }

/* Nur in der Vorschau: Schalter für den Öffnungszeiten-Zustand */
.demo {
  position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ink); color: var(--white);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; box-shadow: var(--shadow);
}
.demo span { padding: 0 8px 0 10px; text-transform: uppercase; opacity: .8; }
.demo button { border: 0; background: transparent; color: var(--white); border-radius: 999px; padding: 6px 10px; cursor: pointer; font: inherit; }
.demo button[aria-pressed="true"] { background: var(--orange); color: var(--navy-deep); }
@media (min-width: 980px) { .demo { bottom: 16px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .alert__run { animation: none; }
  .alert__track { overflow-x: auto; }
  .alert__list[aria-hidden="true"] { display: none; }
  .alert__icon .i, .alert__icon::before { animation: none; }
  .btn, .tile, .parts li::before, .parts .parts__ico, .mark i, .mark b, .mark span { transition: none; }
}
