/* TRIMOSA TV Oberfläche: Unterseiten.
   WLAN, Hausordnung, Notfall, Bewertung, AirPlay, eigene Kacheln (Bausteine), Wetter,
   Mini-Player und Radio. */

/* =========================================================================
   SUB-PAGES (slide-over views)
   ========================================================================= */

.subpage {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(212, 175, 106, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 95%, rgba(176, 141, 63, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #fbf8f0 0%, #f3edd9 100%);
  z-index: 100;
  overflow-y: auto;
  display: none;
}
/* Floating orbs entfernt: filter:blur(90px) + Endlos-Animation killten TV-Perf */
.subpage.active {
  display: block;
  animation: slideIn 0.18s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sp-wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 40px 24px;
}

.sp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sp-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  /* backdrop-filter entfernt — auf Chromium 113 (Android TV) extrem teuer */
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 14px rgba(176, 141, 63, 0.08);
}
.sp-back:hover, .sp-back:focus-visible {
  background: rgba(255,255,255,0.95);
  border-color: var(--gold);
  outline: none;
}
.sp-back svg { width: 18px; height: 18px; }

.sp-brand-mini {
  display: flex; align-items: center; gap: 12px; opacity: 0.7;
}
.sp-brand-mini img { height: 44px; }

.sp-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding-bottom: 0;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-light) 60%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(176, 141, 63, 0.18));
}

.sp-subtitle {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  max-width: 720px;
  line-height: 1.4;
}

/* Cast-Device-Badge — zeigt Gast den AirPlay-Empfaenger-Namen prominent */
.cast-device-badge {
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.16) 0%, rgba(176, 141, 63, 0.10) 100%);
  border: 1px solid rgba(176, 141, 63, 0.35);
  border-radius: 16px;
  padding: 18px 28px;
  margin: 4px 0 22px;
  display: inline-block;
  min-width: 320px;
  text-align: center;
}
.cast-device-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 6px;
}
.cast-device-name {
  font-size: 34px;
  font-weight: 700;
  color: var(--gold-dark, #9C7A2E);
  letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  line-height: 1.1;
}
.cast-device-name.pending { color: var(--text-3); font-weight: 500; }

.sp-card {
  background: linear-gradient(160deg, #ffffff 0%, #faf6ec 100%);
  border: 1px solid rgba(176, 141, 63, 0.22);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 12px 32px rgba(176, 141, 63, 0.10),
    0 1px 3px rgba(0,0,0,0.04);
}

/* QR-Target ist ein div, in das wir SVG einsetzen */
.qr-target {
  display: block;
  line-height: 0;
}
.qr-target svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---- WLAN sub-page ---- */

.wifi-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
}

.wifi-qr-frame {
  position: relative;
  background: #fff;
  border: 1px solid rgba(176, 141, 63, 0.25);
  border-radius: 20px;
  padding: 18px;
  box-shadow:
    0 14px 32px rgba(176, 141, 63, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.04);
}
.wifi-qr-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.6), rgba(176, 141, 63, 0.2), rgba(212, 175, 106, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.wifi-qr-frame .qr-target svg { width: 100%; height: auto; }

.wifi-waves {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  opacity: 0.45;
  pointer-events: none;
}
.wifi-waves svg { width: 100%; height: 100%; }
.wifi-waves circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  /* Animation entfernt — TV-Perf */
  opacity: 0.4;
}
.wifi-waves circle:nth-child(2) { opacity: 0.25; }
.wifi-waves circle:nth-child(3) { opacity: 0.15; }

.wifi-info-block {
  display: flex; flex-direction: column; gap: 14px;
}
.wifi-info-row { }
.wifi-info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.wifi-info-value {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  word-break: break-all;
}

.wifi-hint {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(176, 141, 63, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

/* ---- Hausordnung / generic text page ---- */

.sp-text {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-1);
  letter-spacing: -0.005em;
  position: relative;
  padding-left: 24px;
}
.sp-text.plain { white-space: pre-wrap; }
.sp-text::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-light), transparent);
  border-radius: 3px;
}

