/* Gaeste-Telefon, Fotos, Diashow und Bereich des Paares (Plan 2026-10-09).
   Farben kommen aus :root der Seite (die Farbwelt der Hochzeit, gesetzt vom
   Zusage-Dienst), Knoepfe aus der Gestaltung. Hier nur Aufbau und Bewegung. */

[hidden] { display: none !important; }
.unsichtbar { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.klein, .tel-klein { font-size: 13px; color: var(--tinte-leise); line-height: 1.5; }
.klein-knopf { min-height: 40px !important; padding: 8px 16px !important; font-size: 14px !important; margin-top: 0 !important; }
.knoepfe form { display: inline; }

/* ---------------------------------------------------------------- Telefon */
.telefon { text-align: center; }
.tel-titel { font-size: clamp(28px, 7vw, 40px); max-width: 16ch; margin-inline: auto; }
.tel-bild { width: min(300px, 78vw); margin: 30px auto 6px; }
.tel-svg { width: 100%; height: auto; display: block; overflow: visible; }
.tel-koerper { fill: var(--akzent); }
.tel-gabel, .tel-mitte, .tel-hoerer path { fill: var(--akzent-dunkel); }
.tel-schnur { stroke: var(--akzent-dunkel); }
.tel-scheibe { fill: var(--grund); stroke: var(--akzent-dunkel); stroke-width: 2; }
.tel-loecher circle { fill: var(--akzent); opacity: .85; }
.tel-ring-grund { fill: none; stroke: var(--linie); stroke-width: 5; opacity: 0; transition: opacity .3s; }
.tel-ring { fill: none; stroke: var(--akzent-dunkel); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 295.3; stroke-dashoffset: 295.3; opacity: 0; transition: opacity .3s; }
.tel-hoerer { transform-box: view-box; transform-origin: 120px 92px; transition: transform .45s cubic-bezier(.2, .8, .3, 1.2); }
.tel-mitte { transform-box: fill-box; transform-origin: center; transition: transform .08s linear; }

.telefon:not([data-zustand="bereit"]):not([data-zustand="gesendet"]) .tel-hoerer { transform: translate(6px, -16px) rotate(-7deg); }
.telefon[data-zustand="aufnahme"] .tel-ring,
.telefon[data-zustand="aufnahme"] .tel-ring-grund { opacity: 1; }
.telefon[data-zustand="aufgelegt"] .tel-hoerer,
.telefon[data-zustand="senden"] .tel-hoerer,
.telefon[data-zustand="wartet"] .tel-hoerer { transform: none; }

.tel-status { min-height: 3.2em; max-width: 34ch; margin: 6px auto 0; color: var(--tinte-leise); }
.tel-zeit { font: 600 15px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--tinte); margin: 6px 0 0; visibility: hidden; }
.telefon[data-zustand="aufnahme"] .tel-zeit { visibility: visible; }
.tel-gross { min-width: 240px; min-height: 56px !important; font-size: 18px !important; }
.tel-auflegen, .tel-auflegen:hover { background: #a3352f !important; color: #fff !important; border-color: #a3352f !important; }
.tel-hinweis { font-size: 14px; color: var(--tinte-leise); margin: 10px 0 0; }
.tel-fragen { margin: 22px auto 0; max-width: 30ch; }
.tel-fragen-vor { font-size: 13px; color: var(--tinte-leise); margin: 0 0 6px; }
.tel-fragen ul { list-style: none; padding: 0; margin: 0; min-height: 3.2em; }
.tel-fragen li { display: none; font: italic 21px/1.35 Georgia, serif; color: var(--tinte); }
.tel-fragen li.jetzt { display: block; animation: frage-ein .6s ease; }
@keyframes frage-ein { from { opacity: 0; } to { opacity: 1; } }
.tel-senden, .tel-fertig, .tel-problem { text-align: left; margin-top: 18px; }
.tel-senden audio { width: 100%; margin-top: 16px; }
.tel-fertig p { font: 20px/1.45 Georgia, serif; }

.telefon .nur-bereit, .telefon .nur-aufnahme, .telefon .nur-aufgelegt,
.telefon .nur-gesendet, .telefon .nur-problem { display: none; }
.telefon[data-zustand="bereit"] .nur-bereit,
.telefon[data-zustand="aufnahme"] .nur-aufnahme,
.telefon[data-zustand="aufgelegt"] .nur-aufgelegt,
.telefon[data-zustand="senden"] .nur-aufgelegt,
.telefon[data-zustand="wartet"] .nur-aufgelegt,
.telefon[data-zustand="gesendet"] .nur-gesendet,
.telefon[data-zustand="problem"] .nur-problem { display: block; }
.telefon[data-zustand="senden"] .tel-senden button,
.telefon[data-zustand="wartet"] .tel-senden button { opacity: .55; pointer-events: none; }

/* ------------------------------------------------------------------ Fotos */
.fotos-wahl { margin-top: 20px; width: 100%; }
.fotos-liste { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.fotos-liste li { font-size: 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.fotos-liste progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: var(--akzent); }
.fotos-liste .fehlgeschlagen { color: #8a2a1a; }
.galerie-raster, .paar-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 16px; }
.galerie-raster button { padding: 0; border: 0; background: var(--flaeche); border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; position: relative; }
.galerie-raster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie-raster .ist-video::after { content: "▶"; position: absolute; inset: auto 8px 8px auto; color: #fff; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.leuchtkasten { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.leuchtkasten::backdrop { background: rgba(20, 16, 14, .86); }
.leuchtkasten img, .leuchtkasten video { max-width: 96vw; max-height: 84vh; display: block; margin: auto; border-radius: 8px; }
.leuchtkasten form { text-align: center; }

/* ---------------------------------------------------------------- Diashow */
body.seite-diashow { background: #111; }
body.seite-diashow main { max-width: none; padding: 0; }
.diashow { position: fixed; inset: 0; background: #111; color: #f3eee9; }
.dia-buehne { position: absolute; inset: 0; }
.dia-buehne > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.2s ease; }
.dia-buehne > .jetzt { opacity: 1; }
.dia-leer { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 34px/1.3 Georgia, serif; margin: 0; padding: 20px; }
.dia-leer span { display: block; font: 16px/1.5 system-ui, sans-serif; opacity: .7; margin-top: 10px; }
.dia-vollbild { position: absolute; right: 16px; bottom: 16px; color: #f3eee9 !important; border-color: rgba(255,255,255,.4) !important; opacity: .55; }
.dia-vollbild:hover { opacity: 1; }
:fullscreen .dia-vollbild { display: none; }

/* ------------------------------------------------------- Bereich des Paares */
.paar-teil { margin-top: 48px; }
.paar-teil > h2 { font-size: 26px; margin: 0 0 10px; }
.paar-teil .karte { margin-top: 16px; padding: 20px; }
.paar-teil .karte h3 { margin: 0 0 10px; font: 20px/1.3 Georgia, serif; }
.nachrichten { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.nachricht { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 16px 18px; }
.nachricht.favorit { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.nachricht-kopf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.nachricht audio { width: 100%; }
.nachricht .knoepfe { margin-top: 10px; }
.abschrift textarea { min-height: 70px; font: 15px/1.5 Georgia, serif; }
.abschrift label { margin-top: 12px; }
.abschrift button { margin-top: 8px !important; }
.paar-bild { margin: 0; background: #fff; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.paar-bild img, .ohne-vorschau { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-content: center; background: var(--flaeche); color: var(--tinte-leise); font-size: 14px; }
.paar-bild figcaption { font-size: 13px; padding: 8px 10px 0; }
.paar-bild .knoepfe { padding: 8px 10px 10px; gap: 6px; }
.paar-bild.verborgen img { opacity: .4; }
.aufnehmer audio { width: 100%; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .tel-hoerer, .tel-mitte, .tel-ring, .dia-buehne > * { transition: none !important; }
  .tel-fragen li.jetzt { animation: none; }
}
