/* Gutschein-Shop eines Betriebs – neutral. Farben, Schriften und Ecken kommen als CSS-Variablen aus den
   Einstellungen des Betriebs (kern/gestaltung.php), dort sind auch die Kontraste geprüft. */
:root { --grund: #f7f6f9; --text: #1d1b22; --text2: #57535f; --flaeche: #fff; --feld: #fff; --linie: #d9d6df; --rahmen: #8f8a99;
  --akzent: #6d28d9; --fokus: #c0246b; --knopf: #6d28d9; --knopf-text: #fff; --radius: 14px; --radius-knopf: 999px;
  --schrift-titel: system-ui, sans-serif; --gewicht-titel: 700; --schrift-text: system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 17px/1.6 var(--schrift-text); }
a { color: var(--akzent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 4px; }
.sprung { position: absolute; left: -999px; top: 8px; background: #fff; color: #12101a; padding: 8px 14px; z-index: 10; }
.sprung:focus { left: 8px; }
.testband { background: #c0246b; color: #fff; text-align: center; padding: 8px 16px; font-weight: 600; font-size: .92rem; }

/* Kopf */
.shopkopf { background: var(--farbe); color: var(--farbe-text); border-bottom: 4px solid var(--farbe2); }
.shop--dunkel .shopkopf { border-bottom-width: 1px; }
.shopkopf__innen { max-width: 1040px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.shopkopf__marke { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 14px; }
.shopkopf__logo { max-height: 64px; max-width: 220px; background: #fff; padding: 6px 10px; border-radius: 10px; display: block; }
.shop--logo-frei .shopkopf__logo { background: none; padding: 0; border-radius: 0; max-height: 48px; }
.shopkopf__name { font-family: var(--schrift-titel); font-weight: var(--gewicht-titel); font-size: 1.45rem; line-height: 1.2; }
.shopkopf__zurueck { color: inherit; font-size: .95rem; }

/* Inhalt und Schrift */
.shopinhalt { max-width: 1040px; margin: 0 auto; padding: 36px 20px 64px; }
h1, h2 { font-family: var(--schrift-titel); font-weight: var(--gewicht-titel); }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 14px; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 28px 0 10px; }
.eyebrow { margin: 0 0 10px; color: var(--text2); font-size: .8rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.einleitung { font-size: 1.08rem; color: var(--text2); max-width: 660px; margin: 0 0 30px; }
.zurueck { margin: 0 0 22px; }

/* Kacheln */
.karten { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.angebot { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.angebot--ohne-bild { border-top: 6px solid var(--knopf); }
.angebot__innen { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.angebot h2 { margin: 0; font-size: 1.3rem; }
.angebot p { margin: 0; color: var(--text2); }
.angebot__preis { font-size: 1.25rem; font-weight: 600; color: var(--text) !important; margin-top: auto !important; padding-top: 6px; }

/* Bilder mit KI-Kennzeichen */
.bild { position: relative; margin: 0; background: var(--linie); }
.bild img { display: block; width: 100%; height: auto; }
.angebot .bild img { aspect-ratio: 4 / 3; object-fit: cover; }
.bild--gross { border-radius: var(--radius); overflow: hidden; margin: 0 0 26px; max-width: 760px; }
.bild--gross img { max-height: 520px; object-fit: cover; }
.ki-marke { position: absolute; left: 8px; bottom: 8px; background: rgba(18, 16, 26, .82); color: #fff; font-size: .72rem; font-weight: 600;
  letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; line-height: 1.3; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px; margin: 0 0 20px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 600 1.02rem/1.1 var(--schrift-text); color: var(--knopf-text); background: var(--knopf);
  text-decoration: none; text-align: center; border: 1px solid var(--knopf); border-radius: var(--radius-knopf); padding: 14px 26px; min-height: 48px; cursor: pointer; }
.knopf:hover { filter: brightness(1.08); color: var(--knopf-text); }
.knopf--leise { background: transparent; color: var(--text); border-color: var(--rahmen); }
.knopf--leise:hover { filter: none; color: var(--text); border-color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.knopf--breit { width: 100%; }
.shop--rahmen .knopf { background: transparent; color: var(--text); border-color: var(--rahmen); font-size: .88rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 15px 28px; }
.shop--rahmen .knopf:hover { filter: none; color: var(--text); border-color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }

/* Formular */
.formular { max-width: 640px; }
.feld { margin: 0 0 18px; }
.feld label, .feld .label { display: block; font-weight: 600; margin: 0 0 6px; }
.hilfe { display: block; color: var(--text2); font-size: .9rem; margin-top: 4px; }
input[type=text], input[type=email], textarea, select { width: 100%; font: inherit; color: var(--text); background: var(--feld); border: 1px solid var(--rahmen); border-radius: min(var(--radius), 10px); padding: 11px 13px; }
input:focus, textarea:focus { border-color: var(--text); }
textarea { min-height: 96px; resize: vertical; }
.betraege { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0 0 6px; }
.betraege legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.betrag { position: relative; }
.betrag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.betrag span { display: inline-block; border: 1px solid var(--rahmen); background: var(--feld); color: var(--text); border-radius: var(--radius-knopf); padding: 10px 18px; font-weight: 600; cursor: pointer; }
.betrag input:checked + span { border-color: var(--knopf); background: var(--knopf); color: var(--knopf-text); }
.betrag input:focus-visible + span { outline: 3px solid var(--fokus); outline-offset: 2px; }
.auswahl { display: flex; gap: 10px; align-items: flex-start; }
.auswahl input { margin-top: 6px; width: 18px; height: 18px; flex: none; accent-color: var(--knopf); }
.summe { font-size: 1.15rem; font-weight: 700; margin: 6px 0 14px; }
.hinweis { padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; border-left: 4px solid; background: #fff; color: #12101a; }
.hinweis a { color: inherit; }
.hinweis--fehler { background: #fdecea; border-color: #b42318; }
.hinweis--ok { background: #e7f5f4; border-color: #0c716f; }
.hilfe.hinweis--fehler { background: none; color: inherit; padding: 0; border: 0; font-weight: 600; }
.shop--dunkel .hilfe.hinweis--fehler { color: #ffb4ab; }
.shop:not(.shop--dunkel) .hilfe.hinweis--fehler { color: #b42318; }
.rechtstext { white-space: pre-line; }
.restwert { font-size: clamp(2.2rem, 8vw, 3.4rem); font-family: var(--schrift-titel); font-weight: var(--gewicht-titel); line-height: 1; margin: 8px 0; color: var(--text); }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .05em; }

/* Anschrift für den Beleg */
.rechnung { border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 18px 8px; margin: 22px 0 20px; }
.rechnung legend { font-weight: 600; padding: 0 6px; margin-left: -6px; }
.rechnung legend .hilfe { display: inline; font-weight: 400; }
.zeile { display: grid; grid-template-columns: minmax(6.5em, 9em) 1fr; gap: 0 14px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fuß */
.shopfuss { border-top: 1px solid var(--linie); background: var(--flaeche); color: var(--text2); font-size: .9rem; padding: 22px 20px; text-align: center; }
.shopfuss p { margin: 0 0 8px; }
.shopfuss ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; }
.shopfuss a { color: var(--text2); }
@media (max-width: 640px) { .shopinhalt { padding: 26px 16px 50px; } .karte { padding: 20px 16px; } .shopkopf__innen { padding: 14px 16px; } }
/* Versand an den Beschenkten: Felder nur zeigen, wenn „direkt an den Beschenkten“ gewählt ist (ohne Skript) */
.versand { border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 18px 8px; margin: 6px 0 20px; }
.versand legend { font-weight: 600; padding: 0 6px; margin-left: -6px; }
.versand .auswahl { margin: 0 0 10px; }
.versand__empfaenger { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linie); }
.versand:has(#f-v-ich:checked) .versand__empfaenger { display: none; }
input[type=date] { width: 100%; max-width: 16em; font: inherit; color: var(--text); background: var(--feld); border: 1px solid var(--rahmen); border-radius: min(var(--radius), 10px); padding: 10px 13px; color-scheme: light; }
.shop--dunkel input[type=date] { color-scheme: dark; }