/* Markdown-gerenderte Inhalte (Hausordnung, POI, Praktisches) */
.sp-text h1, .sp-text h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
  color: var(--gold-bright);
}
.sp-text h1:first-child, .sp-text h2:first-child { margin-top: 0; }
.sp-text h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-1);
}
.sp-text p { margin: 12px 0; }
.sp-text strong { font-weight: 600; }
.sp-text em { font-style: italic; }
.sp-text ul, .sp-text ol { margin: 12px 0 12px 28px; }
.sp-text li { margin: 6px 0; }
.sp-text blockquote {
  border-left: 3px solid var(--gold);
  margin: 16px 0;
  padding: 4px 16px;
  color: var(--text-2);
  background: rgba(176, 141, 63, 0.06);
  border-radius: 0 6px 6px 0;
}
.sp-text a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(176, 141, 63, 0.4);
}
.sp-text img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 14px 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}
.sp-text hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.sp-text code {
  background: rgba(176, 141, 63, 0.10);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.92em;
}

.sp-placeholder {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-3);
  font-size: 16px;
}
.sp-placeholder svg {
  width: 64px; height: 64px;
  stroke: var(--gold-light);
  stroke-width: 1.4;
  fill: none;
  margin-bottom: 18px;
  opacity: 0.7;
}

