/* Momentwand — gemeinsames Stylesheet (Gast, Wand, Admin). */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f0e8;
    color: #2b2b2b;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Grundbausteine ---------- */
.kopf { text-align: center; padding: 36px 20px 8px; }
.kopf h1 { font-family: ui-serif, Georgia, serif; font-weight: 600; font-size: clamp(26px, 6vw, 40px); margin: 0; }
.kopf .unter { color: #8a7f6d; font-style: italic; margin: 6px 0 0; }
.kopf .datum { color: #8a7f6d; font-size: 14px; margin: 4px 0 0; letter-spacing: 1px; }
.kopf.schmal { padding: 24px 20px 4px; }
.kopf.schmal h1 { font-size: 22px; }

.inhalt { max-width: 860px; margin: 0 auto; padding: 16px 16px 60px; }
.karte { background: #fffdf8; border: 1px solid #e5dccb; border-radius: 14px; padding: 20px; margin: 14px 0; box-shadow: 0 3px 14px rgba(0,0,0,.05); }
.karte h2 { font-family: ui-serif, Georgia, serif; font-weight: 600; margin: 0 0 6px; font-size: 20px; }
.hinweis { color: #7a7264; font-size: 14px; margin: 4px 0 12px; }
.hinweis.warn { color: #a05c2c; }
.hinweis.mitte { text-align: center; }
.pille { background: #e8e0d0; border-radius: 999px; padding: 3px 12px; font-size: 13px; color: #6b6152; }

.feld { display: block; margin: 10px 0; }
.feld span { display: block; font-size: 13px; color: #6b6152; margin-bottom: 4px; }
.feld em { font-style: normal; opacity: .7; }
.feld input, .feld textarea {
    width: 100%; padding: 11px 12px; border: 1px solid #d9cfbc; border-radius: 10px;
    font: inherit; background: #fff; color: inherit;
}
.feld input:focus, .feld textarea:focus { outline: 2px solid #b8a888; border-color: transparent; }

.knopf {
    display: inline-block; padding: 12px 18px; border: 1px solid #d9cfbc; border-radius: 10px;
    background: #fff; color: #2b2b2b; font: inherit; font-size: 15px; cursor: pointer; text-decoration: none;
}
.knopf.primaer { background: #2b2b2b; color: #fff; border-color: #2b2b2b; }
.knopf.klein { padding: 8px 12px; font-size: 13px; }
.knopfzeile.aufnahme { margin-top: 14px; }
.knopfzeile.aufnahme .knopf { flex: 1; }
.knopf.gross {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 16px 12px; font-size: 19px; border-radius: 14px;
}
.knopf.gross small { font-size: 12px; font-weight: 400; opacity: .75; }
.knopf:disabled { opacity: .45; cursor: default; }
.knopfzeile { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.fortschritt { margin-top: 12px; padding: 10px 14px; background: #efe8d8; border-radius: 10px; font-size: 14px; }

.leer { text-align: center; padding: 18vh 24px; }
.leer h1 { font-family: ui-serif, Georgia, serif; }
.leer.dunkel { color: #eee; }

/* ---------- Gast: Galerie ---------- */
.galerie-kopf { display: flex; align-items: center; gap: 10px; margin: 26px 4px 10px; }
.galerie-kopf h2 { font-family: ui-serif, Georgia, serif; font-weight: 600; margin: 0; }
.galerie { columns: 3 160px; column-gap: 10px; }
.kachel {
    position: relative; break-inside: avoid; margin-bottom: 10px; border-radius: 12px; overflow: hidden;
    background: #fffdf8; border: 1px solid #e5dccb; cursor: pointer;
}
.kachel img { width: 100%; display: block; }
.kachel .wer {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 6px; font-size: 12px; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none;
}
.kachel.typ-text .wer { position: static; background: none; color: #8a7f6d; padding: 0 14px 12px; display: block; }
.video-hinweis { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 10px; font-size: 30px; color: #6b6152; }
.video-hinweis span { font-size: 13px; }
.text-kachel p { font-family: ui-serif, Georgia, serif; font-style: italic; margin: 0; padding: 16px 14px 8px; font-size: 15px; line-height: 1.5; }
.text-kachel.klein p { font-size: 12px; padding: 10px; max-height: 90px; overflow: hidden; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; background: rgba(15,13,10,.93); z-index: 50;
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.lb-inhalt { max-width: 100%; max-height: 82vh; display: flex; justify-content: center; }
.lb-inhalt img, .lb-inhalt video { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lb-zitat { color: #f4f0e8; font-family: ui-serif, Georgia, serif; font-style: italic; font-size: clamp(20px, 4vw, 32px); text-align: center; max-width: 700px; line-height: 1.6; }
.lb-text { color: #cfc6b4; margin-top: 12px; font-size: 14px; text-align: center; }
.lb-zu { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Live-Wand ---------- */
body.wand { background: #12100d; color: #f4f0e8; overflow: hidden; height: 100vh; display: flex; flex-direction: column; }
.wand-kopf { display: flex; justify-content: space-between; align-items: center; padding: 22px 34px 14px; gap: 20px; }
.wand-titel h1 { font-family: ui-serif, Georgia, serif; font-weight: 600; font-size: clamp(24px, 3.4vw, 44px); margin: 0; }
.wand-titel p { margin: 4px 0 0; color: #b3a888; font-style: italic; }
.wand-qr { text-align: center; background: #fff; border-radius: 14px; padding: 12px 14px 8px; color: #2b2b2b; flex: 0 0 auto; }
.wand-qr p { margin: 6px 0 2px; font-size: 12px; font-weight: 600; }
.wand-leer { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #b3a888; font-size: clamp(18px, 2.6vw, 30px); font-family: ui-serif, Georgia, serif; font-style: italic; line-height: 1.7; pointer-events: none; }
body.ohne-cursor, body.ohne-cursor * { cursor: none !important; }

/* Feed: ein Beitrag im Vollbild, der nächste wischt von unten herein */
.feed { flex: 1; position: relative; overflow: hidden; margin: 8px 34px 34px; border-radius: 14px; }
.slide {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: #0a0908; border-radius: 14px; overflow: hidden;
    transform: translateY(0); transition: transform .7s cubic-bezier(.25, .8, .25, 1);
}
.slide.unten { transform: translateY(103%); }
.slide.weg { transform: translateY(-103%); }
.slide .hintergrund {
    position: absolute; inset: -50px; background-size: cover; background-position: center;
    filter: blur(34px) brightness(.35); transform: scale(1.1);
}
.slide .medium { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; }
.slide .zitat {
    position: relative; font-family: ui-serif, Georgia, serif; font-style: italic;
    font-size: clamp(26px, 4.4vw, 52px); line-height: 1.55; text-align: center;
    max-width: 78%; color: #f4f0e8; margin: 0;
}
.slide .caption {
    position: absolute; left: 26px; bottom: 22px; max-width: 62%;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    text-shadow: 0 2px 14px rgba(0,0,0,.85);
}
.slide .caption .badge {
    background: #b8a888; color: #1a160f; border-radius: 999px; padding: 4px 14px;
    font-size: clamp(13px, 1.2vw, 17px); font-weight: 700; text-shadow: none;
}
.slide .caption strong { font-size: clamp(17px, 1.8vw, 26px); color: #fff; }
.slide .caption em { font-family: ui-serif, Georgia, serif; font-size: clamp(15px, 1.6vw, 23px); color: #efe8da; }

/* ---------- Admin ---------- */
.zeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.event.inaktiv { opacity: .55; }
.event-kopf { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.event-kopf .stats { color: #6b6152; font-size: 14px; margin: 6px 0 0; }
.qr-box { text-align: center; flex: 0 0 auto; }
.qr-box .code { font-family: ui-monospace, monospace; font-size: 12px; color: #8a7f6d; letter-spacing: 2px; }
.link-zeile { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.schalter { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #4d463a; }
.admin-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.admin-kachel { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #e5dccb; background: #fff; aspect-ratio: 1; cursor: pointer; }
.admin-kachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-kachel.versteckt { opacity: .35; }
.admin-kachel .video-hinweis { padding: 0; height: 100%; justify-content: center; }
.admin-leiste { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; background: rgba(255,253,248,.9); }
.admin-leiste button { border: 0; background: none; font-size: 15px; padding: 5px 9px; cursor: pointer; }
