[hidden] { display: none !important; }
:root {
  --grund: #f4f2ee; --text: #181a1e; --leise: #6b6a66; --linie: #d9d5cd;
  --akzent: #181a1e; --auf-akzent: #f4f2ee; --karte: rgba(255,255,255,.88);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #15171a; --text: #ecebe7; --leise: #9a9893; --linie: #33363b;
    --akzent: #ecebe7; --auf-akzent: #15171a; --karte: rgba(24,26,30,.88);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--grund); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; overflow: hidden; }
#bild { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#bild.gespiegelt { transform: scaleX(-1); object-fit: cover; }
header { position: fixed; top: 0; left: 0; right: 0; padding: max(12px, env(safe-area-inset-top)) 16px 10px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; z-index: 2; }
header span { font-size: 12px; color: var(--leise); letter-spacing: .06em; }
header a { color: var(--text); text-decoration: none; font-size: 14px; background: var(--karte);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linie); }
.leiste { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  display: grid; gap: 10px; max-width: 640px; margin: 0 auto; }
.karte { background: var(--karte); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--linie); border-radius: 14px; padding: 12px 14px; }
.knoepfe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
button, .knopf { font: inherit; border-radius: 999px; padding: 10px 16px; border: 1px solid var(--akzent);
  background: var(--karte); color: var(--text); cursor: pointer; text-decoration: none; display: inline-block; }
button.haupt, .knopf.haupt { background: var(--akzent); color: var(--auf-akzent); }
/* Hauptaktion der Anprobe: eigene Zeile, volle Breite, deutlich kräftiger */
.knopf.weiter { flex: 1 0 100%; text-align: center; font-size: 17px; font-weight: 600; padding: 14px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.knopf.weiter:hover { filter: brightness(1.15); }
.regler { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; font-size: 13px; }
.regler input { width: 100%; }
.regler output { min-width: 3.5em; text-align: right; color: var(--leise); font-variant-numeric: tabular-nums; }
#hinweis { font-size: 13px; color: var(--leise); }
/* PD-Hinweis: gut lesbar, eigene Zeile über die ganze Breite */
.pd-hinweis { grid-column: 1 / -1; font-size: 15px; color: var(--text); padding: 6px 10px; border-radius: 8px;
  background: rgba(46, 125, 50, .12); border-left: 3px solid #2e7d32; }
.pd-hinweis b { font-size: 17px; }
.pd-hinweis.ohne { background: rgba(201, 162, 39, .16); border-left-color: #c9a227; }
.pd-hinweis:empty { display: none; }
.regler #pd { font-size: 17px; font-weight: 600; padding: 6px 10px; }
.regler label[for="pd"] { font-size: 15px; font-weight: 600; }
#start { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; }
#start .karte { max-width: 440px; display: grid; gap: 12px; }
#start h1 { font-size: 22px; margin: 0; font-weight: 600; }
#start p { margin: 0; color: var(--leise); }
#start .datenschutz { font-size: 13px; border-left: 3px solid var(--linie); padding-left: 10px; }
#start .datenschutz b { color: var(--text); }
#pd { font: inherit; padding: 6px 10px; border: 1px solid var(--linie); border-radius: 8px;
  background: transparent; color: var(--text); }
.leise { color: var(--leise); }
.messung { font-size: 13px; font-variant-numeric: tabular-nums; border-color: #c9a227; }
.messung b { font-size: 16px; }
/* Start in zwei Schritten: PD, dann Kamera */
#start .schritt-nr { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
#start .pd-eingabe { display: flex; gap: 8px; align-items: center; }
#start .pd-eingabe input { font: inherit; font-size: 20px; width: 110px; padding: 8px 12px; border: 1px solid var(--linie);
  border-radius: 10px; background: transparent; color: var(--text); }
#start .pd-oder { border-top: 1px solid var(--linie); padding-top: 12px; display: grid; gap: 8px; justify-items: start; }
#start .pd-stand { color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px; background: rgba(46, 125, 50, .12); border-left: 4px solid #2e7d32; }
#start .pd-stand span { display: grid; }
#start .pd-stand small { font-size: 13px; color: var(--leise); letter-spacing: .02em; }
#start .pd-stand b { font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; }
#start .pd-stand .pd-aendern { font-size: 14px; padding: 6px 14px; border: 1px solid var(--linie); border-radius: 999px;
  text-decoration: none; white-space: nowrap; background: var(--karte); }
#start .pd-stand.ohne { background: rgba(201, 162, 39, .16); border-left-color: #c9a227; font-size: 15px; }
#start .klein { font-size: 13px; }
#start a { color: var(--text); }

/* Kompakte Leiste (Wunsch des Users 09.10.2026: das Gesicht soll frei bleiben) */
.leiste { gap: 6px; padding-top: 6px; }
#hinweis { position: fixed; top: max(52px, calc(env(safe-area-inset-top) + 44px)); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); padding: 5px 12px; border-radius: 14px; font-size: 12.5px; z-index: 2; }
.regler { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 12px; }
.regler .pd-feld, .regler .sitz-feld { display: flex; align-items: center; gap: 6px; }
.regler .sitz-feld { flex: 1 1 160px; }
.regler .sitz-feld input { flex: 1; min-width: 80px; }
.regler #pd { width: 4.2em; font-size: 16px; padding: 4px 8px; }
.regler label[for="pd"] { font-size: 14px; }
.pd-hinweis { padding: 3px 9px; font-size: 13px; border-left-width: 3px; white-space: nowrap; }
.pd-hinweis.ohne { flex: 1 0 100%; white-space: normal; order: 5; }
.knoepfe { flex-wrap: nowrap; gap: 6px; }
.knoepfe .klein { padding: 9px 12px; font-size: 14px; flex: 0 0 auto; }
.knopf.weiter { flex: 1 1 auto; font-size: 16px; padding: 11px 14px; }

/* Sonnenbrillen: Tönung wählen (anprobe.js, TOENUNGEN) */
.toenung-feld { grid-column: 1 / -1; justify-self: start; display: inline-flex; border: 1px solid var(--linie); border-radius: 999px; overflow: hidden; }
.toenung-feld button { border: 0; background: transparent; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.toenung-feld button.an { background: var(--text); color: var(--grund, #fff); }

/* ⓘ-Hinweis zur Live-Anprobe (templates/shop/_anprobe_info.html) */
.anprobe-info { position: relative; flex: none; }
.anprobe-info summary { list-style: none; cursor: pointer; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid currentColor; display: grid; place-items: center; font: italic 700 15px/1 Georgia, serif;
  opacity: .7; user-select: none; }
.anprobe-info summary::-webkit-details-marker { display: none; }
.anprobe-info summary:hover, .anprobe-info[open] summary { opacity: 1; }
.anprobe-info-text { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(320px, calc(100vw - 32px));
  padding: 14px 16px; border-radius: 12px; background: #fff; color: #232522; border: 1px solid #d8d0c3;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 14px; line-height: 1.5; text-align: left; }
.anprobe-info-text p { margin: 6px 0 0; }
.anprobe-info.nach-oben .anprobe-info-text { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.knoepfe .anprobe-info { align-self: center; }
.anprobe-info-schutz { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid #e6e0d6; font-size: 13px; }