/* ---- Emergency phone numbers ---- */

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.emergency-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.emergency-card.alert {
  background: linear-gradient(135deg, rgba(198, 59, 50, 0.06), #ffffff);
  border-color: rgba(198, 59, 50, 0.25);
}
.emergency-card .ec-icon {
  width: 44px; height: 44px;
  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: 1px solid rgba(176, 141, 63, 0.3);
  border-radius: 10px;
}
.emergency-card.alert .ec-icon {
  background: linear-gradient(135deg, rgba(198, 59, 50, 0.14), rgba(198, 59, 50, 0.04));
  border-color: rgba(198, 59, 50, 0.35);
}
.emergency-card .ec-icon svg { width: 22px; height: 22px; stroke: var(--gold-bright); fill: none; stroke-width: 1.8; }
.emergency-card.alert .ec-icon svg { stroke: #c63b32; }
.emergency-card .ec-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
}
.emergency-card .ec-number {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 22px; font-weight: 600; color: var(--text-1);
  letter-spacing: -0.01em;
}
.emergency-card.alert .ec-number { color: #c63b32; }

/* ---- Review QR codes ---- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.review-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbf4e0 100%);
  border: 1px solid rgba(176, 141, 63, 0.3);
  border-radius: 16px;
  padding: 22px 14px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 10px 24px rgba(176, 141, 63, 0.14);
}
.review-card .rc-stars {
  font-size: 22px;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #f0c060 0%, #b08d3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 106, 0.3));
  line-height: 1;
}
.review-card .rc-platform {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.review-card .rc-qr {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid rgba(176, 141, 63, 0.18);
  width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.review-card .rc-qr .qr-target svg { width: 100%; height: auto; }
.review-card .rc-sub {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 10px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* Platform-spezifische Akzente */
.review-card-booking  { border-color: rgba(0, 53, 128, 0.35); }
.review-card-booking::before {
  content: 'Booking.com';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #003580; color: #fff;
  padding: 3px 10px; border-radius: 100px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.review-card-airbnb   { border-color: rgba(255, 56, 92, 0.35); }
.review-card-airbnb::before {
  content: 'Airbnb';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #FF385C; color: #fff;
  padding: 3px 10px; border-radius: 100px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.review-card-google   { border-color: rgba(66, 133, 244, 0.35); }
.review-card-google::before {
  content: 'Google';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
  color: #fff;
  padding: 3px 10px; border-radius: 100px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.review-card-tripadvisor   { border-color: rgba(0, 178, 137, 0.35); }
.review-card-tripadvisor::before {
  content: 'Tripadvisor';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #00B287; color: #fff;
  padding: 3px 10px; border-radius: 100px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---- AirPlay & Cast steps ---- */

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.step-block { }
.step-block h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.step-block h3 .platform-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.step-block h3 .platform-badge svg {
  width: 26px; height: 26px;
  fill: #fff;
}
.platform-badge.ios     { background: linear-gradient(135deg, #2a2a2c 0%, #0a0a0c 100%); }
.platform-badge.android { background: linear-gradient(135deg, #3DDC84 0%, #1ea760 100%); }
.step-list {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-1);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 24px; height: 24px;
  background: rgba(176, 141, 63, 0.15);
  border: 1px solid rgba(176, 141, 63, 0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--gold-bright); font-size: 12px;
}
/* Troubleshoot-Step: vom Stepper getrennt, kein Zähler, leichter Stil */
.step-list li.cast-ios-troubleshoot {
  counter-increment: none;
  list-style: none;
  padding-left: 0;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--text-3);
}
.step-list li.cast-ios-troubleshoot::before { content: none; }

/* ============= CUSTOM-TILE SUB-PAGE ============= */
.custom-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-1);
}
.custom-content h1 { font-size: 22px; margin: 18px 0 10px; }
.custom-content h2 { font-size: 18px; margin: 16px 0 8px; }
.custom-content h3 { font-size: 15px; margin: 14px 0 6px; }
.custom-content p { margin: 0 0 12px; }
.custom-content ul, .custom-content ol { margin: 0 0 12px; padding-left: 22px; }
.custom-content li { margin-bottom: 4px; }
.custom-content a { color: var(--gold-bright); text-decoration: underline; }
.custom-content strong { color: var(--text-1); font-weight: 600; }
.custom-content code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.custom-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.custom-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

.custom-qr-block {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding: 18px;
  background: rgba(176, 141, 63, 0.08);
  border: 1px solid rgba(176, 141, 63, 0.25);
  border-radius: 14px;
}
.custom-qr-canvas {
  flex: 0 0 auto;
  background: #fff;
  padding: 8px;
  border-radius: 10px;
}
/* QR als SVG in einem div (makeQR setzt innerHTML; bis 10/2026 war hier ein <canvas>,
   das HTML-Inhalt nicht anzeigt — der QR-Code blieb unsichtbar). Feste Größe, weil der
   Rahmen als Flex-Element sonst auf 0 schrumpft (SVG mit width:100%). */
.custom-qr-canvas .qr-target { width: 150px; height: 150px; }
.custom-qr-canvas .qr-target svg { width: 100%; height: 100%; border-radius: 0; }
.custom-qr-hint { flex: 1; }
.custom-qr-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}
.custom-qr-url {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--text-3);
  word-break: break-all;
}

/* ============== BLOCK-RENDERER (2D-Grid mit freier Positionierung) ============== */
.custom-blocks {
  --cb-row-h: 64px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: var(--cb-row-h);
  gap: 14px;
}
/* FLOW-MODUS (11.08.): Tiles ohne Builder-Geometrie — jede Zeile so hoch
   wie ihr Inhalt, kein Überlappen von Galerien/QR-Karten mehr */
.custom-blocks.cb-flow { grid-auto-rows: auto; gap: 22px; }
.cb-block {
  grid-column: span 12;   /* Default: volle Breite (von Block ggf. überschrieben) */
  min-width: 0;
}

.cb-heading {
  font-size: 30px; font-weight: 700; color: var(--text-1);
  margin: 0; letter-spacing: -0.01em; line-height: 1.2;
}
.cb-text {
  font-size: 19px; color: var(--text-2); line-height: 1.6;
  margin: 0; max-width: 62ch;
}
.cb-text p { margin: 0 0 12px; }
.cb-text p:last-child { margin-bottom: 0; }
.cb-text strong { color: var(--text-1); font-weight: 600; }
.cb-text a { color: var(--gold-bright); text-decoration: underline; }
.cb-text code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

.cb-image figure { margin: 0; }
.cb-image img {
  width: 100%; max-height: 360px; object-fit: cover;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.08);
  display: block; background: #1a1a1a;
}
.cb-image figcaption {
  margin-top: 8px; font-size: 13px; color: var(--text-3);
  font-style: italic; text-align: center;
}

/* Galerie (11.08. TV-Redesign): füllendes Grid statt Scroll-Streifen —
   auf dem TV gibt es kein Touch-Scrollen; 2 Bilder = 2 große nebeneinander,
   7 Bilder = mehrreihiges Mosaik, immer volle Kartenbreite */
.cb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.cb-gallery img {
  width: 100%; height: 250px; object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(176, 141, 63, 0.18); background: #ece5d3;
  box-shadow: 0 8px 22px rgba(176, 141, 63, 0.10);
}
.cb-gallery-cap {
  margin-top: 8px; font-size: 13px; color: var(--text-3); font-style: italic;
}

.cb-qr {
  display: flex; align-items: center; gap: 26px; padding: 22px 26px;
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.16) 0%, rgba(176, 141, 63, 0.06) 100%);
  border: 1px solid rgba(176, 141, 63, 0.35); border-radius: 18px;
  box-shadow: 0 8px 24px rgba(176, 141, 63, 0.10);
}
.cb-qr-canvas {
  flex: 0 0 auto; background: #fff; padding: 10px; border-radius: 12px;
  width: 172px; height: 172px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}
.cb-qr-canvas .qr-target { width: 100%; height: 100%; }
.cb-qr-canvas .qr-target svg { width: 100%; height: 100%; display: block; }
.cb-qr-canvas canvas { display: block; }
.cb-qr-text { flex: 1; }
.cb-qr-hint {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-bright); margin-bottom: 6px;
}
.cb-qr-label { font-size: 21px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; line-height: 1.25; }
.cb-qr-url   { font-family: 'SF Mono', Menlo, monospace; font-size: 13px; color: var(--text-3); word-break: break-all; }

