/* ============================================================================
   Sweet 16 — Aquarell-Theme im Stil der Einladungskarte
   ----------------------------------------------------------------------------
   Papier statt Glas: warmes Creme als Grund, Hibiskus-Blüten am Rand,
   Sonnenuntergangsfarben von Butter-Gelb über Orange und Koralle bis Pink.
   ========================================================================== */

:root {
  /* Palette */
  --rosa: #f8b3c1;
  --rosa-deep: #f0899f;
  --coral: #ff7a5b;
  --pink: #e51c74;
  --orange: #f79a3c;
  --butter: #fbe29a;

  /* Papier und Schrift */
  --paper: #fffaf4;
  --paper-warm: #fff3e6;
  --sand: #fdf1e6;
  --ink: #59303a;
  --ink-soft: #8a5a63;

  --line: rgba(229, 28, 116, 0.14);
  --line-strong: rgba(229, 28, 116, 0.28);

  --radius: 26px;
  --radius-sm: 16px;
  --shadow-soft: 0 18px 44px -22px rgba(184, 62, 88, 0.45);
  --shadow-lift: 0 26px 60px -24px rgba(184, 62, 88, 0.55);

  /* Schriftrollen */
  --font-body: "Nunito Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: "Fredoka", var(--font-body);
  --font-hand: "Amatic SC", var(--font-display);
  --font-script: "Parisienne", cursive;
}

* { box-sizing: border-box; }

/* Das hidden-Attribut muss immer gewinnen: ohne diese Regel überschreiben die
   display-Werte auf .login-view / .app-view das [hidden], und der Ansichts-
   wechsel im JS bliebe wirkungslos. */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  background-color: var(--sand);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Drei weiche Farbwolken über dem Creme — der Sonnenuntergang der Karte. Als
   eigene fixierte Ebene statt als background-attachment: fixed, das auf
   iOS-Safari beim Scrollen springt. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(58vw 46vw at 6% -4%, rgba(255, 122, 91, 0.28), transparent 62%),
    radial-gradient(52vw 44vw at 98% 8%, rgba(229, 28, 116, 0.2), transparent 60%),
    radial-gradient(64vw 50vw at 50% 104%, rgba(251, 226, 154, 0.55), transparent 64%);
}

/* Feine Papierkörnung, damit das Creme nicht wie flaches CSS wirkt. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

/* ============ AQUARELL-BLÜTEN (decor.js) ============ */
.bloom-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bloom {
  position: absolute;
  display: block;
  /* Multiply lässt die Blüten ins Papier einsinken statt darauf zu kleben. */
  mix-blend-mode: multiply;
  opacity: 0.62;
  animation: sway 22s ease-in-out infinite;
}
.bloom-svg { display: block; width: 100%; height: 100%; }
.bloom-stamen { opacity: 0.75; }

/* Ecken werden angeschnitten — die Seite ist ein Ausschnitt einer größeren
   Collage, genau wie auf der Einladung. */
.bloom-tl-a { width: 300px; height: 300px; top: -104px; left: -96px; }
.bloom-tl-b { width: 176px; height: 176px; top: 128px; left: -66px; animation-delay: -4s; }
.bloom-tr-a { width: 268px; height: 268px; top: -86px; right: -88px; animation-delay: -8s; }
.bloom-tr-b { width: 150px; height: 150px; top: 176px; right: -54px; animation-delay: -13s; }
.bloom-bl-a { width: 288px; height: 288px; bottom: -100px; left: -104px; animation-delay: -6s; }
.bloom-bl-b { width: 160px; height: 160px; bottom: 188px; left: -60px; animation-delay: -16s; }
.bloom-br-a { width: 312px; height: 312px; bottom: -118px; right: -108px; animation-delay: -11s; }
.bloom-br-b { width: 168px; height: 168px; bottom: 206px; right: -62px; animation-delay: -19s; }

@keyframes sway {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(10px, -14px) rotate(3deg); }
}

