/* =========================================================
   Heroradio GbR – Jingleshop
   Designsystem im Look von heroradio.eu (Hero-Edition, dunkel/gold)
   ========================================================= */

:root {
  --bg: #05060a;
  --bg-soft: #0b0c13;
  --panel: rgba(255, 212, 0, .045);
  --panel-2: rgba(255, 212, 0, .02);
  --panel-solid: #10121a;
  --line: rgba(255, 212, 0, .18);
  --line-soft: rgba(255, 255, 255, .08);
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --primary: #ffd400;
  --accent: #ffe24a;
  --ink: #0b0b14;
  --ok: #16ffbd;
  --warn: #ff8c00;
  --bad: #ff4d6d;
  --blue: #ffd400;
  --cyan: #ffe24a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .55);
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Atmosphäre: sanfte Lichter statt Saison-Motiven */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% -8%, rgba(255, 212, 0, .12), transparent 55%),
    radial-gradient(820px 520px at 88% 12%, rgba(255, 212, 0, .06), transparent 55%),
    linear-gradient(180deg, #05060a 0%, #08090f 45%, #05060a 100%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

h1, h2, h3, h4, p, li, td, th, .lead { overflow-wrap: anywhere; word-break: break-word; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 14px; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: .98rem; }
p { margin: 0 0 12px; }
small { font-size: 13px; }

.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 2; }
.block { margin-top: 28px; margin-bottom: 28px; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: #c9c9c9; max-width: 720px; }

/* ---------- Kopfbereich (zweizeilig: Servicezeile + Navigation) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 9, 15, .92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-top { background: rgba(5, 6, 10, .75); }
.topbar-top-inner { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 52px; width: auto; }

.topbar-pill {
  margin: 0 auto; display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font-weight: 700; font-size: .95rem;
}
.topbar-pill:hover { color: var(--primary); border-color: var(--primary); }
.topbar-pill-dot { color: var(--primary); }

.topbar-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.flag {
  display: inline-flex; padding: 3px; border-radius: 6px;
  border: 1px solid transparent; opacity: .65; line-height: 0;
}
.flag:hover { opacity: 1; }
.flag.on { opacity: 1; border-color: var(--primary); }
.a11y-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line-soft); background: transparent;
  color: var(--text); cursor: pointer;
}
.a11y-toggle:hover { border-color: var(--primary); color: var(--primary); }
.btn-cta {
  background: var(--primary); color: var(--ink); border-color: var(--primary);
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 11px 22px; border-radius: 10px;
}
.btn-cta:hover { background: var(--accent); color: var(--ink); }
.btn-cta-ico { display: inline-flex; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; width: 42px; height: 42px;
  cursor: pointer; font-size: 1.2rem; line-height: 1;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px auto; border-radius: 2px; }

.topbar-nav { border-top: 1px solid var(--line-soft); }
.mainnav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 4px 0; }
.mainnav a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); padding: 12px 14px; border-radius: 10px;
  font-size: .95rem; font-weight: 700;
}
.mainnav a:hover, .mainnav a.on { color: var(--primary); background: var(--panel); }
.mainnav .nav-home { color: var(--primary); }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

/* Barrierefreiheits-Modus */
.hr-a11y body { font-size: 18px; }
.hr-a11y { --muted: #d8d8d8; --line: rgba(255, 212, 0, .38); }

/* Zahlungshinweis (nur noch im Fussbereich) */
.pay-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.pay-badge img { display: block; height: 19px; width: auto; background: #fff; border-radius: 4px; padding: 3px 5px; }
.pay-badge span { color: var(--muted); font-size: 13px; font-weight: 600; }
.footer-pay { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--ink); }
.btn-primary:hover { background: var(--accent); color: var(--ink); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--primary)); color: var(--ink); }
.btn-accent:hover { color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--panel); color: var(--primary); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.04; }
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 24px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: 13px; font-family: var(--mono); }

.badge {
  display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--primary); font-size: 12px; font-family: var(--mono);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}