.cb-contact {
  padding: 22px; border-radius: 14px;
  background: rgba(176, 141, 63, 0.08); border: 1px solid rgba(176, 141, 63, 0.25);
}
.cb-contact-label {
  font-size: 12px; color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 4px;
}
.cb-contact-name { font-size: 18px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.cb-contact-num  {
  font-size: 40px; font-weight: 700; color: var(--gold-bright);
  font-feature-settings: 'tnum'; letter-spacing: -0.02em;
}

/* Custom-Tile-Seite (11.08.): mehr Raum für Galerien + luftigere Karte */
#page-custom .sp-wrap { max-width: 1100px; }
#page-custom .sp-card { padding: 28px 32px; }

.cb-callout {
  padding: 18px 20px; border-radius: 14px;
  border-left: 4px solid #88a3e8; background: rgba(64,99,220,0.10);
  color: var(--text-2); font-size: 18px; line-height: 1.55;
}
.cb-callout.warn    { border-color: #e8b25c; background: rgba(232,178,92,0.12); }
.cb-callout.success { border-color: #6ada91; background: rgba(106,218,145,0.10); }
.cb-callout.danger  { border-color: #e87a7a; background: rgba(232,122,122,0.12); }
.cb-callout p { margin: 0 0 8px; }
.cb-callout p:last-child { margin-bottom: 0; }

.cb-list { margin: 0; padding: 0; list-style: none; }
.cb-list li {
  font-size: 18px; color: var(--text-2); padding: 7px 0 7px 26px;
  position: relative; line-height: 1.5;
}
.cb-list li::before {
  content: ''; position: absolute; left: 6px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright);
}

.cb-divider {
  border: 0; border-top: 1px solid rgba(255,255,255,0.10);
  margin: 6px 0;
}

.cb-video {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #1a1a1a; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.cb-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.cb-video-placeholder {
  display: flex; align-items: center; justify-content: center; height: 100%;
  color: var(--text-3); font-size: 14px;
}
.cb-video-cap {
  margin-top: 8px; font-size: 13px; color: var(--text-3); font-style: italic;
}

/* Custom-Tile auf der Startseite (im Stil der Info-Tiles) */
.tile.tile-info.custom-tile .info-icon {
  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: 1px solid rgba(176, 141, 63, 0.3);
  width: 44px; height: 44px; border-radius: 10px;
  color: var(--gold-bright);
}
.tile.tile-info.custom-tile .info-icon svg {
  width: 22px; height: 22px;
  stroke: var(--gold-bright);
  fill: none;
  stroke-width: 1.8;
}

/* ============= WETTER-FORECAST SUB-PAGE ============= */
.weather-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 22px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 200, 100, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, rgba(58, 96, 165, 0.30) 0%, rgba(20, 30, 60, 0.40) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.weather-hero-left { flex: 1; }
.weather-hero-loc {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.weather-hero-temp {
  display: flex;
  align-items: flex-start;
  font-size: 76px;
  font-weight: 200;
  line-height: 1;
  color: var(--text-1);
  letter-spacing: -0.04em;
}
.weather-hero-temp .weather-hero-unit {
  font-size: 40px;
  font-weight: 300;
  margin-top: 6px;
  margin-left: 2px;
  opacity: 0.7;
}
.weather-hero-desc {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-2);
}
.weather-hero-icon {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 18px rgba(255, 200, 100, 0.25));
}
.weather-hero-icon svg { width: 100%; height: 100%; }

.weather-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 18px 0 10px;
}

/* Stündlicher Verlauf — horizontal scrollbare Reihe mit kompakten Karten */
.weather-hourly {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
  margin-bottom: 22px;
}
.weather-hourly::-webkit-scrollbar { display: none; }
.weather-hour {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
  padding: 12px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  outline: none;
  cursor: pointer;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease), transform 0.14s var(--ease);
}
.weather-hour:focus-visible,
.weather-hour:hover {
  background: rgba(255, 200, 100, 0.14);
  border-color: rgba(255, 200, 100, 0.55);
  transform: translateY(-2px);
}
.weather-hour-time {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.weather-hour-icon { width: 28px; height: 28px; }
.weather-hour-temp {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}
.weather-hour-precip {
  font-size: 10px;
  color: #5b9dff;
  font-variant-numeric: tabular-nums;
}

/* 7-Tage-Übersicht */
.weather-daily {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}
.weather-day {
  display: grid;
  grid-template-columns: 80px 36px 1fr 90px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.weather-day:focus-visible,
.weather-day:hover {
  background: rgba(255, 200, 100, 0.10);
  border-color: rgba(255, 200, 100, 0.5);
}
.weather-day-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.weather-day-icon { width: 32px; height: 32px; }
.weather-day-meta {
  font-size: 11px;
  color: var(--text-3);
  display: flex; align-items: center; gap: 10px;
}
.weather-day-precip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5b9dff;
  font-weight: 500;
}
.weather-day-precip svg { width: 11px; height: 11px; }
.weather-day-temps {
  text-align: right;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
}
.weather-day-temps .min {
  color: var(--text-3);
  margin-right: 4px;
}

.weather-attribution {
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
  margin-top: 10px;
}
.weather-attribution a {
  color: var(--text-3);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-3);
}

