/* home.css
   Diese Datei stylt ausschliesslich die Startseite (/, index.html). Sie wird
   nach /style.css geladen und ueberschreibt dort per Kaskade gezielt einzelne
   Regeln fuer Startseiten-eigene Klassen. Sie enthaelt die Direction-D-
   Komponenten (Rechner, Wizard, Deck, Slot-Picker, Vergleichstabelle, Agentur-
   Block) sowie die Overrides von Startseiten-Klassen, die schon in style.css
   existieren (.hero__grid, .work-card:nth-child(even), .compare-table).
   style.css muss vor dieser Datei geladen sein, sonst fehlen die Basiswerte
   (Tokens, Reset), auf denen diese Regeln aufbauen. Diese Datei darf niemals
   eine Regel fuer eine Unterseiten-Klasse bekommen, siehe SPEC-GRADUATION-
   2026-09-07.md Abschnitt 3.
*/

:root {
  /* Neu fuer D: Text und Trennlinien auf dem schwarzen Agentur-Block,
     benannt statt jedes Mal ausgeschrieben. Werte 1:1 aus der Live-Seite
     uebernommen (dort bisher nur als Inline-Wert in .agency__founder und
     .agency__lede), hier nur zum Token gemacht. */
  --hairline-on-ink: rgba(250, 250, 250, 0.14);
  --muted-on-ink: rgba(250, 250, 250, 0.6);
}

/* Duplikat der Regel in style.css, absichtlich: style.css ist laut _headers
   bis zu eine Stunde gecacht, home.css ist beim ersten Deploy eine neue URL.
   Ohne die Kopie zeigt ein Besucher mit altem style.css eine Stunde lang
   die Runde-2-Fehler (drei Buttons im letzten Schritt, "Empfehlung aus dem
   Rechner" auf allen drei Preiszeilen). Sobald beide Dateien frisch sind,
   ist die Kopie wirkungslos. */
[hidden] { display: none !important; }

/* .hero__grid ist ueber .container mit margin-inline: auto ein Flex-Item von
   .hero (Cross-Achse: Breite). Auto-Margins in der Cross-Achse schalten
   align-items: stretch ab (Flexbox-Spezifikation), darum faellt die Breite
   sonst auf fit-content zurueck. Der mobile Scroll-Snap-Streifen in
   .hero__mockups hat Kinder mit flex-shrink: 0 und will absichtlich breiter
   sein als der Viewport (dafuer ist overflow-x: auto da); ohne width: 100%
   hier wird diese Inhaltsbreite bis zu .hero hochgereicht und reisst die
   ganze Seite horizontal auf. min-width: 0 zusaetzlich, damit nichts die
   Schrumpfung verhindert. */
.hero__grid { width: 100%; min-width: 0; }

.work-card:nth-child(even) { translate: none; } /* Runde 1: drei Spalten, keine versetzte Karte; style.css behaelt die Live-Regel fuer sich */

/* .compare/.compare-table/.compare-accordion (Vergleichstabelle) ist sitewide
   in style.css umgezogen (Pass B, Vergleichstabelle 2026-09): das war die
   hier genehmigte, bessere Fassung, style.css hatte noch die alte, unschoene
   Variante mit Vollraster. Hier absichtlich leer. */

/* ============================================================
   NEUE KOMPONENTEN UND OVERRIDES (Richtung D)
   Ab hier: alles, was ueber die Live-Seite hinausgeht oder eine
   Live-Regel gezielt ueberschreibt. Reihenfolge folgt dem
   Umsetzungsplan, PLAN-D-2026-09-07.md, Phase 2, Schritt 3.
   ============================================================ */

/* --- 1. Section-Head: rechter Slot ist nie mehr leer --- */
.section-head { flex-wrap: wrap; }
.section-head__aside {
  max-width: 30rem;
  color: var(--muted);
  font-weight: 350;
  font-size: 1.0625rem;
  margin-top: 0; /* ueberschreibt .wk-lede margin-top, wenn beide Klassen zusammenstehen */
}
@media (min-width: 720px) {
  .section-head__aside { text-align: right; }
}
@media (max-width: 719px) {
  .section-head__aside { text-align: left; flex-basis: 100%; }
}
.section-head .billing-toggle {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0;
}

