/* Gutschein-Shop – öffentliche Seiten
   Farben kommen aus config.php (CSS-Variablen im Seitenkopf). Keine externen Ressourcen. */

@font-face { font-family: "Inter"; src: url("schrift/inter-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("schrift/inter-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("schrift/fraunces72pt-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("schrift/fraunces72pt-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("schrift/fraunces72pt-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --hg: #16130f; --flaeche: #211d18; --linie: #3b342c; --text: #f3eee7; --leise: #b5ab9d; --akzent: #ffbb03; --papier: #fbf8f3;
  --fehler: #ff9b8f;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hg); color: var(--text); font: 400 1.0625rem/1.55 var(--sans); }
/* Warmes Licht oben rechts, hinter der Gutschein-Vorschau */
body.seite-shop { background: radial-gradient(52rem 32rem at 74% 30rem, color-mix(in srgb, var(--akzent) 12%, transparent), transparent 70%) no-repeat, var(--hg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--akzent) 70%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--akzent); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }

.sprung { position: absolute; left: 1rem; top: -4rem; background: var(--akzent); color: #1a1500; padding: .6rem 1rem; z-index: 10; }
.sprung:focus { top: 1rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf und Fuß */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1240px; margin: 0 auto; padding: 1.25rem clamp(1rem, 4vw, 2.5rem); }
.kopf-logo img { height: clamp(38px, 6vw, 52px); width: auto; }
.kopf-nav { display: flex; gap: 1.5rem; font-size: .95rem; }
.kopf-nav a { color: var(--leise); text-decoration: none; }
.kopf-nav a:hover { color: var(--text); }
main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem) 4rem; }
.fuss { border-top: 1px solid var(--linie); padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem; color: var(--leise); font-size: .9rem; }
.fuss-innen { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.fuss-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.fuss-links a { color: var(--leise); }
.fuss-firma { max-width: 1240px; margin: 1.25rem auto 0; }
.knopf-widerruf { display: inline-block; border: 1px solid var(--text); color: var(--text); padding: .55rem 1rem; border-radius: 4px; text-decoration: none; font-weight: 600; }
.knopf-widerruf:hover { background: var(--text); color: var(--hg); }

/* Bühne */
.buehne { padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(1.5rem, 4vw, 3rem); max-width: 46rem; }
.buehne h1 { font-weight: 300; font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -.015em; margin-bottom: 1.25rem; color: var(--akzent); }
.buehne-text { color: var(--leise); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 40em; }

/* Raster: Formular links, rechts Vorschau + Info.
   Schmal: Vorschau über dem Formular, Info darunter (.rechts löst sich dafür auf).
   Breit: Die ganze rechte Spalte läuft beim Scrollen mit. Passt sie nicht ins Fenster,
   setzt shop.js .rechts--lang: Dann läuft nur die Vorschau mit, die Info steht unten neben "Bestellen". */
.shop-raster { display: grid; gap: 2.5rem; }
.rechts { display: contents; }
.rechts-oben { order: -1; }
.info { order: 1; }
@media (min-width: 1040px) {
  .shop-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(3rem, 5vw, 5rem); align-items: start; }
  .rechts { display: block; position: sticky; top: 1.5rem; }
  .rechts-oben, .info { order: 0; }
  .info { margin-top: 2rem; }
  .rechts--lang { position: static; align-self: stretch; display: flex; flex-direction: column; }
  .rechts--lang .rechts-oben { flex: 1 0 auto; }
  .rechts--lang .vorschau { position: sticky; top: 1.5rem; }
}
.vorschau-hinweis { color: var(--leise); font-size: .875rem; margin-top: 1rem; }

/* Info unter der Vorschau: Ablauf und Vorteile */
.info { border-top: 1px solid var(--linie); padding-top: 1.5rem; min-width: 0; }
.info-titel { font-size: 1.55rem; margin-bottom: 1.1rem; }
.ablauf { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .95rem; }
.ablauf li { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 1rem; color: var(--leise); font-size: .925rem; line-height: 1.45; }
.ablauf li strong { color: var(--text); font-weight: 600; font-size: .975rem; padding-top: .1rem; }
.ablauf-nr { grid-row: span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--akzent); color: #1a1500; font: italic 400 1.2rem/1 var(--serif); position: relative; z-index: 1; }
.ablauf li:not(:last-child)::after { content: ""; position: absolute; left: 1.125rem; top: 2.25rem; bottom: -.95rem; width: 1px; background: color-mix(in srgb, var(--akzent) 45%, transparent); }
.vorteile { list-style: none; margin: 0; padding: 1.4rem 0 0; border-top: 1px solid var(--linie); display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.15rem 1.5rem; }
.vorteile li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .85rem; align-items: start; color: var(--leise); font-size: .9rem; line-height: 1.45; }
.vorteile svg { width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 50%; color: var(--akzent); background: color-mix(in srgb, var(--akzent) 13%, transparent); }
.vorteile strong { display: block; color: var(--text); font-weight: 600; font-size: .95rem; }
.vorteile a { color: var(--akzent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.vorteile a:hover { text-decoration: underline; }

/* Formular */
.bestellung { min-width: 0; }
.block { border: 0; border-top: 1px solid var(--linie); margin: 0; padding: 1.75rem 0 2rem; min-width: 0; }
.block legend { font-family: var(--serif); font-size: 1.55rem; padding: 0; margin-bottom: 1.25rem; display: flex; align-items: baseline; gap: .6rem; float: left; width: 100%; }
.block legend + * { clear: both; }
.schritt { font-style: italic; color: var(--akzent); font-size: 1.1em; }
.feld { display: grid; gap: .4rem; margin-bottom: 1.15rem; clear: both; }
.feld label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--leise); }
.feld-info { color: var(--leise); font-size: .875rem; margin: 0 0 .9rem; }
.feld .feld-info { margin: 0; }
.feld-fehler { color: var(--fehler); font-size: .9rem; margin: 0; font-weight: 600; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 4px; padding: .75rem .9rem;
}
textarea { resize: vertical; min-height: 6.5rem; line-height: 1.45; }
input:focus, textarea:focus { border-color: var(--akzent); outline: 2px solid color-mix(in srgb, var(--akzent) 35%, transparent); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--fehler) !important; }
.feld--haken { grid-template-columns: 1.25rem 1fr; align-items: start; gap: .75rem; }
.feld--haken input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--akzent); }
.feld--haken label { font-weight: 400; }