/* ============ PAPIER-FLÄCHEN ============ */
.paper {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 230, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.muted { color: var(--ink-soft); }
.error {
  color: var(--pink);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.7rem 0 0;
}

/* ============ TYPOGRAFIE ============ */
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}

/* Die Wortmarke: Skript-"sweet" sitzt auf der fetten 16, wie auf der Karte. */
.wordmark {
  margin: 0 0 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.wordmark-sweet {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 8vw, 2.9rem);
  color: var(--coral);
  line-height: 1;
}
.wordmark-16 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4.4rem, 20vw, 7rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  background: linear-gradient(150deg, var(--pink) 12%, #ff3d7f 52%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pink);
}

/* ============ LOGIN ============ */
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.login-card {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  padding: 2.6rem 2rem 2.2rem;
  text-align: center;
  animation: rise 0.55s cubic-bezier(0.2, 0.85, 0.35, 1.1) both;
}
.login-card .wordmark { margin-top: -0.4rem; }
.login-lead {
  margin: 0.4rem 0 1.6rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.login-card .field { margin-bottom: 1rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ============ APP-LAYOUT ============ */
.app-view {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card { border-radius: var(--radius); padding: 1.5rem 1.6rem; }

/* ============ EINLADUNGS-HERO ============ */
.invite {
  border-radius: var(--radius);
  padding: 2.4rem 1.8rem 1.9rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
/* Zarter Farbsaum an der Oberkante der Karte. */
.invite::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--butter), var(--orange), var(--coral), var(--pink), var(--rosa));
}
.invite-eyebrow {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.2rem;
  line-height: 1;
  /* Amatic ist schmal und hoch — das Tracking gleicht die letzte Letter aus. */
  text-indent: 0.22em;
}
.invite-mark { display: flex; flex-direction: column; align-items: center; }
/* "sweet" sitzt auf der 16 auf, wie auf der Karte. */
.invite-mark .wordmark-sweet {
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  margin-bottom: -0.75rem;
  transform: rotate(-3deg);
}

/* Die Sonne steht rechts oben an der 16 und überlappt sie leicht. */
.invite-16-row { display: flex; align-items: flex-start; justify-content: center; }
.invite-16-row .wordmark-16 { font-size: clamp(6rem, 28vw, 10.5rem); }
.sun {
  width: clamp(76px, 22vw, 128px);
  height: clamp(76px, 22vw, 128px);
  margin-left: -0.5rem;
  margin-top: -0.15em;
  flex-shrink: 0;
  animation: spin 40s linear infinite;
}
.sun-spiral { opacity: 0.9; }
@keyframes spin { to { transform: rotate(360deg); } }

.invite-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0.5rem 0 0;
  overflow-wrap: anywhere;
}

/* Eckdaten als Definitionsliste: Label in Handschrift, Wert kräftig. Datum,
   Uhrzeit und Countdown stehen nebeneinander … */
.invite-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2.4rem;
  margin: 1.6rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line-strong);
}
/* … die Adresse ist die längste Angabe und bekommt eine eigene Zeile darunter,
   so wie sie auch auf der Einladung für sich steht. */
#fact-address { flex-basis: 100%; }
.invite-facts .fact { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.invite-facts dt {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1;
}
.invite-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--pink);
  line-height: 1.3;
}
.invite-facts a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.invite-facts a:hover { border-bottom-color: currentColor; }

/* ============ BESCHREIBUNG UND KARTE ============ */
.event-description {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.event-description:not([hidden]) + .event-map { margin-top: 1.3rem; }
.event-map iframe {
  display: block;
  width: 100%;
  height: 230px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--paper-warm);
  /* Google-Karten sind knallig blau — leicht entsättigt fügen sie sich ein. */
  filter: saturate(0.82) sepia(0.12);
}
.map-route { margin-top: 0.9rem; display: inline-flex; }