/* --- 2. Hero: Zweispalter, CTAs, Chips, Gruenderzeile, Mockup-Stapel --- */
@media (min-width: 980px) {
  .hero {
    min-height: min(100dvh, 56rem);
    padding-block: 8rem var(--space-hero-bottom);
  }
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    column-gap: clamp(2rem, 5vw, 4rem);
  }
  /* Die Live-Formel fuer .display-xl geht von einer vollbreiten Spalte aus.
     hero__copy bekommt hier nur ~57,5% der Containerbreite (Rechnerspalte
     nebenan), darum bricht "Webagentur"/"Vorarlberg." sonst mitten im Wort
     (overflow-wrap: break-word greift). Eigene, kleinere Formel nur fuer
     diesen Zweispalter-Kontext, geprueft gegen die Spaltenbreite bei 980
     bis 1440px+ (container-max deckelt die Spalte oberhalb von 1440px). */
  .hero__title { font-size: min(7vw, clamp(2.5rem, 5.5vw, 6.5rem)); hyphens: manual; }
}
@media (max-width: 979px) {
  .hero {
    min-height: auto;
    padding-block: 6.5rem var(--space-hero-bottom);
  }
}
.hero__meta { display: grid; gap: 1.25rem; align-items: start; }
.hero__sub { max-width: 32rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  border: 1px solid var(--hairline); background: var(--surface);
  border-radius: 999px; padding: 0.45em 0.9em;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
}
.chip svg { width: 14px; height: 14px; flex-shrink: 0; }
a.chip { transition: color 0.2s ease, border-color 0.2s ease; }
a.chip:hover { color: var(--ink); border-color: var(--ink); }
.hero__founders { display: flex; align-items: center; gap: 0.85rem; }
.hero__founders p, .hero__founders-text { font-size: 0.8125rem; font-weight: 350; color: var(--muted); max-width: 22rem; }
.hero__founders-avatars { display: inline-flex; flex-shrink: 0; }
.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-size: 0.6875rem; font-weight: 700;
  flex-shrink: 0;
}
/* Ueberlappung nur so weit, dass die Initialen des vorderen Kreises lesbar
   bleiben. Bei -0.85rem verdeckte der zweite Kreis rund 40 Prozent des ersten
   und schnitt das "F" von "FS" ab. */
.hero__founders .monogram + .monogram { margin-left: -0.5rem; border: 2px solid var(--paper); }
.hero__mockups { position: relative; }
@media (min-width: 980px) {
  .hero__mockups { min-height: 26rem; }
  .browser-frame { width: min(72%, 26rem); }
  .hero__mockups .browser-frame { position: absolute; }
  .hero__mockups .browser-frame:nth-child(1) { top: 0; left: 0; z-index: 3; }
  .hero__mockups .browser-frame:nth-child(2) { top: 12%; left: 20%; z-index: 2; opacity: 0.92; }
  .hero__mockups .browser-frame:nth-child(3) { top: 24%; left: 38%; z-index: 1; opacity: 0.85; }

  /* Runde 2, Item 1: deck-shuffle. Jeder Rahmen steht 3,2s in seiner Position,
     dann 0,8s Umzug in die naechste; z-index kippt in der Mitte des Umzugs,
     der vordere Rahmen taucht sichtbar unter. Negative animation-delay stellt
     Rahmen 2 und 3 bei t=0 sofort auf ihre Slots, deckungsgleich mit der
     statischen Basis oben, kein Sprung beim Laden. */
  @keyframes deck-shuffle {
    0%, 26.66%     { top: 0;   left: 0;   z-index: 3; opacity: 1; }
    33.33%, 60%    { top: 24%; left: 38%; z-index: 1; opacity: 0.85; }
    66.66%, 93.33% { top: 12%; left: 20%; z-index: 2; opacity: 0.92; }
    100%           { top: 0;   left: 0;   z-index: 3; opacity: 1; }
  }
  .hero__mockups .browser-frame {
    animation: deck-shuffle 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  }
  .hero__mockups .browser-frame:nth-child(1) { animation-delay: 0s; }
  .hero__mockups .browser-frame:nth-child(2) { animation-delay: -8s; }
  .hero__mockups .browser-frame:nth-child(3) { animation-delay: -4s; }
  /* Pause auf Hover: der deck-shuffle-Takt haelt an, wer einen Stack laenger
     ansehen will, bekommt die Zeit dazu. */
  .hero__mockups:hover .browser-frame { animation-play-state: paused; }
}
@media (max-width: 979px) {
  .hero__mockups {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 1rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    margin-top: 1.5rem;
  }
  /* Kein deck-shuffle unter 980px: die Rahmen sind hier flex-Items mit
     position: static, top/left greifen ohnehin nicht, animation: none macht
     das nur explizit. */
  .hero__mockups .browser-frame { flex: 0 0 78%; scroll-snap-align: start; animation: none; }
}