/* ---------- Flächen ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.section { padding: 26px 0; }
.section-head { margin-bottom: 20px; }
.section-head p { color: var(--muted); max-width: 720px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { font-size: 1.4rem; font-weight: 800; }

.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); border-color: var(--primary); }
.feature-list, .check, .steps { margin: 0; padding-left: 18px; }
.feature-list li, .check li { margin-bottom: 6px; color: #d0d0d0; }
.steps { list-style: none; padding: 0; }
.steps li, .steps > div { padding: 10px 0 10px 16px; border-left: 2px solid var(--line-soft); }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 14px; }
.steps .done { border-left-color: var(--primary); }

/* ---------- Karten ---------- */
.jingle-card, .price-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; transition: transform .2s, border-color .2s;
}
.jingle-card:hover, .price-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(255, 212, 0, .25), var(--shadow); }
.ribbon { position: absolute; top: -12px; right: 16px; background: var(--primary); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.jingle-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.cat { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--primary); font-family: var(--mono); }
.dur { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.price, .price-tag { font-size: 1.6rem; font-weight: 800; margin: 8px 0; }
.price small, .price-tag small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.price-sm { font-weight: 800; color: var(--primary); }
.jingle-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
audio { width: 100%; margin: 10px 0; }

/* ---------- Pills / Chips ---------- */
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-soft); }
.pill.ok { background: rgba(22, 255, 189, .1); color: var(--ok); border-color: rgba(22, 255, 189, .35); }
.pill.warn { background: rgba(255, 140, 0, .12); color: #ffb457; border-color: rgba(255, 140, 0, .35); }
.pill.bad { background: rgba(255, 77, 109, .12); color: #ff9fb0; border-color: rgba(255, 77, 109, .35); }
.pill.info { background: rgba(255, 212, 0, .12); color: var(--primary); border-color: var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); font-weight: 600; font-size: .9rem; }
.chip.on, .chip:hover { color: var(--primary); background: var(--panel); border-color: var(--line); }

/* ---------- Tabellen ---------- */
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: var(--panel-solid); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: .94rem; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
tr:last-child td { border-bottom: none; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); }

/* ---------- Formulare ---------- */
label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: .88rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url],
input[type=date], input[type=time], input[type=file], input[type=color], select, textarea, input:not([type]) {
  width: 100%; max-width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); background-color: rgba(0, 0, 0, .35);
  color: var(--text); font: inherit; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; min-height: 110px; }