/* ============ ZAHLEN ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 0.7rem;
}
.stat {
  border-radius: var(--radius-sm);
  padding: 1rem 0.5rem 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--pink);
}
.stat-label {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.1;
}
/* Jede Kachel bekommt eine eigene Farbe der Palette — die Farbe ist hier
   Information, kein Dekor: sie unterscheidet die Zahlen auf einen Blick. */
.stat-yes-tile { box-shadow: var(--shadow-soft), inset 0 -3px 0 var(--coral); }
.stat-yes-tile .stat-num { color: var(--coral); }
.stat-maybe-tile { box-shadow: var(--shadow-soft), inset 0 -3px 0 var(--orange); }
.stat-maybe-tile .stat-num { color: var(--orange); }
.stat-no-tile { box-shadow: var(--shadow-soft), inset 0 -3px 0 var(--rosa-deep); }
.stat-no-tile .stat-num { color: var(--rosa-deep); }
.stat-items-tile { box-shadow: var(--shadow-soft), inset 0 -3px 0 var(--butter); }
.stat-items-tile .stat-num { color: #d98b1f; }

/* ============ FORMULARE ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1;
}

input, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: rgba(138, 90, 99, 0.55); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 122, 91, 0.2);
}

/* ---- Status-Auswahl ---- */
.status-toggle { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.status-opt {
  flex: 1;
  min-width: 116px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.68rem 0.6rem;
  transition: color 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.status-opt:hover { color: var(--pink); border-color: var(--line-strong); }
.status-opt.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--coral), var(--pink));
  box-shadow: 0 10px 22px -10px rgba(229, 28, 116, 0.85);
}
.form-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  transition: transform 0.14s, box-shadow 0.2s, background 0.2s, color 0.2s, opacity 0.2s;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--coral) 0%, var(--pink) 100%);
  box-shadow: 0 14px 28px -12px rgba(229, 28, 116, 0.8);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(229, 28, 116, 0.9); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--pink);
}
.btn-ghost:hover { background: #fff; border-color: var(--line-strong); }
.btn.icon { padding: 0.4rem 0.7rem; line-height: 1; }

/* Sichtbarer Tastaturfokus auf allen interaktiven Elementen. */
:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

/* ============ LISTE ============ */
.list-section { display: flex; flex-direction: column; gap: 0.7rem; }
.entry-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.entry {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 230, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: slidein 0.35s ease;
}
@keyframes slidein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
/* Der runde Marker trägt den Zu-/Absage-Status. Bewusst als Zeichen statt als
   Emoji: Emojis bringen ihre eigenen Farben mit (grünes Häkchen, blaue
   Figuren) und reißen ein Loch in die Palette. */
.entry .status-badge {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.entry .status-badge.yes   { background: rgba(255, 122, 91, 0.18); color: var(--coral); }
.entry .status-badge.maybe { background: rgba(247, 154, 60, 0.2); color: #d9800f; }
.entry .status-badge.no    { background: rgba(240, 137, 159, 0.24); color: var(--rosa-deep); }
.entry .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.entry .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}
.entry .item { color: var(--ink-soft); font-size: 0.95rem; overflow-wrap: anywhere; }
.entry .item.empty { font-style: italic; opacity: 0.75; }

.entry-actions { display: flex; gap: 0.2rem; flex-shrink: 0; }
.entry-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem;
  border-radius: 10px;
  opacity: 0.65;
  transition: opacity 0.15s, background 0.15s;
}
.entry-actions button:hover { opacity: 1; background: rgba(229, 28, 116, 0.1); }

/* Per ID, nicht per .empty: die Einträge in der Liste tragen ebenfalls ein
   .empty (für "bringt nichts mit") und dürfen davon nichts abbekommen. */
#empty-state,
#grid-empty {
  text-align: center;
  padding: 1.8rem 1rem;
  color: var(--ink-soft);
  font-family: var(--font-hand);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

/* ============ FOTOBOX-EINSTIEG ============ */
.gallery-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.2s;
}
.gallery-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.gallery-cta-emoji {
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--butter), var(--rosa));
  flex-shrink: 0;
}
.gallery-cta-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.gallery-cta-text strong { font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; }
.gallery-cta-text .muted { font-size: 0.92rem; }
.gallery-cta-arrow { margin-left: auto; font-size: 1.3rem; color: var(--pink); flex-shrink: 0; }

