:root{
  --bg:#05060a;
  --card:#0c1020;
  --accent:#1ee6ff;
  --accent2:#8a5cff;
  --text:#eef3ff;
  --muted:#9aa6c3;

  --plyr-color-main:#00e5ff;
  --plyr-audio-controls-background:#161a24;
  --plyr-audio-control-color:#cfd8ff;
  --plyr-range-track-background:#2a2f45;
  --plyr-range-thumb-background:#00e5ff;
  --plyr-range-fill-background:#00e5ff;
}

*{box-sizing:border-box}

html, body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(900px 500px at 20% 0%,rgba(30,230,255,.12),transparent 60%),
    radial-gradient(900px 500px at 80% 20%,rgba(130,90,255,.15),transparent 60%),
    var(--bg);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background-attachment: fixed;
}

/* ===== VERTIKALE ZENTRIERUNG ===== */
.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.layout{
  max-width:1100px;
  margin:0 auto;
  padding:40px 24px 20px;
}

.top-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  margin-bottom:26px;
}

/* ===== CARD ===== */
.card{
  background:linear-gradient(180deg,#0d1226,#070a14);
  border:1px solid rgba(255,255,255,.07);
  border-radius:26px;
  padding:30px;
  position:relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 30px 80px rgba(0,0,0,.7);
  transition:border-color .4s ease, box-shadow .4s ease;
}

/* PREMIUM HOVER */
.card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    radial-gradient(400px 200px at 20% 0%,rgba(30,230,255,.08),transparent 60%),
    radial-gradient(400px 200px at 80% 100%,rgba(138,92,255,.08),transparent 60%);
  opacity:0;
  transition:opacity .4s ease;
  pointer-events:none;
}

.card:hover{
  border-color:rgba(30,230,255,.25);
  box-shadow:
    inset 0 0 0 1px rgba(30,230,255,.05),
    0 40px 120px rgba(0,0,0,.85),
    0 0 80px rgba(30,230,255,.12);
}

.card:hover::after{
  opacity:1;
}

/* ===== LOGO ===== */
.logo-wrap{
  width:150px;
  height:150px;
  margin:0 auto 30px;
  position:relative;
}
.logo-glow{
  position:absolute;
  inset:0;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%,var(--accent),var(--accent2));
  filter:blur(20px);
  opacity:.9;
}
.logo-core{
  position:relative;
  width:100%;
  height:100%;
  border-radius:50%;
  background:#05060a;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 0 40px rgba(30,230,255,.3);
}
.logo-core img{
  max-width:100%;
  max-height:100%;
}

/* ===== TEXT ===== */
h1{
  margin:0 0 6px;
  font-size:22px;
  letter-spacing:3px;
  text-align:center;
}
.sub{
  text-align:center;
  font-size:13px;
  color:var(--muted);
  margin-bottom:18px;
}

/* ===== STATUS ===== */
.status{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:14px;
  font-size:13px;
  color:#9aa6c3;
}
.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#555;
}
.dot.live{
  background:#00ff9c;
  box-shadow:0 0 12px #00ff9c;
}
.dot.off{
  background:#ff4d4d;
}

/* ===== AUDIO ===== */
audio{width:100%}

/* ===== WUNSCH ===== */
textarea{
  width:100%;
  background:#0b0f1e;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:12px;
  color:var(--text);
  resize:none;
  min-height:90px;
}

/* ===== CHAT ===== */
.wide-card{padding:34px}
.chat-box{
  height:220px;
  border-radius:16px;
  background:#0b0f1e;
  border:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
}

/* ===== FOOTER ===== */
footer{
  text-align:center;
  font-size:12px;
  color:var(--muted);
  padding:16px 0 10px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .page{justify-content:flex-start}
  .top-row{grid-template-columns:1fr}
}

/* ===== HEADER LOGO ===== */
.site-header{
  display:flex;
  justify-content:center;
  padding-top:32px;
  padding-bottom:28px;
}

.site-header img{
  max-width:320px;
  width:70%;
  height:auto;
  filter:
    drop-shadow(0 0 25px rgba(30,230,255,.35))
    drop-shadow(0 0 45px rgba(138,92,255,.25));
}

@media(max-width:600px){
  .site-header img{ max-width:220px; }
}

/* ===============================
   WUNSCH & GRUSSBOX – COMPACT
   =============================== */

.wb-form{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:8px;
}

/* MESSAGE */
.message{
  padding:8px 12px;
  font-size:13px;
  border-radius:10px;
  background:rgba(30,230,255,.08);
  border:1px solid rgba(30,230,255,.25);
  color:var(--text);
  opacity:1;
  transition:opacity .5s ease;
}