/* --- 3. Browser-Frame: Chrome um echte Screenshots, ohne Schatten und Kippen --- */
.browser-frame {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
  overflow: hidden;
}
.browser-frame__bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--paper); border-bottom: 1px solid var(--hairline);
  padding: 0.5rem 0.75rem;
}
.browser-frame__dot {
  width: 7px; height: 7px; border-radius: 50%;
  /* Etwas kraeftiger als --hairline, damit die Punkte auf var(--paper)
     erkennbar bleiben. */
  background: rgba(10, 10, 10, 0.14);
  display: inline-block;
}
.browser-frame__url {
  margin-left: 0.5rem;
  font-size: 0.6875rem; font-weight: 600; text-transform: none;
  letter-spacing: 0.02em; color: var(--muted);
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--surface); padding: 0.2em 0.75em;
}
.browser-frame__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.browser-frame__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Zeilenmasken: GSAP ueber script.js, siehe SPEC-GRADUATION 4.4 */

/* --- 5. Werkzeuge: zwei Zellen im wk-features-Rahmen --- */
.tools__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.tool { padding: clamp(1.5rem, 3vw, 2.25rem); border-left: 1px solid var(--hairline); }
.tool:first-child { border-left: none; }
.tool__title {
  font-size: 1.25rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; margin-bottom: 0.75rem;
}
.tool__text { color: var(--muted); font-weight: 350; font-size: 0.9375rem; max-width: 46rem; }
.tool__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
@media (max-width: 799px) {
  .tools__grid { grid-template-columns: 1fr; }
  .tool { border-left: none; border-top: 1px solid var(--hairline); }
  .tool:first-child { border-top: none; }
}

/* --- 6. Arbeiten: drei Spalten, kein leeres Feld, Messwerte je Projekt --- */
@media (min-width: 1100px) {
  .work__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .work__grid { grid-template-columns: 1fr; }
  .work-card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    align-items: start;
  }
  .work-card .browser-frame { grid-column: 1; grid-row: 1 / 4; }
  .work-card__row { grid-column: 2; margin-top: 0; }
  .work-card__metrics { grid-column: 2; }
}
@media (max-width: 639px) {
  .work__grid { grid-template-columns: 1fr; }
}
.work-card__metrics {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  margin-top: 0.9rem; padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
}
.work-card__metrics > span { display: flex; flex-direction: column; gap: 0.25rem; }
.work-card__metrics strong {
  font-size: 1.25rem; font-weight: 850; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* --- 7. Agentur: Monogramme, Kontaktzeile, Kundenstimmen --- */
.agency .monogram { margin-bottom: 0.75rem; width: 40px; height: 40px; background: var(--paper); color: var(--ink); }
.agency__founder-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  margin-top: 0.75rem; font-size: 0.875rem;
}
.agency__founder-actions a { color: var(--paper); border-bottom: 1px solid var(--hairline-on-ink); }
.agency__founder-actions a:hover { border-color: var(--paper); }
/* style.css setzt fuer mailto/tel-Links sitewide text-decoration: underline
   (WCAG-Fix). Hier gibt es schon eine eigene border-bottom-Linie, die zweite
   Linie war ueberfluessig und lag sichtbar daneben. */
