@font-face { font-family: 'Inter'; src: url('/fonts/inter/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage/bricolage-grotesque-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
/* Schriften der Rahmen */
@font-face { font-family: 'Inter'; src: url('/fonts/inter/inter-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/fonts/caveat/caveat-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/fonts/caveat/caveat-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Shrikhand'; src: url('/fonts/shrikhand/shrikhand-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair-display/playfair-display-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('/fonts/eb-garamond/eb-garamond-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('/fonts/eb-garamond/eb-garamond-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Share Tech Mono'; src: url('/fonts/share-tech-mono/share-tech-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/fonts/courier-prime/courier-prime-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mrs Saint Delafield'; src: url('/fonts/mrs-saint-delafield/mrs-saint-delafield-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nanum Pen Script'; src: url('/fonts/nanum-pen-script/nanum-pen-script-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Special Elite'; src: url('/fonts/special-elite/special-elite-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond/cormorant-garamond-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --night: #14161F;
  --panel: #1E2130;
  --line: #3A3F52;
  --cream: #F5EFE3;
  --muted: #C9C3B6;
  --soft: #A9A396;
  --gold: #E8B04B;
  --gold-hi: #F3C976;
  --warn: #F2A07B;
  --wa: #1F8F4E;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--body); -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
button, input, a { font: inherit; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 20px; border-radius: 14px; border: 0;
  font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover:not(:disabled) { background: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-text { background: transparent; color: var(--warn); min-height: 44px; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; background: var(--panel); color: var(--cream); border-radius: 12px; }
.btn svg { flex-shrink: 0; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--soft); }
.input {
  height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  color: var(--cream); font-size: 16px; padding: 0 16px; width: 100%;
}
.input.code { font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.input[aria-invalid="true"] { border-color: var(--warn); }
.error { color: var(--warn); font-size: 14px; margin: 0; }

.check {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 14px;
  background: var(--panel); cursor: pointer;
}
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--gold); flex-shrink: 0; }
.check strong { display: block; font-size: 15px; }
.check small { display: block; font-size: 13px; color: var(--soft); line-height: 1.4; margin-top: 4px; }

.toast {
  position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(560px, calc(100% - 40px)); padding: 14px 16px; border-radius: 12px;
  background: var(--cream); color: var(--night); font-size: 14px; line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index: 50;
}
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in .2s ease-out; }
  @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
}

/* Rahmenauswahl */
.fbig { display: flex; justify-content: center; }
.fbig svg { width: 100%; max-height: 58dvh; display: block; filter: drop-shadow(0 8px 20px rgba(0,0,0,.45)); }
.fhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.fhead strong { font-size: 14px; }
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
.fopt { border: 0; background: transparent; padding: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 11px; }
.fopt .fx { width: 100%; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; border-radius: 6px; outline: 1px solid var(--line); outline-offset: 2px; overflow: hidden; }
.fopt .fx svg { max-width: 100%; max-height: 100%; display: block; }
.fopt[aria-pressed="true"] { color: var(--gold); font-weight: 600; }
.fopt[aria-pressed="true"] .fx { outline: 2px solid var(--gold); }
.pill-sm { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--cream); font-size: 13px; font-weight: 600; cursor: pointer; }
