/* Selfiefox QR-Code Fotogalerie – Gäste-Seite */
:root {
  --rot: #b1322e; --rot-dunkel: #962a26; --orange: #cc4113; --blau: #00a8f4; --gruen: #16a34a;
  --text: #3c424f; --hell: #6b7280; --flaeche: #f6f7f9; --rand: #e5e7eb; --weiss: #fff;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --unten: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--schrift); color: var(--text); background: var(--weiss); -webkit-font-smoothing: antialiased; line-height: 1.4; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--rot); }
[hidden] { display: none !important; }
svg { display: block; }
.wrap { max-width: 980px; margin: 0 auto; }

/* Laden / Fehler */
.laden { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--hell); font-size: 15px; }
.kreisel { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #f3d6d4; border-top-color: var(--rot); animation: dreh .9s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.laden .neu-laden { margin-top: 6px; }
.fehlerseite { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 22px; gap: 14px; }
.fehlerseite img { width: 200px; height: auto; }
.fehlerseite h1 { font-size: 22px; }
.fehlerseite p { color: var(--hell); max-width: 420px; }

/* Kopfbild */
.hero { position: relative; height: min(52vh, 440px); min-height: 300px; background: linear-gradient(135deg, #b1322e 0%, #cc4113 55%, #e0763b 100%); background-size: cover; background-position: center 30%; color: #fff; overflow: hidden; }
.hero.ohne-bild::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 15% 25%, rgba(255,255,255,.16) 0 60px, transparent 61px),
  radial-gradient(circle at 85% 15%, rgba(255,255,255,.10) 0 90px, transparent 91px),
  radial-gradient(circle at 70% 80%, rgba(255,255,255,.08) 0 120px, transparent 121px); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,.05) 50%, rgba(0,0,0,.66) 100%); }
