/* TRIMOSA TV Oberfläche: Grundlayout.
   Farben (:root), Hintergrund, Kopfzeile, Begrüßung, Reihen, Kacheln, Marken-Kacheln,
   Fußzeile. Reihenfolge der Stylesheets: siehe index.html (base, subpages, overlays). */

/* =========================================================================
   TRIMOSA TV — Gäste-Oberfläche
   Apple-TV-inspiriert, dunkel, premium, gold-akzentuiert
   ========================================================================= */

:root {
  --bg-0: #f7f4ec;
  --bg-1: #ffffff;
  --bg-2: #f1ede2;
  --border: rgba(26, 22, 14, 0.08);
  --border-strong: rgba(26, 22, 14, 0.18);
  --text-1: #1a160e;
  --text-2: rgba(26, 22, 14, 0.62);
  --text-3: rgba(26, 22, 14, 0.42);
  --gold: #B08D3F;
  --gold-light: #C9A559;
  --gold-bright: #9C7A2E;
  --gold-glow: rgba(176, 141, 63, 0.28);
  --focus-glow: 0 0 0 3px rgba(176, 141, 63, 0.45), 0 24px 60px -12px rgba(176, 141, 63, 0.32);
  --tile-radius: 16px;
  --tile-radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  /* WICHTIG: kein 'height: 100%' — das wuerde den Window-Scroll blockieren.
     Body waechst mit Content; window.scroll funktioniert dann normal. */
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  user-select: none;
  cursor: default;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  scroll-behavior: smooth; /* Native smooth-scroll fuer WebView */
}

/* ============= AMBIENT BACKGROUND ============= */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(212, 175, 106, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 90%, rgba(176, 141, 63, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, #fbf8f0 0%, #f4efe2 100%);
}

.ambient::before,
.ambient::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  /* Animation entfernt — auf TV-Webviews extrem teuer (Dauer-Repaint) */
}

.ambient::before {
  width: 600px;
  height: 600px;
  left: -150px;
  top: -200px;
  background: radial-gradient(circle, rgba(212, 175, 106, 0.4), transparent 70%);
}

.ambient::after {
  width: 700px;
  height: 700px;
  right: -200px;
  bottom: -250px;
  background: radial-gradient(circle, rgba(176, 141, 63, 0.28), transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.1); }
  66%      { transform: translate(-40px, 60px) scale(0.95); }
}

/* Subtle grain overlay for premium feel */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

/* ============= TOP BAR ============= */

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 36px 60px 24px;
  gap: 40px;
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(176, 141, 63, 0.32));
}

.brand-text-logo {
  height: 112px;          /* PNG hat viel Whitespace → größer wirkt's gleich groß wie das Icon */
  width: auto;
  margin-left: -12px;     /* Versatz wegen Whitespace im PNG */
  margin-top: -6px;
  margin-bottom: -6px;
  opacity: 0.96;
  filter: drop-shadow(0 3px 12px rgba(176, 141, 63, 0.25));
}

.footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.55;
}

.welcome {
  text-align: center;
  animation: fadeInUp 0.8s var(--ease) 0.2s backwards;
}

.greeting {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.greeting .name {
  font-weight: 500;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.apartment {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.stay-info {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
  font-weight: 500;
  opacity: 0.7;
  display: none;          /* erscheint nur, wenn Buchungsdaten vorhanden sind */
}
.stay-info.visible { display: block; }
.stay-info .sep {
  margin: 0 8px;
  opacity: 0.5;
}

.meta {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 100px;
  /* backdrop-filter entfernt — auf Chromium 113 (Android TV) extrem teuer */
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  box-shadow: 0 4px 14px rgba(176, 141, 63, 0.08);
}

.meta-pill svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-bright);
}

.meta-pill .time {
  color: var(--text-1);
  font-weight: 500;
}

/* Wetter-Pill als Button (klickbar für Forecast-Page) */
.meta-pill-btn {
  cursor: pointer;
  font-family: inherit;
  outline: none;
  transition: transform 0.14s var(--ease), background 0.14s var(--ease),
              box-shadow 0.14s var(--ease), border-color 0.14s var(--ease);
}
.meta-pill-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(176, 141, 63, 0.18);
}
.meta-pill-btn:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px var(--gold-glow), 0 6px 18px rgba(176, 141, 63, 0.25);
  transform: translateY(-1px);
}

