@font-face {
  font-family: Gilroy;
  src: url("assets/fonts/Gilroy-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url("assets/fonts/Gilroy-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url("assets/fonts/Gilroy-Semibold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url("assets/fonts/Gilroy-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --gold: #e7a408;
  --teal: #076666;
  --ink: #183638;
  --paper: #ffffff;
  --warm: #faf8f2;
  --soft-gold: #fbf2dc;
  --line: #e9e5dc;
  --side-pad: clamp(24px, 3.2vw, 92px);
  font-family: Gilroy, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.tv-screen {
  --header-height: clamp(68px, 8.2vh, 112px);
  --footer-height: clamp(92px, 12vh, 154px);
  width: 100vw;
  height: 100vh;
  min-height: 540px;
  display: grid;
  position: relative;
  grid-template-rows: var(--header-height) minmax(0, 1fr) var(--footer-height);
  overflow: hidden;
  background: var(--paper);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* UHD-Browser können 3840 CSS-Pixel melden. Dann wird die 1920er
   Komposition proportional auf die tatsächliche Fläche vergrößert. */
.tv-screen.is-scaled {
  position: absolute;
  width: 1920px;
  height: 1080px;
  min-height: 0;
  left: var(--screen-left);
  top: var(--screen-top);
  transform: scale(var(--screen-scale));
  transform-origin: top left;
  --side-pad: 62px;
  --header-height: 88px;
  --footer-height: 130px;
}

.tv-screen.is-scaled .practice-logo { width: 380px; }
.tv-screen.is-scaled .slide-inner { padding: 27px 62px 24px; }
.tv-screen.is-scaled h1 { font-size: 96px; }
.tv-screen.is-scaled .intro { margin-top: 14px; font-size: 35px; }
.tv-screen.is-scaled .details { gap: 30px; padding-top: 28px; }
.tv-screen.is-scaled .list-block h2,
.tv-screen.is-scaled .info-card h2 { font-size: 37px; }
.tv-screen.is-scaled .topic-list { gap: 10px; }
.tv-screen.is-scaled .topic-list li { grid-template-columns: 74px minmax(0, 1fr); column-gap: 20px; font-size: 34px; }
.tv-screen.is-scaled .list-mark { width: 70px; }
.tv-screen.is-scaled .info-card { padding: 30px; }
.tv-screen.is-scaled .info-card p { font-size: 29px; }
.tv-screen.is-scaled .message-copy strong { font-size: 44px; }

.photo-layer {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 2.1s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity;
}

.photo-layer.is-active { opacity: 1; }

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 var(--side-pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.practice-logo {
  display: block;
  width: clamp(200px, 20vw, 390px);
  height: auto;
  max-height: 78%;
  object-fit: contain;
  object-position: left center;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 56%;
  width: 16%;
  pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 40%, rgba(255,255,255,.94) 60%, rgba(255,255,255,0) 100%);
}

.stage::before {
  display: none;
}

.content-surface {
  position: relative;
  z-index: 2;
  width: 58%;
  height: 100%;
  background: var(--paper);
}

.slide-inner {
  height: 100%;
  padding: clamp(22px, 2.5vh, 48px) var(--side-pad) clamp(18px, 2.2vh, 42px);
  display: flex;
  flex-direction: column;
  transition: opacity 1.1s cubic-bezier(.22, .61, .36, 1);
}

.slide-inner.is-changing { opacity: 0; }

.eyebrow {
  margin: 0 0 clamp(8px, 1vh, 18px);
  color: var(--teal);
  font-size: clamp(16px, 1.05vw, 25px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  max-width: 100%;
  margin: 0;
  color: var(--teal);
  font-size: clamp(58px, 5vw, 106px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.title-line { display: block; }
.title-line:nth-child(2), .accent { color: var(--gold); }

h1::after {
  display: none;
}

.intro {
  max-width: 96%;
  margin: clamp(14px, 1.5vh, 24px) 0 0;
  font-size: clamp(25px, 1.82vw, 40px);
  font-weight: 500;
  line-height: 1.27;
}

.details {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, .9fr);
  align-items: start;
  gap: clamp(20px, 1.6vw, 38px);
  min-height: 0;
  flex: 1;
  padding-top: clamp(22px, 2.6vh, 36px);
}

.list-block h2,
.info-card h2 {
  margin: 0 0 clamp(12px, 1.6vh, 28px);
  color: var(--teal);
  font-size: clamp(27px, 1.95vw, 44px);
  line-height: 1.12;
  font-weight: 700;
}

.topic-list {
  display: grid;
  gap: clamp(8px, 1vh, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  display: grid;
  grid-template-columns: clamp(48px, 3.9vw, 76px) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(12px, 1.1vw, 24px);
  font-size: clamp(25px, 1.78vw, 38px);
  font-weight: 500;
  line-height: 1.2;
}

.list-mark {
  display: grid;
  width: clamp(46px, 3.65vw, 74px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-gold);
  color: var(--teal);
}

.topic-list li:nth-child(odd) .list-mark { color: var(--gold); }
.list-mark svg { width: 54%; height: 54%; stroke-width: 2.2; }

.info-card {
  align-self: start;
  padding: clamp(22px, 1.6vw, 34px);
  border-radius: clamp(16px, 1.2vw, 28px);
  background: rgba(250,248,242,.96);
  box-shadow: 0 14px 38px rgba(21,56,54,.06);
  text-align: center;
  transform: translateX(clamp(0px, 1.2vw, 26px));
}

.info-icon { display: grid; width: clamp(48px, 3.6vw, 72px); height: clamp(48px, 3.6vw, 72px); place-items: center; margin: 0 auto clamp(8px, 1vh, 16px); color: var(--teal); }
.info-icon svg { width: 100%; height: 100%; stroke-width: 2.2; }

.info-card h2 { margin-bottom: clamp(10px, 1vh, 18px); }

.info-card p {
  margin: 0;
  font-size: clamp(23px, 1.53vw, 33px);
  font-weight: 500;
  line-height: 1.23;
}

.messagebar {
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2vw, 48px);
  padding: 0 var(--side-pad);
  color: var(--paper);
  background: var(--teal);
}

.message-icon {
  display: grid;
  place-items: center start;
  width: clamp(72px, 5.2vw, 108px);
  height: clamp(54px, 4.5vw, 88px);
  border-right: 1px solid rgba(255,255,255,.75);
}

.message-icon svg { width: 65%; height: 78%; stroke-width: 2; }

.message-copy { display: grid; gap: 6px; }
.message-copy strong { font-size: clamp(28px, 2.25vw, 48px); line-height: 1.15; font-weight: 700; }
.message-copy span { display: none; }

.empty-state {
  position: fixed;
  z-index: 4;
  inset: clamp(68px, 8.2vh, 112px) 0 clamp(92px, 12vh, 154px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--paper);
  text-align: center;
}

.empty-state[hidden] { display: none; }
.empty-state p { margin: 0; color: var(--teal); font-size: clamp(28px, 3vw, 64px); font-weight: 700; }
.empty-state span { color: var(--gold); font-size: clamp(18px, 1.5vw, 32px); }

@media (max-width: 1300px) and (min-width: 761px) {
  .content-surface { width: 69%; }
  .stage::after { left: 66%; width: 5%; }
  h1 { font-size: clamp(43px, 4.3vw, 68px); }
  .intro { font-size: clamp(22px, 1.9vw, 27px); }
  .topic-list li { font-size: clamp(22px, 1.9vw, 26px); }
  .info-card p { font-size: clamp(20px, 1.65vw, 23px); }
  .details { grid-template-columns: minmax(0, 1fr) minmax(220px, .82fr); gap: 18px; }
  .info-card { padding: 20px; }
}

@media (max-width: 760px) {
  html, body { height: auto; min-height: 100%; overflow: auto; }
  .tv-screen {
    width: 100%;
    height: auto;
    min-height: 100vh;
    grid-template-rows: 68px minmax(0, auto) auto;
    overflow: visible;
    background-image: none;
  }
  .photo-layer { display: none; }
  .topbar { padding: 0 22px; }
  .practice-logo { width: 190px; max-height: 70%; }
  .stage { min-height: 0; overflow: visible; }
  .stage::before, .stage::after { display: none; }
  .content-surface {
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .slide-inner {
    height: auto;
    padding: 28px 24px 36px;
  }
  h1 { font-size: clamp(42px, 11vw, 68px); }
  .intro { max-width: none; margin-top: 16px; font-size: 21px; }
  .details { grid-template-columns: 1fr; gap: 24px; padding-top: 26px; }
  .list-block h2, .info-card h2 { font-size: 25px; }
  .topic-list { gap: 12px; }
  .topic-list li { grid-template-columns: 46px 1fr; gap: 12px; font-size: 21px; }
  .list-mark { width: 44px; }
  .info-card { padding: 22px; border-radius: 18px; transform: none; }
  .info-icon { width: 48px; height: 48px; }
  .info-card p { font-size: 20px; }
  .messagebar {
    position: static;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    min-height: 100px;
    padding: 18px 22px;
  }
  .message-icon { width: 54px; height: 52px; }
  .message-icon svg { width: 36px; height: 36px; }
  .message-copy { gap: 4px; }
  .message-copy strong { font-size: 19px; }
  .message-copy span { font-size: 17px; }
  .message-accent { display: none; }
  .empty-state { position: absolute; inset: 68px 0 100px; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