label.check, label.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input, label.choice input { width: auto; margin-top: 4px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.choice { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 13px; background: var(--panel); }
.choice small { display: block; color: var(--muted); }
.plan-pick { display: block; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 15px; background: var(--panel); }
.plan-body { display: block; margin-top: 8px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.auth { display: flex; justify-content: center; padding: 50px 20px; }
.form-card {
  width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 32px; box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.form-card-wide { width: min(880px, 100%); }
.form-card .sub { color: var(--muted); }
.form-foot { margin-top: 18px; color: var(--muted); font-size: 14px; }

.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin: 14px 0; border: 1px solid var(--line-soft); font-size: .95rem; }
.alert-ok { background: rgba(22, 255, 189, .08); border-color: rgba(22, 255, 189, .35); color: #bafff0; }
.alert-error { background: rgba(255, 77, 109, .08); border-color: rgba(255, 77, 109, .35); color: #ffc2cd; }
.alert-info { background: rgba(255, 212, 0, .08); border-color: var(--line); color: #ffeea3; }

.meter { height: 10px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-soft); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* ---------- Mitgliederbereich ---------- */
.dash > * { min-width: 0; }
.dash { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 26px; padding: 30px 0 60px; align-items: start; }
.sidebar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 84px; }
.side-user { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 10px; display: flex; flex-direction: column; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { color: var(--muted); padding: 10px 12px; border-radius: 10px; font-size: .93rem; font-weight: 600; }
.sidebar nav a:hover, .sidebar nav a.on { background: rgba(255, 212, 0, .1); color: var(--primary); }

.cta-band {
  background: linear-gradient(120deg, rgba(255, 212, 0, .14), rgba(255, 212, 0, .04));
  border: 1px solid var(--line); border-radius: 22px; padding: 30px;
  display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap;
}

/* ---------- Fussbereich ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 38px 0 18px; margin-top: 48px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); color: var(--primary); }
.footer a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.footer a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); margin-top: 24px; padding-top: 16px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.footer-bottom a { display: inline; color: var(--muted); }
.footer-bottom a:hover { color: var(--primary); }

/* =========================================================
   Mobile / Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .mainnav a { padding: 8px 9px; font-size: .88rem; }
}

@media (max-width: 980px) {
  .wrap { width: min(1200px, calc(100% - 28px)); }
  .topbar-top-inner { flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  .nav-toggle { display: block; }
  .brand img { height: 40px; }
  .topbar-pill { margin: 0; order: 4; flex: 0 0 100%; justify-content: center; }
  .topbar-tools { margin-left: auto; gap: 8px; }
  .btn-cta { padding: 9px 14px; font-size: .82rem; }
  .btn-logout { display: none; }
  .topbar-nav { display: none; }
  .topbar.open .topbar-nav { display: block; }
  .mainnav, .topbar-actions { flex: 0 0 100%; width: 100%; }
  .mainnav { flex-direction: column; align-items: stretch; }
  .topbar.open .mainnav {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 0 4px; border-top: 1px solid var(--line-soft); margin-top: 8px;
  }
  .topbar.open .mainnav a { padding: 12px 12px; font-size: 1rem; }
  .topbar.open .topbar-actions { display: flex; padding: 8px 0 12px; }
  .topbar.open .topbar-actions .btn { flex: 1; }

  .hero { padding: 40px 0 20px; }
  .hero-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 1fr; padding: 20px 0 44px; }
  .sidebar { position: static; }
  .sidebar nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .cta-band { padding: 22px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 24px); }
  .panel, .form-card { padding: 18px; border-radius: 16px; }
  .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .sidebar nav { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 16px; }
  .hero-cta .btn, .row-actions .btn, .jingle-foot .btn { width: 100%; }
  .auth { padding: 26px 0; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .kv { flex-direction: column; gap: 2px; }
  .jingle-top { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Tabellen bleiben lesbar und scrollen horizontal */
  th, td { padding: 10px 12px; font-size: .9rem; white-space: nowrap; }
}

@media print {
  .topbar, .footer, .sidebar, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  .panel, table { background: #fff; border-color: #ccc; box-shadow: none; color: #000; }
}

/* =========================================================
   Angebots-Kacheln (Startseite)
   ========================================================= */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  color: var(--text);
  background: linear-gradient(160deg, rgba(255, 212, 0, .09), var(--panel-2));
}
.tile-ico {
  font-size: 30px;
  line-height: 1;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 212, 0, .06);
  margin-bottom: 4px;
}
.tile h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tile-meta {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
}
.tile-cta { font-weight: 600; font-size: 14px; color: var(--primary); }

@media (max-width: 1100px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .tile-grid { grid-template-columns: 1fr; } }

/* Karten in Rastern gleich hoch ausrichten */
.grid-2 > .jingle-card,
.grid-3 > .jingle-card,
.grid-4 > .jingle-card { display: flex; flex-direction: column; }
.grid-2 > .jingle-card .jingle-foot,
.grid-3 > .jingle-card .jingle-foot,
.grid-4 > .jingle-card .jingle-foot { margin-top: auto; }
.grid-3 > .feature, .grid-2 > .panel, .grid-3 > .panel { height: 100%; }
.grid-2, .grid-3, .grid-4 { align-items: stretch; }

/* Nummerierte Ablauf-Schritte nebeneinander */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: hrstep; }
.step-grid > div {
  position: relative; padding: 22px 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(160deg, var(--panel), var(--panel-2));
}
.step-grid > div::before {
  counter-increment: hrstep; content: counter(hrstep);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px;
  border-radius: 50%; background: var(--primary); color: var(--ink);
  font-family: var(--mono); font-weight: 700; font-size: 15px;
}
.step-grid strong { display: block; margin-bottom: 4px; }
.step-grid span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 1100px) { .step-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .step-grid { grid-template-columns: 1fr; } }

/* Formularraster sauber ausrichten */
.form-card .grid-2 { gap: 0 18px; }
.form-card label { display: block; margin-top: 14px; margin-bottom: 6px; font-weight: 600; }
.form-card .choice label { margin: 0; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="password"],
.form-card input[type="url"], .form-card input:not([type]), .form-card textarea, .form-card select { width: 100%; }

/* Gefährliche Aktionen (löschen) */
.btn-danger {
  background: rgba(255, 77, 109, .12);
  border: 1px solid rgba(255, 77, 109, .5);
  color: #ff9fb0;
  font-weight: 700;
}
.btn-danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.row-actions select {
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); background: var(--panel-solid); color: var(--text);
}