.agency__founder-actions a { text-decoration: none; }
.agency__rating { color: var(--muted-on-ink); margin-top: 1.5rem; }
.agency__rating:hover { color: var(--paper); }
.agency__rating .hero__rating-text { border-color: var(--hairline-on-ink); }
.agency__rating:hover .hero__rating-text { border-color: var(--paper); }
.agency__inner { padding-bottom: 2rem; } /* verkuerzt nur den unteren Abstand, die Zitate folgen direkt */
.agency__quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--hairline-on-ink);
  padding-block: 2rem var(--space-section);
}
.agency__quote {
  border-left: 1px solid var(--hairline-on-ink);
  padding: 1.5rem clamp(1rem, 2vw, 2rem) 1.5rem clamp(1rem, 2vw, 2rem);
}
.agency__quote:first-child { border-left: none; padding-left: 0; }
.agency__quote > span { color: var(--accent); letter-spacing: 0.05em; }
.agency__quote p {
  color: var(--muted-on-ink); font-weight: 350; font-size: 0.9375rem;
  margin-block: 0.5rem 0.75rem;
}
.agency__quote cite {
  font-style: normal; font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-on-ink);
}
@media (max-width: 899px) {
  .agency__quotes { grid-template-columns: 1fr; }
  .agency__quote { border-left: none; border-top: 1px solid var(--hairline-on-ink); padding: 1.5rem 0; }
  .agency__quote:first-child { border-top: none; }
}

/* --- 8. Aufmass-Rechner: Steuerung links, Ausgabe rechts, Rechenweg mit Pfeil --- */
.rechner { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.rechner__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) {
  .rechner__grid { grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 3.5rem); }
}
.rechner__controls { display: grid; gap: 1.5rem; }
.control__label { margin-bottom: 0.5rem; display: block; }
.segment { flex-wrap: wrap; }
.segment button { min-height: 40px; min-width: 44px; }
.rechner__output {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem);
}
@media (min-width: 900px) {
  .rechner__output { position: sticky; top: 5.5rem; }
}
.rechner__paket {
  font-size: 2.75rem; font-weight: 850; letter-spacing: -0.04em;
  text-transform: uppercase; line-height: 1; margin-block: 0.4rem 1.25rem;
}
.rechner__prices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
/* .figure ist sitewide in style.css umgezogen (Subpage-Conversion 2026-09),
   .price-row braucht die Basis-Typografie auch ohne home.js. */
.rechner__rechenweg {
  list-style: none; display: grid; gap: 0.5rem; margin-bottom: 1.5rem;
  color: var(--muted); font-weight: 350; font-size: 0.9375rem;
}
.rechner__rechenweg li { position: relative; padding-left: 1.25rem; }
.rechner__rechenweg li::before { content: '\2192'; position: absolute; left: 0; color: var(--accent); }
html:not(.js) .rechner { display: none; }
.rechner-fallback { display: none; }
html:not(.js) .rechner-fallback { display: block; margin-bottom: 2rem; }

/* Preiszeilen-Komponente (.price-list/.price-row/.price-terms) ist sitewide
   in style.css umgezogen, damit Unterseiten sie ohne home.js mitnutzen
   koennen (Subpage-Conversion-Projekt 2026-09). Hier absichtlich leer. */

/* --- 10. Kontakt: Zweispalter, sechs Fieldsets, Auswahlzellen, Terminwahl --- */
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 3rem); }
@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 4vw, 4rem); }
}
.contact__aside p + p { margin-top: 1rem; }
/* Der Termin-Link ist der Einstieg in die Terminbuchung. Ohne Unterstreichung
   las er sich wie Fliesstext und war als Schaltflaeche nicht erkennbar. */
.contact__aside a { text-decoration: underline; text-underline-offset: 3px; }
.contact__after { margin-top: 2rem; padding-top: 1.5rem; }
.contact__after p { color: var(--muted); font-weight: 350; font-size: 0.9375rem; margin-top: 0.5rem; }

.q-field { border: none; padding: 0; margin: 0 0 2rem; }
.q-field legend {
  font-size: 1.25rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; margin-bottom: 1rem; padding: 0;
}
.q-options { display: flex; flex-direction: column; }
.q-option {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 0;
  border-bottom: 1px solid var(--hairline); min-height: 44px; cursor: pointer;
}
.q-option input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex-shrink: 0; }
.q-option--checkbox { border-bottom: none; padding-block: 0.6rem; }

