/* Kundenportal – Design "Verlauf" (Variante 6)
   Schrift: Plus Jakarta Sans, lokal eingebunden (keine Verbindung zu Google). */

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

:root {
  --ink: #1A1530;
  --text: #4A4560;
  --muted: #5B5670;
  --line: #ECE9F3;
  --line-strong: #E2DDEE;
  --bg: #FFFFFF;
  --bg-soft: #FAF9FD;
  --violet: #6D28D9;
  --violet-dark: #4C1D95;
  --violet-tint: #F5F3FF;
  --pink-tint: #FDF2F8;
  --peach-tint: #FFF7ED;
  --sky-tint: #F0F9FF;
  --ok-bg: #DCFCE7;   --ok-fg: #166534;
  --warn-bg: #FEF3C7; --warn-fg: #92400E;
  --danger-bg: #FEE2E2; --danger-fg: #991B1B;
  --info-bg: #E0F2FE; --info-fg: #075985;
  --muted-bg: #F1EFF6; --muted-fg: #4A4560;
  --gradient: linear-gradient(118deg, #E9E3FF 0%, #FCE4F1 34%, #FFE8D6 62%, #DFF1FF 100%);
  --gradient-soft: linear-gradient(118deg, #F3F0FF 0%, #FDF0F7 45%, #EEF7FF 100%);
  --gradient-strong: linear-gradient(118deg, #8B5CF6, #EC4899, #F97316);
  --shadow: 0 2px 4px rgba(26, 21, 48, .04), 0 40px 80px -30px rgba(76, 29, 149, .35);
  --shadow-sm: 0 20px 40px -24px rgba(76, 29, 149, .3);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.03em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Grundgerüst */
.container { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }

/* Marke */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 200deg, #6D28D9, #EC4899, #F97316, #38BDF8, #6D28D9); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 12px 24px -10px rgba(109, 40, 217, .6); }
.btn-primary:hover { background: var(--violet-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2D2550; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--violet); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--violet); color: var(--violet); }
.btn-danger { background: var(--danger-bg); color: var(--danger-fg); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--violet); cursor: pointer; text-decoration: underline; }

/* Kopfbereich der öffentlichen Seiten */
.site-header { position: relative; z-index: 2; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 20px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; font-weight: 600; }
.site-nav a { color: #3B3552; text-decoration: none; }
.site-nav a:hover { color: var(--violet); }
.site-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Startseite: Hero mit schrägem Farbverlauf */
/* Der Verlauf reicht nach oben unter den Seitenkopf, damit Kopf und Hero eine Fläche bilden. */
.hero-wrap { position: relative; overflow-x: clip; padding-bottom: 56px; }
.hero-bg { position: absolute; left: 0; right: 0; top: -320px; bottom: 0; z-index: -1; background: var(--gradient); clip-path: polygon(0 0, 100% 0, 100% 64%, 0 100%); }
.hero { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 56px; padding-top: clamp(32px, 6vw, 80px); }
.hero-text { flex: 1 1 500px; min-width: 0; padding-top: 8px; }
.hero h1 { font-weight: 800; font-size: clamp(42px, 5.8vw, 80px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.hero .lead { margin-top: 24px; max-width: 30em; font-size: 19px; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-preview { position: relative; flex: 1 1 400px; min-width: 0; max-width: 470px; padding-bottom: 40px; }
.float-badge { position: absolute; left: -28px; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -20px rgba(26, 21, 48, .35); font-size: 14px; }
.icon-box { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #EDE9FE; color: var(--violet); }

/* Karten und Kacheln */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-elevated { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 16px; border-radius: 16px; }
.tile-violet { background: var(--violet-tint); }
.tile-pink { background: var(--pink-tint); }
.tile-peach { background: var(--peach-tint); }
.tile-sky { background: var(--sky-tint); }
.label { font-size: 13px; color: var(--muted); }
.value { margin-top: 4px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.stat { padding: 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.stat .value { display: flex; align-items: center; gap: 8px; }
.status-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #22C55E; }
.status-dot.off { background: #EF4444; }
.status-dot.unknown { background: #A8A2BA; }

/* Abschnitte */
.section { padding-block: clamp(72px, 9vw, 112px); }
.section-title { max-width: 16em; font-weight: 800; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
.section-lead { margin-top: 14px; max-width: 34em; color: var(--muted); }
.center { text-align: center; }
.center .section-title, .center .section-lead { margin-inline: auto; }
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 52px; }
.feature { padding: 30px; border: 1px solid var(--line); border-radius: 22px; }
.feature .dot { display: block; width: 44px; height: 44px; border-radius: 14px; }
.feature h3 { margin-top: 22px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.slant { position: relative; padding-block: clamp(80px, 10vw, 128px); }
.slant::before { content: ""; position: absolute; inset: 0; background: var(--gradient-soft); clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%); }
.slant > * { position: relative; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.split > :first-child { flex: 1 1 380px; min-width: 0; }
.split > :last-child { flex: 1.3 1 480px; min-width: 0; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(40px, 6vw, 72px); border-radius: 28px; background: var(--gradient); }

/* Preise */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: center; margin-top: 52px; }
.price-card { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.price-card-featured { padding: 2px; border-radius: 26px; background: var(--gradient-strong); }
.price-card-featured > div { padding: 40px 34px; border-radius: 24px; background: #fff; }
.price-card h3, .price-card-featured h3 { font-size: 19px; font-weight: 700; }
.price { margin-top: 16px; font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.04em; }
.price small { font-weight: 500; font-size: 15px; letter-spacing: 0; color: var(--muted); }
.price-card ul, .price-card-featured ul { margin: 22px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 15px; }

/* Domain-Suche */
.domain-search { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 660px; }
.domain-search .input { flex: 1 1 260px; }
.domain-results { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 0; padding: 0; max-width: 760px; list-style: none; }
.domain-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.domain-result .name { font-size: 17px; font-weight: 700; word-break: break-all; }

/* Status-Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge-warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge-danger { background: var(--danger-bg); color: var(--danger-fg); }
.badge-info { background: var(--info-bg); color: var(--info-fg); }
.badge-muted { background: var(--muted-bg); color: var(--muted-fg); }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-size: 14px; font-weight: 600; }
.input { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: #FBFAFE; color: var(--ink); font: inherit; }
textarea.input { min-height: 130px; padding: 12px 16px; resize: vertical; }
select.input { padding-right: 36px; }
.input:focus { border-color: var(--violet); background: #fff; }
.input[aria-invalid="true"] { border-color: #DC2626; }
.field-error { color: #B91C1C; font-size: 14px; }
.help { color: var(--muted); font-size: 13px; }
.checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--violet); }
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--violet); background: var(--violet-tint); }
.choice input { margin-top: 5px; accent-color: var(--violet); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; margin-bottom: 10px; }

/* Hinweise */
.flash { padding: 14px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.flash-ok { background: var(--ok-bg); color: var(--ok-fg); }
.flash-error { background: var(--danger-bg); color: var(--danger-fg); }
.flash-info { background: var(--violet-tint); color: var(--violet-dark); }

/* Tabellen und Listen */
.table-wrap { position: relative; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid #F3F1F8; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .text-right { text-align: right; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 14px 16px; border-radius: 16px; background: #F7F5FC; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 13px 0; border-bottom: 1px solid #F1EEF7; }
.list-plain li:last-child { border-bottom: 0; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 24px; margin: 0; }
.dl dt { font-size: 13px; color: var(--muted); }
.dl dd { margin: 2px 0 0; font-weight: 600; }
.empty { padding: 24px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); text-align: center; }

/* Kundenbereich und Admin-Bereich */
.panel { display: flex; flex-wrap: wrap; min-height: 100vh; background: var(--bg-soft); }
.sidebar { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px; background: #fff; border-right: 1px solid #EFECF6; }
.sidebar .brand { padding: 0 8px; font-size: 18px; }
.side-nav { position: relative; display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; color: var(--text); text-decoration: none; }
.side-nav a:hover { background: #F7F5FC; color: var(--ink); }
.side-nav a.active { background: #F1ECFF; color: #5B21B6; }
.side-nav .count { padding: 1px 8px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 12px; }
.side-section { margin: 10px 14px 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.side-help { margin-top: auto; padding: 2px; border-radius: 20px; background: var(--gradient-strong); }
.side-help > div { padding: 16px; border-radius: 18px; background: #fff; }
.panel-main { flex: 999 1 560px; min-width: 0; }
.panel-head { padding: 28px clamp(16px, 3vw, 40px) 72px; background: var(--gradient); }
.panel-head h1 { font-weight: 800; font-size: 32px; letter-spacing: -.04em; }
.panel-head .row-between { align-items: center; }
.panel-body { display: flex; flex-direction: column; gap: 20px; margin-top: -48px; padding: 0 clamp(16px, 3vw, 40px) 48px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }

/* Anmeldung */
.auth-page { display: flex; flex-direction: column; min-height: 100vh; background: var(--gradient); }
.auth-page > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px clamp(20px, 4vw, 40px); }
.auth-page > header a:not(.brand) { color: var(--ink); font-weight: 600; font-size: 15px; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 20px 72px; }
.auth-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -.04em; }
.auth-logo { display: block; width: 72px; height: 74px; margin: 0 auto; background: url('../img/blume.png') center / contain no-repeat; }

/* Fußzeile */
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--muted); }

/* Rechtliche Seiten */
.prose { padding-block: 40px 80px; }
.prose > * { max-width: 760px; }
.prose h1 { font-weight: 800; font-size: 40px; letter-spacing: -.04em; }
.prose h2 { margin-top: 32px; font-size: 22px; }
.prose p, .prose ul { margin-top: 12px; color: var(--text); }
.prose .flash { margin-top: 20px; }

/* Seitenwechsel */
.pagination { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* Ergänzungen */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* Testsystem (nur mit PORTAL_TESTMODUS=true): auffällig anders als das echte Portal */
.testmode-bar { position: relative; z-index: 3; padding: 9px clamp(20px, 4vw, 40px); background: var(--warn-bg); color: var(--warn-fg); border-bottom: 1px solid #FCD34D; font-size: 14px; line-height: 1.45; text-align: center; }
.testmode-bar a { color: inherit; font-weight: 700; }
.testmode-bar a:hover { color: var(--ink); }
.section-tight { padding-block: 0 clamp(56px, 7vw, 88px); }
.section-end { padding-bottom: clamp(72px, 9vw, 112px); }
.domain-box { padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 28px; background: var(--bg-soft); }
.domain-box .domain-search { margin-top: 24px; }
.input-lg { min-height: 54px; font-size: 17px; }
.input-sm { min-height: 40px; width: auto; padding: 0 12px; font-size: 14px; }
.preview-table { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.preview-table-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #F1EEF7; }
.preview-table .list-plain { padding: 4px 22px 14px; font-size: 15px; }
.price-request { font-size: 30px; }
.page-band { position: relative; padding: 16px 0 64px; }
.page-band::before { content: ""; position: absolute; left: 0; right: 0; top: -320px; bottom: 0; z-index: -1; background: var(--gradient); clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%); }
.page-title { font-weight: 800; font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -0.045em; }
.panel-sub { margin-top: 4px; color: var(--text); }
.btn-text { padding: 6px 2px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.btn-text:hover { color: var(--violet); }
.stat-link { display: block; color: inherit; text-decoration: none; }
.stat-link:hover { color: inherit; box-shadow: 0 0 0 2px var(--violet-tint), var(--shadow-sm); }
.card-subtitle { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.note { padding: 14px 16px; border-radius: 14px; background: var(--violet-tint); color: var(--violet-dark); }
.pay-box { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--peach-tint); }
.pay-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 18px; margin: 10px 0 0; font-size: 14px; }
.pay-data dt { color: var(--muted); font-size: 12px; }
.pay-data dd { margin: 0; font-weight: 700; word-break: break-word; }
.thread { padding: 16px; border-radius: 16px; background: #F7F5FC; }
.reply { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--violet); border-radius: 0 12px 12px 0; background: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.tab:hover { background: #F7F5FC; color: var(--ink); }
.tab.active { background: #F1ECFF; color: #5B21B6; }
.list-item-stack { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
details > summary { cursor: pointer; color: var(--violet); font-size: 14px; font-weight: 700; }
details > summary:hover { color: var(--violet-dark); }
details[open] > summary { margin-bottom: 4px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.steps li::marker { font-weight: 700; color: var(--violet); }
.items { display: flex; flex-direction: column; gap: 12px; }
.item-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
.user-chip form { margin: 0; }
.card-head a, .side-help a, a.stat-link { text-decoration: none; }
.card-head a:hover, .side-help a:hover { text-decoration: underline; }
a.muted { text-decoration-color: rgba(91, 86, 112, .35); text-underline-offset: 3px; }
a.muted:hover { color: var(--violet); text-decoration-color: currentColor; }

@media (max-width: 860px) {
  .sidebar { flex-basis: 100%; gap: 12px; padding: 14px 12px; border-right: 0; border-bottom: 1px solid #EFECF6; }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: thin; }
  .side-nav a { flex: none; }
  .side-help { display: none; }
}

@media (max-width: 640px) {
  .float-badge { left: 0; }
  .stat { padding: 16px; }
  .stat .value { font-size: 19px; }
  .panel-head h1 { font-size: 28px; }
  .item-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .item-row > :first-child { grid-column: 1 / -1; }
}

/* Server-Verwaltung */
.server-box { margin: 10px 0 4px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.server-box .row { gap: 8px; }
.log { max-height: 280px; overflow: auto; margin: 8px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #EDEBF5; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.access-box { padding: 16px 18px; border-radius: 16px; background: var(--violet-tint); }
.secret { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 8px; background: #fff; font-size: 15px; letter-spacing: .02em; user-select: all; }
.mb-3 { margin-bottom: 24px; }

/* Hilfsklassen: stehen am Ende, damit sie Abstände der Komponenten überschreiben */
.muted { color: var(--muted); }
.small { font-size: 14px; }
.strong { font-weight: 700; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.block { display: block; }

/* ---------------------------------------------------------------------------
   Hell/Dunkel. Dunkel ist Standard (data-theme="dark" im <html>).
   --------------------------------------------------------------------------- */
:root { --peach-ink: #9A3412; }

.theme-toggle { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--violet); color: var(--violet); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F1EFFA;
  --text: #C9C4DC;
  --muted: #A49EBB;
  --line: #2A2740;
  --line-strong: #39355A;
  --bg: #0F0D18;
  --bg-soft: #131120;
  --surface: #1A1729;
  --surface-2: #221E35;
  --violet: #A78BFA;
  --violet-dark: #C4B5FD;
  --violet-tint: #26204A;
  --pink-tint: #351C2E;
  --peach-tint: #33241A;
  --sky-tint: #152A3A;
  --peach-ink: #FDBA74;
  --ok-bg: #12351F;     --ok-fg: #86EFAC;
  --warn-bg: #3A2D0E;   --warn-fg: #FCD34D;
  --danger-bg: #3D1719; --danger-fg: #FCA5A5;
  --info-bg: #0F2E42;   --info-fg: #7DD3FC;
  --muted-bg: #2A2740;  --muted-fg: #C9C4DC;
  --gradient: linear-gradient(118deg, #1D1740 0%, #2B1534 34%, #2E1B18 62%, #0F2438 100%);
  --gradient-soft: linear-gradient(118deg, #18142F 0%, #22132A 45%, #111D30 100%);
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .8);
  --shadow-sm: 0 20px 40px -24px rgba(0, 0, 0, .75);
}

:root[data-theme="dark"] .site-nav a { color: var(--text); }
:root[data-theme="dark"] .site-nav a:hover { color: var(--violet); }

/* Buttons */
:root[data-theme="dark"] .btn-primary { background: #7C3AED; color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { background: #6D28D9; color: #fff; }
:root[data-theme="dark"] .btn-dark { background: #F1EFFA; color: #17132B; }
:root[data-theme="dark"] .btn-dark:hover { background: #fff; color: #17132B; }
:root[data-theme="dark"] .btn-light { background: var(--surface-2); color: var(--ink); }
:root[data-theme="dark"] .btn-ghost { background: rgba(255, 255, 255, .08); color: var(--ink); }
:root[data-theme="dark"] .btn-ghost:hover { background: rgba(255, 255, 255, .16); color: var(--ink); }

/* Flächen, die im hellen Design weiß sind */
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .card-elevated,
:root[data-theme="dark"] .stat,
:root[data-theme="dark"] .price-card,
:root[data-theme="dark"] .price-card-featured > div,
:root[data-theme="dark"] .domain-result,
:root[data-theme="dark"] .choice,
:root[data-theme="dark"] .float-badge,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .preview-table,
:root[data-theme="dark"] .side-help > div,
:root[data-theme="dark"] .server-box,
:root[data-theme="dark"] .reply { background: var(--surface); }
:root[data-theme="dark"] .choice:has(input:checked) { background: var(--violet-tint); }
:root[data-theme="dark"] .sidebar { background: var(--surface); border-color: var(--line); }

/* Formulare */
:root[data-theme="dark"] .input { background: #131020; color: var(--ink); }
:root[data-theme="dark"] .input:focus { background: #17132B; }
:root[data-theme="dark"] .input::placeholder { color: #7F7997; }
:root[data-theme="dark"] .input[aria-invalid="true"] { border-color: #F87171; }
:root[data-theme="dark"] .field-error { color: #FCA5A5; }
:root[data-theme="dark"] .secret { background: #131020; }

/* Listen, Tabellen, Navigation */
:root[data-theme="dark"] .icon-box { background: var(--violet-tint); }
:root[data-theme="dark"] .list-item,
:root[data-theme="dark"] .thread,
:root[data-theme="dark"] .side-nav a:hover,
:root[data-theme="dark"] .tab:hover { background: var(--surface-2); color: var(--ink); }
:root[data-theme="dark"] .side-nav a.active,
:root[data-theme="dark"] .tab.active { background: var(--violet-tint); color: var(--violet-dark); }
:root[data-theme="dark"] .side-nav .count { background: #7C3AED; }
:root[data-theme="dark"] .table td,
:root[data-theme="dark"] .list-plain li,
:root[data-theme="dark"] .preview-table-head { border-color: var(--line); }
:root[data-theme="dark"] .avatar { background: #7C3AED; color: #fff; }
:root[data-theme="dark"] .skip-link,
:root[data-theme="dark"] .skip-link:focus { background: #F1EFFA; color: #17132B; }
:root[data-theme="dark"] .log { background: #07060D; color: #EDEBF5; }
:root[data-theme="dark"] .testmode-bar { border-color: #7C5E10; }
:root[data-theme="dark"] .status-dot.unknown { background: #6F6987; }
:root[data-theme="dark"] a.muted { text-decoration-color: rgba(164, 158, 187, .4); }

/* Eigenes Logo oben links */
.brand-logo img { height: 60px; width: auto; max-width: none; }
.brand-logo .logo-for-light { display: none; }
:root[data-theme="light"] .brand-logo .logo-for-dark { display: none; }
:root[data-theme="light"] .brand-logo .logo-for-light { display: block; }
.sidebar .brand-logo img { height: 66px; }
@media (max-width: 860px) { .sidebar .brand-logo img { height: 52px; } }
@media (max-width: 640px) { .brand-logo img { height: 52px; } }