/* Domain-Check (Registrierung Kundenpaket) */
.domain-check { display: flex; gap: 8px; align-items: stretch; }
.domain-check input { flex: 1 1 auto; min-width: 0; }
.domain-check .btn { flex: 0 0 auto; white-space: nowrap; }
.domain-result { font-size: 13px; margin: 6px 0 0; }
.domain-result.ok   { color: #17a06a; }
.domain-result.bad  { color: #e0455c; }
.domain-result.warn { color: #d59a1a; }
@media (max-width: 560px) {
  .domain-check { flex-direction: column; }
}

/* --- Zähler-Badges & Ticket-Verlauf (v20) --- */
.count-badge {
  display: inline-block;
  min-width: 20px;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--primary, #e02b46);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  vertical-align: middle;
}
.sidebar nav a .count-badge { float: right; }
.stat .stat-link { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); text-decoration: none; }
.stat .stat-link:hover { text-decoration: underline; }

.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.chat-msg {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft, rgba(255,255,255,.08));
  font-size: 14px;
  line-height: 1.55;
}
.chat-msg .chat-meta { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 700; color: var(--muted); }
.chat-user { align-self: flex-start; background: rgba(255, 255, 255, .04); }
.chat-admin { align-self: flex-end; background: rgba(224, 43, 70, .12); border-color: rgba(224, 43, 70, .35); }

/* =========================================================
   Bereichs-Layout v2 – moderner Admin-, Kunden- und Partnerbereich
   ========================================================= */

.dash {
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0 70px;
}

.sidebar.panel-side {
  background: linear-gradient(180deg, #10131f 0%, #0b0d16 100%);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.side-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 18px 20px;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 212, 0, .14), transparent 70%);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.side-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  background: #171b2b;
  border: 2px solid rgba(255, 212, 0, .55);
  box-shadow: 0 0 0 6px rgba(255, 212, 0, .07);
}
.side-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-avatar span { font-weight: 800; font-size: 1.6rem; color: var(--primary); letter-spacing: .5px; }
.side-profile strong { font-size: 1.05rem; }
.side-role {
  font-size: 12px;
  color: var(--primary);
  background: rgba(255, 212, 0, .12);
  border: 1px solid rgba(255, 212, 0, .25);
  border-radius: 999px;
  padding: 3px 12px;
}
.side-quick { display: flex; gap: 10px; margin-top: 10px; }
.side-quick a {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text);
  transition: .18s;
}
.side-quick a:hover { background: var(--primary); color: var(--ink); border-color: var(--primary); }
.side-quick svg { width: 18px; height: 18px; }

.sidebar.panel-side nav { padding: 12px 10px; gap: 1px; }
.nav-group {
  display: block;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #6c7285;
  font-weight: 700;
  padding: 14px 12px 6px;
}
.nav-group:first-child { padding-top: 4px; }
.sidebar.panel-side nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #c6cad6;
  font-weight: 600;
  font-size: .92rem;
  border-left: 3px solid transparent;
  transition: .16s;
}
.sidebar.panel-side nav a svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.sidebar.panel-side nav a span { flex: 1; min-width: 0; }
.sidebar.panel-side nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.sidebar.panel-side nav a.on {
  background: linear-gradient(90deg, rgba(255, 212, 0, .18), rgba(255, 212, 0, .03));
  border-left-color: var(--primary);
  color: var(--primary);
}
.sidebar.panel-side nav a.on svg { opacity: 1; }
.sidebar.panel-side nav a .count-badge { float: none; }

.side-card { border-top: 1px solid rgba(255, 255, 255, .07); }
.side-card-head {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 18px;
  font-weight: 700; font-size: .92rem;
}
.side-card-head svg { width: 17px; height: 17px; color: var(--primary); }
.side-card-body { display: flex; flex-direction: column; gap: 4px; padding: 0 18px 18px; }
.side-card-body strong { font-size: .95rem; }
.side-card-body em { color: var(--muted); font-style: italic; font-size: .88rem; }
.side-card-body > span { color: var(--muted); font-size: .86rem; word-break: break-word; }
.btn-block { width: 100%; justify-content: center; margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; }
.btn-block svg { width: 16px; height: 16px; }
.side-shortcut {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  color: var(--text);
  font-size: .87rem; font-weight: 600;
  margin-top: 6px;
  transition: .16s;
}
.side-shortcut:hover { border-color: rgba(255, 212, 0, .45); color: var(--primary); }
.side-shortcut svg { width: 17px; height: 17px; color: var(--primary); }
.side-shortcut b { color: var(--primary); font-variant-numeric: tabular-nums; }

/* Inhaltsbereich */
.dash > div > h1 {
  font-size: 1.75rem;
  margin: 0 0 4px;
}
.dash > div > h1 + .muted { margin-top: 0; }

.dash .stat {
  background: linear-gradient(180deg, #141827 0%, #0f121d 100%);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
  align-items: center;
  gap: 6px;
  transition: .18s;
}
.dash .stat:hover { border-color: rgba(255, 212, 0, .45); transform: translateY(-2px); }
.dash .stat strong {
  order: -1;
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--primary);
  font-weight: 800;
}
.dash .stat span { font-size: .92rem; color: #c6cad6; }
.dash .stat .stat-link { color: var(--muted); }

.dash .panel,
.dash .block > table,
.dash .table-scroll {
  border-radius: 18px;
}
.dash .panel {
  background: linear-gradient(180deg, #141827 0%, #0f121d 100%);
  border: 1px solid rgba(255, 255, 255, .07);
}
.dash .block > h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.12rem;
}
.dash .block > h2::before {
  content: "";
  width: 4px; height: 20px;
  border-radius: 4px;
  background: var(--primary);
}

@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar.panel-side nav { display: block; }
  .side-card { display: none; }
}
.sidebar.panel-side nav a .count-badge {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  background: var(--primary);
  color: var(--ink);
}

.footer .brand img { height: 44px; width: auto; }