.wizard-nav { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.wizard-hint { color: var(--muted); font-size: 0.875rem; }
.wizard-empfehlung {
  margin-top: 1.5rem; padding: 1.25rem;
  border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface);
}
.wizard-empfehlung__paket {
  font-size: 1.5rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; margin-block: 0.25rem 0.75rem;
}
.wizard-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.tier-choice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
@media (max-width: 639px) { .tier-choice { grid-template-columns: repeat(2, 1fr); } }
.tier-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tier-choice label {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 0.9rem 0.85rem; text-align: left;
  display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start;
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
  min-height: 44px; justify-content: center; cursor: pointer;
  background: var(--surface);
}
.tier-choice input:checked + label {
  border: 2px solid var(--accent);
  padding: calc(0.9rem - 1px) calc(0.85rem - 1px);
}
.tier-choice input:focus-visible + label {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.tier-choice__reco { color: var(--accent-text); font-size: 0.625rem; }

.slot-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.slot-picker input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.slot-picker label {
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 0.55em 1em; font-size: 0.8125rem; font-weight: 500;
  min-height: 40px; display: flex; align-items: center; cursor: pointer;
  background: var(--surface);
}
.slot-picker input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slot-picker input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.slot-picker [data-slot-fallback] { width: 100%; }

.op-summary {
  font-size: 0.875rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 0.8rem 1rem; margin-bottom: 1rem;
}
.op-summary:empty { display: none; }
.mode-switch { font-size: 0.875rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.mode-switch a { text-decoration: underline; text-underline-offset: 3px; }
.mode-switch a:hover { color: var(--accent); }
.op-reassurance { font-size: 0.8125rem; color: var(--muted); margin-top: 0.9rem; }

/* --- 11. Order-Panel: Dialog mit der Geometrie des Legal-Modals --- */
.order-panel {
  width: min(40rem, calc(100vw - 2rem));
  max-height: 85dvh;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 0;
  background: var(--surface); color: var(--ink);
  margin: auto;
}
.order-panel[open] {
  opacity: 1; transform: none;
  transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1), transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}
@starting-style {
  .order-panel[open] { opacity: 0; transform: translateY(8px) scale(0.98); }
}
.order-panel::backdrop { background: rgba(10, 10, 10, 0.45); }
.order-panel[open]::backdrop { transition: background-color 0.22s ease; }
@starting-style {
  .order-panel[open]::backdrop { background: rgba(10, 10, 10, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .order-panel[open], .order-panel[open]::backdrop { transition: none; }
}
.op-header {
  position: sticky; top: 0; background: var(--surface);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 2rem);
  border-bottom: 1px solid var(--hairline);
  z-index: 2;
}
#op-title { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.op-close { width: 44px; height: 44px; color: var(--muted); font-size: 1.1rem; }
.op-close:hover { color: var(--ink); }
.op-body { padding: clamp(1.25rem, 4vw, 2rem); }
#op-form-slot .form-grid { grid-template-columns: 1fr; }
#op-form-slot .tier-choice { grid-template-columns: repeat(2, 1fr); }

/* --- 12. Footer: weniger Kopf- und Mail-Abstand --- */
.footer { padding-top: clamp(4rem, 7vw, 6rem); }
.footer__mail { margin-bottom: 3rem; }

/* --- 13. Reduced Motion: Uebergaenge der neuen D-Komponenten abschalten --- */
@media (prefers-reduced-motion: reduce) {
  .browser-frame,
  .chip,
  .segment button,
  .tier-choice label,
  .slot-picker label {
    transition: none;
  }
  /* Runde 2: deck-shuffle steht still (statischer Stapel von oben bleibt
     sichtbar, animation: none loest die Keyframes einfach auf). Die
     Fortschrittsbalken-Regel fuer reduced motion steht nicht hier, weil die
     spaeter im "RUNDE 2"-Block angehaengte Basis-Regel (gleiche Spezifitaet,
     spaetere Reihenfolge) sie sonst wieder ueberschreiben wuerde. Siehe das
     Ende der Datei. */
  .hero__mockups .browser-frame { animation: none; }
}

/* --- Runde 2, Phase 0: Wizard-Fuss auf Formularebene, im Dialog unten angepinnt --- */
.wizard-foot { margin-top: 0.5rem; }
#op-form-slot .wizard-foot {
  position: sticky; bottom: 0; z-index: 1;
  background: var(--surface);
  padding-top: 0.75rem; margin-top: 0.5rem;
  border-top: 1px solid var(--hairline);
}

/* ============ RUNDE 2 (2026-09-07) ============ */

/* --- Item 1: Hero-H1 haelt vier Zeilen ueberall, keine automatische Trennung
   mehr. hyphens: auto plus lang="de" hat "MAßARBEIT." ab 768px silbentrennend
   umgebrochen (MAßAR-/BEIT.), weil die dritte Zeile in keiner Spaltenbreite
   passte. Der HTML-Builder splittet die Zeile in vier .line-Spans, hier nur
   noch die Bremse: manual heisst, ohne &shy; im Text bricht nie mitten im
   Wort. --- */
.hero__title { hyphens: manual; }

/* --- Item 2: Orange als Zustandssignal. Markiert Ergebnis, Auswahl und
   direkten Kontakt, nie Dekoration (SPEC-D-ROUND2 2.1). --- */
.chip svg { color: var(--accent); }
.rechner__output { border-top: 3px solid var(--accent); }
.rechner__paket { color: var(--accent-text); }
.wizard-empfehlung__paket { color: var(--accent-text); }
/* FAQ-Icon: sitewide in style.css */
.service-row.is-open .service-row__icon { color: var(--accent); }

/* --- Item 4: Wizard-Kopfzeile, direkter Kontaktlink, Fortschrittsbalken --- */
.wizard-nav__row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.wizard-nav__switch { font-size: 0.875rem; margin: 0; }
.wizard-nav__switch a { text-decoration: underline; text-underline-offset: 3px; }
.wizard-nav__switch a:hover { color: var(--accent); }
.wizard-nav__step { color: var(--accent-text); }
.wizard-progress { display: block; height: 2px; background: var(--hairline); border-radius: 999px; overflow: hidden; }
.wizard-progress__bar { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); transition: width 0.3s ease; }

