/* wissen v9 — Buehnenform "Register": Kopf mit Schaufenster-Foto-Karte
   (Kill-Liste P1: kein bildloser Hero, kein totes rechtes Drittel),
   Punzen-Referenz als Champagne-Zahlenleiste, Register-Zeilen bis zur
   Zeilenkante geschlossen (Pfeil an der Regel, Kill-Liste P4). */
@layer page, pageresponsive;

@layer page {
  .wi-herosec { padding-top: clamp(40px, 5vw, 80px); padding-bottom: 0; }
  /* v9: Hero-Grid - Typo links, gerahmtes Schaufenster-Detail rechts */
  .wi-herogrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.5vw, 88px); align-items: center; }
  .wi-hero { min-width: 0; max-width: 880px; }
  .wi-hero__title { margin-top: var(--sp-4); font-size: var(--fs-cinem); }
  .wi-hero .lead { margin-top: var(--sp-4); }
  .wi-hero__cta { margin-top: var(--sp-5); }
  .wi-hero__meta { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .wi-hero__fig { min-width: 0; }
  .wi-hero__fig .passe__pic { aspect-ratio: 16 / 10; }
  .wi-hero__fig .passe__pic img { width: 100%; height: 100%; object-fit: cover; }

  /* Die Punzen-Referenz: schmale, elegante Zahlenleiste auf Champagne */
  .wi-ref { margin-top: clamp(32px, 4vw, 56px); background: var(--champagne) url('/img/grain.svg'); background-size: 220px 220px; border-top: 1px solid var(--line-gold); border-bottom: 1px solid var(--line-gold); overflow: hidden; padding-block: clamp(20px, 2.6vw, 36px) clamp(16px, 2vw, 28px); }
  .wi-ref__band { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); border: 0; }
  .wi-ref__band .punzline__item { display: grid; justify-items: start; gap: 8px; }
  .wi-ref__band .punzline__n { font-weight: var(--wght-numeral); font-size: clamp(26px, 2.6vw, 40px); color: var(--gold-deep); }
  .wi-ref__band .punzline__k { border-top: 1px solid var(--line-gold); padding-top: 8px; color: var(--ink-2); }
  .wi-ref__note { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2); max-width: 68ch; }

  /* v9: der tote Block vor dem Statement faellt (Kill-Liste: ~150px ->
     ~72px, 4. Runde) */
  .wi-listsec { padding-block: clamp(40px, 4.5vw, 72px) clamp(16px, 2vw, 32px); }
  .wi-register { max-width: none; }

  /* Register-Zeilen: Thumb-Kachel | Ordinal | Body (flexibel) | Pfeil.
     v9 (Kill-Liste P4): die Body-Spalte laeuft bis zur Zeilenkante, der
     Pfeil schliesst buendig an der Regel (x=1304) statt 283px davor;
     das Textmass haelt weiter 60ch. */
  .wi-row { grid-template-columns: auto clamp(40px, 3.6vw, 56px) minmax(0, 1fr) auto; align-items: start; }
  .wi-row .register__n { margin-top: 4px; }
  .wi-row .register__arr { align-self: center; justify-self: end; }
  /* Warm-Gold-Grading wie im Ankauf-Katalog (Owner O3) */
  .wi-row__mark { width: clamp(84px, 9vw, 120px); flex: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 4px; box-shadow: 0 1px 2px rgba(33,24,9,.04); transition: border-color var(--dur-q) var(--ease), box-shadow var(--dur-q) var(--ease); }
  .wi-row__mark span { display: block; overflow: hidden; border-radius: var(--r-sm); }
  /* Grading kommt aus dem EINEN Rezept in site.css (v7) */
  .wi-row__mark img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; transition: transform var(--dur) var(--ease); }
  .wi-row:hover .wi-row__mark img { transform: scale(1.04); }
  .wi-row:hover .wi-row__mark { border-color: var(--line-gold); box-shadow: var(--shadow-plate); }

  .wi-promisesec { padding-block: clamp(24px, 3vw, 48px) clamp(40px, 5vw, 80px); }
  .wi-promise__line { font-weight: 560; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: var(--ls-head); line-height: 1.45; max-width: 60ch; margin-bottom: var(--sp-5); text-wrap: pretty; }
  .wi-nb { white-space: nowrap; }

  /* Espresso-Zeile = das CTA-Band der Seite; Siegel ueberlappt die Naht */
  .wi-nudgesec { position: relative; }
  .wi-nudge { text-align: center; max-width: 760px; }
  .wi-nudge__title { font-size: var(--fs-h2); }
  .wi-nudge .lead { margin: var(--sp-3) auto 0; }
  .wi-nudge__phone { display: inline-flex; align-items: center; min-height: 48px; margin-top: var(--sp-4); font-weight: var(--wght-numeral); font-size: var(--fs-num); line-height: 1.1; color: var(--gold-bright); transition: color var(--dur-q) var(--ease); }
  .wi-nudge__phone:hover { color: var(--paper-on-dark); }
  .wi-nudge__cta { margin-top: var(--sp-5); }
}

@layer pageresponsive {
  @media (max-width: 900px) {
    .wi-herogrid { grid-template-columns: 1fr; gap: var(--sp-5); }
    .wi-hero__fig { max-width: 560px; }
  }
  @media (max-width: 760px) {
    .wi-row { grid-template-columns: auto clamp(36px, 8vw, 48px) minmax(0, 1fr); }
  }
  @media (max-width: 560px) {
    /* Einzeilige Punzen-Leiste mit Scroll-Snap statt Waisen-Wrap;
       v9 (Kill-Liste P6): Ziffern 40px statt 27 - dieselbe Stimme wie
       der Fries mobil */
    /* v10: die Scroll-Snap-Fassung schob das 5. Feld (999 - 24 kt) bei 390px
       auf x=399, also komplett aus dem Viewport, ohne sichtbare Scroll-
       Affordanz. Jetzt zwei Zeilen 3+2 - nichts liegt mehr ausserhalb. */
    .wi-ref__band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
    .wi-ref__band .punzline__item { min-width: 0; }
    .wi-ref__band .punzline__n { font-size: 40px; }
    /* v9: Thumbs lesen als Fotografie, nicht als Briefmarke (88px) */
    .wi-row { grid-template-columns: auto clamp(30px, 7vw, 40px) minmax(0, 1fr); column-gap: 12px; }
    .wi-row__mark { width: 88px; }
  }
}
