/* Flur-Anzeige – Darstellung
   Die Bühne ist fest 1920×1080 (quer) bzw. 1080×1920 (hoch) und wird auf den Bildschirm skaliert. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; cursor: none; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage { position: relative; width: 1920px; height: 1080px; flex: none; overflow: hidden; background: #000; transform-origin: center center; }
#stage.portrait { width: 1080px; height: 1920px; }
#layers, .layer { position: absolute; inset: 0; }
/* Übergang: alte Folie blendet aus, dann gleiten die Inhalte der neuen herein */
.layer { z-index: 1; opacity: 1; transition: opacity .65s ease-in-out; will-change: opacity; backface-visibility: hidden; }
.layer.current { z-index: 2; }
.layer.leaving { opacity: 0; }
.layer .slide > * { transition: opacity .65s ease-out, transform .65s cubic-bezier(.2,.7,.2,1); }
.layer.enter .slide > *:not(.motif):not(.media):not(.waterline) { opacity: 0; transform: translate3d(0, 18px, 0); }
.layer.enter .s-image > *, .layer.enter .s-pdf > *, .layer.enter .s-web > * { transform: none; }
#blackout { position: fixed; inset: 0; background: #000; z-index: 50; }

#corner-clock {
  position: absolute; top: 44px; right: 56px; z-index: 20;
  font: 600 34px/1 Inter, system-ui, sans-serif; letter-spacing: .02em;
  padding: 14px 22px; border-radius: 999px;
  color: #fff; background: rgba(17, 20, 27, .55); backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
#stage.no-corner #corner-clock, #stage.hide-corner #corner-clock { display: none; }
#demo-badge {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20;
  font: 600 20px/1 Inter, sans-serif; color: #fff; background: #c2410c; padding: 8px 16px; border-radius: 6px;
}

/* ---------- Themen ---------- */

.slide { position: absolute; inset: 0; overflow: hidden; font-family: var(--font); color: var(--fg); background: var(--bg); }

.t-ca {
  --font: "PT Sans", Arial, sans-serif;
  --accent: #D30056; --accent-2: #a80045;
  --ink: #3D3D3D; --muted: #5B5E65; --soft: #F5F4F1; --sand: #E3E0D8; --dark: #3D3D3D;
  --heading-weight: 700; --radius: 0px; --tracking: .14em;
}
.t-hd {
  --font: Inter, system-ui, sans-serif;
  --accent: #355C8A; --accent-2: #2E4D72;
  --ink: #11141B; --muted: #59759D; --soft: #F6F8FB; --sand: #DDE2EB; --dark: #202F44;
  --heading-weight: 700; --radius: 22px; --tracking: .16em;
}