/* --- Item 5: Termin-Auswahl aufheben. Sichtbar nur, wenn die JS-Logik das
   hidden-Attribut entfernt (siehe pitch.js); die [hidden]-Regel oben
   garantiert, dass display:none bis dahin gewinnt. Tastaturfokus laeuft
   ueber die globale :focus-visible-Regel weiter oben in der Datei. --- */
.slot-picker__reset { flex-basis: 100%; align-self: flex-start; width: max-content; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0; }
.slot-picker__reset:hover { color: var(--accent); }

/* mailto/tel: sitewide in style.css, Dateiende */

/* --- Item 9 (+ Item 3 CMS-Zeile): Tier-Kacheln mit Beschreibung und Preiszeile,
   Vergleichslink, CMS-Zusatz unter der Essential-Kachel und in der
   Preiszeile. font-size 0.75rem auf Preis/Beschreibung haelt das 375px-Budget
   ein (SPEC-D-ROUND2 9.4). --- */
.tier-choice__name { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; }
.tier-choice__price { font-weight: 500; text-transform: none; color: var(--ink); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.tier-choice__desc { font-weight: 350; text-transform: none; color: var(--muted); font-size: 0.75rem; line-height: 1.35; }
.tier-choice__more { margin-top: 0.75rem; font-size: 0.875rem; }
.tier-choice__more a { text-decoration: underline; text-underline-offset: 3px; }
.tier-choice__more a:hover { color: var(--accent); }
.tier-choice input:checked + label .tier-choice__name { color: var(--accent-text); }
.tier-choice__addon { margin-top: 0.75rem; font-size: 0.9375rem; }
/* .price-row__addon ist sitewide in style.css umgezogen (Subpage-Conversion 2026-09). */

/* Reduced Motion, Nachtrag: muss nach der Basis-Regel oben stehen (Zeile
   1200), sonst gewinnt die spaetere Basis-Regel bei gleicher Spezifitaet
   und der Fortschrittsbalken gleitet trotz reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .wizard-progress__bar { transition: none; }
}

/* ============ RUNDE 3 (2026-09-07) ============ */

/* --- Item 1: Karten-Stapel manuell. Ein Klick holt die Karte nach vorne und
   beendet den deck-shuffle fuer diesen Seitenaufruf. Slot-Geometrie ist
   wortgleich mit style.css:802-804 und den Keyframes 811-816; Transition
   nutzt Dauer (0,8s) und Easing des Umzugs aus den Keyframes. --- */
.hero__mockups [data-deck-card] { text-align: left; transition: border-color 0.2s ease; }
.hero__mockups [data-deck-card]:disabled { cursor: default; }
.hero__mockups [data-deck-card]:hover,
.hero__mockups [data-deck-card]:focus-visible { border-color: var(--accent); }
@media (min-width: 980px) {
  /* Tastatur: Fokus im Stapel haelt den Takt genauso an wie Hover (style.css:825). */
  .hero__mockups:focus-within .browser-frame { animation-play-state: paused; }
  .hero__mockups.is-manual .browser-frame {
    animation: none;
    transition:
      top 0.8s cubic-bezier(0.22, 1, 0.36, 1),
      left 0.8s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.2s ease;
  }
  .hero__mockups.is-manual .browser-frame.is-slot-1 { top: 0;   left: 0;   z-index: 3; opacity: 1; }
  .hero__mockups.is-manual .browser-frame.is-slot-2 { top: 12%; left: 20%; z-index: 2; opacity: 0.92; }
  .hero__mockups.is-manual .browser-frame.is-slot-3 { top: 24%; left: 38%; z-index: 1; opacity: 0.85; }
}
@media (max-width: 979px) {
  /* Klick-Snap und Wisch-Snap landen auf derselben x-Position wie die ruhende erste Karte. */
  .hero__mockups { scroll-padding-inline: var(--gutter); }
}

/* --- Item 2: Hinweiszeile unter den CTAs (Typografie = .hero__founders-text,
   Breite = .hero__sub) und Beschriftung ueber dem Kartenstapel. Unter 980px
   kommt der Abstand zum Streifen jetzt vom Wrapper, nicht mehr von
   .hero__mockups (style.css:831). --- */
.hero__cta-hint { margin-top: -0.5rem; font-size: 0.8125rem; font-weight: 350; color: var(--muted); max-width: 32rem; }
.hero__showcase { min-width: 0; }
.hero__showcase-label { display: block; margin-bottom: 0.75rem; }
@media (max-width: 979px) {
  .hero__showcase { margin-top: 1.5rem; }
  .hero__mockups { margin-top: 0; }
}

/* --- Item 3: Scrollspy. Kleiner Text auf Papier: --accent-text (AA), wie
   .wizard-nav__step und .price-row__reco. Uebergang kommt aus der
   bestehenden .nav__link-Regel (color 0.2s, style.css:217), keine neue. --- */
.nav__link.is-current { color: var(--accent-text); }
.nav__link.is-current:hover { color: var(--accent); }
.nav__menu a.is-current { color: var(--accent-text); }

/* Reduced Motion, Runde 3: muss nach den Basis-Regeln oben stehen (gleiche
   oder hoehere Spezifitaet, spaetere Reihenfolge gewinnt), sonst gleiten die
   Karten trotz reduced motion. Die Scrollspy-Farbe braucht keine Regel: ein
   Farbwechsel ist keine Bewegung, .nav__link:hover blendet heute genauso. */
@media (prefers-reduced-motion: reduce) {
  .hero__mockups [data-deck-card],
  .hero__mockups.is-manual .browser-frame { transition: none; }
}

/* Phase D, echter Fehler aus dem Browser-Check (Item 1, Check 12): ohne
   zusaetzlichen Platz nach der dritten Karte reicht der Scroll-Bereich des
   Streifens nicht aus, um ihren Anfang bis zur scroll-padding-inline-Linie
   zu bringen (gemessen 70px Differenz bei 375px, 152px bei 768px). Ein Klick
   auf die dritte Karte setzt zwar aria-pressed korrekt, die Karte blieb aber
   sichtbar eingerueckt statt buendig wie Karte 1 und 2. Ein zusaetzliches
   Padding auf .hero__mockups selbst wurde zuerst versucht und verworfen: es
   verkleinert die Content-Box, gegen die flex: 0 0 78% (style.css:836) seinen
   Prozentsatz berechnet, und schrumpft dadurch alle drei Karten gleichzeitig
   (Kreisschluss). Ein zusaetzliches, unsichtbares Flex-Item (::after) am Ende
   des Streifens umgeht das: es haengt am selben Prozentsatz (100% minus 78%)
   derselben, unveraenderten Content-Box, ohne sie zu verkleinern. */
@media (max-width: 979px) {
  .hero__mockups::after { content: ''; flex: 0 0 22%; }
}

/* Dialoge unter Lenis: eigener Scroll darf am Ende nicht in die Seite
   dahinter durchreichen (SPEC-GRADUATION 4.3). */
.legal-modal, .order-panel { overscroll-behavior: contain; }
