/* Gäste-TV Bamberg: zwei Marken-Themes (BeMa Apartments, BM Rooms) auf dunklem Grund – OLED-schonend,
   lesbar aus 3 m. Ziel-Browser auch webOS 4 (Chromium 53): KEIN Grid, kein clamp(), kein inset,
   kein flex-gap, kein aspect-ratio. Layout fest 1920 x 1080.
   Raster: Kopf 0–200 · Inhalt 200–990 · Fußzeile 990–1080. */

/* ---------- Schriften (alle SIL OFL, lokal; statische Schnitte, weil Chromium 53 keine Gewichtsbereiche kennt) ---------- */
@font-face { font-family: "Manrope"; font-weight: 400; src: url("../assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; src: url("../assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; src: url("../assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; src: url("../assets/fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; src: url("../assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; src: url("../assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; src: url("../assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 300 700; src: url("../assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 300 700; src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Themes ---------- */
/* BeMa Apartments: Petrol #2c7a71 + Elfenbein #f4f3ee, eine Schrift (Manrope) */
body, body.theme-bema {
  --bg-top: #143531; --bg-mid: #0d2421; --bg: #081513;
  --panel: rgba(244, 243, 238, 0.055); --panel-hi: rgba(244, 243, 238, 0.11); --panel-solid: #10302c;
  --line: rgba(244, 243, 238, 0.11);
  --ink: #f4f3ee; --ink-dim: #a6bab5;
  --accent: #74cdbf; --accent-soft: rgba(116, 205, 191, 0.14); --glow: rgba(116, 205, 191, 0.6);
  --brand: #2c7a71; --brand-deep: #174641;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --head-w: 700; --name-w: 800; --name-style: normal; --head-track: -0.025em; --head-size: 70px;
}
/* BM Rooms Bamberg: Bronze #9c7b53 + Creme #faf7f2, Serife Cormorant Garamond + Inter */
body.theme-bmrooms {
  --bg-top: #2b221a; --bg-mid: #1c1712; --bg: #110e0b;
  --panel: rgba(250, 247, 242, 0.05); --panel-hi: rgba(250, 247, 242, 0.10); --panel-solid: #251e17;
  --line: rgba(250, 247, 242, 0.11);
  --ink: #faf7f2; --ink-dim: #c2b5a5;
  --accent: #d6b088; --accent-soft: rgba(214, 176, 136, 0.14); --glow: rgba(214, 176, 136, 0.6);
  --brand: #9c7b53; --brand-deep: #5a4630;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --head-w: 600; --name-w: 500; --name-style: italic; --head-track: -0.01em; --head-size: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 1920px; height: 1080px; }
/* Skalierung über js/fit.js: außerhalb des 16:9-Bilds schwarz, nie Scrollbalken */
html { overflow: hidden; background: #000; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 26px; overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
button { font-family: var(--font); color: var(--ink); cursor: pointer; background: none; border: 0; text-align: left; }
.clock, .ss-clock, .help-phone, .wlan-pass { font-feature-settings: "tnum" 1; }

#bg {
  position: fixed; top: 0; left: 0; width: 1920px; height: 1080px; z-index: 0;
  background: radial-gradient(ellipse 1500px 800px at 0% 0%, var(--bg-top) 0%, rgba(0, 0, 0, 0) 70%),
              linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 100%);
}

/* ---------- Kopf ---------- */
#hdr {
  position: relative; z-index: 3; height: 200px;
  display: flex; align-items: flex-end; padding: 0 80px 8px 80px;
}
.brand-mark {
  flex: 0 0 auto; display: flex; align-items: center;
  height: 128px; padding-right: 44px; margin-right: 44px; border-right: 2px solid var(--line);
}
.logo-img { display: block; height: 118px; width: auto; }
.wordmark { font-family: "Cormorant Garamond", Georgia, serif; color: var(--ink); line-height: 1; white-space: nowrap; }
.wm-bm { font-weight: 600; font-size: 64px; letter-spacing: -0.01em; }
.wm-rooms { font-weight: 500; font-style: italic; font-size: 64px; color: var(--accent); margin-left: 12px; }
.wm-city {
  display: block; margin-top: 10px; font-family: "Inter", Arial, sans-serif; font-size: 17px; font-weight: 500;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-dim);
}
.greeting { flex: 1 1 0px; min-width: 0; padding-bottom: 6px; }
.greeting h1 {
  font-family: var(--font-head); font-weight: var(--head-w); font-size: var(--head-size); line-height: 1.08;
  letter-spacing: var(--head-track); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.greeting h1 .guest-name { color: var(--accent); font-weight: var(--name-w); font-style: var(--name-style); }
.greeting p { color: var(--ink-dim); font-size: 28px; margin-top: 12px; white-space: nowrap; }
body[data-screen="vacant"] .greeting, body[data-screen="vacant"] .brand-mark { visibility: hidden; }
.hdr-right { display: flex; align-items: center; padding-bottom: 10px; }
.clock { font-weight: 600; font-size: 58px; line-height: 1; color: var(--ink); text-align: right; margin-right: 34px; }
.clock small { display: block; margin-top: 10px; font-size: 22px; font-weight: 400; color: var(--ink-dim); }
.lang-toggle {
  display: flex; align-items: center; background: var(--panel); border: 2px solid var(--line);
  border-radius: 999px; padding: 10px 24px 10px 18px; font-size: 24px; font-weight: 600; letter-spacing: 0.06em;
}
.lang-ico { display: block; width: 28px; height: 28px; margin-right: 10px; }
.lang-ico svg, .lang-chev svg { width: 100%; height: 100%; stroke: var(--ink); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lang-chev { display: block; width: 22px; height: 22px; margin-left: 8px; }
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute; top: 100%; right: 0; width: 300px; margin-top: 20px; padding: 10px;
  background: var(--panel-solid); border: 2px solid var(--line); border-radius: 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}
.lang-opt { position: relative; display: block; width: 100%; border: 2px solid transparent; border-radius: 12px; font-size: 30px; padding: 12px 22px; margin-bottom: 4px; }
.lang-opt:last-child { margin-bottom: 0; }
.lang-opt.focused { background: var(--accent-soft); }
.lang-opt.current { color: var(--accent); }
.lang-opt.current:after {
  content: ""; position: absolute; right: 24px; top: 23px; width: 16px; height: 9px;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg);
}
.checkout-banner {
  display: flex; align-items: center; margin-top: 12px; background: var(--accent-soft);
  border: 2px solid var(--accent); border-radius: 999px; padding: 8px 30px; font-size: 26px; color: var(--accent); white-space: nowrap;
}
.cb-link { color: var(--ink); margin-left: 22px; }
.cb-link:after { content: " ›"; }

/* ---------- Bildschirme ---------- */
main { position: relative; z-index: 2; height: 790px; padding: 36px 80px 0 80px; }
.screen { display: none; }
.screen.active { display: block; }
.scr-title {
  font-family: var(--font-head); font-weight: var(--head-w); letter-spacing: var(--head-track);
  font-size: 50px; line-height: 64px; margin-bottom: 26px;
}
.theme-bmrooms .scr-title { font-size: 60px; }
.scr-src { float: right; font-family: var(--font); font-size: 21px; font-weight: 400; letter-spacing: 0; color: var(--ink-dim); line-height: 64px; }

/* ---------- Fokus (Pfeiltasten und Magic-Remote-Zeiger) ---------- */
.focusable { outline: none; transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease; }
.focusable.focused {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow), 0 18px 50px rgba(0, 0, 0, 0.55);
}
.tile.focused, .wx-daycard.focused, .panel.focusable.focused { transform: scale(1.03); }
body.hide-focus .focusable.focused { box-shadow: none; transform: none; }

/* ---------- Startkacheln ---------- */
.row { display: flex; }
.row-big { height: 410px; margin-bottom: 26px; }
.row-small { height: 270px; }
.tile {
  position: relative; display: block; flex: 1 1 0px; min-width: 0; margin-right: 24px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 24px; overflow: hidden;
}
.tile:last-child { margin-right: 0; }
.tile.focused { z-index: 2; }
.tile-ico { position: absolute; left: 40px; top: 38px; width: 66px; height: 66px; }
.tile-ico svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tile-label {
  position: absolute; left: 40px; right: 30px; bottom: 74px;
  font-size: 38px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em;
}
.theme-bmrooms .tile-label { font-weight: 600; }
.tile-sub { position: absolute; left: 40px; right: 30px; bottom: 34px; font-size: 23px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-small .tile-label { bottom: 76px; font-size: 34px; }
.row-big .tile-label { bottom: 46px; }
/* Fernsehen = große Kachel in Markenfarbe */
.tile-tv { flex: 1.75 1 0px; background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%); border-color: rgba(255, 255, 255, 0.14); }
.tile-tv .tile-ico { width: 96px; height: 96px; left: 46px; top: 44px; }
.tile-tv .tile-ico svg { stroke: #ffffff; }
.tile-tv .tile-label { left: 46px; font-family: var(--font-head); font-size: 76px; font-weight: var(--head-w); letter-spacing: var(--head-track); }
.theme-bmrooms .tile-tv .tile-label { font-size: 92px; }
.tile-stream { background-color: var(--panel); }
.b-netflix { background-image: linear-gradient(165deg, rgba(229, 9, 20, 0.42) 0%, rgba(229, 9, 20, 0) 62%); }
.b-netflix .tile-ico svg { stroke: #ff5a5f; }
.b-prime { background-image: linear-gradient(165deg, rgba(0, 168, 225, 0.38) 0%, rgba(0, 168, 225, 0) 62%); }
.b-prime .tile-ico svg { stroke: #4cc9f5; }
.b-disney { background-image: linear-gradient(165deg, rgba(40, 80, 230, 0.48) 0%, rgba(40, 80, 230, 0) 62%); }
.b-disney .tile-ico svg { stroke: #8aa6ff; }
.b-youtube { background-image: linear-gradient(165deg, rgba(255, 0, 0, 0.36) 0%, rgba(255, 0, 0, 0) 62%); }
.b-youtube .tile-ico svg { stroke: #ff6b6b; }
/* Direkt buchen hervorheben */
.tile-accent { background: var(--accent-soft); border-color: var(--accent); border-style: dashed; }
.tile-accent .tile-sub { color: var(--accent); font-weight: 600; }

/* ---------- Fußzeile mit RM-Hospitality-Hinweis ---------- */
#ftr {
  position: absolute; z-index: 2; left: 80px; right: 80px; bottom: 0; height: 90px;
  display: flex; align-items: center; justify-content: space-between; border-top: 2px solid var(--line);
}
.ftr-hosts { font-size: 22px; color: var(--ink-dim); }
.rmh { display: flex; align-items: center; opacity: 0.72; }
.rmh-by { font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim); margin-right: 14px; }
.rmh-logo { display: block; width: 30px; height: 30px; margin-right: 10px; }
.rmh-name { font-family: "Inter", Arial, sans-serif; font-size: 20px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); padding-bottom: 2px; border-bottom: 2px solid #9e3048; }
body[data-screen="vacant"] .ftr-hosts { visibility: hidden; }

/* ---------- Panels ---------- */
.cols { display: flex; }
.panel {
  background: var(--panel); border: 2px solid var(--line); border-radius: 24px; padding: 40px 44px;
}
.cols > .panel { flex: 1 1 0px; min-width: 0; margin-right: 28px; height: 640px; }
.cols > .panel:last-child { margin-right: 0; }
.panel h3 { font-size: 34px; font-weight: 700; margin-bottom: 26px; }
.theme-bmrooms .panel h3 { font-family: var(--font-head); font-size: 44px; font-weight: 600; }
.label { font-size: 19px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.wlan-ssid { font-size: 40px; font-weight: 600; margin-bottom: 24px; white-space: nowrap; overflow: hidden; }
.wlan-pass { font-size: 44px; font-weight: 700; color: var(--accent); margin-bottom: 26px; white-space: nowrap; overflow: hidden; }
.qr-row { display: flex; align-items: center; }
.qr { display: block; width: 210px; height: 210px; background: #ffffff; border-radius: 14px; padding: 10px; }
.qr-big { width: 300px; height: 300px; padding: 14px; }
.qr-cap { font-size: 24px; color: var(--ink-dim); margin-left: 26px; max-width: 240px; line-height: 1.35; }
.qr-col { flex-direction: column; }
.qr-col .qr-cap { margin: 18px 0 0 0; text-align: center; max-width: none; }
.list { list-style: none; }
.list li { position: relative; line-height: 1.34; padding-left: 38px; }
.list li:before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.list-check li:before { width: 16px; height: 8px; border-radius: 0; background: none; top: 10px; left: 2px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.times { display: flex; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 2px solid var(--line); }
.time { margin-right: 44px; }
.time b { display: block; font-size: 38px; font-weight: 700; color: var(--accent); }

/* ---------- Leiste + Inhalt ---------- */
.around-rail { display: flex; height: 650px; }
.rail { flex: 0 0 420px; margin-right: 36px; }
.cat-item {
  display: block; width: 100%; border: 2px solid transparent; border-radius: 18px;
  font-size: 30px; font-weight: 600; padding: 20px 28px; margin-bottom: 10px; color: var(--ink-dim);
}
.cat-item.selected { background: var(--panel-hi); color: var(--ink); }
.cat-item.selected:before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 16px; vertical-align: middle; }
.rail-body { flex: 1 1 0px; min-width: 0; }
.place-grid { display: flex; flex-wrap: wrap; align-content: flex-start; height: 672px; overflow: hidden; }
.place {
  position: relative; width: 640px; height: 150px; margin: 0 24px 24px 0; padding: 26px 64px 26px 32px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 20px;
}
.place:nth-child(2n) { margin-right: 0; }
.place b { display: block; font-size: 31px; font-weight: 700; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place span { display: block; font-size: 23px; line-height: 1.3; color: var(--ink-dim); }
.place.has-more:after { content: "›"; position: absolute; right: 28px; top: 44px; font-size: 44px; color: var(--accent); }
.rail-pane { height: 650px; }

/* ---------- Detailansicht ---------- */
.modal { position: fixed; z-index: 20; top: 0; left: 0; width: 1920px; height: 1080px; background: rgba(0, 0, 0, 0.62); }
.modal-box {
  position: absolute; left: 510px; top: 300px; width: 900px; padding: 56px 60px;
  background: var(--panel-solid); border: 2px solid var(--line); border-radius: 28px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.modal-box h3 { font-family: var(--font-head); font-weight: var(--head-w); font-size: 56px; margin-bottom: 18px; }
.modal-box .lead { font-size: 30px; color: var(--ink-dim); line-height: 1.4; margin-bottom: 28px; }
.md-row { font-size: 30px; padding-top: 22px; border-top: 2px solid var(--line); }
.md-row.addr:before { content: "Adresse  "; font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-right: 10px; }
html[lang="en"] .md-row.addr:before { content: "Address  "; }

/* ---------- Wetter ---------- */
.wx-now { display: flex; align-items: center; height: 250px; padding: 30px 56px; }
.w-now-ico { width: 160px; height: 160px; margin-right: 34px; }
.w-now-ico svg, .wd-ico svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.w-temp { font-size: 140px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; margin-right: 50px; }
.w-desc { font-size: 44px; font-weight: 600; margin-bottom: 14px; }
.w-meta { font-size: 27px; color: var(--ink-dim); }
.wx-days { display: flex; margin-top: 26px; }
.wx-daycard {
  flex: 1 1 0px; min-width: 0; height: 340px; margin-right: 20px; padding: 28px 26px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 22px; text-align: center;
}
.wx-daycard:last-child { margin-right: 0; }
.wd-day { font-size: 26px; font-weight: 600; color: var(--ink-dim); margin-bottom: 18px; white-space: nowrap; }
.wd-ico { width: 84px; height: 84px; margin: 0 auto 16px auto; }
.wd-temp b { font-size: 46px; font-weight: 700; margin-right: 12px; }
.wd-temp span { font-size: 32px; color: var(--ink-dim); }
.wd-desc { font-size: 22px; margin-top: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-rain { font-size: 21px; color: var(--accent); margin-top: 8px; }

/* ---------- Direkt buchen ---------- */
.cols-2 .panel-book { flex: 2.3 1 0px; display: flex; align-items: center; height: 600px; padding: 50px 56px; }
.cols-2 .panel-stay { height: 600px; display: block; }
.book-pct { font-size: 150px; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -0.04em; margin-right: 46px; white-space: nowrap; }
.theme-bmrooms .book-pct { font-family: var(--font-head); font-weight: 600; font-size: 190px; }
.book-pct small { font-size: 0.5em; margin-left: 4px; }
.book-body { flex: 1 1 0px; min-width: 0; margin-right: 40px; }
.book-lead { font-size: 32px; line-height: 1.38; margin-bottom: 28px; }
.book-code {
  display: inline-block; border: 3px dashed var(--accent); border-radius: 16px; padding: 12px 26px; margin-bottom: 24px;
  font-size: 26px; color: var(--ink-dim);
}
.book-code b { font-size: 40px; color: var(--ink); letter-spacing: 0.1em; margin-left: 10px; }
.book-web { font-size: 26px; color: var(--ink-dim); white-space: nowrap; }
.stay-text { font-size: 28px; line-height: 1.42; margin-bottom: 30px; }

/* ---------- Kontakt & Hilfe ---------- */
.help-pane { padding: 46px 52px; }
.contact-wrap { display: flex; align-items: center; height: 100%; }
.contact-text { flex: 1 1 0px; min-width: 0; margin-right: 40px; }
.help-hosts { font-family: var(--font-head); font-weight: var(--head-w); font-size: 60px; margin-bottom: 24px; }
.help-phone { font-size: 58px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.help-mail { font-size: 32px; margin-bottom: 30px; }
.help-note { font-size: 26px; color: var(--ink-dim); }
.sos-grid { display: flex; margin-bottom: 30px; }
.sos { flex: 1 1 0px; margin-right: 20px; padding: 26px 28px; background: var(--panel-hi); border-radius: 18px; }
.sos:last-child { margin-right: 0; }
.sos b { display: block; font-size: 62px; font-weight: 800; color: var(--accent); line-height: 1.1; white-space: nowrap; }
.sos span { display: block; font-size: 23px; margin-top: 8px; line-height: 1.3; }
.doc { padding: 20px 0; border-top: 2px solid var(--line); }
.doc b { display: block; font-size: 30px; margin-bottom: 4px; }
.doc span { display: block; font-size: 26px; color: var(--ink-dim); }
.panel-faq { display: flex; }
.faq-list { flex: 0 0 520px; margin-right: 44px; }
.faq-q { display: block; width: 100%; border: 2px solid transparent; border-radius: 14px; font-size: 27px; padding: 16px 22px; margin-bottom: 8px; color: var(--ink-dim); }
.faq-q.selected { background: var(--panel-hi); color: var(--ink); }
.faq-answer { flex: 1 1 0px; min-width: 0; font-size: 32px; line-height: 1.5; padding-top: 14px; }

/* ---------- Frei ---------- */
.vacant-wrap { text-align: center; padding-top: 70px; }
.vacant-logo { display: inline-block; margin-bottom: 46px; }
.vacant-logo .logo-img { height: 330px; }
.vacant-logo .wm-bm, .vacant-logo .wm-rooms { font-size: 150px; }
.vacant-logo .wm-city { font-size: 30px; margin-top: 22px; }
.vacant-title { font-family: var(--font-head); font-weight: var(--head-w); font-size: 76px; letter-spacing: var(--head-track); margin-bottom: 18px; }
.vacant-hint { font-size: 30px; color: var(--ink-dim); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---------- Hinweise ---------- */
.offline-badge, .demo-badge {
  position: absolute; z-index: 5; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 19px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 22px; border-radius: 999px;
}
.offline-badge { background: #6b2a2a; color: #fff; }
.demo-badge { background: var(--accent-soft); color: var(--accent); border: 2px solid var(--accent); }
.toast {
  position: absolute; z-index: 30; left: 50%; bottom: 120px; transform: translateX(-50%);
  background: var(--panel-solid); border: 2px solid var(--accent); color: var(--ink);
  font-size: 28px; padding: 18px 40px; border-radius: 999px; white-space: nowrap; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ---------- Bildschirmschoner ---------- */
.screensaver { position: fixed; z-index: 50; top: 0; left: 0; width: 1920px; height: 1080px; background: #000; display: none; }
.screensaver.on { display: block; }
.ss-photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0.3; transition: opacity 1s; }
.ss-box { position: absolute; width: 900px; }
.ss-clock { font-size: 180px; font-weight: 600; line-height: 1; color: #e9e6df; letter-spacing: -0.02em; }
.ss-date { font-size: 40px; color: #a8a49c; margin-top: 18px; }
.ss-weather { font-size: 36px; color: #a8a49c; margin-top: 10px; }
.ss-brand { font-size: 20px; letter-spacing: 0.12em; color: #6f6b64; margin-top: 34px; text-transform: uppercase; }

/* Knopf in der Detailansicht (Fernsehen-Hinweis) */
.md-btn {
  display: inline-block; margin-top: 30px; padding: 16px 40px; border-radius: 999px; font-size: 28px; font-weight: 700;
  background: var(--accent); color: #0b0b0b; border: 2px solid var(--accent);
}
/* Fernsehen-Kachel mit Untertitel (Zattoo) */
.tile-tv.has-sub .tile-label { bottom: 86px; }
.tile-tv .tile-sub { left: 46px; bottom: 44px; font-size: 28px; color: rgba(255, 255, 255, 0.78); }
/* Hausregeln je Wohnung unterschiedlich lang: breitere Spalte, Schriftgröße passt app.js fitList() an */
.cols > .panel-rules { flex: 1.4 1 0px; }
.list li { font-size: inherit; }
.list { font-size: 28px; }
.list li { margin-bottom: 0.6em; }
.list li:before { top: 0.5em; }
.list-check li:before { top: 0.32em; }

/* ---------- Koppeln ---------- */
.pair-wrap { text-align: center; padding-top: 10px; }
.pair-title { font-family: var(--font-head); font-weight: var(--head-w); font-size: 56px; letter-spacing: var(--head-track); margin-bottom: 16px; }
.pair-lead { font-size: 28px; color: var(--ink-dim); max-width: 1200px; margin: 0 auto 24px auto; line-height: 1.38; }
.pin-boxes { display: inline-flex; margin-bottom: 18px; }
.pin-box { width: 88px; height: 96px; margin: 0 8px; border-radius: 18px; border: 3px solid var(--line); background: var(--panel);
  font-size: 56px; font-weight: 700; line-height: 90px; color: var(--ink); }
.pin-box.filled { border-color: var(--accent); }
.pin-box.next { border-color: var(--ink-dim); }
.pair-msg { min-height: 36px; font-size: 26px; color: var(--accent); margin-bottom: 8px; }
.pair-msg.err { color: #ff8a80; }
.pin-pad { width: 540px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; }
.pin-key { width: 150px; height: 62px; margin: 0 10px 10px 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--panel);
  font-size: 30px; font-weight: 700; text-align: center; }
.pin-key.ok { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pair-skip { font-size: 22px; color: var(--ink-dim); margin-top: 6px; }
body[data-screen="pair"] .greeting, body[data-screen="pair"] .ftr-hosts { visibility: hidden; }
