/* =====================================================================
   Momente – Designs für die Gäste-Seite
   Auswahl per THEME in der docker-compose.yml: noir | papier | salbei | festival | sofortbild
   Nur Systemschriften (keine externen Fonts – DSGVO-freundlich).
   ===================================================================== */

/* ---------------------------------------------------------------- PAPIER
   Hell, edel, redaktionell – wie eine gute Hochzeitseinladung */
html[data-theme="papier"] {
  --bg: #f5f0e8; --text: #1c1915; --muted: rgba(28,25,21,.62); --faint: rgba(28,25,21,.42);
  --line: rgba(28,25,21,.14); --line-strong: rgba(28,25,21,.3);
  --surface: rgba(28,25,21,.04); --surface-2: rgba(28,25,21,.08);
  --accent: #8e3b2c; --accent-2: #6d2a1f; --accent-ink: #fff; --ok: #3f7a52; --err: #b0392b;
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Times New Roman", serif;
  --radius: 6px;
  color-scheme: light;
}
[data-theme="papier"] .aurora i { opacity: .35; filter: blur(90px); }
[data-theme="papier"] .aurora i:nth-child(1) { background: radial-gradient(circle, #e7d3bd 0%, transparent 65%); }
[data-theme="papier"] .aurora i:nth-child(2) { background: radial-gradient(circle, #eadfd2 0%, transparent 65%); }
[data-theme="papier"] .aurora i:nth-child(3) { background: radial-gradient(circle, #e2cbb6 0%, transparent 62%); }
[data-theme="papier"] .grain { opacity: .05; mix-blend-mode: multiply; }
[data-theme="papier"] .display { font-weight: 400; letter-spacing: -.01em; }
[data-theme="papier"] .eyebrow { color: var(--text); }
[data-theme="papier"] .card { background: #fffdf9; border-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 24px 60px -36px rgba(60,40,20,.35); backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-theme="papier"] .field input { background: #fff; border-color: var(--line); border-radius: 4px; }
[data-theme="papier"] .sheet { border-radius: 10px 10px 0 0; }
[data-theme="papier"] .avatar { border-radius: 4px; }
[data-theme="papier"] .field input:focus { background: #fff; border-color: var(--text); box-shadow: none; }
[data-theme="papier"] .field input:focus + label,
[data-theme="papier"] .field input:not(:placeholder-shown) + label { color: var(--accent); }
[data-theme="papier"] .toggle .sw { background: rgba(28,25,21,.12); }
[data-theme="papier"] .toggle input:checked + .sw { background: var(--text); }
[data-theme="papier"] .btn { background: var(--text); color: #fff; box-shadow: none; border-radius: 4px; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
[data-theme="papier"] .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
[data-theme="papier"] .drop { background: #fffdf9; border: 1px solid var(--line); border-radius: 6px; }
[data-theme="papier"] .drop::before { display: none; }
[data-theme="papier"] .drop::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
[data-theme="papier"] .lens { background: var(--text); box-shadow: none; animation: none; }
[data-theme="papier"] .lens svg { color: #fff; }
[data-theme="papier"] .avatar { background: var(--text); color: #fff; }
[data-theme="papier"] .tile { border-radius: 2px; }
[data-theme="papier"] .tile .badge { background: rgba(255,255,255,.9); }
[data-theme="papier"] .bar i { background: var(--text); }
[data-theme="papier"] .sheet { background: #fffdf9; }
[data-theme="papier"] .toast { background: var(--text); color: #fff; }
[data-theme="papier"] .date-chip::before { background: var(--accent); box-shadow: none; }

/* ---------------------------------------------------------------- SALBEI
   Natürlich, warm, freundlich – Garten, Familie, Sommer */
html[data-theme="salbei"] {
  --bg: #e9ece2; --text: #243129; --muted: rgba(36,49,41,.66); --faint: rgba(36,49,41,.45);
  --line: rgba(36,49,41,.13); --line-strong: rgba(36,49,41,.28);
  --surface: rgba(255,255,255,.5); --surface-2: rgba(255,255,255,.75);
  --accent: #c4623a; --accent-2: #a84d29; --accent-ink: #fff; --ok: #4c7d57; --err: #b8452e;
  --serif: "Optima", "Candara", "Segoe UI", "Avenir Next", sans-serif;
  --radius: 26px;
  color-scheme: light;
}
[data-theme="salbei"] .aurora i { opacity: .7; }
[data-theme="salbei"] .aurora i:nth-child(1) { background: radial-gradient(circle, #c9d6bf 0%, transparent 65%); }
[data-theme="salbei"] .aurora i:nth-child(2) { background: radial-gradient(circle, #f2cdb3 0%, transparent 62%); }
[data-theme="salbei"] .aurora i:nth-child(3) { background: radial-gradient(circle, #b7c9b0 0%, transparent 62%); }
[data-theme="salbei"] .grain { opacity: .04; mix-blend-mode: multiply; }
[data-theme="salbei"] .display { font-weight: 500; letter-spacing: -.025em; }
[data-theme="salbei"] .display em { font-style: normal; color: var(--accent); }
[data-theme="salbei"] .eyebrow { color: #5e7d63; }
[data-theme="salbei"] .card { background: rgba(255,255,255,.62); border-color: rgba(255,255,255,.8); box-shadow: 0 30px 60px -40px rgba(36,49,41,.45); }
[data-theme="salbei"] .field input { background: rgba(255,255,255,.85); border-color: transparent; border-radius: 18px; }
[data-theme="salbei"] .field input:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(196,98,58,.12); }
[data-theme="salbei"] .toggle .sw { background: rgba(36,49,41,.15); border-color: transparent; }
[data-theme="salbei"] .toggle input:checked + .sw { background: #5e7d63; }
[data-theme="salbei"] .btn { background: var(--accent); color: #fff; border-radius: 20px; box-shadow: 0 14px 28px -14px rgba(196,98,58,.8); }
[data-theme="salbei"] .btn.ghost { background: rgba(255,255,255,.7); color: var(--text); border: 0; box-shadow: none; }
[data-theme="salbei"] .drop { background: rgba(255,255,255,.55); border: 2px dashed rgba(94,125,99,.45); }
[data-theme="salbei"] .drop::before { display: none; }
[data-theme="salbei"] .lens { background: radial-gradient(circle at 35% 30%, #f3b393, var(--accent) 60%); box-shadow: 0 18px 36px -14px rgba(196,98,58,.8); }
[data-theme="salbei"] .lens svg { color: #fff; }
[data-theme="salbei"] .avatar { background: #5e7d63; color: #fff; }
[data-theme="salbei"] .tile { border-radius: 18px; border: 3px solid #fff; box-shadow: 0 10px 20px -14px rgba(36,49,41,.6); }
[data-theme="salbei"] .tile .badge { background: #fff; }
[data-theme="salbei"] .tile .badge svg { color: #4c7d57; }
[data-theme="salbei"] .bar i { background: linear-gradient(90deg, #5e7d63, var(--accent)); }
[data-theme="salbei"] .sheet { background: #f3f5ee; }
[data-theme="salbei"] .toast { background: var(--text); color: #fff; }
[data-theme="salbei"] .date-chip::before { background: var(--accent); box-shadow: none; }

/* ---------------------------------------------------------------- FESTIVAL
   Laut, bunt, Party – Geburtstage, Feiern, Sommerfeste */
html[data-theme="festival"] {
  --bg: #12062b; --text: #ffffff; --muted: rgba(255,255,255,.7); --faint: rgba(255,255,255,.48);
  --line: rgba(255,255,255,.16); --line-strong: rgba(255,255,255,.3);
  --accent: #ffd23f; --accent-2: #ff3d7f; --accent-ink: #12062b;
  --serif: "Avenir Next Condensed", "Futura", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --radius: 28px;
}
[data-theme="festival"] .aurora i { opacity: .85; filter: blur(70px); }
[data-theme="festival"] .aurora i:nth-child(1) { background: radial-gradient(circle, #ff3d7f 0%, transparent 60%); }
[data-theme="festival"] .aurora i:nth-child(2) { background: radial-gradient(circle, #2de2e6 0%, transparent 60%); opacity: .55; }
[data-theme="festival"] .aurora i:nth-child(3) { background: radial-gradient(circle, #7b2ff7 0%, transparent 62%); }
[data-theme="festival"] .grain { opacity: .09; }
[data-theme="festival"] .display { font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; line-height: .9; font-size: clamp(52px, 15vw, 96px); }
[data-theme="festival"] .display em {
  font-style: normal; background: linear-gradient(90deg, #ffd23f, #ff7a3d 45%, #ff3d7f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="festival"] .eyebrow { color: #2de2e6; font-weight: 700; }
[data-theme="festival"] .hello h2 { font-weight: 800; text-transform: uppercase; }
[data-theme="festival"] .hello h2 em { font-style: normal; color: #ffd23f; }
[data-theme="festival"] .card { background: rgba(18,6,43,.55); border: 1px solid rgba(255,255,255,.18); }
[data-theme="festival"] .field input { border-radius: 18px; }
[data-theme="festival"] .field input:focus { border-color: #2de2e6; box-shadow: 0 0 0 4px rgba(45,226,230,.15); }
[data-theme="festival"] .field input:focus + label,
[data-theme="festival"] .field input:not(:placeholder-shown) + label { color: #2de2e6; }
[data-theme="festival"] .toggle input:checked + .sw { background: #ff3d7f; }
[data-theme="festival"] .btn { background: linear-gradient(90deg, #ffd23f, #ff7a3d 50%, #ff3d7f); color: #12062b; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 14px 34px -10px rgba(255,61,127,.75); }
[data-theme="festival"] .btn.ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; text-transform: none; letter-spacing: 0; font-weight: 600; }
[data-theme="festival"] .drop { background: rgba(255,255,255,.05); border-color: transparent; }
[data-theme="festival"] .drop::before { background: conic-gradient(from var(--ang, 0deg), #ff3d7f, #ffd23f, #2de2e6, #7b2ff7, #ff3d7f); padding: 2px; animation-duration: 4s; }
[data-theme="festival"] .lens { background: conic-gradient(from 200deg, #ffd23f, #ff3d7f, #7b2ff7, #2de2e6, #ffd23f); box-shadow: 0 0 50px rgba(255,61,127,.6); }
[data-theme="festival"] .lens svg { color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
[data-theme="festival"] .avatar { background: linear-gradient(135deg, #2de2e6, #7b2ff7); color: #fff; }
[data-theme="festival"] .stats .count { font-weight: 800; }
[data-theme="festival"] .tile { border-radius: 20px; }
[data-theme="festival"] .tile .badge svg { color: #2de2e6; }
[data-theme="festival"] .bar i { background: linear-gradient(90deg, #2de2e6, #ff3d7f, #ffd23f); }
[data-theme="festival"] .sheet { background: #1c0d3d; }
[data-theme="festival"] .date-chip { color: #ffd23f; font-weight: 700; }
[data-theme="festival"] .date-chip::before { background: #2de2e6; box-shadow: 0 0 12px #2de2e6; }

/* ---------------------------------------------------------------- SOFORTBILD
   Verspielt, nostalgisch – Fotos wie Sofortbilder auf dem Tisch.
   Handschrift "Kalam" (SIL Open Font License, siehe fonts/Kalam-OFL.txt) wird
   vom NAS selbst ausgeliefert – sieht so auf allen Handys gleich aus. */
@font-face {
  font-family: "Kalam Momente";
  src: url("/assets/fonts/Kalam-Bold.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: block; /* kurz warten statt erst eine andere Schrift zu zeigen */
}
html[data-theme="sofortbild"] {
  --bg: #f4eee2; --text: #2b2520; --muted: rgba(43,37,32,.66); --faint: rgba(43,37,32,.45);
  --line: rgba(43,37,32,.16); --line-strong: rgba(43,37,32,.35);
  --surface: rgba(43,37,32,.04); --surface-2: rgba(43,37,32,.08);
  --accent: #e0573d; --accent-2: #c4432b; --accent-ink: #fff; --ok: #3e8a5e; --err: #c4432b;
  --serif: "Kalam Momente", "Noteworthy", "Marker Felt", "Segoe Print", sans-serif;
  --radius: 10px;
  color-scheme: light;
}
[data-theme="sofortbild"] body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 8px; z-index: 5;
  background: linear-gradient(90deg, #e0573d 0 20%, #f0913a 20% 40%, #f3c33c 40% 60%, #5fa86b 60% 80%, #3f84c4 80%);
}
[data-theme="sofortbild"] .aurora { display: none; }
[data-theme="sofortbild"] .grain { opacity: .09; mix-blend-mode: multiply; }
[data-theme="sofortbild"] .display { font-weight: 700; letter-spacing: 0; line-height: 1.02; transform: rotate(-1.5deg); }
[data-theme="sofortbild"] .display em { font-style: normal; color: var(--accent); }
[data-theme="sofortbild"] .eyebrow { color: #3f84c4; font-weight: 700; }
[data-theme="sofortbild"] .hello h2 { font-weight: 700; }
[data-theme="sofortbild"] .brand { font-style: normal; font-size: 16px; max-width: 80%; }
[data-theme="sofortbild"] .stats .count, [data-theme="sofortbild"] .sheet h3 { font-weight: 700; }
[data-theme="sofortbild"] .hello h2 em { font-style: normal; color: var(--accent); }
[data-theme="sofortbild"] .card { background: #fffdf8; border: 2px solid var(--text); box-shadow: 6px 6px 0 var(--text); backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-theme="sofortbild"] .field input { background: #fff; border: 2px solid var(--text); border-radius: 10px; }
[data-theme="sofortbild"] .field input:focus { background: #fff; box-shadow: 3px 3px 0 var(--accent); border-color: var(--text); }
[data-theme="sofortbild"] .field input:focus + label,
[data-theme="sofortbild"] .field input:not(:placeholder-shown) + label { color: var(--accent); }
[data-theme="sofortbild"] .toggle .sw { background: #fff; border: 2px solid var(--text); }
[data-theme="sofortbild"] .toggle .sw::after { background: var(--text); top: 1px; left: 1px; }
[data-theme="sofortbild"] .toggle input:checked + .sw { background: #f3c33c; border-color: var(--text); }
[data-theme="sofortbild"] .btn { background: var(--accent); color: #fff; border: 2px solid var(--text); border-radius: 12px; box-shadow: 4px 4px 0 var(--text); }
[data-theme="sofortbild"] .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--text); }
[data-theme="sofortbild"] .btn.ghost { background: #fff; color: var(--text); }
[data-theme="sofortbild"] .drop { background: #fff; border: 2px solid var(--text); border-radius: 6px; padding-bottom: 46px; box-shadow: 6px 6px 0 var(--text); transform: rotate(.8deg); }
[data-theme="sofortbild"] .drop::before { display: none; }
[data-theme="sofortbild"] .drop strong { font-family: var(--serif); font-size: 24px; }
[data-theme="sofortbild"] .lens { background: #2b2520; box-shadow: inset 0 0 0 8px #4a423b, inset 0 0 0 14px #2b2520; }
[data-theme="sofortbild"] .lens svg { color: #f3c33c; }
[data-theme="sofortbild"] .avatar { background: #f3c33c; color: var(--text); border: 2px solid var(--text); }
[data-theme="sofortbild"] .stats .count { font-weight: 700; }
[data-theme="sofortbild"] .grid { gap: 12px; }
[data-theme="sofortbild"] .tile { aspect-ratio: auto; background: #fff; padding: 6px 6px 22px; border-radius: 2px; border: 0; box-shadow: 0 6px 14px -6px rgba(43,37,32,.45); overflow: visible; }
[data-theme="sofortbild"] .tile:nth-child(3n+1) { transform: rotate(-2.5deg); }
[data-theme="sofortbild"] .tile:nth-child(3n+2) { transform: rotate(1.8deg); }
[data-theme="sofortbild"] .tile:nth-child(3n) { transform: rotate(-.8deg); }
[data-theme="sofortbild"] .tile img, [data-theme="sofortbild"] .tile video, [data-theme="sofortbild"] .tile .ph { aspect-ratio: 1; height: auto; }
[data-theme="sofortbild"] .tile .ring { bottom: 16px; }
[data-theme="sofortbild"] .tile .badge { bottom: 2px; right: 4px; background: transparent; }
[data-theme="sofortbild"] .tile .badge svg { color: #3e8a5e; }
[data-theme="sofortbild"] .bar { height: 6px; background: #fff; border: 2px solid var(--text); }
[data-theme="sofortbild"] .bar i { background: repeating-linear-gradient(90deg, #e0573d 0 12px, #f3c33c 12px 24px); }
[data-theme="sofortbild"] .gallery-hint { transform: rotate(-.6deg); }
[data-theme="sofortbild"] .sheet { background: #fffdf8; }
[data-theme="sofortbild"] .toast { background: var(--text); color: #fff; }
[data-theme="sofortbild"] .date-chip { color: var(--text); font-weight: 600; }
[data-theme="sofortbild"] .date-chip::before { background: var(--accent); box-shadow: none; }

/* ---------------------------------------------------------------- Galerie im Sofortbild-Look */
[data-theme="sofortbild"] .masonry { column-gap: 14px; }
[data-theme="sofortbild"] .item {
  background: #fff; padding: 7px 7px 30px; border-radius: 2px; overflow: visible; margin-bottom: 14px !important;
  box-shadow: 0 8px 18px -8px rgba(43,37,32,.45);
}
[data-theme="sofortbild"] .item.in:nth-child(4n+1) { transform: rotate(-1.6deg); }
[data-theme="sofortbild"] .item.in:nth-child(4n+2) { transform: rotate(1.2deg); }
[data-theme="sofortbild"] .item.in:nth-child(4n+3) { transform: rotate(-.6deg); }
[data-theme="sofortbild"] .item.in:nth-child(4n)   { transform: rotate(1.8deg); }
[data-theme="sofortbild"] .item img, [data-theme="sofortbild"] .item video { min-height: 80px; }
[data-theme="sofortbild"] .item .by {
  top: auto; bottom: 3px; padding: 0 9px; background: none; color: var(--text); opacity: 1;
  font-family: var(--serif); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[data-theme="sofortbild"] .item .play { top: 14px; right: 14px; }
[data-theme="sofortbild"] .chip { background: #fff; border: 2px solid var(--text); color: var(--text); }
[data-theme="sofortbild"] .chip b { color: var(--muted); }
[data-theme="sofortbild"] .chip.on { background: #f3c33c; color: var(--text); border-color: var(--text); }
[data-theme="sofortbild"] .chip.on b { color: var(--text); opacity: .6; }
[data-theme="sofortbild"] .live::before { background: #5fa86b; }
