/* Bistro Hollywood – angeglichen an hollywood-in-bruehl.de (Theme: Jost, Bebas Neue, Akzent #ffa646) */

:root {
  --hollywood-base: #000000;
  --hollywood-text: #ffffff;
  --hollywood-primary: #ffa646;
  --hollywood-primary-dim: #e89420;
  --hollywood-secondary: #111111;
  --hollywood-muted: #616161;
  --hollywood-overlay: rgba(0, 0, 0, 0.88);
  --ok: #4caf50;
  --warn: #fcb900;
  --danger: #cf2e2e;
  --info: #0693e3;
  /* LiveView-Herz-Nummern */
  --heart-red: #e11d48;
  --heart-red-bright: #ff3355;
  --heart-red-deep: #9f1239;
  --heart-glow: rgba(225, 29, 72, 0.85);
}

* { box-sizing: border-box; }

body {
  font-family: "Jost", system-ui, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.625rem;
  font-weight: 400;
  margin: 0;
  color: var(--hollywood-text);
  background-color: var(--hollywood-base);
}

h1, h2, h3, .login-title, .welcome-title {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.bg {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(17, 17, 17, 0.9) 100%),
    url("https://hollywood-in-bruehl.de/wp-content/uploads/2023/03/cropped-IMG_3490-jpeg.webp") center / cover fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.card {
  border: 2px solid rgba(255, 166, 70, 0.45);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 166, 70, 0.12);
  background: rgba(17, 17, 17, 0.92);
}

.pad { padding: 20px; }
.small { font-size: 14px; color: #c4c4c4; }

.panel-subheading {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  margin: 18px 0 0;
  color: var(--hollywood-primary);
}

.panel-hint {
  font-size: 13px;
  line-height: 1.5;
  color: #b8b8b8;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 166, 70, 0.07);
  border: 1px solid rgba(255, 166, 70, 0.22);
}

.panel-hint strong {
  color: #eee;
  font-weight: 600;
}

.panel-preview-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0 0 6px;
}

.message-live-preview {
  font-size: 14px;
  line-height: 1.5;
  color: #eaeaea;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 166, 70, 0.3);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 8px;
  font-family: "Jost", sans-serif;
}

.message-live-preview.message-live-preview--empty {
  color: #777;
  font-style: italic;
}

.panel-message-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 166, 70, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.45;
  resize: vertical;
  min-height: 4.5rem;
}

.panel-toast {
  min-height: 1.35em;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ok);
}

.panel-credits {
  text-align: center;
  padding: 14px 16px 22px;
  max-width: 920px;
  margin: 0 auto;
}

.panel-credits__line {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #8a8a8a;
  font-family: "Jost", sans-serif;
}

.panel-credits__line + .panel-credits__line {
  margin-top: 0.25em;
}

#login-container {
  position: fixed;
  inset: 0;
  background: var(--hollywood-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.login-box {
  background: rgba(17, 17, 17, 0.96);
  padding: 32px;
  border-radius: 12px;
  max-width: 420px;
  width: 92%;
  text-align: center;
  border: 2px solid rgba(255, 166, 70, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.login-title {
  color: var(--hollywood-primary);
  font-size: 2.2rem;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.dj-options { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }

.dj-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 30, 30, 0.85);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}

.dj-option:hover {
  background: rgba(255, 166, 70, 0.12);
  border-color: rgba(255, 166, 70, 0.5);
}

.dj-logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  border: 2px solid var(--hollywood-primary);
  object-fit: cover;
}

.dj-name {
  color: var(--hollywood-text);
  font-family: "Jost", sans-serif;
  font-weight: 600;
}

#password-input {
  width: 100%;
  padding: 12px 14px;
  margin: 12px 0;
  border-radius: 8px;
  border: 2px solid rgba(255, 166, 70, 0.45);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: inherit;
}

#login-btn {
  background: linear-gradient(145deg, var(--hollywood-primary), var(--hollywood-primary-dim));
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 4px;
  color: #111;
  font-weight: 700;
  font-family: "Jost", sans-serif;
  cursor: pointer;
  letter-spacing: 0.05em;
}

