/* LGV Intro – Gestaltung.
   Die Bühne ist fest 1920 × 1080 Pixel groß und wird als Ganzes skaliert.
   Alle Maße im Inneren sind deshalb Pixel in dieser festen Größe. */

@property --tone-a { syntax: "<color>"; inherits: true; initial-value: #23486b; }
@property --tone-b { syntax: "<color>"; inherits: true; initial-value: #6b4a2a; }
@property --tone-c { syntax: "<color>"; inherits: true; initial-value: #1d5a55; }

:root {
  --bg: #06080c;
  --ink: #f7f2e8;
  --ink-soft: rgba(247, 242, 232, 0.78);
  --ink-mute: rgba(247, 242, 232, 0.52);
  --accent: #f1bb6f;
  --mint: #86dcc6;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(255, 255, 255, 0.14);
  /* Inter Tight für große Schrift, Inter für Fließtext und Bedienung */
  --display: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.45, 0.05, 0.25, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
  cursor: none;
}
.stage.controls-visible { cursor: default; }

.canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--bg);
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center;
  transition: --tone-a 2.4s ease, --tone-b 2.4s ease, --tone-c 2.4s ease;
}

/* Farbstimmung je Folienart */
.canvas[data-tone="service"] { --tone-a: #7a4a1f; --tone-b: #3b2a55; --tone-c: #8a3b2c; }
.canvas[data-tone="event"] { --tone-a: #1f4f73; --tone-b: #70502a; --tone-c: #1c5f58; }
.canvas[data-tone="news"] { --tone-a: #46306e; --tone-b: #1f4f73; --tone-c: #6a3a52; }
.canvas[data-tone="welcome"] { --tone-a: #7a4a1f; --tone-b: #1f4f73; --tone-c: #2a5d4d; }
.canvas[data-tone="app"] { --tone-a: #16555c; --tone-b: #284a7a; --tone-c: #5d4a22; }
.canvas[data-tone="sermon"] { --tone-a: #5a3550; --tone-b: #6d4a22; --tone-c: #25406a; }
.canvas[data-tone="donations"] { --tone-a: #145a52; --tone-b: #1e3f6a; --tone-c: #6a5220; }

/* ---------- Hintergrund ---------- */

.backdrop, .backdrop > * { position: absolute; inset: 0; }

.backdrop-image {
  display: none;
  inset: -140px;
  background-size: cover;
  background-position: center;
  filter: blur(90px) saturate(1.25) brightness(0.62);
  opacity: 0;
  transition: opacity 1.8s ease;
}
.backdrop-image.is-on { opacity: 0.6; }

.aurora { opacity: 0.6; }
.aurora i {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.aurora i:nth-child(1) {
  left: -260px; top: -320px; width: 1100px; height: 900px;
  background: radial-gradient(closest-side, var(--tone-a), transparent 72%);
  animation: drift-a 46s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  right: -340px; bottom: -420px; width: 1300px; height: 1000px;
  background: radial-gradient(closest-side, var(--tone-b), transparent 72%);
  animation: drift-b 58s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  left: 620px; top: 380px; width: 900px; height: 760px;
  background: radial-gradient(closest-side, var(--tone-c), transparent 72%);
  opacity: 0.7;
  animation: drift-c 70s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(260px, 180px) scale(1.18); } }
@keyframes drift-b { to { transform: translate(-320px, -160px) scale(1.12); } }
@keyframes drift-c { to { transform: translate(-380px, -260px) scale(0.86); } }

.vignette {
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.45));
}
.grain {
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Kopfzeile ---------- */

.hud {
  position: absolute;
  left: 110px; right: 110px; top: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 5;
  transition: opacity 0.8s ease;
}
.brand {
  display: flex; align-items: center; gap: 18px;
  font-size: 22px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 14px;
}
.brand-mark {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(241, 187, 111, 0.16);
}
.countdown { text-align: right; }
.countdown-label {
  display: block;
  font-size: 20px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-mute);
}
.countdown strong {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 104px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.countdown-track {
  margin-top: 14px; margin-left: auto;
  width: 250px; height: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px; overflow: hidden;
}
.countdown-track i {
  display: block; height: 100%;
  background: var(--accent);
  transform-origin: right;
  transition: transform 0.4s linear;
}

.slide-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: rgba(255, 255, 255, 0.07);
  z-index: 5;
}
.slide-progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, rgba(241, 187, 111, 0.35), var(--accent));
  transform-origin: left; transform: scaleX(0);
}

/* ---------- Folien: Grundgerüst und Bewegung ---------- */

.slides { position: absolute; inset: 0; z-index: 2; transition: opacity 0.7s ease; }

.slide {
  position: absolute; inset: 0;
  padding: 236px 110px 104px;
}
.slide.is-leaving {
  animation: slide-leave 0.9s var(--ease-soft) both;
  pointer-events: none;
}
@keyframes slide-leave {
  to { opacity: 0; }
}

/* Elemente fahren gestaffelt ein. --i ist die Reihenfolge. */
.rise { opacity: 0; transform: translateY(34px); }
.slide.is-active .rise {
  animation: rise 1.1s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 80ms + 320ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 104px;
  line-height: 1.0;
  letter-spacing: -0.035em;
  hyphens: manual;
  text-wrap: balance;
}
.title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* Platz für Unterlängen und Umlaute, ohne die Zeilenhöhe zu ändern */
  padding: 0.08em 0.02em 0.14em;
  margin: -0.08em 0.2em -0.14em 0;
}
.title .w > span { display: inline-block; transform: translateY(115%); }
.slide.is-active .title .w > span {
  animation: word-in 1.15s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + 300ms);
}
@keyframes word-in {
  from { transform: translateY(115%) rotate(4deg); }
  to { transform: none; }
}

.kicker {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 30px;
  font-size: 25px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
}
.kicker b { font-weight: 700; color: var(--ink); }
.kicker-dot { color: var(--ink-mute); }
.kicker-line { width: 68px; height: 3px; border-radius: 3px; background: var(--accent); }

/* ---------- Termin und Beitrag ---------- */

/* Wie „Cinematic“: Das Bild füllt die ganze Leinwand, der Text steht unten links. */
.slide-event { padding: 0; }

.copy {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; min-height: 0;
}
/* Nur auf Termin- und Beitragsfolien liegt der Text über dem Bild. */
.slide-event .copy {
  position: absolute;
  left: 110px; bottom: 104px; z-index: 2;
  width: 1150px;
  max-height: 730px;
  justify-content: flex-end;
}
.slide-event .title, .slide-event .kicker, .slide-event .meta-text, .slide-event .desc-inner {
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.7);
}
.slide-event .title { text-shadow: 0 12px 60px rgba(0, 0, 0, 0.75); }

.meta { display: flex; align-items: center; gap: 30px; margin-top: 44px; flex: none; }
.date-tile {
  flex: none;
  background: rgba(10, 12, 16, 0.42);
  width: 148px; height: 148px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 30px;
  background: var(--glass);
  border: 1.5px solid var(--glass-line);
  backdrop-filter: blur(18px);
}
.date-tile span { font-size: 22px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.date-tile span:last-child { color: var(--ink-soft); }
.date-tile strong { font-family: var(--display); font-size: 68px; font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; }
.meta-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.meta-text strong { font-size: 42px; font-weight: 700; letter-spacing: -0.01em; }
.meta-text span { font-size: 32px; font-weight: 500; color: var(--ink-soft); }
.meta-text span:empty { display: none; }

.desc {
  position: relative;
  flex: 0 1 auto; min-height: 0;
  max-height: calc(37px * 1.46 * 5);
  margin-top: 36px;
  overflow: hidden;
}
.desc-inner { max-width: 1060px; }
.desc-inner {
  margin: 0;
  font-size: 37px; line-height: 1.46; font-weight: 400;
  color: rgba(247, 242, 232, 0.86);
  will-change: transform;
}
/* Langer Text läuft durch ein Fenster mit weichen Kanten. */
.desc.is-flowing {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 82%, transparent 100%);
}
.desc.is-flowing.has-moved {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%);
}
.desc.is-flowing.at-end {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 100%);
}

