@font-face { font-family: 'Brittany Signature'; src: url('fonts/BrittanySignature.ttf') format('truetype'); font-display: swap; }

:root {
  --bg: #faf8f4; --ink: #2b3a34; --muted: #77857d; --card: #fff; --line: #e8e3da;
  --accent: #608176; --accent-dark: #4f6c63; --accent-soft: #eef3f1;
  --radius: 14px; --shadow: 0 10px 30px rgba(40, 50, 45, .10);
  --sans: Calibri, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; min-height: 100vh; }
img, video { display: block; max-width: 100%; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.script { font-family: 'Brittany Signature', 'Snell Roundhand', cursive; font-weight: normal; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid transparent; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.97); }
.btn.big { padding: 15px 28px; font-size: 18px; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: rgba(255, 255, 255, .85); color: var(--accent-dark); border-color: var(--accent); }
.btn.ghost:hover { background: #fff; }
.btn.ghost-d { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Zentrierte Seiten (Bald / Code) */
.center-page { display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 50% -10%, var(--accent-soft), var(--bg)); }
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 44px 28px; width: 100%; max-width: 560px; text-align: center; }
.card h1 { font-size: clamp(48px, 13vw, 76px); margin: 0; line-height: 1.05; }
.card .date { font-size: clamp(30px, 8vw, 40px); margin: 4px 0 0; color: var(--accent-dark); }
.card h2 { margin: 6px 0 8px; font-size: 26px; }
.divider { color: var(--accent); margin: 18px 0; font-size: 22px; }
.lead { margin: 0 auto; max-width: 34em; color: #46564e; }
.countdown { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.countdown div { background: var(--accent-soft); border-radius: 14px; padding: 12px 6px; min-width: 66px; }
.countdown b { display: block; font-size: 30px; font-variant-numeric: tabular-nums; color: var(--accent-dark); line-height: 1.1; }
.countdown span { font-size: 13px; color: var(--muted); }
.codeform { display: grid; gap: 12px; margin-top: 20px; }
.codeform input { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 18px; text-align: center; }
.alert { background: #fdecea; color: #7a1f1f; border: 1px solid #f2c6c2; border-radius: 10px; padding: 10px 14px; }
.adminbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: #222; color: #fff; font-size: 14px; text-align: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
.adminbar a { color: #bfe0d5; }

/* Hero */
.hero { text-align: center; padding: 56px 20px 40px; background: radial-gradient(900px 400px at 50% -20%, var(--accent-soft), transparent), var(--bg); position: relative; background-size: cover; background-position: center; }
.hero-in { position: relative; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(54px, 15vw, 96px); margin: 0; line-height: 1.02; }
.hero .date { font-size: clamp(30px, 8vw, 44px); margin: 2px 0 14px; color: var(--accent-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.hint { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

/* Leiste */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(250, 248, 244, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.tabs { display: flex; gap: 4px; background: #eee9df; border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 600; color: #5a6a62; font-size: 15px; white-space: nowrap; }
.tabs button i { font-style: normal; font-weight: 400; opacity: .7; margin-left: 2px; font-size: 13px; }
.tabs button.on { background: #fff; color: var(--accent-dark); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tools { display: flex; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .bar { padding: 6px 8px; gap: 6px; }
  .tabs, .tools { width: 100%; }
  .tabs button { flex: 1; padding: 7px 8px; }
  .tools { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tools::-webkit-scrollbar { display: none; }
  .tools > * { flex: none; }
  .hero { padding: 36px 16px 28px; }
  .hero h1 { font-size: clamp(48px, 13vw, 70px); }
  .hero .date { margin-bottom: 8px; }
}
.sel select, .chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 14.5px; }
.sel select { padding-right: 6px; max-width: 170px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Raster */
main { padding: 4px 3px 90px; max-width: 1500px; margin: 0 auto; }
.grid { --g: 4px; }
.row { display: flex; gap: var(--g); margin-bottom: var(--g); }
@media (min-width: 700px) { main { padding: 8px 12px 90px; } }
.tile { position: relative; height: 100%; min-width: 0; border: 0; padding: 0; background: #e9e5dc; overflow: hidden; border-radius: 7px; box-shadow: 0 1px 2px rgba(30, 40, 35, .12); transition: box-shadow .25s; }
.tile:hover { box-shadow: 0 8px 22px rgba(30, 40, 35, .22); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .25s, opacity .3s; }
.tile img { opacity: 0; } .tile img.ok { opacity: 1; }
.tile .badge { backdrop-filter: blur(4px); }
@media (hover: hover) { .tile:hover img, .tile:hover video { transform: scale(1.05); } }
.tile .badge { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .62); color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 8px 2px 6px; display: flex; align-items: center; gap: 4px; pointer-events: none; }
.tile .rx { position: absolute; left: 6px; bottom: 6px; background: rgba(255, 255, 255, .92); color: #333; border-radius: 999px; font-size: 12px; padding: 1px 8px; pointer-events: none; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.tile .check { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .25); display: none; place-items: center; color: #fff; font-size: 15px; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.selecting .tile .check { display: grid; }
.selecting .tile .rx { display: none; }
.tile.picked .check { background: var(--accent); border-color: #fff; }
.tile.picked img, .tile.picked video { transform: scale(.88); border-radius: 8px; }
.tile.picked { background: var(--accent-soft); }
.tile.novideo::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 30px; background: linear-gradient(135deg, #5d6f67, #34423c); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty b { display: block; font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.foot { text-align: center; color: #8a958f; padding: 40px 16px 110px; font-size: 15px; }
.foot p { margin: 4px 0; } .foot a { color: inherit; }

.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); z-index: 40; }
.fab:active { transform: scale(.94); }
.selbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; background: #1f2a26; color: #fff; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
.selbar .btn { padding: 8px 16px; }

/* Großansicht */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 12, .96); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; display: flex; align-items: center; gap: 8px; color: #fff; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; text-decoration: none; }
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-stage { width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 0 46px; }
.lb-stage img, .lb-stage video { max-width: 100vw; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-stage video { background: #000; max-height: calc(100vh - 100px); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 42px; line-height: 1; z-index: 2; border-radius: 10px; }
.lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
@media (hover: none) { .lb-nav { display: none; } }
.lb-cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); color: #e7efeb; font-size: 14px; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.lb-msg { color: #fff; text-align: center; padding: 20px; max-width: 28em; }
.lb-msg a { color: #bfe0d5; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: sp .8s linear infinite; position: absolute; }
@keyframes sp { to { transform: rotate(360deg); } }

/* Sheets */
.sheet-back { position: fixed; inset: 0; z-index: 90; background: rgba(15, 22, 19, .55); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .sheet-back { align-items: center; } }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
@media (min-width: 640px) { .sheet { border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; font-size: 22px; }
.x { border: 0; background: #f0ede6; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; }
.up-overall { margin: 6px 0 14px; }
.up-overall span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.bar-track { height: 10px; background: #ebe7df; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .2s; }
.field { display: block; font-weight: 600; margin: 12px 0; }
.field small { font-weight: 400; color: var(--muted); }
.field input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 17px; font-weight: 400; }
.up-list { list-style: none; margin: 10px 0; padding: 0; max-height: 38vh; overflow: auto; display: grid; gap: 8px; }
.up-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; background: #faf8f4; border-radius: 12px; padding: 6px; }
.up-item .th { width: 52px; height: 52px; border-radius: 8px; background: #e6e2d8 center/cover; display: grid; place-items: center; color: #fff; font-size: 20px; }
.up-item .nm { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-item .st { font-size: 13px; color: var(--muted); }
.up-item .mini { height: 5px; background: #e6e2d8; border-radius: 9px; margin-top: 5px; overflow: hidden; }
.up-item .mini i { display: block; height: 100%; width: 0; background: var(--accent); }
.up-item.ok .st { color: #2e7d4f; } .up-item.err .st { color: #b3261e; }
.up-item .rt { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.sheet-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.dl-options { display: grid; gap: 10px; margin-top: 12px; }
.dl-options button { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: var(--accent-soft); border: 1px solid transparent; border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.dl-options button:hover { border-color: var(--accent); }
.dl-options small { font-weight: 400; color: var(--muted); display: block; }

.dropzone { position: fixed; inset: 0; z-index: 120; background: rgba(96, 129, 118, .88); display: grid; place-items: center; color: #fff; font-size: 28px; font-weight: 700; border: 6px dashed #fff; }
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: #1f2a26; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 15px; opacity: 0; pointer-events: none; transition: .25s; z-index: 150; max-width: 92vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Reaktionen */
.lb-react { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(44px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 8px; padding: 0 10px; }
.rb { display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.25); background: rgba(20,28,24,.62); backdrop-filter: blur(6px); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 15px; transition: transform .12s, background .15s; }
.rb .em { font-size: 24px; line-height: 1; }
.rb .n { min-width: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.rb.on { background: rgba(255,255,255,.95); color: #222; border-color: #fff; }
.rb:active { transform: scale(1.18); }
.lb-stage { padding-bottom: 110px; }
.lb-stage video { max-height: calc(100vh - 170px); }
.lb-fly { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.fly { position: absolute; bottom: 90px; opacity: 0; animation: rise 2.8s cubic-bezier(.2,.7,.3,1) forwards; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
@keyframes rise {
  0% { transform: translate(0, 0) scale(.3); opacity: 0; }
  12% { opacity: 1; transform: translate(0, -30px) scale(1.15); }
  100% { transform: translate(var(--dx, 0), -62vh) scale(1); opacity: 0; }
}
@media (max-width: 420px) { .rb { padding: 5px 9px; } .rb .em { font-size: 22px; } .lb-react { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .fly { animation-duration: 1.2s; } }

/* =================================================================
   Design v2 – schlicht, edel, liebevoll, modern
   ================================================================= */
:root {
  --bg: #fbf9f5; --ink: #2f3a35; --muted: #8a8f88; --line: #ece6da; --gold: #b79e6e; --gold-soft: #e9dfc8;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --shadow: 0 18px 50px rgba(60, 50, 30, .10);
}
body { background: var(--bg); }
h1, h2, .day .dt, .foot p, .lead, .datel { font-family: var(--serif); }

/* Hero */
.hero { padding: 64px 20px 44px; background:
    radial-gradient(700px 320px at 50% -10%, rgba(183, 158, 110, .14), transparent),
    radial-gradient(500px 260px at 12% 100%, var(--accent-soft), transparent),
    var(--bg); }
.hero .lead, .card .lead { font-size: clamp(19px, 3.6vw, 22px); font-style: italic; line-height: 1.55; color: #55605a; max-width: 30em; }
.datel { margin: 6px 0 22px; font-size: 15px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.datel span { display: inline-flex; align-items: center; gap: 16px; }
.datel span::before, .datel span::after { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .55; }
.hero h1, .card h1 { color: var(--ink); }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 20px auto; color: var(--gold); max-width: 220px; }
.divider i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.divider i:last-child { background: linear-gradient(270deg, transparent, var(--gold-soft)); }
.divider b { font-weight: 400; font-size: 15px; }
.card { border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.card::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--gold-soft); border-radius: 16px; pointer-events: none; }
.card h2 { font-weight: 600; font-size: 30px; letter-spacing: .01em; }
.card .date { display: none; }

/* Buttons */
.btn { letter-spacing: .02em; }
.btn.primary { background: var(--accent); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.ghost { background: transparent; border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent-dark); }
.btn.ghost:hover { background: #fff; }

/* Leiste */
.bar { background: rgba(251, 249, 245, .92); border-bottom: 1px solid var(--line); }
.tabs { background: transparent; padding: 0; gap: 2px; }
.tabs button { background: transparent; border-radius: 0; padding: 9px 16px; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .01em; color: #7b837d; border-bottom: 2px solid transparent; }
.tabs button i { font-family: var(--sans); }
.tabs button.on { background: transparent; box-shadow: none; color: var(--ink); border-bottom-color: var(--gold); }
.sel select, .chip { background: transparent; border-color: var(--line); color: #55605a; }
.chip[aria-pressed="true"] { background: var(--accent); }

/* Tages-Überschriften */
.day { display: grid; justify-items: center; gap: 0; margin: 46px 12px 22px; text-align: center; font-family: var(--serif); }
.day .wd { font-family: var(--sans); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.day .dt { font-size: clamp(28px, 5.4vw, 38px); line-height: 1.15; font-weight: 500; color: var(--ink); margin-top: 4px; }
.day .orn { display: flex; align-items: center; gap: 12px; width: min(280px, 70%); margin-top: 10px; color: var(--gold); font-size: 11px; }
.day .orn::before, .day .orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.day .orn::after { background: linear-gradient(270deg, transparent, var(--gold-soft)); }
.day .orn i { font-style: normal; }
.day .ct { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .08em; margin-top: 8px; }

/* Kacheln */
.tile { border-radius: 5px; box-shadow: 0 1px 3px rgba(60, 50, 30, .14); }
.tile:hover { box-shadow: 0 14px 30px -8px rgba(60, 50, 30, .38); }
.tile .badge { background: rgba(30, 30, 28, .55); }
main { padding-top: 0; }

/* Fuß */
.foot { padding: 70px 16px 120px; color: var(--muted); }
.foot::before { content: "♥"; display: block; color: var(--gold); margin-bottom: 14px; font-size: 16px; }
.foot p { font-size: 16px; font-style: italic; }
.empty b { font-family: var(--serif); font-size: 26px; font-weight: 600; }

/* Sheets */
.sheet { border-radius: 24px 24px 0 0; }
.sheet-head h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
@media (max-width: 640px) {
  .hero { padding: 44px 16px 30px; }
  .datel { font-size: 13px; letter-spacing: .28em; }
  .datel span::before, .datel span::after { width: 24px; }
  .tabs button { padding: 8px 10px; font-size: 18px; }
  .day { margin-top: 36px; }
}

/* =================================================================
   Layout-Feinschliff: einheitliche Breite, Kachel-Tilt
   ================================================================= */
:root { --wrap: 1640px; --pad: 14px; }
.bar { padding-left: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))); padding-right: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))); }
main { max-width: var(--wrap); padding: 0 var(--pad) 90px; }
.tile { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1); transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s; will-change: transform; transform-style: preserve-3d; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.045); box-shadow: 0 22px 40px -14px rgba(50, 40, 20, .5); z-index: 5; transition: transform .12s ease-out, box-shadow .28s; }
  .tile:hover img, .tile:hover video { transform: none; }
}
.tile.picked { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }
.tile.picked img, .tile.picked video { transform: none; border-radius: 0; }

/* Schreibschrift hat lange Unterlängen (y, g, B) – ausreichend Luft zum Datum */
.hero h1, .card h1 { line-height: 1.25; padding-bottom: .16em; }
.datel { margin-top: .5em; margin-bottom: 26px; }
.hero .lead { margin-top: 4px; }
@media (max-width: 640px) { .hero h1, .card h1 { line-height: 1.22; padding-bottom: .14em; } .datel { margin-top: .4em; } }

/* =================================================================
   Schrift, Upload-Dialog, Willkommen, Diashow
   ================================================================= */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/CormorantGaramond-500.ttf') format('truetype'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/CormorantGaramond-600.ttf') format('truetype'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/CormorantGaramond-Italic-400.ttf') format('truetype'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/CormorantGaramond-Italic-500.ttf') format('truetype'); }
.day .dt, .lead, .card h2, .tabs button { font-weight: 500; }
.lead { font-size: clamp(20px, 3.8vw, 24px); }

.hero { position: relative; overflow: hidden; }
.help-link { margin: 18px 0 0; }
.help-link button { background: none; border: 0; padding: 4px 8px; color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.chip.icon { padding: 7px 12px; font-size: 16px; line-height: 1; }

/* Upload-Dialog */
.btn.wide { width: 100%; }
.up-choose { display: grid; gap: 12px; margin: 10px 0 4px; }
.cam-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cam-row .btn { padding: 12px 10px; }
.drop-hint { font-size: 14px; color: var(--muted); text-align: center; margin: 2px 0 0; }

/* Willkommen */
.hello { text-align: left; }
.hello h2 { font-family: 'Brittany Signature', cursive; font-weight: normal; font-size: 52px; text-align: center; margin: 4px 0 14px; color: var(--accent-dark); }
.steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.4; }
.steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.steps strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.tip { background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; font-size: 15px; margin: 0 0 6px; }

/* Konfetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.cf { position: absolute; top: -40px; animation: cfall linear forwards; }
@keyframes cfall { to { transform: translate(var(--dx, 0), 112vh) rotate(540deg); opacity: .9; } }

/* Großansicht: weiche Übergänge, Diashow */
.lb-stage img.fadein { animation: lbfade .45s ease-out; }
@keyframes lbfade { from { opacity: 0; } }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
.lb-stage img.kb { animation-name: lbfade, kb; animation-timing-function: ease-out, linear; animation-fill-mode: both, forwards; }
.lb.ss .lb-top, .lb.ss .lb-react, .lb.ss .lb-cap, .lb.ss .lb-nav { opacity: 0; pointer-events: none; transition: opacity .5s; }
.lb.ss.ui .lb-top, .lb.ss.ui .lb-react, .lb.ss.ui .lb-cap, .lb.ss.ui .lb-nav { opacity: 1; pointer-events: auto; }
.lb.ss { cursor: none; } .lb.ss.ui { cursor: default; }
.lb-top .lb-btn[hidden] { display: none; }

/* Kopfbereich: bewusst ganz schlicht, ohne Verläufe oder Leuchteffekte */
.hero { background: var(--bg); }

/* Mobil: Filter hinter einem Symbol (Dropdown) statt scrollender Leiste */
.filterbtn { display: none; position: relative; width: 42px; height: 42px; flex: none; border: 1px solid var(--line); background: transparent; border-radius: 50%; color: #55605a; place-items: center; }
.filterbtn .dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 640px) {
  .bar { flex-wrap: nowrap; align-items: center; gap: 8px; }
  .tabs { flex: 1 1 auto; width: auto; min-width: 0; justify-content: space-between; }
  .tabs button { flex: 1; }
  .filterbtn { display: grid; }
  .bar.open .filterbtn { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
  .tools { display: none; position: absolute; left: 8px; right: 8px; top: 100%; margin-top: 6px; width: auto; flex-direction: column; align-items: stretch; gap: 10px; overflow: visible; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(60, 50, 30, .18); }
  .bar.open .tools { display: flex; }
  .tools > * { flex: none; }
  .tools .sel select { width: 100%; max-width: none; padding: 11px 14px; font-size: 16px; border-radius: 12px; }
  .tools .chip { width: 100%; padding: 11px 14px; font-size: 16px; text-align: center; border-radius: 12px; }
}

/* Zoom in der Großansicht */
.lb-stage img { touch-action: none; will-change: transform; transform-origin: center center; }
.lb.zoomed .lb-stage img { cursor: grab; }
.lb.zoomed .lb-nav { opacity: 0; pointer-events: none; }
