/* TRgallery – Bestellseite für Besucher
   Im Stil von trgallery.net: helles Grau, TRgallery-Blau #00ACFF mit Gelb #FEDF00, Schrift „Nova Flat“ (SIL Open Font License) für Überschriften. */
@font-face { font-family: 'Nova Flat'; font-style: normal; font-weight: 400; font-display: swap; src: url(nova-flat.woff2) format('woff2'); }

:root { color-scheme: light;
  --bg: #F2F2F2; --karte: #fff; --text: #14181D; --muted: #626B76; --linie: #DCE0E5; --leiste: #fff;
  --blau: #00ACFF; --akzent: #007DC1; --akzent-tief: #00679F; --akzent-weich: #E3F4FD; --gelb: #FEDF00; --pflicht: #E8740C; --knopf-text: #fff;
  --ok: #18794E; --ok-weich: #E9F6EF; --err: #C2362B; --err-weich: #FCEDEB; --warn: #9A5B00; --warn-weich: #FDF4E3;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --marke: 'Nova Flat', var(--sans);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark;
  --bg: #121417; --karte: #1C2026; --text: #EDF0F3; --muted: #9AA4AF; --linie: #2E353E; --leiste: #181B20;
  --akzent: #2FB8FF; --akzent-tief: #5CC8FF; --akzent-weich: #13334A; --pflicht: #FF9A3D; --knopf-text: #04121B;
  --ok: #4CC38A; --ok-weich: #15291F; --err: #F2776B; --err-weich: #33191A; --warn: #E8B04E; --warn-weich: #2E2414; } }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }

/* Kopfleiste wie auf trgallery.net */
.leiste { background: var(--leiste); box-shadow: 0 2px 5px rgba(0,0,0,.08); position: relative; z-index: 2; }
.leiste-innen { max-width: 1100px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { height: 60px; width: auto; }
.leiste-text { flex: 1; margin: 0; font-family: var(--marke); font-size: 15px; color: var(--muted); letter-spacing: .02em; }
.sprachen { display: flex; gap: 2px; border: 1px solid var(--linie); border-radius: 10px; padding: 2px; flex: none; }
.sprachen a { padding: 4px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; letter-spacing: .03em; }
.sprachen a:hover { color: var(--text); }
.sprachen a[aria-current] { background: var(--akzent-weich); color: var(--akzent); }
.sprachen a:focus-visible, .logo:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* Kopfbild: TRgallery-Blau mit großer Blende (wie im Logo) – oder ein Foto aus der Galerie */
.held { position: relative; overflow: hidden; color: #fff; padding: 46px 20px 120px;
  background: linear-gradient(135deg, #00B4FF 0%, #0091DA 55%, #006FAE 100%); }
.held.mit-foto { background: linear-gradient(180deg, rgba(5,12,20,.55), rgba(5,12,20,.72)), var(--foto) center / cover no-repeat, #0B2233; }
.blende { position: absolute; right: -60px; top: -70px; width: 400px; height: 400px; color: rgba(255,255,255,.17); pointer-events: none; }
.held.mit-foto .blende { display: none; }
.held-innen { position: relative; max-width: 720px; margin: 0 auto; }
.held h1 { margin: 0; font-family: var(--marke); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: .01em; }
.held h1::after { content: ''; display: block; width: 56px; height: 5px; margin-top: 16px; border-radius: 3px; background: var(--gelb); }
.einleitung { margin: 18px 0 0; max-width: 58ch; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.94); }

/* Formular-Karte ragt in das Kopfbild hinein */
.karte { position: relative; z-index: 1; width: min(720px, calc(100% - 32px)); margin: -84px auto 0; background: var(--karte);
  border-radius: 18px; padding: 34px 40px 34px; box-shadow: 0 18px 50px rgba(10,30,50,.14), 0 2px 6px rgba(10,30,50,.06); }
.unten-link { text-align: center; font-size: 14px; margin: 14px 0 0; }
.unten-link a { color: var(--akzent); }
.text { margin: 0 0 6px; max-width: 60ch; }

/* Pflichtfelder */
.pflicht { color: var(--pflicht); font-weight: 700; margin-left: 3px; }
.pflicht-legende { margin: 0 0 -6px; font-size: 12.5px; color: var(--muted); text-align: right; }
.pflicht-legende .pflicht { margin: 0 2px 0 0; }

label { display: block; font-weight: 600; font-size: 14.5px; margin: 24px 0 8px; }
.optional { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], select { width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--karte);
  border: 1.5px solid var(--linie); border-radius: 12px; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 4px var(--akzent-weich); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23808a95' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
select:invalid { color: var(--muted); }
select option { color: var(--text); }
#codes, #codes-eingabe { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
#codes::placeholder, #codes-eingabe::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--sans); }

/* Codes als Chips */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 50px; padding: 6px 8px; background: var(--karte); border: 1.5px solid var(--linie); border-radius: 12px; cursor: text; transition: border-color .12s, box-shadow .12s; }
.chips:focus-within { border-color: var(--blau); box-shadow: 0 0 0 4px var(--akzent-weich); }
.chips.ok { border-color: var(--ok); }
.chips.falsch { border-color: var(--err); }
.chip-liste { display: contents; }
.chip { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 3px 0 12px; border-radius: 999px; background: var(--akzent-weich); color: var(--akzent-tief);
  font-family: var(--mono); font-size: 14.5px; font-weight: 600; letter-spacing: .05em; animation: chip-rein .16s ease-out; }
.chip-weg { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 19px; line-height: 1; cursor: pointer; }
.chip-weg:hover { background: color-mix(in srgb, var(--akzent) 16%, transparent); }
.chip-weg:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.chip.blink { animation: chip-blink .5s ease-in-out 2; }
@keyframes chip-rein { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes chip-blink { 50% { background: var(--warn-weich); color: var(--warn); } }
.chips input[type=text] { flex: 1 1 120px; min-width: 120px; height: 34px; padding: 0 6px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.chips input[type=text]:focus { box-shadow: none; }

.hilfe { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.hilfe.err { color: var(--err); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.haken { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.55; margin: 26px 0 0; cursor: pointer; }
.haken input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--akzent); }
.haken a { color: var(--akzent); }
.preis { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--akzent-weich); border-left: 4px solid var(--gelb); }
.preis strong { font-size: 21px; font-family: var(--marke); font-weight: 400; }

.knopf { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 32px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--akzent);
  color: var(--knopf-text); font-family: var(--marke); font-weight: 400; font-size: 19px; letter-spacing: .02em; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,125,193,.28); transition: background-color .2s, transform .15s; }
.knopf:hover { background: var(--akzent-tief); transform: translateY(-1px); }
.knopf:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
.knopf.zweit { background: none; color: var(--akzent); border: 1.5px solid var(--linie); min-height: 50px; box-shadow: none; font-size: 17px; }
.knopf.zweit:hover { border-color: var(--akzent); transform: none; }
.pay-marke { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.pay-marke .schloss { width: 13px; height: 13px; flex: none; }
.pay-marke img { height: 20px; width: auto; display: block; }

.fehler { background: var(--err-weich); color: var(--err); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; font-size: 14.5px; }
.fehler p { margin: 4px 0; }
.erfolg, .warnung { border-radius: 14px; padding: 20px 22px; margin-bottom: 20px; }
.erfolg { background: var(--ok-weich); }
.warnung { background: var(--warn-weich); }
.erfolg p, .warnung p { margin: 8px 0; }
.gross { font-family: var(--marke); font-size: 22px; line-height: 1.25; }
.erfolg .gross { color: var(--ok); }
.warnung .gross { color: var(--warn); }
.klein { font-size: 13.5px; color: var(--muted); }
.versteckt { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.fuss { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin: auto 0 0; padding: 40px 20px 28px; font-size: 13px; color: var(--muted); }
.fuss a { color: var(--muted); text-decoration: none; }
.fuss a:hover { color: var(--akzent); text-decoration: underline; }

@media (max-width: 760px) { .leiste-text { display: none; } .leiste-innen { justify-content: space-between; } }
@media (max-width: 600px) {
  .logo img { height: 46px; }
  .held { padding: 30px 20px 96px; }
  .held h1 { font-size: 31px; }
  .einleitung { font-size: 16px; }
  .blende { width: 260px; height: 260px; right: -80px; top: -40px; }
  .karte { padding: 26px 22px 26px; margin-top: -68px; }
  .zwei { grid-template-columns: 1fr; }
  .knopf { font-size: 17px; }
}
@media (max-width: 420px) { .leiste-innen { padding: 8px 14px; } .karte { width: calc(100% - 20px); padding: 22px 18px 22px; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* Preis: Mengenrabatt, kostenlos */
.staffel { color: var(--akzent-tief); font-weight: 600; }
.gratis { margin: 28px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--ok-weich); color: var(--ok); border-left: 4px solid var(--gelb); font-weight: 600; font-size: 15px; }
/* Danke-Seite: Newsletter und Instagram */
.hinweis-box { margin: 18px 0 0; padding: 18px 20px; border: 1.5px solid var(--linie); border-radius: 14px; }
.hinweis-box p { margin: 4px 0; font-size: 14.5px; }
.hb-titel { font-family: var(--marke); font-size: 19px !important; }
.insta-box { display: flex; gap: 16px; align-items: flex-start; }
.insta-box .ig { width: 34px; height: 34px; flex: none; margin-top: 2px; color: var(--blau); }
.knopf.klein-knopf { display: inline-flex; width: auto; min-height: 44px; margin-top: 12px; padding: 0 20px; font-size: 16px; }
.unten-link { margin-top: 22px; }