/* ============= PERSISTENTER MINI-PLAYER (Apple-Like Glass Overlay) ============= */
.mini-player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 12px;
  width: min(540px, 92vw);
  background: rgba(28, 16, 60, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.45),
    0 0 0 0.5px rgba(255,255,255,0.04) inset;
  cursor: pointer;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1.05),
              opacity 0.24s ease,
              box-shadow 0.2s ease;
}
.mini-player.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mini-player:focus-visible,
.mini-player:hover {
  box-shadow:
    0 22px 70px rgba(0,0,0,0.55),
    0 0 0 1.5px rgba(167, 139, 250, 0.55) inset;
}
.mini-player-logo {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.mini-player-logo img { width: 100%; height: 100%; object-fit: cover; }
.mini-player-logo svg { width: 24px; height: 24px; }
/* Pulse-Indikator wenn aktiv am Spielen */
.mini-player.playing .mini-player-logo::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 1.5px solid rgba(167, 139, 250, 0.55);
  animation: miniPlayerPulse 1.6s ease-in-out infinite;
}
@keyframes miniPlayerPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
.mini-player-info { flex: 1; min-width: 0; }
.mini-player-name {
  font-size: 14px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-player-meta {
  margin-top: 2px;
  font-size: 11px; color: rgba(255,255,255,0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-player-btn {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.10);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.12s ease;
}
.mini-player-btn:hover,
.mini-player-btn:focus-visible {
  background: rgba(167, 139, 250, 0.8);
  outline: none;
  transform: scale(1.08);
}
.mini-player-btn svg { width: 16px; height: 16px; }
.mini-player-close { background: rgba(255,255,255,0.06); }

/* ============= RADIO SUB-PAGE ============= */

/* Subpage bekommt Bottom-Padding wenn Mini-Player sichtbar, sonst verdeckt
   die letzte Reihe der Inhalte */
.subpage#page-radio .sp-wrap { padding-bottom: 110px; }

/* Header: Titel + Suchfeld inline */
.radio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}
.radio-header .sp-title { margin: 0; }
.radio-header .sp-subtitle { margin: 2px 0 0; }
.radio-search-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 280px;
  max-width: 40vw;
}
.radio-search-icon {
  position: absolute;
  left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-3);
  pointer-events: none;
}
#radio-search {
  width: 100%;
  padding: 10px 14px 10px 36px;
  font-size: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