.lang-switch {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 10px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  outline: none;   /* Default-Browser-Outline aus — wir setzen eigenen :focus-visible */
  /* backdrop-filter entfernt — auf Chromium 113 (Android TV) extrem teuer */
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(176, 141, 63, 0.08);
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-strong);
}

/* Identischer Gold-Fokus wie bei der Wetter-Pille (.meta-pill-btn:focus-visible) */
.lang-switch:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px var(--gold-glow), 0 6px 18px rgba(176, 141, 63, 0.25);
  transform: translateY(-1px);
}

.flag {
  font-size: 16px;
}

/* ============= HERO ============= */

.hero {
  margin: 8px 60px 24px;
  height: 380px;
  border-radius: var(--tile-radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: fadeInUp 1s var(--ease) 0.3s backwards;
  background: linear-gradient(135deg, #1a0f0a 0%, #0a0612 100%);
  border: 1px solid var(--border);
  outline: none;
}

.hero:hover, .hero:focus-visible {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 30px 80px -20px rgba(176, 141, 63, 0.35);
  border-color: rgba(212, 175, 106, 0.3);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(229, 9, 20, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(176, 141, 63, 0.2) 0%, transparent 60%),
    linear-gradient(120deg, #1a0808 0%, #0a0a14 100%);
  transition: transform 8s ease-out;
}

.hero:hover .hero-bg, .hero:focus-visible .hero-bg {
  transform: scale(1.04);
}

.hero-content {
  position: absolute;
  inset: 0;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.hero-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 11, 0.85) 0%, transparent 50%);
  z-index: -1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.hero-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-light);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
  max-width: 700px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  width: max-content;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease);
}

.hero:hover .hero-cta, .hero:focus-visible .hero-cta {
  transform: scale(1.04);
}

/* ============= ROW SECTIONS ============= */

main {
  padding-bottom: 60px;
  flex: 1;
}

.row {
  margin: 24px 0;
  animation: fadeInUp 0.8s var(--ease) backwards;
}

.row:nth-child(2) { animation-delay: 0.4s; }
.row:nth-child(3) { animation-delay: 0.5s; }
.row:nth-child(4) { animation-delay: 0.6s; }

.row-head {
  padding: 0 60px;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.row-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.row-hint {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.tiles {
  display: flex;
  gap: 16px;
  padding: 8px 60px 12px;
  overflow-x: auto;
  /* scroll-behavior wird per JS gesteuert: smooth bei einzelnem Tap,
     instant bei held key (sonst stauen sich Animationen) */
  scroll-padding-left: 60px;
  scrollbar-width: none;
}

.tiles::-webkit-scrollbar { display: none; }

/* Fast-Swipe-Modus: aktiviert wenn der User Left/Right gedrückt hält.
   Während des Durchsausens werden die teuren Tile-Animationen unterdrückt
   damit nichts flackert oder ruckelt. Beim Stop "snappt" der Focus-Glow
   dann sauber an die zentrierte Tile. */
.tiles.fast-swipe .tile {
  transition: none;
}
.tiles.fast-swipe .tile:focus-visible {
  transform: translateY(-2px) scale(1.015);  /* schwächerer Glow während Speed */
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.tiles.fast-swipe .tile-label,
.tiles.fast-swipe .tile::before,
.tiles.fast-swipe .tile::after {
  transition: none !important;
}

/* ============= TILES ============= */

.tile {
  flex: 0 0 auto;
  width: clamp(160px, 16vw, 250px);
  aspect-ratio: 5 / 3;
  height: auto;
  border-radius: var(--tile-radius);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
  border: 1px solid var(--border);
  /* Schnellere, GPU-freundliche Transition — nur transform animiert sauber bei
     held-key-Navigation. box-shadow/border-color werden kurz gehalten, damit
     der Focus-Glow nicht verschwindet, aber ohne 300ms-Stau */
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
  will-change: transform;
  outline: none;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 4px 16px rgba(0,0,0,0.3);
}

.tile::after {
  /* subtle gloss highlight */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, transparent 30%);
  z-index: 3;
  pointer-events: none;
}

.tile:not(.tile-info)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

/* Hover nur fuer Geraete mit echtem Pointer (Desktop-Maus), nicht Touch/TV */
@media (hover: hover) {
  .tile:hover {
    transform: translateY(-4px) scale(1.04);
    border-color: rgba(212, 175, 106, 0.4);
    box-shadow: var(--focus-glow);
    z-index: 5;
  }
  .tile:not(.tile-info):hover::before { opacity: 1; }
}
.tile:focus-visible {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(212, 175, 106, 0.4);
  box-shadow: var(--focus-glow);
  z-index: 5;
}
.tile:not(.tile-info):focus-visible::before { opacity: 1; }

/* Dunkler Gradient am unteren Tile-Rand fuer Label-Lesbarkeit (nur Streaming/Brand-Tiles, nicht Info-Tiles) */
.tile:not(.tile-info)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 44%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.65) 100%);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.tile:not(.tile-info):focus-visible::after { opacity: 1; }
@media (hover: hover) {
  .tile:not(.tile-info):hover::after { opacity: 1; }
}