/* ============ FUSSZEILE ============ */
.app-footer {
  text-align: center;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-credit { margin: 0; }
.footer-script { font-family: var(--font-script); font-size: 1.35rem; color: var(--coral); }

/* ============ MODAL ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(89, 48, 58, 0.4);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  padding: 1.7rem;
  animation: rise 0.3s cubic-bezier(0.2, 0.85, 0.35, 1.1) both;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lift);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.modal-head .section-title { margin-bottom: 0; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(120deg, var(--coral), var(--pink));
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  font-family: var(--font-display);
  font-weight: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: linear-gradient(120deg, #b3243f, #e51c74); }

/* ============ FOTOBOX-GALERIE ============ */
.gallery-head { text-align: center; padding: 1.8rem 1.5rem; }
.gallery-head-script {
  font-family: var(--font-script);
  font-size: clamp(2rem, 8vw, 2.7rem);
  color: var(--coral);
  margin: 0;
  line-height: 1;
}
.gallery-head-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  margin: 0.5rem 0 0;
  color: var(--pink);
}
.grid-count {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-top: 0.8rem;
}
.strip-cell {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1352 / 3172;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.2s;
}
.strip-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.strip-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-time {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  font-family: var(--font-hand);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(89, 48, 58, 0.68);
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  line-height: 1.5;
}

.detail-title {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 1rem 0;
  font-size: 1.35rem;
}
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.2rem; align-items: start; }
.detail-strip { border-radius: var(--radius); padding: 0.9rem; margin: 0; }
.detail-strip img { width: 100%; border-radius: 12px; display: block; }
.detail-strip figcaption { margin-top: 0.8rem; }

.detail-shots { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.shot { border-radius: var(--radius-sm); padding: 0.8rem; margin: 0; }
.shot img { width: 100%; border-radius: 12px; display: block; }
.shot figcaption { margin-top: 0.6rem; }

/* ---- Lightbox ---- */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(89, 48, 58, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade 0.2s ease;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.lightbox-close:hover { background: #fff; }
.lightbox-dl { flex-shrink: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 620px) {
  .app-view { padding: 1rem 1rem 3rem; gap: 1rem; }
  .invite { padding: 2rem 1.2rem 1.6rem; }
  .card { padding: 1.3rem 1.2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .status-opt { min-width: 0; flex-basis: 100%; }
  .invite-facts { gap: 0.9rem 1.4rem; }
  .detail-grid { grid-template-columns: 1fr; }

  /* Auf kleinen Schirmen stören die großen Blüten den Text — nur die vier
     Eckblüten bleiben stehen, kleiner und blasser. */
  .bloom { opacity: 0.45; }
  .bloom-tl-b, .bloom-tr-b, .bloom-bl-b, .bloom-br-b { display: none; }
  .bloom-tl-a { width: 190px; height: 190px; top: -70px; left: -70px; }
  .bloom-tr-a { width: 170px; height: 170px; top: -58px; right: -62px; }
  .bloom-bl-a { width: 180px; height: 180px; bottom: -66px; left: -72px; }
  .bloom-br-a { width: 200px; height: 200px; bottom: -76px; right: -74px; }
}

/* Auf dem Handy schauen die meisten Gäste — die hohen Hochkant-Strips lassen
   sich zu dritt pro Reihe angenehmer durchblättern als zu zweit. */
@media (max-width: 560px) {
  .strip-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .strip-time { font-size: 0.85rem; padding: 0 0.4rem; left: 0.35rem; bottom: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