/* Beträge: Zahlen als Schriftbild, kein Kachel-Baukasten */
.betraege { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); border: 1px solid var(--linie); border-radius: 4px; overflow: hidden; clear: both; }
.betrag { position: relative; display: grid; place-items: center; gap: .1rem; padding: 1rem .5rem .9rem; cursor: pointer; border-right: 1px solid var(--linie); text-align: center; transition: background-color .15s; }
.betrag:last-child { border-right: 0; }
.betrag input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.betrag-zahl { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1; font-variant-numeric: lining-nums; }
.betrag-name { font-size: .8rem; color: var(--leise); }
.betrag:hover { background: color-mix(in srgb, var(--akzent) 8%, transparent); }
.betrag:has(input:checked) { background: var(--akzent); }
.betrag:has(input:checked) .betrag-zahl, .betrag:has(input:checked) .betrag-name { color: #1a1500; }
.betrag:has(input:focus-visible) { outline: 3px solid var(--akzent); outline-offset: -3px; }
.betrag:has(input:checked:focus-visible) { outline: 2px solid #1a1500; outline-offset: -6px; }
.betraege-titel { margin: 1.5rem 0 .6rem; font-weight: 600; font-size: .95rem; }
.betraege--shooting { margin-bottom: .75rem; }

/* Übersicht vor dem Bestellknopf */
.uebersicht { margin: 0 0 1rem; clear: both; }
.uebersicht > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--linie); }
.uebersicht dt { color: var(--leise); }
.uebersicht dd { margin: 0; text-align: right; }
.uebersicht-summe { border-bottom: 0 !important; padding-top: 1rem !important; }
.uebersicht-summe dt, .uebersicht-summe dd { font-family: var(--serif); font-size: 1.6rem; color: var(--text); }
.uebersicht-summe dd { color: var(--akzent); }
.umbruch { white-space: pre-line; }