.tile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tile-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tile-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  z-index: 4;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7), 0 0 8px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.tile:hover .tile-label, .tile:focus-visible .tile-label {
  opacity: 1;
  transform: translateY(0);
}

/* ============= BRAND TILES ============= */

.brand-mark {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  transition: transform 0.4s var(--ease);
}

.tile:hover .brand-mark, .tile:focus-visible .brand-mark {
  transform: scale(1.06);
}

/* shared text helpers */
.bm-bebas    { font-family: 'Bebas Neue', Impact, sans-serif; }
.bm-script   { font-family: 'Pacifico', 'Brush Script MT', cursive; }
.bm-inter    { font-family: 'Inter', -apple-system, sans-serif; }

/* NETFLIX */
.tile-netflix .tile-bg {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(229,9,20,0.35) 0%, transparent 60%),
    linear-gradient(180deg, #1a0000 0%, #000 100%);
}
.bm-netflix {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 56px;
  font-weight: 400;
  color: #E50914;
  letter-spacing: 8px;
  text-shadow:
    0 0 30px rgba(229,9,20,0.5),
    0 4px 8px rgba(0,0,0,0.6);
  transform: scaleY(1.1);
}

/* TV (intern: waipu) */
.tile-waipu .tile-bg {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255, 138, 57, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #2a0a3d 0%, #0a0518 100%);
}
.bm-tv {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 88px;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #ffd9b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 138, 57, 0.4));
}