.v-light  { --qr: var(--ink); --bg: var(--soft); --fg: var(--ink); --sub: var(--muted); --kicker: var(--accent); --rule: var(--sand); --card: #fff; }
.v-white  { --qr: var(--ink); --bg: #fff; --fg: var(--ink); --sub: var(--muted); --kicker: var(--accent); --rule: var(--sand); --card: var(--soft); }
.v-dark   { --qr: #fff; --bg: var(--dark); --fg: #fff; --sub: rgba(255,255,255,.72); --kicker: #fff; --rule: rgba(255,255,255,.18); --card: rgba(255,255,255,.07); }
.v-accent { --qr: #fff; --bg: var(--accent); --fg: #fff; --sub: rgba(255,255,255,.82); --kicker: #fff; --rule: rgba(255,255,255,.28); --card: rgba(255,255,255,.12); }
.t-hd.v-accent { --bg: var(--accent-2); }
.v-image  { --qr: #fff; --bg: #111; --fg: #fff; --sub: rgba(255,255,255,.85); --kicker: #fff; --rule: rgba(255,255,255,.3); --card: rgba(255,255,255,.12); }
.t-ca.v-dark .kicker, .t-ca.v-image .kicker { color: #ff5a95; }

/* Logo */
.brand { position: absolute; top: 72px; left: 120px; z-index: 3; height: 88px; display: flex; align-items: center; }
.brand img { height: 100%; width: auto; display: block; }
.t-hd .brand { height: 72px; }
.v-dark .brand img, .v-accent .brand img, .v-image .brand img { filter: brightness(0) invert(1); }
.portrait .brand { top: 64px; left: 80px; height: 76px; }

/* Bildmarke der coachingakademie als Gestaltungselement */
.motif { position: absolute; z-index: 0; pointer-events: none; }
.motif svg { width: 100%; height: 100%; display: block; }
.motif path { fill: var(--accent); }
.v-accent .motif path, .v-dark .motif path { fill: #fff; }
.t-ca .motif { width: 760px; height: 766px; right: -120px; bottom: -180px; opacity: .07; }
.t-ca.v-accent .motif, .t-ca.v-dark .motif { opacity: .1; }

/* HanseDeck: dezente Wasserlinie */
.t-hd .waterline { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(90deg, var(--accent-2), var(--accent) 55%, #BCC5D7); z-index: 2; }
.t-hd.v-accent .waterline, .t-hd.v-dark .waterline { background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.5)); }

.kicker {
  font-family: var(--font); font-weight: 700; font-size: 30px; letter-spacing: var(--tracking);
  text-transform: uppercase; color: var(--kicker); margin-bottom: 28px;
}
.t-ca .kicker::before { content: ""; display: inline-block; width: 56px; height: 6px; background: currentColor; vertical-align: middle; margin: -6px 22px 0 0; }
.t-hd .kicker { font-size: 26px; font-weight: 600; }

h1.title { font-weight: var(--heading-weight); line-height: 1.04; letter-spacing: -.01em; color: var(--fg); }
.t-ca.v-light h1.title, .t-ca.v-white h1.title { color: var(--accent); }
.t-hd h1.title { letter-spacing: -.025em; }
.lead { font-size: 44px; line-height: 1.38; color: var(--sub); white-space: pre-line; }
.lead strong { color: var(--fg); }

/* ---------- Textfolie ---------- */

.s-text .content {
  position: absolute; z-index: 2; left: 120px; right: 120px; top: 230px; bottom: 120px;
  display: flex; flex-direction: column; justify-content: center;
}
.s-text h1.title { font-size: 120px; margin-bottom: 40px; }
.s-text.has-media .content { right: calc(42% + 80px); }
.s-text .media {
  position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 42%;
  background: var(--sand) center/cover no-repeat;
}
.t-hd.s-text .media { top: 140px; right: 72px; bottom: 86px; width: calc(42% - 72px); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(17,20,27,.18); }
.t-ca.s-text.has-media .motif { display: none; }

.s-text.v-image .media { inset: 0; width: auto; border-radius: 0; box-shadow: none; }
.s-text.v-image .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,18,.86) 0%, rgba(10,12,18,.6) 48%, rgba(10,12,18,.15) 100%); }
.t-ca.s-text.v-image .media::after { background: linear-gradient(90deg, rgba(40,40,40,.88) 0%, rgba(40,40,40,.55) 50%, rgba(40,40,40,.1) 100%); }
.t-hd.s-text.v-image .media::after { background: linear-gradient(90deg, rgba(32,47,68,.92) 0%, rgba(32,47,68,.6) 50%, rgba(32,47,68,.12) 100%); }
.s-text.v-image .content { right: 38%; }

.cta { margin-top: 52px; display: flex; align-items: center; gap: 36px; }
.qr { flex: none; line-height: 0; color: var(--qr); }
.qr svg { width: 196px; height: 196px; display: block; }
.cta-text { font-size: 34px; line-height: 1.3; color: var(--fg); font-weight: 700; }
.cta-text small { display: block; font-weight: 400; font-size: 28px; color: var(--sub); margin-top: 6px; overflow-wrap: anywhere; }
.footnote { position: absolute; z-index: 3; left: 120px; bottom: 58px; font-size: 28px; color: var(--sub); }

.portrait .s-text .content { left: 80px; right: 80px; top: 220px; bottom: 120px; }
.portrait .s-text.has-media .content { right: 80px; top: 820px; justify-content: flex-start; }
.portrait .s-text .media { width: auto; left: 0; height: 760px; bottom: auto; }
.portrait .t-hd.s-text .media { left: 64px; right: 64px; top: 190px; height: 590px; width: auto; }
.portrait .s-text.v-image .content { right: 80px; top: auto; bottom: 160px; justify-content: flex-end; }
.portrait .s-text.v-image .media { height: auto; inset: 0; }
.portrait .s-text.v-image .media::after { background: linear-gradient(0deg, rgba(10,12,18,.9) 0%, rgba(10,12,18,.5) 55%, rgba(10,12,18,.1) 100%); }
.portrait .footnote { left: 80px; }

/* ---------- Veranstaltungen ---------- */

.col { position: absolute; z-index: 2; left: 120px; right: 120px; top: 196px; bottom: 90px; display: flex; flex-direction: column; }
.col .head { flex: none; margin-bottom: 44px; }
.col h1.title { font-size: 84px; }
.s-events .list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.s-events.has-qr .col { right: 480px; }
.ev { display: flex; align-items: center; gap: 40px; padding: 22px 28px; background: var(--card); border-radius: var(--radius); min-height: 0; flex: 0 1 auto; }
.t-ca .ev { border-left: 8px solid var(--accent); }
.v-accent .ev, .v-dark .ev { border-left-color: #fff; }
.ev .date { width: 136px; flex: none; text-align: center; color: var(--accent); line-height: 1; }
.v-dark .ev .date, .v-accent .ev .date { color: #fff; }
.ev .day { font-size: 76px; font-weight: 700; display: block; }
.ev .mon { font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; display: block; margin-top: 6px; }
.ev .wd { font-size: 22px; display: block; margin-top: 6px; color: var(--sub); text-transform: uppercase; letter-spacing: .1em; }
.ev .info { min-width: 0; }
.ev .name { font-size: 42px; font-weight: 700; line-height: 1.15; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev .meta { font-size: 28px; color: var(--sub); margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .meta .sep { margin: 0 14px; opacity: .5; }
.s-events .side { position: absolute; z-index: 2; right: 120px; top: 0; bottom: 0; width: 300px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.s-events .side .qr { display: inline-block; }
.s-events .side .qr svg { width: 252px; height: 252px; }
.s-events .side p { font-size: 30px; font-weight: 700; margin-top: 24px; line-height: 1.3; }
.s-events .empty { font-size: 44px; color: var(--sub); }
.portrait .col { left: 80px; right: 80px; top: 190px; }
.portrait .s-events.has-qr .col { right: 80px; bottom: 420px; }
.portrait .s-events .side { right: auto; left: 80px; top: auto; bottom: 110px; width: auto; flex-direction: row; align-items: center; gap: 36px; text-align: left; }
.portrait .s-events .side .qr svg { width: 220px; height: 220px; }

/* ---------- Uhr & Wetter ---------- */

.s-clock .wrap { position: absolute; z-index: 2; left: 120px; right: 120px; top: 220px; bottom: 110px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.s-clock .time { font-size: 300px; font-weight: 700; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--fg); }
.t-ca.v-light .s-clock .time, .t-ca.s-clock.v-light .time, .t-ca.s-clock.v-white .time { color: var(--accent); }
.s-clock .date { font-size: 54px; margin-top: 30px; color: var(--sub); }
.s-clock .greet { font-size: 40px; margin-top: 46px; font-weight: 700; color: var(--fg); }
.weather .now { display: flex; align-items: center; gap: 36px; }
.weather .now svg { width: 200px; height: 200px; flex: none; }
.weather .temp { font-size: 150px; font-weight: 700; line-height: 1; color: var(--fg); }
.weather .desc { font-size: 40px; color: var(--sub); margin-top: 12px; }
.weather .place { font-size: 28px; color: var(--sub); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.weather .days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.weather .d { background: var(--card); border-radius: var(--radius); padding: 26px 18px; text-align: center; }
.weather .d .n { font-size: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.weather .d svg { width: 92px; height: 92px; margin: 12px auto; display: block; }
.weather .d .r { font-size: 34px; font-variant-numeric: tabular-nums; }
.weather .d .r span { color: var(--sub); }
.weather .d .p { font-size: 24px; color: var(--sub); margin-top: 6px; }
.wx-sun { fill: #F5B70A; } .wx-cloud { fill: #C9D2DE; } .wx-cloud2 { fill: #9AA8BA; }
.wx-drop { fill: #4A90D9; } .wx-snow { fill: #fff; stroke: #9AA8BA; stroke-width: 2; } .wx-bolt { fill: #F5B70A; }
.wx-fog { stroke: #9AA8BA; stroke-width: 6; stroke-linecap: round; }
.portrait .s-clock .wrap { left: 80px; right: 80px; grid-template-columns: 1fr; gap: 90px; align-content: center; }

/* ---------- HVV ---------- */

.s-hvv .cols { flex: 1; min-height: 0; overflow: hidden; display: grid; gap: 56px; grid-auto-flow: column; grid-auto-columns: 1fr; align-content: start; }
.st h2 { font-size: 36px; font-weight: 700; color: var(--fg); padding-bottom: 16px; border-bottom: 3px solid var(--rule); margin-bottom: 8px; }
.dep { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 26px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.line { font: 700 30px/1 Inter, sans-serif; color: #fff; text-align: center; padding: 10px 0; border-radius: 8px; background: #6b7280; }
.line.S { background: #009252; border-radius: 999px; } .line.U { background: #0067ac; } .line.Bus { background: #e2001a; }
.line.Faehre, .line.Fähre, .line.Schiff { background: #0091d4; } .line.R, .line.RE, .line.RB { background: #4b5563; }
.dep .dir { font-size: 34px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep .min { font-size: 38px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; text-align: right; }
.dep .min small { font-size: 22px; font-weight: 600; color: #e2001a; display: block; }
.v-dark .dep .min small, .v-accent .dep .min small { color: #ffb4b4; }
.dep.cancelled .dir, .dep.cancelled .min { text-decoration: line-through; opacity: .5; }
.s-hvv .note { font-size: 34px; color: var(--sub); }
.portrait .s-hvv .cols { grid-auto-flow: row; grid-auto-rows: max-content; }

/* ---------- Bild, PDF, Webseite ---------- */

.s-image, .s-pdf { display: flex; align-items: center; justify-content: center; }
.s-image img { width: 100%; height: 100%; display: block; }
.s-image.fit-cover img { object-fit: cover; }
.s-image.fit-contain img { object-fit: contain; }
.s-pdf canvas { display: block; max-width: 100%; max-height: 100%; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.s-pdf .pager { position: absolute; right: 40px; bottom: 30px; font: 600 22px/1 Inter, sans-serif; color: rgba(0,0,0,.45); }
.s-web iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

/* ---------- Leerlauf ---------- */

.s-idle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; }
.s-idle .brand { position: static; height: 120px; }
.s-idle p { font-size: 34px; color: var(--sub); }
.s-error { display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px; }
.s-error p { font-size: 40px; color: var(--sub); }

/* ---------- Hochkant: Höhe nutzen ---------- */

/* Textfolie: Inhalt mittig, QR-Code unten verankert */
.portrait .s-text .content { top: 230px; bottom: 140px; justify-content: flex-start; }
.portrait .s-text .content > :first-child { margin-top: auto; }
.portrait .s-text .cta { margin-top: auto; padding-top: 70px; gap: 44px; }
.portrait .s-text .content:not(:has(.cta)) > :last-child { margin-bottom: auto; }
.portrait .s-text.has-media .content { top: 820px; }
.portrait .s-text.has-media .content > :first-child { margin-top: 0; }
.portrait .s-text.v-image .content { top: 230px; }
.portrait .s-text.v-image .content > :first-child { margin-top: auto; }
.portrait .qr svg { width: 260px; height: 260px; }
.portrait .cta-text { font-size: 40px; }
.portrait .cta-text small { font-size: 30px; }
.portrait .kicker { font-size: 32px; }

/* Veranstaltungen: größerer QR-Code */
.portrait .s-events .side .qr svg { width: 260px; height: 260px; }
.portrait .s-events .side p { font-size: 36px; }

/* Uhr & Wetter: Uhr oben, Wetter unten */
.portrait .s-clock .wrap { top: 250px; bottom: 140px; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; align-content: stretch; }
.portrait .s-clock .time { font-size: 340px; }
.portrait .s-clock .date { font-size: 56px; }
.portrait .s-clock .weather { align-self: end; }
.portrait .weather .now svg { width: 240px; height: 240px; }
.portrait .weather .temp { font-size: 190px; }
.portrait .weather .desc { font-size: 46px; }
.portrait .weather .days { gap: 26px; margin-top: 60px; }
.portrait .weather .d { padding: 34px 18px; }
.portrait .weather .d .n { font-size: 34px; }
.portrait .weather .d svg { width: 120px; height: 120px; }
.portrait .weather .d .r { font-size: 40px; }
.portrait .weather .d .p { font-size: 28px; }

/* HVV: etwas größer */
.portrait .st h2 { font-size: 40px; }
.portrait .dep .dir { font-size: 38px; }
.portrait .dep .min { font-size: 42px; }
.portrait .dep { padding: 20px 0; }
.portrait .s-hvv .cols { gap: 70px; }