/* Knöpfe */
.knopf { display: inline-block; font: 600 1.05rem/1.2 var(--sans); background: var(--akzent); color: #1a1500; border: 0; border-radius: 4px; padding: 1rem 1.6rem; cursor: pointer; text-decoration: none; text-align: center; }
.knopf:hover { color: #1a1500; filter: brightness(1.06); }
.knopf:disabled { opacity: .65; cursor: progress; }
.knopf--bestellen { width: 100%; font-size: 1.15rem; padding: 1.15rem 1.6rem; margin: .5rem 0 1rem; }
.knopf--leise { background: transparent; color: var(--text); border: 1px solid var(--linie); }
.knopf--leise:hover { color: var(--text); border-color: var(--text); filter: none; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.meldung { border-left: 3px solid var(--akzent); background: var(--flaeche); padding: .9rem 1.1rem; margin: 0 0 1.5rem; border-radius: 0 4px 4px 0; }
.meldung p { margin: 0; }
.meldung--fehler { border-left-color: var(--fehler); }

/* Gutscheinkarte: Abbild des PDF (210 × 99 mm). 1 mm = 0,4762cqw */
.karte { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 210 / 99; background: var(--papier); color: #1d1a17; border-radius: 2px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,.35), 0 28px 60px -24px rgba(0,0,0,.75); }
.karte p { margin: 0; }
.karte-motiv { position: absolute; left: 0; top: 0; width: 35.238%; height: 100%; object-fit: cover; }
.karte-kante { position: absolute; left: 35.238%; top: 0; width: .524%; height: 100%; background: var(--akzent); }
.karte-papier { position: absolute; left: 35.762%; right: 0; top: 0; bottom: 0; }
.karte-logo { position: absolute; right: 4.76cqw; top: 4.05cqw; width: 17.14cqw; }
.karte-art { position: absolute; left: 5.19cqw; top: 4.75cqw; font: italic 400 2.18cqw/1 var(--serif); color: #6f665c; }
.karte-wert { position: absolute; left: 4.81cqw; top: 8.95cqw; font: 300 7.73cqw/1 var(--serif); font-variant-numeric: lining-nums; white-space: nowrap; }
.karte-hinweis { position: absolute; left: 5.19cqw; top: 17.2cqw; font: 400 1.28cqw/1.2 var(--sans); color: #6f665c; }
.karte-linie { position: absolute; left: 5.19cqw; top: 20cqw; width: 6.67cqw; height: .33cqw; background: var(--akzent); }
.karte-text { position: absolute; left: 5.19cqw; top: 21.9cqw; width: 40.95cqw; height: 13.4cqw; overflow: hidden; }
.karte-fuer { font: italic 400 2.44cqw/1.15 var(--serif); margin-bottom: .55cqw !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte-gruss { font: 400 1.445cqw/1.31 var(--sans); color: #3a342e; white-space: pre-line; overflow-wrap: anywhere; }
.karte-von { font: italic 400 1.68cqw/1.2 var(--serif); color: #6f665c; margin-top: .45cqw !important; }
.karte-fuer:empty, .karte-von:empty, .karte-gruss:empty { display: none; }
.karte-daten { position: absolute; left: 5.19cqw; top: 36.75cqw; display: flex; gap: 0; }
.karte-daten > div:first-child { width: 31.43cqw; }
.karte-daten span { display: block; font: 400 1.075cqw/1 var(--sans); color: #6f665c; margin-bottom: 1.05cqw; }
.karte-daten b { display: block; font: 600 1.6cqw/1 var(--sans); letter-spacing: .1cqw; white-space: nowrap; }
.karte-daten b.leer { font-weight: 400; color: #9c9286; letter-spacing: 0; font-size: 1.3cqw; }
.karte-qr { position: absolute; left: 49.24cqw; top: 25cqw; width: 10.24cqw; height: 10.24cqw; }
.karte-qr svg { width: 100%; height: 100%; display: block; }
.karte-qr--leer { border: 1px dashed #c9bfb3; display: grid; place-items: center; }
.karte-qr--leer span { font: 400 1.2cqw/1 var(--sans); color: #9c9286; }

/* Dankeseite */
.danke { display: grid; gap: 2.5rem; padding-top: clamp(1.5rem, 5vw, 3.5rem); }
@media (min-width: 1040px) { .danke { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.danke h1 { font-weight: 300; font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: 1.25rem; }
.danke-knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

/* Textseiten */
.textseite { max-width: 46rem; padding-top: clamp(1.5rem, 4vw, 3rem); }
.textseite h1 { font-weight: 300; font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.25rem; }
.textseite h2 { font-size: 1.45rem; margin: 2.25rem 0 .75rem; }
.textseite h3 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; }
.rechtstext p, .rechtstext li { color: color-mix(in srgb, var(--text) 88%, var(--hg)); }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext a { overflow-wrap: anywhere; }
.reiter { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; border-bottom: 1px solid var(--linie); margin-bottom: 2rem; }
.reiter a { padding: .6rem 0; text-decoration: none; color: var(--leise); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.reiter a[aria-current="page"] { color: var(--text); border-bottom-color: var(--akzent); }
.formular-schmal { max-width: 34rem; margin-top: 1.5rem; }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .kopf-nav a:first-child { display: none; }
  .uebersicht > div { flex-direction: column; gap: .15rem; }
  .uebersicht dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .kopf, .fuss, .shop-raster form, .info { display: none; }
  body, body.seite-shop { background: #fff; color: #000; }
}