/* PRIME VIDEO */
.tile-prime .tile-bg {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 168, 225, 0.18) 0%, transparent 70%),
    linear-gradient(135deg, #00253F 0%, #0F171E 100%);
}
.bm-prime {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.bm-prime .top {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 0.9;
}
.bm-prime .arc {
  width: 92px;
  height: 14px;
  margin-top: 4px;
}
.bm-prime .arc path { fill: none; stroke: #00A8E1; stroke-width: 3.5; stroke-linecap: round; }
.bm-prime .arc polygon { fill: #00A8E1; }
.bm-prime .bot {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #00A8E1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* DISNEY+ */
.tile-disney .tile-bg {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0, 102, 204, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #022b4f 0%, #050b2a 100%);
}
.tile-disney .tile-bg::before {
  /* subtle starfield */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 60% 40%, rgba(255,255,255,0.6), transparent);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.bm-disney {
  display: flex;
  align-items: baseline;
}
.bm-disney .word {
  font-family: 'Pacifico', 'Brush Script MT', cursive;
  font-size: 44px;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,40,120,0.6);
}
.bm-disney .plus {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  margin-left: 4px;
  margin-bottom: 2px;
}

/* APPLE TV+ */
.tile-appletv .tile-bg {
  background:
    radial-gradient(ellipse at center, #2a2a2a 0%, #000 70%);
}
.bm-appletv {
  display: flex;
  align-items: flex-start;
}
.bm-appletv .tv {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 64px;
  color: #fff;
  letter-spacing: -0.06em;
  line-height: 1;
}
.bm-appletv .plus {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: #fff;
  margin-top: 6px;
  margin-left: -4px;
}

/* YOUTUBE */
.tile-youtube .tile-bg {
  background: linear-gradient(180deg, #1a0000 0%, #0a0000 100%);
}
.bm-youtube {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bm-youtube .badge {
  width: 64px;
  height: 44px;
  background: #FF0000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255,0,0,0.4);
}
.bm-youtube .badge::after {
  content: '';
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.bm-youtube .word {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #fff;
  letter-spacing: -0.03em;
}

/* DAZN — App-Icon: schwarzer Hintergrund, gelber DAZN-Schriftzug */
.tile-dazn .tile-bg {
  background: linear-gradient(180deg, #111 0%, #000 100%);
}
.bm-dazn {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 60px;
  color: #FFFF00;
  letter-spacing: -0.05em;
  font-style: italic;
  filter: drop-shadow(0 0 22px rgba(255,255,0,0.35));
}

/* SPOTIFY */
.tile-spotify .tile-bg {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(29, 185, 84, 0.3) 0%, transparent 60%),
    linear-gradient(135deg, #0a1f12 0%, #000 100%);
}
.bm-spotify {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bm-spotify .ico {
  width: 56px;
  height: 56px;
}
.bm-spotify .word {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #fff;
  letter-spacing: -0.02em;
}

/* RADIO (RadioDroid) */
.tile-radio .tile-bg {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(139, 92, 246, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #2e1065 0%, #0f0524 100%);
}
.bm-radio {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bm-radio .ico {
  width: 52px;
  height: 52px;
}
.bm-radio .word {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ARD MEDIATHEK */
.tile-ard .tile-bg {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0, 84, 255, 0.3) 0%, transparent 60%),
    linear-gradient(135deg, #001E5C 0%, #000412 100%);
}
.bm-ard {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bm-ard .word {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 56px;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.bm-ard .word .one {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: #fff;
  color: #001E5C;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  line-height: 36px;
  margin-right: 4px;
  vertical-align: -6px;
}
.bm-ard .sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ZDF MEDIATHEK */
.tile-zdf .tile-bg {
  background:
    radial-gradient(ellipse at 50% 50%, #FFB419 0%, #C75500 100%);
}
.bm-zdf {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bm-zdf .word {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 64px;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.bm-zdf .sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* MAX (HBO Max) — zweizeiliges Wordmark, oberer Chrom-Gradient */
.tile-max .tile-bg {
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}
.bm-max {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bm-max .hbo-row {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(180deg, #f5f5f5 0%, #b8b8b8 45%, #6e6e6e 55%, #d0d0d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(255,255,255,0.15));
}
.bm-max .max-row {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.05em;
  line-height: 0.95;
  background: linear-gradient(180deg, #f0f0f0 0%, #aaa 50%, #707070 60%, #ccc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* PARAMOUNT+ — blauer Hintergrund mit Stern-Bogen, Berg, Wordmark */
.tile-paramount .tile-bg {
  background: linear-gradient(180deg, #2A6FE8 0%, #1E55C8 100%);
}
.bm-paramount {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
}
.bm-paramount .emblem {
  width: 88px;
  height: 58px;
  filter: drop-shadow(0 4px 12px rgba(255,255,255,0.25));
}
.bm-paramount .word {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.02em;
  font-style: italic;
}
.bm-paramount .plus {
  font-weight: 700;
  font-style: normal;
  margin-left: 1px;
}

/* WOW — dunkler teal Hintergrund mit Lichtreflex, rundes weisses "WOW" */
.tile-wow .tile-bg {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(255,255,255,0.18) 0%, transparent 35%),
    linear-gradient(180deg, #1c5a5e 0%, #0a2628 100%);
}
.bm-wow {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 64px;
  color: #fff;
  letter-spacing: 0;
  text-shadow:
    0 0 30px rgba(255,255,255,0.45),
    0 2px 8px rgba(0,0,0,0.4);
}

/* RTL+ — drei farbige Bloecke + Plus */
.tile-rtlplus .tile-bg {
  background: #000;
}
.bm-rtlplus {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bm-rtlplus .blk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  border-radius: 4px;
}
.bm-rtlplus .blk.r { background: #E64F00; }
.bm-rtlplus .blk.t { background: #DC2828; }
.bm-rtlplus .blk.l { background: #6A2BC1; }
.bm-rtlplus .plus {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 38px;
  color: #fff;
  margin-left: 6px;
}

/* JOYN */
.tile-joyn .tile-bg {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 213, 0, 0.35) 0%, transparent 70%),
    linear-gradient(135deg, #2a0a4f 0%, #0a0314 100%);
}
.bm-joyn {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 64px;
  color: #FFD500;
  letter-spacing: -0.04em;
  filter: drop-shadow(0 4px 18px rgba(255, 213, 0, 0.55));
}

/* AIRPLAY & CAST (Streaming + Music rows) */
.tile-cast .tile-bg {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(176, 141, 63, 0.45) 0%, transparent 65%),
    linear-gradient(135deg, #2a2418 0%, #0f0c06 100%);
}
.bm-cast {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bm-cast .icon {
  width: 48px;
  height: 48px;
  position: relative;
}
.bm-cast .icon svg {
  width: 100%; height: 100%;
  fill: none; stroke: var(--gold-light); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 4px 16px rgba(212, 175, 106, 0.5));
}
.bm-cast .word {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: #fff;
}

/* Info tiles - more glassy/elegant */
.tile-info {
  background: linear-gradient(160deg, #ffffff 0%, #faf6ec 100%);
  border: 1px solid rgba(176, 141, 63, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 6px 18px rgba(176, 141, 63, 0.06),
    0 1px 2px rgba(0,0,0,0.04);
}

.tile-info .tile-content {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
}

.tile-info .info-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(176, 141, 63, 0.14), rgba(176, 141, 63, 0.04));
  border-radius: 10px;
  border: 1px solid rgba(176, 141, 63, 0.3);
}

.tile-info .info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-bright);
  fill: none;
  stroke-width: 1.8;
}

.tile-info .info-text {
  width: 100%;
}

.tile-info .info-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--text-1);
}

.tile-info .info-sub {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.tile-info .tile-label { display: none; }

.tile-info:focus-visible {
  background: linear-gradient(160deg, #fffaef 0%, #f5ecd2 100%);
  border-color: rgba(176, 141, 63, 0.5);
}
@media (hover: hover) {
  .tile-info:hover {
    background: linear-gradient(160deg, #fffaef 0%, #f5ecd2 100%);
    border-color: rgba(176, 141, 63, 0.5);
  }
}

/* WLAN-Vorschau-QR auf der Tile (klein) */
.tile-wifi .qr {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
}
.tile-wifi .qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Fallback-Muster (wenn kein QR gerendert werden konnte) */
.tile-wifi .qr.empty {
  background-image:
    linear-gradient(45deg, #000 25%, transparent 25%),
    linear-gradient(-45deg, #000 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #000 75%),
    linear-gradient(-45deg, transparent 75%, #000 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

/* ============= FOOTER ============= */

footer {
  padding: 24px 60px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin: 16px 60px 0;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.footer-brand {
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}

.hints {
  display: flex;
  gap: 24px;
  align-items: center;
}

kbd {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: -apple-system, monospace;
  font-size: 11px;
  margin-right: 4px;
  color: var(--text-2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ============= ANIMATIONS ============= */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 106, 0); }
  50%      { box-shadow: 0 0 0 8px rgba(212, 175, 106, 0.06); }
}

/* ============= RESPONSIVE (DEV PREVIEW) ============= */
/* Designed for 1920x1080 TV. Scales down for browser preview. */

@media (max-width: 1400px) {
  html { font-size: 14px; }
  .topbar, .row-head, footer { padding-left: 40px; padding-right: 40px; }
  .tiles { padding-left: 40px; padding-right: 40px; }
  .hero { margin-left: 40px; margin-right: 40px; height: 320px; }
  .hero-content { padding: 40px; }
  .hero-title { font-size: 44px; }
  .greeting { font-size: 26px; }
  .tile { width: 200px; height: 120px; }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .meta { justify-content: center; }
  .welcome { order: -1; }
  .hero-title { font-size: 32px; }
  .tile { width: 160px; height: 100px; }
}