#login-btn:hover {
  filter: brightness(1.06);
}

.panel { max-width: 1200px; margin: 20px auto; padding: 20px; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 166, 70, 0.35);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.panel h2 {
  font-size: 1.75rem;
  color: var(--hollywood-text);
  margin: 0 0 12px;
}

#dj-info { display: flex; align-items: center; gap: 12px; }

#dj-logo {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  border: 2px solid var(--hollywood-primary);
  object-fit: cover;
}

#dj-name {
  color: var(--hollywood-primary);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 2px;
}

#logout-btn {
  background: linear-gradient(145deg, var(--danger), #a82424);
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: "Jost", sans-serif;
  font-weight: 600;
}

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

input, button { font-size: 1rem; font-family: inherit; }

input {
  border: 2px solid rgba(255, 166, 70, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
}

button {
  background: linear-gradient(145deg, var(--hollywood-primary), var(--hollywood-primary-dim));
  color: #111;
  border: none;
  padding: 12px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 166, 70, 0.25);
}

button:hover { filter: brightness(1.05); }

button.warn { background: linear-gradient(145deg, var(--warn), #e6a800); color: #111; }
button.ok { background: linear-gradient(145deg, var(--ok), #2e7d32); color: #fff; }
button.info { background: linear-gradient(145deg, var(--info), #0578b3); color: #fff; }
button.muted {
  background: #333;
  color: #eee;
  box-shadow: none;
  font-weight: 500;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.chips .chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 166, 70, 0.25);
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Jost", sans-serif;
}

.chips .chip button {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(207, 46, 46, 0.9);
  color: #fff;
  font-size: 0.85rem;
}

.container {
  max-width: 100%;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  z-index: 10;
}

.logo-container { display: flex; align-items: center; gap: 15px; }

.logo {
  height: 80px;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.dj-info {
  background: rgba(255, 166, 70, 0.15);
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
  border: 2px solid rgba(255, 166, 70, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-family: "Jost", sans-serif;
  z-index: 10;
}

.dj-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--hollywood-primary); }

.welcome-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--hollywood-primary);
  margin: 16px 0 24px;
  text-shadow: 0 2px 20px rgba(255, 166, 70, 0.35);
  line-height: 1.1;
  max-width: 1100px;
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.message-display {
  background: rgba(255, 166, 70, 0.1);
  padding: 20px 24px;
  border-radius: 8px;
  margin: 12px 0 20px;
  border: 2px solid rgba(255, 166, 70, 0.4);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  min-height: 72px;
  z-index: 10;
  font-family: "Jost", sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-display.message-display--empty {
  color: rgba(255, 255, 255, 0.42);
  font-style: italic;
  border-style: dashed;
}

.no-numbers {
  background: rgba(255, 166, 70, 0.08);
  padding: 28px;
  border-radius: 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  border: 2px dashed rgba(255, 166, 70, 0.35);
  display: none;
  margin: auto;
  font-family: "Jost", sans-serif;
}

.number-display {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin: 16px 0;
  min-height: 140px;
  align-items: center;
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

/* Wrapper: Pop-in skaliert ganzes Herz+Zahl; innen nur Heartbeat (kein Transform-Konflikt). */
.number-outer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-outer.new-number-outer {
  animation: heartSlotPop 0.92s cubic-bezier(0.22, 1.45, 0.36, 1) forwards;
}

@keyframes heartSlotPop {
  0% {
    transform: scale(0.06);
    opacity: 0;
    filter: blur(10px) brightness(1.35);
  }
  42% {
    transform: scale(1.92);
    opacity: 1;
    filter: blur(0) brightness(1.2);
  }
  58% {
    transform: scale(0.78);
    filter: blur(0) brightness(1.05);
  }
  74% {
    transform: scale(1.18);
  }
  86% {
    transform: scale(0.94);
  }
  94% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0) brightness(1);
  }
}

.number {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 700;
  font-family: "Bebas Neue", sans-serif;
  color: #fffef8;
  animation: heartbeat 1.45s ease-in-out infinite;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.85),
    0 0 18px var(--heart-glow);
  flex-shrink: 0;
}

.number:before {
  content: "❤️";
  position: absolute;
  font-size: 100px;
  line-height: 1;
  color: var(--heart-red);
  z-index: -1;
  filter:
    drop-shadow(0 0 8px var(--heart-red-bright))
    drop-shadow(0 0 22px var(--heart-glow))
    drop-shadow(0 0 36px rgba(185, 28, 28, 0.45));
  opacity: 1;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  22% { transform: scale(1.1); }
  44% { transform: scale(1); }
  66% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.fullscreen-btn {
  position: fixed;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 166, 70, 0.25);
  border: 1px solid rgba(255, 166, 70, 0.5);
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: "Jost", sans-serif;
  box-shadow: none;
}

.fullscreen-btn:hover { background: rgba(255, 166, 70, 0.4); }

.screen-lock {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--hollywood-primary);
  text-align: center;
  padding: 24px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 2px;
}

.screen-lock p {
  font-family: "Jost", sans-serif;
  font-size: 1.1rem;
  color: #ccc;
  letter-spacing: normal;
  max-width: 520px;
  line-height: 1.5;
}

.screen-lock.hidden { display: none; }

/* Neon-Laufschrift (Display) */
.neon-marquee-outer {
  margin-top: auto;
  overflow: hidden;
  border-radius: 12px;
  min-height: 76px;
  background: linear-gradient(180deg, rgba(26, 8, 42, 0.92), rgba(0, 0, 0, 0.94));
  border: 2px solid rgba(255, 77, 210, 0.4);
  box-shadow:
    inset 0 0 32px rgba(255, 0, 200, 0.12),
    0 0 24px rgba(0, 240, 255, 0.14);
}

.neon-marquee-inner {
  overflow: hidden;
  width: 100%;
  padding: 16px 0;
  /* Weichere Kanten = weniger „Ruckeln“ am Rand */
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.neon-track {
  --marquee-dur: 28s;
  display: inline-flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.neon-track.neon-animate {
  animation: neon-marquee-scroll var(--marquee-dur) linear infinite;
}

@keyframes neon-marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.neon-text {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  letter-spacing: 0.14em;
  color: #fff;
  padding-right: 4rem;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow:
    0 0 4px #fff,
    0 0 12px #ff5df0,
    0 0 26px #ff2bd6,
    0 0 40px #00e8ff,
    0 0 2px #1a0a1a;
}

/* ─── LiveView: Digital Signage (festes 16:9, letterboxing, kein Seiten-Scroll) ─── */
html.signage-html,
html:has(body.display-signage) {
  height: 100%;
  overflow: hidden;
}

body.display-signage {
  height: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

body.display-signage.bg {
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-attachment: scroll;
}

body.display-signage .signage-root {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding:
    max(env(safe-area-inset-top), 0px)
    max(env(safe-area-inset-right), 0px)
    max(env(safe-area-inset-bottom), 0px)
    max(env(safe-area-inset-left), 0px);
}

body.display-signage .signage-frame {
  --signage-ar-w: 16;
  --signage-ar-h: 9;
  width: min(100%, calc(100dvh * var(--signage-ar-w) / var(--signage-ar-h)));
  height: min(100dvh, calc(100vw * var(--signage-ar-h) / var(--signage-ar-w)));
  max-width: 100%;
  max-height: 100dvh;
  aspect-ratio: var(--signage-ar-w) / var(--signage-ar-h);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  border-radius: 6px;
  box-shadow:
    0 0 0 2px rgba(255, 166, 70, 0.2),
    0 8px 48px rgba(0, 0, 0, 0.6);
}

body.display-signage .signage-container.container {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  padding: clamp(6px, 1vmin, 14px) clamp(8px, 1.4vmin, 18px) clamp(6px, 1vmin, 12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.display-signage .signage-header.header {
  flex-shrink: 0;
  margin-bottom: clamp(4px, 0.8vmin, 10px);
}

body.display-signage .signage-header .logo {
  height: clamp(56px, 12vmin, 118px);
  max-width: min(58%, 380px);
}

body.display-signage .signage-header .dj-info {
  font-size: clamp(0.85rem, 2vmin, 1.15rem);
  padding: clamp(6px, 1vmin, 10px) clamp(10px, 1.5vmin, 14px);
  margin-bottom: 0;
}

body.display-signage .signage-header .dj-avatar {
  width: clamp(32px, 5vmin, 44px);
  height: clamp(32px, 5vmin, 44px);
}

body.display-signage .signage-welcome.welcome-title {
  font-size: clamp(1rem, 3.2vmin, 2rem);
  margin: clamp(2px, 0.6vmin, 8px) 0 clamp(6px, 1vmin, 12px);
  max-width: none;
  line-height: 1.05;
}

body.display-signage .signage-content.content-area {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.display-signage .signage-message.message-display {
  flex-shrink: 0;
  font-size: clamp(0.8rem, 2.2vmin, 1.35rem);
  padding: clamp(8px, 1.2vmin, 16px) clamp(10px, 1.8vmin, 20px);
  min-height: 0;
  margin: 0 0 clamp(6px, 1vmin, 10px);
  max-height: 22%;
  overflow: auto;
  line-height: 1.35;
}

body.display-signage .signage-message.message-display.message-display--empty {
  font-size: clamp(0.72rem, 1.9vmin, 1.05rem);
}

body.display-signage .no-numbers {
  flex-shrink: 0;
  font-size: clamp(0.85rem, 2vmin, 1.2rem);
  padding: clamp(8px, 1.5vmin, 16px);
  margin: 0 0 clamp(4px, 0.8vmin, 8px);
}

body.display-signage .signage-numbers.number-display {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: clamp(4px, 0.8vmin, 12px) 0;
  gap: clamp(8px, 1.5vmin, 18px);
  align-content: center;
  scrollbar-gutter: stable;
}

body.display-signage .signage-numbers .number {
  width: clamp(56px, 10vmin, 88px);
  height: clamp(56px, 10vmin, 88px);
  font-size: clamp(1.4rem, 4.5vmin, 2.25rem);
}

body.display-signage .signage-numbers .number:before {
  font-size: clamp(56px, 10vmin, 88px);
}

body.display-signage .signage-numbers .number-outer.new-number-outer {
  animation-duration: 0.95s;
}

body.display-signage .signage-marquee.neon-marquee-outer {
  flex-shrink: 0;
  margin-top: clamp(4px, 0.7vmin, 10px);
  width: 100%;
  min-height: clamp(52px, 9.5vmin, 76px);
  border-radius: 8px;
  align-self: stretch;
}

body.display-signage .signage-marquee .neon-marquee-inner {
  padding: clamp(6px, 1vmin, 12px) 0;
}

body.display-signage .signage-marquee .neon-text {
  font-size: clamp(0.95rem, 2.8vmin, 1.65rem);
  padding-right: clamp(2rem, 4vmin, 4rem);
}

body.display-signage .signage-credits {
  flex-shrink: 0;
  text-align: center;
  padding: clamp(3px, 0.55vmin, 8px) clamp(6px, 1vmin, 14px) 0;
  margin-top: clamp(2px, 0.35vmin, 6px);
  border-top: 1px solid rgba(255, 166, 70, 0.18);
}

body.display-signage .signage-credits__line {
  margin: 0;
  font-size: clamp(0.52rem, 1.25vmin, 0.7rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Jost", sans-serif;
  letter-spacing: 0.02em;
}

body.display-signage .signage-credits__line + .signage-credits__line {
  margin-top: 0.2em;
}

/* Größer/kleiner (Vollbild) in der LiveView nicht anzeigen */
body.display-signage .fullscreen-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .logo { height: 64px; }
  .welcome-title { font-size: 1.75rem; }
  .number { width: 80px; height: 80px; font-size: 34px; }
  .number:before { font-size: 82px; }
}
