*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: none;
}

#screen {
  width: 100vw; height: 100vh;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* ── SLIDE BASE ─────────────────────────────────────────── */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slide.is-active  { opacity: 1; z-index: 2; }
.slide.is-leaving { opacity: 0; z-index: 1; }

/* ── IMAGE SLIDE ────────────────────────────────────────── */
.slide-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── CUSTOM SLIDE ───────────────────────────────────────── */
.slide-custom {
  background-size: cover;
  background-position: center;
}
.slide-custom .s-overlay {
  position: absolute; inset: 0; z-index: 0;
}
.slide-custom .s-content {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  padding: clamp(40px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide-custom.lay-center .s-content { align-items: center; text-align: center; }
.slide-custom.lay-left   .s-content { align-items: flex-start; text-align: left; }
.slide-custom.lay-split  .s-content { flex-direction: row; align-items: center; gap: clamp(30px,5vw,80px); }
.slide-custom.lay-split .s-text  { flex: 1; }
.slide-custom.lay-split .s-image { flex: 1; display: flex; align-items: center; justify-content: center; }
.slide-custom.lay-split .s-image img { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; }

.s-title {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
  max-width: 1400px;
}
.s-title.sz-small  { font-size: clamp(2rem,   4vw,  4rem);  }
.s-title.sz-medium { font-size: clamp(3rem,   5.5vw, 6rem); }
.s-title.sz-large  { font-size: clamp(4rem,   7vw,  8rem);  }
.s-title.sz-xlarge { font-size: clamp(5rem,   9vw, 11rem);  }

.s-body {
  line-height: 1.55;
  font-weight: 300;
  max-width: 1100px;
}
.s-body.sz-small  { font-size: clamp(1rem,   1.5vw, 1.6rem); }
.s-body.sz-medium { font-size: clamp(1.4rem, 2.2vw, 2.5rem); }
.s-body.sz-large  { font-size: clamp(1.8rem, 2.8vw, 3.2rem); }

/* ── WEATHER SLIDE ──────────────────────────────────────── */
.slide-weather {
  background: linear-gradient(145deg, #060e1f 0%, #0d2350 40%, #0a1e45 70%, #05111f 100%);
  flex-direction: column;
  justify-content: space-between;
  /* No side padding here – handled per section so forecast can be full-width */
  padding: clamp(30px, 5vw, 80px) 0 0 0;
  color: #fff;
}

.w-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 clamp(40px, 7vw, 100px);
}
.w-city {
  font-size: clamp(1.2rem, 2vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 10px;
}
.w-datetime {
  text-align: right;
  color: rgba(255,255,255,0.4);
  font-size: clamp(0.9rem, 1.3vw, 1.5rem);
  font-weight: 300;
  line-height: 1.7;
}

.w-current {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  padding: 0 clamp(40px, 7vw, 100px);
}
.w-icon {
  font-size: clamp(5rem, 11vw, 13rem);
  line-height: 1;
  filter: drop-shadow(0 6px 30px rgba(100,180,255,0.25));
}
.w-right {}
.w-temp {
  font-size: clamp(5rem, 13vw, 15rem);
  font-weight: 200;
  color: #fff;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.w-temp sup { font-size: 0.38em; vertical-align: super; letter-spacing: 0; font-weight: 300; }
.w-desc {
  font-size: clamp(1.2rem, 2.2vw, 3rem);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  margin-top: 0.4em;
}
.w-details {
  display: flex;
  gap: clamp(16px, 2.5vw, 40px);
  margin-top: 0.6em;
  color: rgba(255,255,255,0.5);
  font-size: clamp(0.85rem, 1.2vw, 1.5rem);
  font-weight: 300;
  flex-wrap: wrap;
}
.w-detail { display: flex; align-items: center; gap: 6px; }

/* forecast row – full width, no border-radius on sides */
.w-forecast {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  /* stretch edge-to-edge */
  width: 100%;
}
.w-day {
  flex: 1;
  padding: clamp(14px,2vw,30px) clamp(10px,1.5vw,24px);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.w-day:last-child { border-right: none; }
.w-day.today { background: rgba(255,255,255,0.07); }
.w-day-name {
  font-size: clamp(0.7rem, 1vw, 1.2rem);
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: clamp(6px,0.8vw,12px);
}
.w-day.today .w-day-name { color: rgba(255,255,255,0.85); }
.w-day-icon {
  font-size: clamp(1.4rem, 2.8vw, 3.2rem);
  display: block;
  margin-bottom: clamp(4px,0.6vw,10px);
}
.w-temps { font-size: clamp(0.75rem, 1.1vw, 1.3rem); }
.w-tmax  { font-weight: 600; color: #fff; }
.w-tmin  { color: rgba(255,255,255,0.38); margin-left: 4px; }

/* loading state */
.slide-msg {
  color: rgba(255,255,255,0.25);
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ── PROGRESS BAR ───────────────────────────────────────── */
#progress-bar {
  position: fixed;
  bottom: 0; left: 0;
  height: 4px;
  width: 0%;
  background: rgba(255,255,255,0.55);
  z-index: 100;
  transition: width linear;
}

/* ── PRICE ELEMENT ──────────────────────────────────────── */
.s-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  margin: 0.4em 0 0.25em;
  line-height: 1;
  /* Base = price-number size → all children use em relative to THIS */
  font-size: clamp(3rem, 8vw, 10rem);
}
.s-price-pre {
  font-size: 0.30em;        /* ~30% of price → "ab" ca. 3rem, gut lesbar */
  font-weight: 600;
  opacity: 0.88;
  align-self: flex-end;
  padding-bottom: 0.14em;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.s-price-val {
  font-size: 1em;            /* = volle Preis-Größe */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.s-price-suf {
  font-size: 0.36em;         /* ~36% of price → "€" ca. 3.6rem, gut sichtbar */
  font-weight: 700;
  align-self: flex-start;
  padding-top: 0.08em;
}

/* ── CTA BUTTON ─────────────────────────────────────────── */
.s-cta-wrap { margin-top: 0.7em; }
.s-cta {
  display: inline-block;
  padding: 0.4em 1.2em;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 2vw, 2.5rem);
  cursor: default;
  line-height: 1.4;
}

/* ── LOGO ───────────────────────────────────────────────── */
.s-logo {
  position: absolute;
  z-index: 3;
  object-fit: contain;
  pointer-events: none;
}
.s-logo.sz-sm { max-height: clamp(30px, 4vw,  60px); }
.s-logo.sz-md { max-height: clamp(55px, 7vw,  100px); }
.s-logo.sz-lg { max-height: clamp(80px, 10vw, 150px); }

.s-logo.pos-tl { top: clamp(20px,3vw,55px); left:  clamp(20px,3vw,55px); }
.s-logo.pos-tr { top: clamp(20px,3vw,55px); right: clamp(20px,3vw,55px); }
.s-logo.pos-bl { bottom: clamp(20px,3vw,55px); left:  clamp(20px,3vw,55px); }
.s-logo.pos-br { bottom: clamp(20px,3vw,55px); right: clamp(20px,3vw,55px); }
.s-logo.pos-tc { top: clamp(20px,3vw,55px); left: 50%; transform: translateX(-50%); }
.s-logo.pos-bc { bottom: clamp(20px,3vw,55px); left: 50%; transform: translateX(-50%); }