.hero .logo { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); padding: 6px 10px; border-radius: 999px; }
.hero .logo img { height: 18px; width: auto; }
.hero-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 22px 40px; }
.hero-txt .wrap { padding: 0; }
.hero .label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.hero h1 { font-size: clamp(32px, 8vw, 52px); font-weight: 900; line-height: 1.05; margin: 6px 0 6px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero .datum { font-size: 15px; opacity: .92; }

.inhalt { max-width: 980px; margin: 0 auto; }
.gruss { margin: -22px 16px 0; background: #fff; border-radius: 20px; padding: 18px 20px; position: relative; z-index: 5; box-shadow: 0 10px 30px rgba(20,30,50,.12); font-size: 16px; white-space: pre-line; }
.gruss .von { font-size: 14px; color: var(--hell); margin-top: 8px; white-space: normal; }
.aktion { padding: 18px 16px 6px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ohne-gruss .aktion { margin-top: -30px; position: relative; z-index: 5; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; font-weight: 700; font-size: 17px; padding: 16px 22px; width: 100%; max-width: 460px; transition: transform .1s, background .15s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn.haupt { background: var(--rot); color: #fff; box-shadow: 0 8px 20px rgba(177,50,46,.35); }
.btn.haupt:hover { background: var(--rot-dunkel); }
.btn.zweit { background: #fff; color: var(--text); border: 1.5px solid var(--rand); }
.btn.klein { font-size: 15px; padding: 11px 16px; width: auto; border-radius: 12px; }
.btn:disabled { opacity: .5; cursor: default; }
.zahlen { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--hell); padding: 8px 16px 16px; }
.zahlen b { color: var(--text); font-size: 15px; }
.hinweis-klein { font-size: 14px; color: var(--hell); text-align: center; }

/* Galerie */
.gkopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 16px 10px; flex-wrap: wrap; }
.gkopf h2 { font-size: 18px; }
.chips { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1.5px solid var(--rand); background: #fff; white-space: nowrap; }
.chip.an { background: var(--text); color: #fff; border-color: var(--text); }
.chip b { font-weight: 700; opacity: .65; }
.hinweis { margin: 0 16px 12px; background: #eef8fe; border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #075985; }
.raster { display: flex; gap: 6px; padding: 0 6px; align-items: flex-start; }
.spalte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.k { position: relative; border-radius: 12px; overflow: hidden; background: #e9ebef; cursor: pointer; }
.k img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.k img.da { opacity: 1; }
.k .platz { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9aa1ad; font-size: 13px; }
.k .platz svg { width: 34px; height: 34px; }
.vid { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px 4px 6px; border-radius: 999px; display: flex; align-items: center; gap: 4px; z-index: 2; }
.vid svg { width: 12px; height: 12px; }
.k .von { position: absolute; right: 8px; bottom: 8px; color: #fff; font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.7); z-index: 2; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k .neu { position: absolute; top: 8px; left: 8px; background: var(--blau); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .03em; z-index: 2; }
.leer { text-align: center; color: var(--hell); padding: 34px 20px 10px; font-size: 15px; }
.mehr { display: flex; justify-content: center; padding: 22px; }
.mehr .kreisel { width: 28px; height: 28px; border-width: 3px; }

.fuss { text-align: center; padding: 40px 22px calc(110px + var(--unten)); font-size: 12.5px; color: var(--hell); }
.fuss .marke { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; text-decoration: none; color: var(--hell); font-size: 13px; }
.fuss .marke img { width: 150px; height: auto; }
.fuss .marke b { color: var(--rot); }
.fuss p { max-width: 520px; margin: 0 auto 6px; }

/* schwebender Knopf, Neu-Hinweis, Fortschritts-Pille */
.fab { position: fixed; right: 18px; bottom: calc(22px + var(--unten)); width: 62px; height: 62px; border-radius: 50%; background: var(--rot); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(177,50,46,.45); z-index: 30; }
.fab svg { width: 28px; height: 28px; }
.neu-banner { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); background: var(--blau); color: #fff; font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,168,244,.45); z-index: 31; white-space: nowrap; }
.pille { position: fixed; left: 16px; bottom: calc(30px + var(--unten)); max-width: calc(100% - 110px); overflow: hidden; text-overflow: ellipsis; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; padding: 11px 18px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.25); z-index: 31; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.pille.fertig { background: var(--gruen); }

/* Upload-Fenster */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(15,18,24,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-karte { background: #fff; width: 100%; max-width: 560px; max-height: 100%; height: 100%; display: flex; flex-direction: column; }
@media (min-width: 640px) { .sheet { align-items: center; padding: 24px; } .sheet-karte { height: auto; max-height: 92vh; border-radius: 22px; overflow: hidden; } }
.sheet-kopf { padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rand); }
.sheet-kopf h2 { font-size: 18px; }
.rund { width: 38px; height: 38px; border-radius: 50%; background: var(--flaeche); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--hell); }
.sheet-inhalt { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.gesamt { padding: 20px 20px 4px; text-align: center; }
.ring { width: 140px; height: 140px; margin: 0 auto 10px; position: relative; }
.ring svg { width: 140px; height: 140px; transform: rotate(-90deg); }
.ring circle { transition: stroke-dashoffset .4s; }
.ring .pz { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .pz b { font-size: 34px; font-weight: 900; }
.ring .pz span { font-size: 13px; color: var(--hell); }
.ring.ok .pz b { color: var(--gruen); }
.gesamt .zeile { font-size: 15px; }
.gesamt .klein { font-size: 13px; color: var(--hell); margin-top: 4px; }
.name { margin: 16px 20px 6px; }
.name label { font-size: 13px; color: var(--hell); display: block; margin-bottom: 6px; }
.name input { width: 100%; border: 1.5px solid var(--rand); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); outline: none; }
.name input:focus { border-color: var(--blau); }
.liste { padding: 8px 20px; display: flex; flex-direction: column; gap: 10px; }
.datei { display: flex; align-items: center; gap: 12px; }
.datei .bild { width: 46px; height: 46px; border-radius: 10px; background: var(--flaeche) center/cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #9aa1ad; }
.datei .bild svg { width: 20px; height: 20px; }
.datei .info { flex: 1; min-width: 0; }
.datei .n { font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.datei .n .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.datei .n span:last-child { color: var(--hell); font-weight: 400; font-size: 13px; white-space: nowrap; }
.datei .fehler { font-size: 12.5px; color: var(--rot); margin-top: 3px; }
.bar { height: 6px; background: var(--flaeche); border-radius: 999px; margin-top: 7px; overflow: hidden; }
.bar div { height: 100%; width: 0; background: var(--blau); border-radius: 999px; transition: width .3s; }
.datei.ok .bar div { background: var(--gruen); }
.datei .st { width: 38px; text-align: center; font-size: 13px; color: var(--blau); font-weight: 600; flex-shrink: 0; }
.datei.ok .st { color: var(--gruen); font-size: 18px; }
.datei.err .st button { color: var(--rot); font-size: 20px; }
.hinweis-box { margin: 14px 20px; background: #eef8fe; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: #075985; }
.sheet-fuss { padding: 12px 20px calc(14px + var(--unten)); border-top: 1px solid var(--rand); display: flex; gap: 10px; }
.sheet-fuss .btn { max-width: none; }

/* Hinweis beim ersten Upload */
@media (min-width: 640px) { .hinweis-karte { height: auto; } }
@media (max-width: 639px) { .hinweis-karte { height: auto; border-radius: 22px 22px 0 0; } }
.einverstanden { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; cursor: pointer; }
.einverstanden input { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; accent-color: var(--rot); }
.klein-hinweis { font-size: 13px; color: var(--hell); margin-top: 12px; }

/* Vollbild */
.lb { position: fixed; inset: 0; z-index: 60; background: #0b0c0f; color: #fff; display: flex; flex-direction: column; touch-action: pan-y; }
.lb .oben { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 8px; gap: 10px; }
.lb .rund { background: rgba(255,255,255,.14); color: #fff; }
.lb .zaehl { font-size: 15px; font-weight: 500; opacity: .85; }
.lb .buehne { flex: 1; position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb .buehne img, .lb .buehne video { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb .pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; font-size: 34px; color: #fff; opacity: .55; display: flex; align-items: center; justify-content: center; z-index: 3; }
.lb .pfeil:hover { opacity: 1; }
.lb .pfeil.l { left: 4px; } .lb .pfeil.r { right: 4px; }
@media (hover: none) { .lb .pfeil { display: none; } }
.lb .info { padding: 10px 20px 4px; min-height: 52px; }
.lb .info b { font-size: 16px; } .lb .info div { font-size: 13.5px; opacity: .7; margin-top: 2px; }
.lb .leiste { display: flex; gap: 10px; padding: 8px 16px calc(14px + var(--unten)); }
.lb .leiste button { flex: 1; background: rgba(255,255,255,.12); border-radius: 14px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: #fff; }
.lb .leiste button svg { width: 22px; height: 22px; }
.lb .vfehler { position: absolute; left: 20px; right: 20px; bottom: 20px; text-align: center; font-size: 14px; background: rgba(0,0,0,.6); padding: 10px; border-radius: 12px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + var(--unten)); background: rgba(20,22,28,.92); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; z-index: 80; max-width: calc(100% - 32px); text-align: center; }

@media (min-width: 700px) {
  .gruss { margin: -26px auto 0; max-width: 640px; }
  .raster { padding: 0 16px; gap: 10px; }
  .spalte { gap: 10px; }
  .gkopf { padding: 10px 16px 14px; }
}

/* Live-Slideshow oben rechts, Upload-Schritte (Stand 07.10.2026) */
.show-knopf { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); color: var(--text); padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; }
.show-knopf svg { width: 16px; height: 16px; color: var(--rot); }
.name .frei { font-weight: 400; }
.vonzeile { margin: 14px 20px 0; font-size: 14px; color: var(--hell); }
#btnAuswaehlen svg { width: 20px; height: 20px; }

/* Titelbild mit Bildausschnitt (x/y/zoom aus dem Gastgeber-Bereich), PIN-Seite, Tipp große Videos (Stand 10.10.2026) */
.hero .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.tipp-gross { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--text); background: #fff7e6; border: 1px solid #fde3b0; border-radius: 12px; padding: 10px 12px; }
.uebernahme-karte h2 { font-size: 18px; margin-bottom: 6px; }
.pinseite { min-height: 100vh; background: var(--flaeche); padding-bottom: 40px; }
.pin-hero { height: min(42vh, 360px); min-height: 240px; }
.pin-karte { position: relative; z-index: 5; margin: -26px 16px 0; background: #fff; border-radius: 22px; padding: 24px 20px 20px; box-shadow: 0 10px 30px rgba(20,30,50,.12); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
@media (min-width: 700px) { .pin-karte { max-width: 460px; margin: -30px auto 0; } }
.pin-karte .schloss { width: 52px; height: 52px; border-radius: 50%; background: #fdecea; color: var(--rot); display: flex; align-items: center; justify-content: center; }
.pin-karte .schloss svg { width: 26px; height: 26px; }
.pin-karte h2 { font-size: 21px; }
.pin-karte p { color: var(--hell); font-size: 15px; max-width: 360px; }
.pin-karte input { width: 100%; max-width: 260px; border: 1.5px solid var(--rand); border-radius: 14px; padding: 14px 16px; font: inherit; font-size: 28px; font-weight: 700; letter-spacing: .4em; text-align: center; outline: none; margin-top: 4px; }
.pin-karte input:focus { border-color: var(--blau); }
.pin-karte .btn { margin-top: 4px; }
.pin-karte small { font-size: 12.5px; color: var(--hell); }
.pin-fehler { color: var(--rot); font-weight: 600; font-size: 14.5px; }
