/* Schriften lokal: Fraunces (festliche Überschriften, Zahlen) + Barlow (Text, Bedienung) */
@font-face { font-family: Fraunces; font-weight: 600; font-display: swap; src: url(/fonts/display/fraunces-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Fraunces; font-weight: 700; font-display: swap; src: url(/fonts/display/fraunces-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Fraunces; font-weight: 800; font-display: swap; src: url(/fonts/display/fraunces-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: Fraunces; font-weight: 900; font-display: swap; src: url(/fonts/display/fraunces-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(/fonts/text/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(/fonts/text/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(/fonts/text/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(/fonts/text/barlow-latin-700-normal.woff2) format('woff2'); }

/* „Festabend“: Tannengrün bei Nacht, Kerzengold, GGM-Rot, Lichterkette, Festtagskarten, Samttafeln, Geschenke */
:root {
  /* Markenfarben – werden zur Laufzeit aus den Backend-Einstellungen überschrieben */
  --primary: #d6001c;        /* GGM-Rot */
  --primary-rgb: 214, 0, 28;
  --dark: #0b2a1f;           /* Tannengrün bei Nacht (Grund der Bühne) */
  --surface: #123a2c;        /* Tannengrün, etwas heller */
  --surface-2: #1a4636;
  --gold: #f2c14e;           /* Kerzengold */
  /* feste Festtagsmaterialien */
  --gilt: #d8b25c;           /* Goldrahmen */
  --gilt-deep: #9c7a2e;
  --paper: #fbf6ea;          /* Festtagskarte (Elfenbein) */
  --ink: #2b1f19;            /* Schrift auf der Karte */
  --ink-soft: #6e5d51;
  --velvet: #5e0f1d;         /* Samttafel (Punktestand) */
  --cream: #fbf0dc;          /* Schrift auf Samt */
  --line: rgba(255, 255, 255, .12);
  --text: #f7f3ea;
  --muted: #b9c6bd;
  --ok: #2f8a4e;
  --bad: #e5484d;
  --radius: 14px;
  --font: Barlow, 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: Fraunces, Georgia, 'Times New Roman', serif;
  /* feiner Sternenstaub als Struktur */
  --texture: radial-gradient(circle at 3px 3px, rgba(255, 236, 190, .07) 1px, transparent 1.6px) 0 0 / 26px 26px,
             radial-gradient(circle at 16px 15px, rgba(255, 255, 255, .04) 1px, transparent 1.6px) 0 0 / 26px 26px;
  /* Stechpalmenzweig (eigene Zeichnung) */
  --holly: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cg fill='%23175c3a' stroke='%230c3a24' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M58 34 C48 22 38 26 30 18 C30 26 22 28 18 34 C26 34 28 42 24 48 C34 44 42 48 46 54 C48 46 54 42 58 34Z'/%3E%3Cpath d='M62 34 C72 22 82 26 90 18 C90 26 98 28 102 34 C94 34 92 42 96 48 C86 44 78 48 74 54 C72 46 66 42 62 34Z'/%3E%3C/g%3E%3Cg fill='%23d6001c' stroke='%238a0012' stroke-width='1.5'%3E%3Ccircle cx='53' cy='30' r='7'/%3E%3Ccircle cx='67' cy='30' r='7'/%3E%3Ccircle cx='60' cy='21' r='7'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.55'%3E%3Ccircle cx='51' cy='28' r='2'/%3E%3Ccircle cx='65' cy='28' r='2'/%3E%3Ccircle cx='58' cy='19' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--dark); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.brand-mark { display: inline-flex; align-items: center; gap: .45em; font-family: var(--display); font-weight: 900; line-height: 1; }
.brand-mark img { height: 1.6em; width: auto; display: block; }
.brand-mark img.bm-wm { height: 1.25em; }
.brand-mark .bm-d { display: none; }
/* auf der hellen Festtagskarte: "gastro" dunkel statt weiß */
.xcard .brand-mark .bm-l { display: none; }
.xcard .brand-mark .bm-d { display: block; }

/* Festtagskarte: Elfenbein, doppelter Goldrahmen, Stechpalmenzweig oben */
.xcard { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1.5px var(--gilt), inset 0 0 0 7px var(--paper), inset 0 0 0 8.5px color-mix(in srgb, var(--gilt), transparent 35%), 0 24px 50px rgba(0, 0, 0, .4); }
.xcard::before { content: ''; position: absolute; left: 50%; top: 0; width: 96px; height: 48px; transform: translate(-50%, -54%); background: var(--holly) center / contain no-repeat; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }

/* Lichterkette: Kabel in Bögen, bunte Birnen, die leise funkeln */
.lights { position: absolute; left: 0; right: 0; height: 40px; pointer-events: none; z-index: 4; }
.lights::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(60px 26px at 60px -6px, transparent 23px, #0a1f17 24px 26px, transparent 27px) 0 0 / 120px 40px repeat-x; }
.lights::after { content: ''; position: absolute; inset: 0; animation: twinkle 3.2s ease-in-out infinite alternate;
  background:
    radial-gradient(circle at 22px 20px, #ff5a64 0 6px, transparent 7px),
    radial-gradient(circle at 60px 28px, #ffd36b 0 6px, transparent 7px),
    radial-gradient(circle at 98px 20px, #6fdc8c 0 6px, transparent 7px);
  background-size: 120px 40px; background-repeat: repeat-x;
  filter: drop-shadow(0 0 5px rgba(255, 220, 140, .9)) drop-shadow(0 0 12px rgba(255, 200, 120, .45)); }
@keyframes twinkle { 0% { opacity: .78; } 45% { opacity: 1; } 60% { opacity: .86; } 100% { opacity: 1; } }

/* Formen (nur noch im Backend für die Live-Ansicht) */
.shape { display: inline-block; width: 1em; height: 1em; flex: none; background: currentColor; }
.shape-0 { clip-path: polygon(50% 4%, 96% 92%, 4% 92%); }
.shape-1 { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.shape-2 { border-radius: 50%; }
.shape-3 { border-radius: 12%; transform: scale(.88); }

#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
