/* Weide Beat FM — Mockup Styles. CI: Grün, Logo: Regenbogen */
:root {
  --g950: #052e16;
  --g900: #14532d;
  --g700: #15803d;
  --g600: #16a34a;
  --g500: #22c55e;
  --g200: #bbf7d0;
  --g100: #dcfce7;
  --g50: #f2faf2;
  --ink: #0f2417;
  --muted: #5b7264;
  --card: #ffffff;
  --line: #d9ead9;
  --amber: #f59e0b;
  --red: #ef4444;
  --rainbow: linear-gradient(90deg,#ef4444,#f59e0b,#eab308,#22c55e,#3b82f6,#8b5cf6);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(5,46,22,.06), 0 8px 24px rgba(5,46,22,.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  background: var(--g50);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 248px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--g950), #072a14 60%, #0a3319);
  color: #d8f0dd;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 14px; }
.brand .logo { width: 44px; height: 44px; flex-shrink: 0; }
.brand .name { font-weight: 700; font-size: 17px; color: #fff; line-height: 1.15; }
.brand .name small { display: block; font-weight: 400; font-size: 11px; color: #86c99a; letter-spacing: .08em; text-transform: uppercase; }
.rainbow-bar { height: 4px; background: var(--rainbow); border-radius: 2px; margin: 0 18px 14px; }
.nav { padding: 6px 10px; flex: 1; overflow-y: auto; }
.nav-group { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6ba07c; padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  color: #cfe9d6; text-decoration: none; font-size: 14px; font-weight: 500;
}
.nav a svg { width: 17px; height: 17px; stroke: #8fc9a0; flex-shrink: 0; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: var(--g600); color: #fff; box-shadow: 0 2px 10px rgba(34,197,94,.35); }
.nav a.active svg { stroke: #fff; }
.sidebar .foot { padding: 14px 18px; font-size: 11.5px; color: #6ba07c; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: rgba(255,255,255,.8); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 18px; font-weight: 700; }
.topbar .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--rainbow); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; }
.page { display: none; padding: 26px 28px 60px; max-width: 1180px; }
.page.active { display: block; }

/* ---------- Generic components ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.card h3 svg { width: 17px; height: 17px; stroke: var(--g600); }
.card .sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--g600); color: #fff; border: none; cursor: pointer;
  padding: 9px 16px; border-radius: 9px; font-family: inherit; font-size: 13.5px; font-weight: 600;
}
.btn:hover { background: var(--g700); }
.btn.ghost { background: transparent; color: var(--g700); border: 1px solid var(--g600); }
.btn.ghost:hover { background: var(--g100); }
.btn.small { padding: 6px 11px; font-size: 12.5px; }
.btn svg { width: 15px; height: 15px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--g100); color: var(--g700); }
.badge.live { background: #fee2e2; color: #b91c1c; }
.badge.live .dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: pulse 1.4s infinite; }
.badge.gray { background: #eef2ee; color: var(--muted); }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: 13.5px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--g200); border-color: var(--g500); }
label.fld { display: block; font-size: 12.5px; font-weight: 600; color: var(--g900); margin: 12px 0 5px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }
.pos { color: var(--g700); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }
.scroll-x { overflow-x: auto; }

/* ---------- Player ---------- */
.hero {
  border-radius: var(--radius); padding: 26px; color: #fff; margin-bottom: 20px;
  background: radial-gradient(1200px 400px at 20% -20%, rgba(255,255,255,.25), transparent), linear-gradient(120deg, var(--g700), var(--g900));
  position: relative; overflow: hidden;
}
.hero .rainbow-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--rainbow); }
.hero-flex { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cover {
  width: 120px; height: 120px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(140deg, #0b3d20, #14532d);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.cover svg { width: 72px; height: 72px; }
.hero .title { font-size: 24px; font-weight: 700; margin: 2px 0; }
.hero .artist { font-size: 15px; opacity: .85; }
.hero .meta { font-size: 12.5px; opacity: .7; margin-top: 6px; }
.player-controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.pbtn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pbtn.big { width: 56px; height: 56px; background: #fff; color: var(--g700); border: none; }
.pbtn svg { width: 20px; height: 20px; }
.pbtn.big svg { width: 24px; height: 24px; }
.pbtn:hover { transform: scale(1.05); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.eq span { width: 4px; background: var(--g500); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 90%; animation-delay: .15s; }
.eq span:nth-child(3) { height: 60%; animation-delay: .3s; }
.eq span:nth-child(4) { height: 100%; animation-delay: .45s; }
.eq span:nth-child(5) { height: 50%; animation-delay: .6s; }
@keyframes eq { 0%,100% { transform: scaleY(.4) } 50% { transform: scaleY(1) } }
.stations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 1000px) { .stations { grid-template-columns: 1fr 1fr; } }
.station {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: #fff;
  display: flex; gap: 11px; align-items: center;
}
.station:hover { border-color: var(--g500); }
.station.on { border-color: var(--g600); background: var(--g100); box-shadow: 0 0 0 3px var(--g200); }
.station .sicon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.station .sicon svg { width: 20px; height: 20px; stroke: #fff; }
.station b { display: block; font-size: 13.5px; }
.station small { color: var(--muted); font-size: 11.5px; }
.chip { display: inline-block; font-size: 11px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; margin: 2px 3px 2px 0; color: var(--muted); }
.timeline { list-style: none; }
.timeline li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.timeline li:last-child { border: none; }
.timeline .t { font-weight: 700; color: var(--g700); width: 52px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.news-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.news-item:last-child { border: none; }
.news-item .play { width: 34px; height: 34px; border-radius: 50%; background: var(--g600); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.news-item .play svg { width: 15px; height: 15px; }
.news-item b { font-size: 13.5px; display: block; }
.news-item small { color: var(--muted); font-size: 12px; }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 18px; position: relative; }
.tier.hot { border-color: var(--g600); box-shadow: 0 0 0 3px var(--g200), var(--shadow); }
.tier .flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--g600); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.tier h4 { font-size: 15px; }
.tier .seats { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.tier .price { font-size: 30px; font-weight: 800; color: var(--g900); }
.tier .price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.tier ul { list-style: none; margin: 14px 0 18px; font-size: 13px; }
.tier li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.tier li svg { width: 15px; height: 15px; stroke: var(--g600); flex-shrink: 0; margin-top: 2px; }
.tier .btn { width: 100%; justify-content: center; }

/* ---------- KPI / model ---------- */
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi .v { font-size: 25px; font-weight: 800; color: var(--g900); margin-top: 2px; }
.kpi .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi .v.accent { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sliders { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 26px; }
@media (max-width: 1000px) { .sliders { grid-template-columns: 1fr; } }
.slider-row label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.slider-row label output { color: var(--g700); }
input[type=range] { width: 100%; accent-color: var(--g600); }
.hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.callout { border-left: 4px solid var(--g600); background: var(--g100); border-radius: 0 10px 10px 0; padding: 12px 16px; font-size: 13px; margin: 14px 0; }
.callout.warn { border-color: var(--amber); background: #fef3c7; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart-wrap { width: 100%; overflow-x: auto; }
code, pre { font-family: 'Cascadia Code', Consolas, monospace; font-size: 12.5px; }
pre { background: var(--g950); color: #c9f0d4; padding: 16px; border-radius: 10px; overflow-x: auto; line-height: 1.55; }
pre .c { color: #6ba07c; }
pre .k { color: #7dd3fc; }
pre .s { color: #fcd34d; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.member-row:last-child { border: none; }
.member-row .mail { flex: 1; }
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--g900); color: #fff; padding: 13px 18px; border-radius: 11px;
  font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: 9px;
  opacity: 0; transform: translateY(12px); transition: all .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.toast svg { width: 16px; height: 16px; stroke: var(--g500); }
.footer-note { margin-top: 26px; font-size: 12px; color: var(--muted); }