.slide-event.no-desc .meta { margin-top: 44px; }
/* Lange Texte: kompakter Kopf, mehr Raum für den Text */
.slide-event.long-text .kicker { margin-bottom: 22px; }
.slide-event.long-text .meta { margin-top: 30px; gap: 24px; }
.slide-event.long-text .date-tile { width: 116px; height: 116px; border-radius: 24px; }
.slide-event.long-text .date-tile span { font-size: 18px; }
.slide-event.long-text .date-tile strong { font-size: 54px; }
.slide-event.long-text .meta-text strong { font-size: 36px; }
.slide-event.long-text .meta-text span { font-size: 28px; }
.slide-event.long-text .desc { margin-top: 32px; }
.slide-news .desc { margin-top: 40px; }

/* Bildfüllendes Bild mit langsamer Kamerafahrt */
.hero {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background: linear-gradient(140deg, var(--tone-a), #0b0e13 55%, var(--tone-b));
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-fill { transform: scale(1.04); }
.hero-poster { display: none; }

.slide.is-active .hero-fill { animation: hero-in 1.4s cubic-bezier(0.16, 0.88, 0.2, 1) both, var(--drift) 22s ease-in-out 1.4s infinite alternate; }
.hero[data-move="0"] { --drift: drift-0; }
.hero[data-move="1"] { --drift: drift-1; }
.hero[data-move="2"] { --drift: drift-2; }
.hero[data-move="3"] { --drift: drift-3; }
@keyframes hero-in {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1.04); }
}
@keyframes drift-0 { from { transform: scale(1.04); } to { transform: scale(1.1) translate(-1%, -0.7%); } }
@keyframes drift-1 { from { transform: scale(1.04); } to { transform: scale(1.1) translate(1%, -0.6%); } }
@keyframes drift-2 { from { transform: scale(1.04); } to { transform: scale(1.09) translate(-0.8%, 0.8%); } }
@keyframes drift-3 { from { transform: scale(1.04); } to { transform: scale(1.1) translate(0.9%, 0.7%); } }