#radio-search::placeholder { color: var(--text-3); }
#radio-search:focus-visible {
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(255,255,255,0.10);
}

/* Player kompakt */
.radio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.20), rgba(46, 16, 101, 0.20));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.radio-now-logo {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.radio-now-logo img { width: 100%; height: 100%; object-fit: cover; }
.radio-now-logo svg { width: 28px; height: 28px; }
.radio-now-info { flex: 1; min-width: 0; }
.radio-now-name {
  font-size: 15px; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radio-now-meta {
  margin-top: 2px;
  font-size: 11px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radio-play-btn {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease);
}
.radio-play-btn:disabled { opacity: 0.4; cursor: default; }
.radio-play-btn:focus-visible:not(:disabled),
.radio-play-btn:hover:not(:disabled) {
  background: rgba(167, 139, 250, 1);
  transform: scale(1.08);
  outline: none;
}
.radio-play-btn svg { width: 20px; height: 20px; }

/* Kategorie-Reihen wie Streaming-Tiles */
.radio-section-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  margin: 16px 0 10px;
  letter-spacing: -0.01em;
}
.radio-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 60px 8px 0;
  margin-left: -4px;
  padding-left: 4px;
}
.radio-row::-webkit-scrollbar { display: none; }

.radio-card {
  flex: 0 0 auto;
  width: 140px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(0,0,0,0.4));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  outline: none;
  overflow: hidden;             /* Text-Overflow rauszieht nichts */
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
.radio-card:focus-visible,
.radio-card:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(46, 16, 101, 0.25));
  border-color: rgba(139, 92, 246, 0.55);
  transform: translateY(-2px) scale(1.03);
}
.radio-card.playing {
  border-color: rgba(167, 139, 250, 0.8);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.30), rgba(46, 16, 101, 0.30));
}
.radio-card-logo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.radio-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.radio-card-logo svg { width: 36px; height: 36px; color: rgba(255,255,255,0.3); }
.radio-card-name {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; max-width: 100%;
}
.radio-card-meta {
  font-size: 10px; color: var(--text-3);
  margin-top: -6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; max-width: 100%;
}

.radio-loading,
.radio-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-3);
  font-size: 14px;
}

/* AirPlay-Receiver Launch Button */
.airplay-launch-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, #b08d3f 100%);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 4px 14px rgba(176, 141, 63, 0.32);
}
.airplay-launch-btn:focus-visible,
.airplay-launch-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(176, 141, 63, 0.45);
  outline: none;
}
@media (hover: hover) {
  .airplay-launch-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(176, 141, 63, 0.45);
  }
}
.airplay-launch-btn.launched {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4);
}
.airplay-launch-btn.failed {
  background: linear-gradient(135deg, #c63b32 0%, #8a1f17 100%);
  box-shadow: 0 4px 14px rgba(198, 59, 50, 0.4);
}