.message.hide{ opacity:0; }

/* FIELDSETS */
.wb-form fieldset{
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:10px 12px 12px;
}

/* LEGEND */
.wb-form legend{
  padding:0 8px;
  font-size:11px;
  color:var(--muted);
}

/* INPUTS */
.wb-form input[type="text"],
.wb-form textarea{
  width:100%;
  background:transparent;
  border:0;
  color:var(--text);
  font-size:14px;
  font-family:inherit;
  padding:4px 2px;
}

.wb-form textarea{
  min-height:70px;
  resize:none;
}

/* Focus */
.wb-form fieldset:focus-within{
  border-color:rgba(30,230,255,.45);
  box-shadow:0 0 0 1px rgba(30,230,255,.15);
}

/* SUBMIT */
.wb-form input[type="submit"]{
  align-self:flex-start;
  padding:12px 26px;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: linear-gradient(135deg, rgba(30,230,255,.18), rgba(138,92,255,.18));
  border:1px solid rgba(30,230,255,.45);
  color:#eafcff;
  font-size:13px;
  font-weight:600;
  letter-spacing:.6px;
  cursor:pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 26px rgba(0,0,0,.6);
  transition: background .3s ease, box-shadow .3s ease, transform .15s ease;
}

.wb-form input[type="submit"]:hover{
  background: linear-gradient(135deg, rgba(30,230,255,.35), rgba(138,92,255,.35));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 10px 34px rgba(0,0,0,.75),
    0 0 22px rgba(30,230,255,.35);
  transform:translateY(-1px);
}

.wb-form input[type="submit"]:active{
  transform:translateY(0);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,.35),
    0 6px 18px rgba(0,0,0,.6);
}

.wb-form input[type="submit"]:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 2px rgba(30,230,255,.4),
    0 10px 34px rgba(0,0,0,.75);
}

/* ===== ALERT BOX ===== */
.alert{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  margin-bottom:14px;
  border-radius:12px;
  font-size:13px;
  line-height:1.4;
  opacity:0;
  transform:translateY(-8px);
  animation:alertIn .4s ease forwards;
}

.alert .icon{
  width:20px;
  height:20px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:13px;
  flex-shrink:0;
}

.alert.success{
  background:rgba(30,230,255,.12);
  border:1px solid rgba(30,230,255,.35);
}
.alert.success .icon{
  background:#1ee6ff;
  color:#000;
}

.alert.error{
  background:rgba(255,80,80,.12);
  border:1px solid rgba(255,80,80,.35);
}
.alert.error .icon{
  background:#ff4d4d;
  color:#fff;
}

.alert.hide{ animation:alertOut .4s ease forwards; }

@keyframes alertIn{
  from{opacity:0; transform:translateY(-8px)}
  to{opacity:1; transform:translateY(0)}
}
@keyframes alertOut{
  from{opacity:1; transform:translateY(0)}
  to{opacity:0; transform:translateY(-6px)}
}

/* AUTO-HIDE */
.alert{
  opacity:1;
  transform:translateY(0);
  animation:alertFadeOut 3.5s ease forwards;
}
@keyframes alertFadeOut{
  0%{opacity:1; transform:translateY(0);}
  80%{opacity:1; transform:translateY(0);}
  100%{opacity:0; transform:translateY(-8px);}
}

/* ===============================
   CHAT (PARENT) – FINAL FIX
   =============================== */

.chat-wrapper{
  position:relative;
  width:100%;
  max-width:100%;
}

/* Vorher hattest du hier feste Höhen (600px / 80vh).
   Die werden jetzt bewusst überschrieben, damit JS die Höhe setzen darf. */
.chat-iframe,
#chatframe{
  width:100% !important;
  height:10vh; !important;     /* <- WICHTIG: CSS darf NICHT mehr fixieren */
  min-height:0 !important;
  border:0;
  display:block;
}

/* Header */
.chat-header{
  text-align:center;
  margin-bottom:18px;
}

.chat-header h2{ margin-bottom:4px; }

/* Mini-Fullscreen-Link */
.chat-fullscreen-mini{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:500;
  letter-spacing:.2px;
  color:rgba(220,230,255,.65);
  text-decoration:none;
  opacity:.7;
  transition:opacity .2s ease, color .2s ease;
}
.chat-fullscreen-mini:hover{
  opacity:1;
  color:#eaffff;
}

/* WICHTIG: kein Abschneiden in der Chat-Card */
.card.wide-card{
  overflow:visible !important;  /* vorher overflow:hidden hat geklippt */
  height:auto !important;
  min-height:0 !important;
}