/* Hochformat: unscharfer Hintergrund, das Bild selbst vollständig rechts */
.hero.is-portrait .hero-fill { filter: blur(48px) saturate(1.1) brightness(0.5); transform: scale(1.2); }
.slide.is-active .hero.is-portrait .hero-fill { animation: none; }
.hero.is-portrait .hero-poster {
  display: block;
  left: auto; right: 110px; top: 236px; bottom: auto;
  width: auto; height: 740px; max-width: 620px;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 50px 110px -30px rgba(0, 0, 0, 0.9);
}
.slide.is-active .hero.is-portrait .hero-poster { animation: poster-in 1.4s var(--ease-out) 0.15s both; }
@keyframes poster-in { from { opacity: 0; transform: translateY(50px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Abdunklung links und unten für den Text, oben für den Countdown */
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(5, 7, 9, 0.14), rgba(5, 7, 9, 0.14)),
    linear-gradient(90deg, rgba(5, 7, 9, 0.93) 0%, rgba(5, 7, 9, 0.82) 30%, rgba(5, 7, 9, 0.5) 52%, rgba(5, 7, 9, 0.12) 78%, rgba(5, 7, 9, 0.04) 100%),
    linear-gradient(0deg, rgba(5, 7, 9, 0.95) 0%, rgba(5, 7, 9, 0.5) 40%, rgba(5, 7, 9, 0.1) 70%, rgba(5, 7, 9, 0.55) 100%);
}
.hero-fallback {
  position: absolute; right: 120px; top: 150px;
  font-family: var(--display); font-size: 520px; font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  color: rgba(255, 255, 255, 0.08);
}

/* ---------- Willkommen ---------- */

.slide-welcome {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: 236px;
}
.slide-welcome .title { font-size: 178px; max-width: 1500px; }
.welcome-today {
  display: flex; align-items: center; gap: 26px;
  margin: 64px 0 0;
  font-size: 44px; font-weight: 600;
}
.welcome-today b {
  padding: 10px 26px 12px;
  border-radius: 999px;
  background: var(--accent); color: #1c1407;
  font-size: 26px; letter-spacing: 0.2em; text-transform: uppercase;
}
.welcome-text { margin: 30px 0 0; max-width: 1200px; font-size: 40px; line-height: 1.45; color: var(--ink-soft); }

/* ---------- App, Predigt: gemeinsame Bausteine ---------- */

.lead { margin: 40px 0 0; font-size: 42px; font-weight: 600; line-height: 1.3; }
.sub { margin: 18px 0 0; font-size: 34px; line-height: 1.45; color: var(--ink-soft); }

.qr-row { display: flex; gap: 34px; margin-top: 54px; }
.qr-card {
  display: flex; align-items: center; gap: 26px;
  padding: 18px 34px 18px 18px;
  border-radius: 30px;
  background: var(--glass);
  border: 1.5px solid var(--glass-line);
  backdrop-filter: blur(18px);
}
.qr-card img { width: 164px; height: 164px; padding: 12px; border-radius: 18px; background: #fff; }
.qr-card > div { min-width: 0; }
.qr-card strong { display: block; font-size: 32px; font-weight: 700; line-height: 1.15; }
.qr-card span { display: block; margin-top: 6px; font-size: 24px; color: var(--ink-soft); }
.slide-sermon .qr-row { gap: 26px; }
.slide-sermon .qr-card { flex: 1 1 0; min-width: 0; gap: 22px; padding-right: 24px; }
.slide-sermon .qr-card img { width: 150px; height: 150px; flex: none; }
.slide-sermon .qr-card strong { font-size: 28px; }
.slide-sermon .qr-card span { font-size: 22px; }

.slide-app, .slide-sermon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 720px;
  gap: 90px;
  align-items: center;
}
.slide-app { grid-template-columns: minmax(0, 1fr) 560px; }

.phone { display: grid; place-items: center; height: 740px; perspective: 1800px; }
.phone-body {
  width: 386px; height: 732px;
  padding: 14px;
  border-radius: 62px;
  background: linear-gradient(160deg, #2a2f38, #0c0e12);
  box-shadow: 0 70px 130px -40px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(255, 255, 255, 0.16) inset;
  opacity: 0;
}
.phone-body img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 50px; display: block; }
.slide.is-active .phone-body { animation: phone-in 1.5s var(--ease-out) 0.2s both, phone-float 9s ease-in-out 1.7s infinite alternate; }
@keyframes phone-in {
  from { opacity: 0; transform: translateY(120px) rotateY(-24deg) rotateZ(4deg); }
  to { opacity: 1; transform: rotateY(-9deg) rotateZ(2deg); }
}
@keyframes phone-float {
  from { transform: rotateY(-9deg) rotateZ(2deg) translateY(0); }
  to { transform: rotateY(-4deg) rotateZ(1deg) translateY(-22px); }
}

/* ---------- Predigt ---------- */

.sermon-card {
  height: 720px;
  display: flex; flex-direction: column;
  padding: 44px 48px 0;
  border-radius: 40px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  border: 1.5px solid var(--glass-line);
  backdrop-filter: blur(26px);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  opacity: 0;
}
.slide.is-active .sermon-card { animation: card-in 1.3s var(--ease-out) 0.25s both; }
@keyframes card-in { from { opacity: 0; transform: translateY(70px) scale(0.97); } to { opacity: 1; transform: none; } }

.sermon-top { display: flex; justify-content: space-between; align-items: center; }
.sermon-label { font-size: 22px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.wave { display: flex; align-items: center; gap: 6px; height: 34px; }
.wave i { width: 5px; height: 100%; border-radius: 4px; background: var(--accent); transform-origin: center; animation: wave 1.2s ease-in-out infinite alternate; }
.wave i:nth-child(2) { animation-delay: -0.9s; } .wave i:nth-child(3) { animation-delay: -0.3s; }
.wave i:nth-child(4) { animation-delay: -1.1s; } .wave i:nth-child(5) { animation-delay: -0.5s; }
.wave i:nth-child(6) { animation-delay: -0.7s; } .wave i:nth-child(7) { animation-delay: -0.1s; }
@keyframes wave { from { transform: scaleY(0.22); } to { transform: scaleY(1); } }

.sermon-progress { margin-top: 30px; }
.sermon-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.sermon-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 0.25s linear; }
.sermon-times { display: flex; justify-content: space-between; margin-top: 10px; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.sermon-info {
  display: flex; justify-content: space-between; gap: 30px;
  margin-top: 16px; padding-bottom: 22px;
  border-bottom: 1.5px solid var(--glass-line);
  font-size: 20px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
}
.sermon-info span:first-child { flex: none; white-space: nowrap; }
.sermon-chapter { text-align: right; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sermon-window {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%);
}
.sermon-lines { padding-top: 150px; transition: transform 1.1s var(--ease-soft); will-change: transform; }
.sermon-lines p {
  margin: 0 0 26px;
  font-size: 36px; line-height: 1.34; font-weight: 500;
  color: rgba(247, 242, 232, 0.3);
  transition: color 0.7s ease, transform 0.7s var(--ease-out);
  transform-origin: left center;
}
.sermon-lines p.is-past { color: rgba(247, 242, 232, 0.22); }
.sermon-lines p.is-current { color: var(--ink); font-weight: 700; transform: scale(1.03); }

/* ---------- Spenden ---------- */

.slide-donations { display: flex; flex-direction: column; padding-top: 214px; }
.don-head { display: flex; align-items: baseline; gap: 40px; }
.don-head .kicker { margin: 0; font-size: 28px; }
.don-thanks { margin: 0; font-size: 28px; color: var(--ink-soft); }
.don-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; margin-top: 56px; align-items: start; }
.don-panel { padding-top: 34px; border-top: 1.5px solid var(--glass-line); }
.don-panel h2 { margin: 0; font-size: 40px; font-weight: 600; color: var(--series); }
.don-gifts { --series: var(--mint); }
.don-fund { --series: var(--accent); }
.don-amount {
  display: block; margin-top: 10px;
  font-family: var(--display);
  font-size: 122px; font-weight: 800; line-height: 1.05; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.don-goal-text { margin: 12px 0 0; min-height: 44px; font-size: 32px; color: var(--ink-soft); }
.don-chart { display: block; width: 100%; margin-top: 30px; overflow: visible; }
.don-grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1.5; }
.don-base { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.5; }
.don-month { fill: var(--ink-mute); font-size: 19px; font-family: var(--sans); font-weight: 600; }
.don-goal { stroke: var(--series); stroke-width: 2.5; stroke-dasharray: 10 10; opacity: 0.6; }
.don-line {
  fill: none; stroke: var(--series); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.don-area { fill: var(--series); opacity: 0; }
.don-point, .don-last { fill: var(--series); opacity: 0; }
.don-halo { fill: var(--series); opacity: 0; transform-box: fill-box; transform-origin: center; }
.slide.is-active .don-line { animation: draw 2.4s var(--ease-soft) 0.9s both; }
.slide.is-active .don-fund .don-line { animation-delay: 1.35s; }
.slide.is-active .don-area { animation: area-in 1.6s ease 2.2s both; }
.slide.is-active .don-point { animation: point-in 0.8s ease 2.4s both; }
.slide.is-active .don-last { animation: point-in 0.7s var(--ease-out) 3s both; }
.slide.is-active .don-halo { animation: halo 2.6s ease-out 3.1s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes area-in { to { opacity: 0.13; } }
@keyframes point-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes halo { 0% { opacity: 0.45; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.7); } }
.don-asof { margin: 14px 0 0; font-size: 24px; color: var(--ink-mute); }
.don-note { grid-column: 1 / -1; margin: 120px 0 0; font-size: 48px; color: var(--ink-soft); }

/* ---------- Letzte Minute ---------- */

.final {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: center;
  animation: final-in 1.2s var(--ease-out) both;
}
.final[hidden], .start-notice[hidden], .status-note[hidden] { display: none; }
@keyframes final-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.final-heading {
  position: absolute; top: 74px; left: 0; right: 0;
  margin: 0; text-align: center;
  font-size: 34px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft);
}
.final-clock { position: relative; width: 900px; height: 900px; }
.final-clock svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.final-track { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 10; }
.final-ring {
  fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 1.2s ease;
}
.final-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.final-value strong {
  font-family: var(--display);
  font-size: 460px; font-weight: 800; line-height: 0.92; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.final-value span { margin-top: 8px; font-size: 36px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-mute); }
.final.is-last-ten .final-ring { stroke: var(--accent); }
.final.is-last-ten .final-value strong { color: var(--accent); }

.stage.is-final .slides, .stage.is-final .hud, .stage.is-final .slide-progress,
.stage.is-ended .slides, .stage.is-ended .hud, .stage.is-ended .slide-progress { opacity: 0; pointer-events: none; }

/* ---------- Beginn ---------- */

.start-notice {
  position: absolute; inset: 0; z-index: 7;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  animation: final-in 1.6s var(--ease-out) both;
}
.start-notice p { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.start-notice h1 { margin: 36px 0 0; max-width: 1500px; text-wrap: balance; font-family: var(--display); font-size: 160px; font-weight: 700; line-height: 1.0; letter-spacing: -0.04em; }

.status-note {
  position: absolute; left: 110px; bottom: 60px; z-index: 8;
  margin: 0; font-size: 26px; color: var(--ink-mute);
}

/* ---------- Bedienleiste (nicht skaliert) ---------- */

.controls {
  position: absolute; left: 50%; bottom: 22px; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(14, 17, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px -20px #000;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.stage.controls-visible .controls, .controls:focus-within { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.controls button, .controls select, .controls input, .controls output {
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font: 600 14px var(--sans);
}
.controls button { padding: 0 14px; cursor: pointer; }
@media (hover: hover) { .controls button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); } }
.controls button:disabled { opacity: 0.4; cursor: default; }
.controls button.primary { min-width: 104px; background: var(--accent); border-color: transparent; color: #1c1407; }
@media (hover: hover) { .controls button.primary:hover { background: #f6cb8c; } }
.controls button:active:not(:disabled) { transform: scale(0.96); }
.controls [hidden] { display: none; }
.controls :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.controls .nav { display: flex; align-items: center; gap: 6px; }
.controls output { display: grid; place-items: center; min-width: 72px; padding: 0 10px; font-variant-numeric: tabular-nums; }
.controls label { display: flex; align-items: center; gap: 8px; padding-left: 6px; color: var(--ink-soft); font-weight: 600; }
.controls select { max-width: 230px; padding: 0 8px; }
.controls input { padding: 0 8px; color-scheme: dark; }
.controls .hint { font-size: 12px; font-weight: 500; color: var(--ink-mute); padding-right: 6px; }
.controls .hint:empty { display: none; }

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  .aurora i, .hero img, .phone-body, .wave i, .don-halo { animation: none !important; }
  .rise, .title .w > span { opacity: 1; transform: none; }
  .slide.is-active .rise, .slide.is-active .title .w > span,
  .slide.is-active .sermon-card, .slide.is-active .don-line, .slide.is-active .don-area,
  .slide.is-active .don-point, .slide.is-active .don-last { animation-duration: 0.01s; animation-delay: 0s; }
  .phone-body, .sermon-card { opacity: 1; }
}

/* ---------- Touch-Geräte und schmale Bildschirme ---------- */

.stage { touch-action: manipulation; -webkit-user-select: none; user-select: none; }

/* Größere Tippflächen, wenn mit dem Finger bedient wird */
@media (pointer: coarse) {
  .controls { gap: 8px; padding: 10px; }
  .controls button, .controls select, .controls input, .controls output { height: 44px; font-size: 16px; }
  .controls button { min-width: 44px; }
}

/* Schmale Bildschirme: Leiste bricht um, statt über den Rand zu laufen */
@media (max-width: 900px) {
  .controls {
    width: calc(100vw - 24px); max-width: 640px;
    flex-wrap: wrap; justify-content: center;
    white-space: normal;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .controls label { flex-wrap: wrap; }
  .controls select { max-width: 52vw; }
}

/* ---------- Touch-Geräte: Grafikspeicher schonen ----------
   iPhone und iPad beenden eine Seite, wenn der Grafikspeicher überläuft.
   Unschärfe auf großen Flächen, Mischmodi und Milchglas sind dort die größten
   Verbraucher und entfallen deshalb. */
@media (pointer: coarse) {
  .grain { display: none; }
  .hero.is-portrait .hero-fill { filter: none; opacity: 0.35; }
  .date-tile, .qr-card, .sermon-card, .controls { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sermon-card { background: rgba(22, 25, 32, 0.92); }
  .qr-card { background: rgba(22, 25, 32, 0.85); }
  .controls { background: rgba(14, 17, 23, 0.95); }
}

/* Bühne per zoom statt transform (wird im Skript nur auf Touch-Geräten gesetzt) */
.use-zoom .stage { display: flex; align-items: center; justify-content: center; }
.use-zoom .canvas { position: relative; left: auto; top: auto; flex: none; transform: none; }

/* ---------- Hinweis: Vollbild auf dem iPhone ---------- */
.fs-hint {
  position: absolute; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
}
.fs-hint[hidden] { display: none; }
.fs-hint-card {
  width: min(520px, 100%); max-height: 100%; overflow: auto;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: #15181f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px -20px #000;
  font-size: 16px; line-height: 1.45; color: var(--ink-soft);
}
.fs-hint-card h2 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
.fs-hint-card p { margin: 0 0 10px; }
.fs-hint-card ol { margin: 0 0 16px; padding-left: 22px; }
.fs-hint-card li { margin: 4px 0; }
.fs-hint-card b { color: var(--ink); }
.fs-hint-card button {
  width: 100%; height: 44px;
  border: 0; border-radius: 10px;
  background: var(--accent); color: #1c1407;
  font: 700 16px var(--sans);
}
/* In der App vom Home-Bildschirm: Ränder für Notch und Home-Leiste freihalten */
@media (display-mode: fullscreen), (display-mode: standalone) {
  .stage { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
}

/* ---------- Outro (outro.html) ----------
   Eigene Klassen, das Intro bleibt unberührt. */

/* 1. Abschied mit nächstem Gottesdienst; Bild des Termins im Hintergrund */
.slide-farewell .copy { max-height: 820px; width: 1400px; }
.farewell-title { font-size: 168px; max-width: 1400px; }
.farewell-text { margin: 36px 0 0; max-width: 1200px; font-size: 46px; line-height: 1.35; color: var(--ink-soft); text-shadow: 0 6px 34px rgba(0, 0, 0, 0.7); }
.next-service {
  display: flex; align-items: center; gap: 34px;
  margin-top: 60px; padding: 26px 46px 26px 26px;
  align-self: flex-start;
  border-radius: 40px;
  background: rgba(10, 12, 16, 0.5);
  border: 1.5px solid var(--glass-line);
  backdrop-filter: blur(18px);
}
.next-service .date-tile { background: var(--accent); border-color: transparent; color: #1c1407; backdrop-filter: none; }
.next-service .date-tile span, .next-service .date-tile span:last-child { color: rgba(28, 20, 7, 0.75); }
.next-service small { font-size: 22px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.next-service .meta-text strong { font-family: var(--display); font-size: 54px; letter-spacing: -0.02em; line-height: 1.1; }

/* 2. Die kommende Woche */
.slide-week { display: flex; flex-direction: column; padding-top: 200px; }
.slide-week .title { font-size: 104px; }
.week-list {
  list-style: none; margin: 54px 0 0; padding: 0;
  display: grid; grid-auto-flow: row; gap: 14px 70px;
}
.week-list.cols-2 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(7, auto); grid-auto-flow: column; }
.week-item {
  display: flex; align-items: center; gap: 28px;
  min-width: 0; padding: 10px 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
}
.week-day {
  flex: none; width: 92px; height: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 18px;
  background: var(--glass);
  border: 1.5px solid var(--glass-line);
}
.week-day span { font-size: 17px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.week-day strong { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1; }
.week-text { display: flex; align-items: baseline; gap: 26px; min-width: 0; }
.week-text strong { font-size: 40px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.week-text span { flex: none; font-size: 30px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.cols-2 .week-text { flex-direction: column; align-items: flex-start; gap: 2px; }
.cols-2 .week-item { padding: 4px 0; gap: 22px; }
.cols-2 .week-day { width: 80px; height: 62px; }
.cols-2 .week-text strong { font-size: 32px; max-width: 100%; }
.cols-2 .week-text span { font-size: 24px; }
.week-empty { margin: 60px 0 0; font-size: 44px; color: var(--ink-soft); }

/* 3. Spende mit großem QR-Code */
.slide-donate {
  display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 110px; align-items: center;
}
.slide-donate .sub { max-width: 1000px; font-size: 38px; }
.bank {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 34px;
  margin: 50px 0 0; padding-top: 34px;
  border-top: 1.5px solid var(--glass-line);
  font-size: 32px;
}
.bank dt { font-size: 22px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); align-self: center; }
.bank dd { margin: 0; font-weight: 600; }
.bank .iban { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.donate-qr .qr-card { flex-direction: column; align-items: stretch; gap: 22px; padding: 26px; border-radius: 40px; text-align: center; }
.donate-qr .qr-card img { width: 100%; height: auto; aspect-ratio: 1; padding: 26px; border-radius: 26px; }
.donate-qr .qr-card strong { font-size: 40px; }
.donate-qr .qr-card span { font-size: 28px; }

/* 4. Dank an die Mitwirkenden */
.slide-thanks { display: flex; flex-direction: column; padding-top: 200px; }
.slide-thanks .title { max-width: 1600px; }
.team-grid {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px;
}
/* Drei Karten je Zeile; sind es nur fünf, stehen die letzten zwei breiter */
.team-card { grid-column: span 2; }
.team-card:nth-child(4):nth-last-child(2), .team-card:nth-child(5):last-child { grid-column: span 3; }
.team-card {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  min-height: 250px; padding: 36px 36px;
  border-radius: 32px;
  background: var(--glass);
  border: 1.5px solid var(--glass-line);
}
.team-card strong { font-family: var(--display); font-size: 42px; white-space: nowrap; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.team-card span { font-size: 38px; font-weight: 500; line-height: 1.3; color: var(--ink-soft); }
.team-card.no-names { justify-content: center; }

@media (pointer: coarse) {
  .next-service { backdrop-filter: none; background: rgba(14, 17, 23, 0.85); }
}
/* Volle Woche: zwei Spalten, etwas dichter, damit sieben Zeilen sicher passen */
.week-list.cols-2 { margin-top: 36px; row-gap: 6px; }
