/* ==========================================================================
   Exception-Host Kundenpanel
   Farben, Radien und Schrift folgen exception-host.com (dunkel als Standard,
   hell per Umschalter). Keine externen Schriften oder Bibliotheken.
   ========================================================================== */

:root {
  color-scheme: dark;
  --page: #090c11;
  --surface: #0e1219;
  --surface-2: #121720;
  --surface-3: #171d27;
  --text: #f2f4f7;
  --text-soft: #c7ced8;
  --muted: #8c97a7;
  --muted-dark: #657080;
  --border: #222a36;
  --border-light: #303a48;
  --accent: #6fe0ca;
  --accent-hover: #84ead5;
  --accent-strong: #41c8ad;
  --accent-ink: #071512;
  --accent-soft: rgba(111, 224, 202, .1);
  --warning: #f4c76b;
  --warning-soft: rgba(244, 199, 107, .11);
  --success: #7ed99a;
  --success-soft: rgba(126, 217, 154, .11);
  --danger: #f08a8a;
  --danger-soft: rgba(240, 138, 138, .11);
  --danger-solid: #d9534f;
  --info: #7fb4f0;
  --info-soft: rgba(127, 180, 240, .11);
  --header: rgba(9, 12, 17, .94);
  --shadow: 0 24px 60px rgba(0, 0, 0, .42);
  --chart-1: #2aa38b;
  --sidebar-width: 240px;
  --topbar-height: 58px;
  --radius: 8px;
  --radius-sm: 6px;
}

html[data-theme="light"] {
  color-scheme: light;
  --page: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f0f3f6;
  --surface-3: #e7ecf1;
  --text: #111820;
  --text-soft: #334155;
  --muted: #64748b;
  --muted-dark: #7a8796;
  --border: #dde4eb;
  --border-light: #c8d2dd;
  --accent: #148f79;
  --accent-hover: #0f7967;
  --accent-strong: #0f7967;
  --accent-ink: #ffffff;
  --accent-soft: rgba(20, 143, 121, .09);
  --warning: #a86708;
  --warning-soft: rgba(168, 103, 8, .09);
  --success: #22834b;
  --success-soft: rgba(34, 131, 75, .09);
  --danger: #b3261e;
  --danger-soft: rgba(179, 38, 30, .07);
  --danger-solid: #b3261e;
  --info: #1d6fb8;
  --info-soft: rgba(29, 111, 184, .08);
  --header: rgba(255, 255, 255, .92);
  --shadow: 0 20px 50px rgba(15, 23, 42, .14);
  --chart-1: #148f79;
}

/* --- Grundlagen ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.icon { flex: 0 0 auto; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.soft { color: var(--text-soft); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .93em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.positive { color: var(--success); }
.negative { color: var(--danger); }
.break { overflow-wrap: anywhere; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.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 --------------------------------------------------------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.sidebar-brand {
  flex: 0 0 auto;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 760; letter-spacing: -.02em; }
.brand img { height: 30px; width: auto; }
html[data-theme="light"] .brand img { filter: brightness(.2) saturate(.8); }
.brand-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink);
}

.sidebar-nav { flex: 1 1 auto; overflow-y: auto; padding: 8px 10px 20px; scrollbar-width: thin; scrollbar-color: var(--border-light) transparent; }
.nav-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 16px 6px 5px;
  color: var(--muted-dark);
  font-size: 12.5px; font-weight: 500;
}
.nav-label:first-child { margin-top: 10px; }
.nav-label-hint { overflow: hidden; color: var(--muted-dark); font-size: 10.5px; opacity: .8; text-overflow: ellipsis; white-space: nowrap; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 0 6px; margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: 13.5px; font-weight: 600;
  transition: color .15s ease, background-color .15s ease;
}
.nav-icon {
  width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 6px; background: var(--surface-3); color: var(--muted);
  transition: color .15s ease, background-color .15s ease;
}
.nav-text { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; gap: 8px; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item:hover .nav-icon { color: var(--text-soft); }
.nav-item.is-active { background: var(--surface-3); color: var(--text); }
.nav-item.is-active .nav-icon { background: var(--accent-soft); color: var(--accent); }
.nav-external { margin-left: auto; color: var(--muted-dark); opacity: .8; }
.nav-item:hover .nav-external { color: var(--accent); opacity: 1; }
.nav-item .count {
  margin-left: auto; min-width: 21px; padding: 1px 6px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 800; text-align: center;
}
.nav-item.is-sub { min-height: 34px; padding-left: 40px; font-size: 13px; font-weight: 500; color: var(--muted); }
.nav-item.is-sub:hover, .nav-item.is-sub.is-active { color: var(--text); }

.sidebar-foot { flex: 0 0 auto; padding: 12px 18px; border-top: 1px solid var(--border); color: var(--muted-dark); font-size: 11.5px; }
.sidebar-foot a { display: inline-flex; align-items: center; gap: 7px; }
.sidebar-foot a:hover { color: var(--text-soft); }

.main { min-height: 100vh; margin-left: var(--sidebar-width); display: flex; flex-direction: column; transition: margin-left .2s ease; }
.sidebar { transition: transform .2s ease; }

/* Menü auf großen Bildschirmen ausblenden (Knopf oben links, wird gemerkt) */
@media (min-width: 961px) {
  html.nav-collapsed .sidebar { transform: translateX(-100%); }
  html.nav-collapsed .main { margin-left: 0; }
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  min-height: var(--topbar-height);
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: var(--header);
  backdrop-filter: blur(16px);
}
.topbar-spacer { flex: 1; }

.topbar-search { position: relative; width: min(260px, 32vw); margin-left: 4px; }
.topbar-search .input { min-height: 36px; padding: 6px 38px 6px 12px; background: var(--surface); font-size: 13px; }
.topbar-search .input::-webkit-search-cancel-button { display: none; }
.topbar-search button {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 30px; height: 28px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer;
}
.topbar-search button:hover { color: var(--accent); }

.balance {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 38px; padding: 0 4px 0 13px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
}
.balance small { color: var(--muted); font-size: 12px; }
.balance strong { font-weight: 700; letter-spacing: -.01em; }
.balance .add {
  width: 29px; height: 29px; display: grid; place-items: center;
  border-radius: 5px; background: var(--accent); color: var(--accent-ink);
}
.balance .add:hover { background: var(--accent-hover); }

.icon-button {
  width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-soft); cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.icon-button.small { width: 32px; height: 32px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.user-menu { position: relative; }
.user-button {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 38px; padding: 0 10px 0 5px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 600;
}
.user-button:hover { border-color: var(--muted-dark); }
.avatar {
  width: 27px; height: 27px; display: grid; place-items: center;
  border-radius: 5px; background: var(--surface-3); color: var(--accent);
  font-size: 12px; font-weight: 800; text-transform: uppercase;
}
.dropdown {
  position: absolute; top: calc(100% + 9px); right: 0; width: 230px; padding: 8px;
  border: 1px solid var(--border-light); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.dropdown-head { padding: 8px 10px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.dropdown-head strong { display: block; font-size: 13px; }
.dropdown-head span { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.dropdown-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-soft); cursor: pointer;
  font-size: 13px; font-weight: 600; text-align: left;
}
.dropdown-item:hover { background: var(--surface-2); color: var(--text); }
.dropdown-item .icon { color: var(--muted-dark); }

.content { flex: 1 1 auto; width: 100%; max-width: 1920px; margin: 0 auto; padding: 22px 24px 44px; }

.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 16px 24px; border-top: 1px solid var(--border);
  color: var(--muted-dark); font-size: 12px;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a:hover { color: var(--text-soft); }

.banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 20px; background: var(--warning-soft); color: var(--warning);
  border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600;
}

.backdrop { display: none; }

/* --- Seitenkopf ---------------------------------------------------------- */

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.page-head h1, .page-title { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; }
.page-title { margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; max-width: 720px; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.overline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px;
  color: var(--muted); font-size: 12px; font-weight: 500;
}
.overline a { color: var(--muted); }
.overline a:hover { color: var(--accent); text-decoration: underline; }

.section-title { margin: 28px 0 12px; font-size: 15px; letter-spacing: -.01em; }
.section-title:first-child { margin-top: 0; }

/* --- Raster -------------------------------------------------------------- */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.grid-main { grid-template-columns: 380px minmax(0, 1fr); align-items: start; }
.stack { display: grid; gap: 16px; align-content: start; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 22px; }
.mb { margin-bottom: 16px; }
.mb-0 { margin-bottom: 0; }

/* --- Karten -------------------------------------------------------------- */

.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.card-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.card-head .hint { color: var(--muted); font-size: 12px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 6px 18px; }
.card-body > :last-child { margin-bottom: 0; }
.card-foot { padding: 13px 18px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface-2); }
.card.accent { border-color: color-mix(in srgb, var(--accent) 48%, transparent); }

.stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.stat-icon {
  width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--accent);
}
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { margin-top: 1px; font-size: 19px; font-weight: 720; letter-spacing: -.02em; line-height: 1.25; }
.stat-value small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.stat-note { color: var(--muted-dark); font-size: 11px; white-space: nowrap; }

.rows > div, .rows > li {
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.rows > :last-child { border-bottom: 0; }
.rows dt, .rows .key { color: var(--muted); flex: 0 0 auto; }
.rows dd, .rows .val { margin: 0; color: var(--text-soft); font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.empty { padding: 36px 18px; text-align: center; color: var(--muted); }
.empty .icon { margin: 0 auto 14px; color: var(--muted-dark); }
.empty h3 { margin-bottom: 6px; color: var(--text); font-size: 16px; }
.empty p { max-width: 420px; margin: 0 auto 18px; }

/* --- Buttons ------------------------------------------------------------- */

.button {
  min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 15px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 700; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled, .button.is-disabled { opacity: .45; pointer-events: none; }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border-color: var(--border-light); background: transparent; color: var(--text-soft); }
.button-secondary:hover { border-color: var(--muted-dark); background: var(--surface-2); color: var(--text); }
.button-quiet { border-color: var(--border); background: var(--surface); color: var(--text-soft); }
.button-quiet:hover { border-color: var(--border-light); color: var(--text); }
.button-danger { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--danger-soft); color: var(--danger); }
.button-danger:hover { background: var(--danger-solid); border-color: var(--danger-solid); color: #fff; }
.button-small { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.button-light { background: #fff; color: #161b33; }
.button-light:hover { background: #eef0ff; }
.button-block { width: 100%; }

/* --- Formulare ----------------------------------------------------------- */

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label, .label { color: var(--text-soft); font-size: 13px; font-weight: 600; }
.field .help { color: var(--muted); font-size: 12px; }

.input, .select, .textarea {
  width: 100%; min-height: 38px; padding: 7px 12px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: var(--page); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-dark); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted-dark); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input:disabled, .input[readonly], .select:disabled, .textarea[readonly] { background: var(--surface-2); color: var(--muted); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1 1 auto; min-width: 0; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 42px; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.check { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; color: var(--text-soft); font-size: 13px; line-height: 1.5; cursor: pointer; }
.check:last-child, .row > .check { margin-bottom: 0; }
.form-grid + .check { margin-top: 4px; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.check strong { display: block; color: var(--text); font-size: 14px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }

.search { position: relative; min-width: 240px; }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-dark); }
.search .input { padding-left: 40px; }

/* --- Tabellen ------------------------------------------------------------ */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  padding: 10px 18px; border-bottom: 1px solid var(--border);
  color: var(--muted-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-align: left; text-transform: uppercase; white-space: nowrap;
}
.table td { padding: 11px 18px; border-bottom: 1px solid var(--border); color: var(--text-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table td strong { color: var(--text); font-weight: 650; }
.table .right { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.table-compact th, .table-compact td { padding: 9px 12px; }
.table-compact th:first-child, .table-compact td:first-child { padding-left: 18px; }
.table-compact th:last-child, .table-compact td:last-child { padding-right: 18px; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.pagination nav { display: flex; gap: 6px; }

/* --- Kennzeichnungen ----------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px; border-radius: 99px;
  background: var(--surface-3); color: var(--text-soft);
  font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge.plain::before { display: none; }
.badge.is-loading::before { animation: pulse 1.1s ease-in-out infinite; }

@keyframes pulse { 50% { opacity: .25; } }

.notice {
  display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text-soft); font-size: 13px; line-height: 1.55;
}
.notice .icon { margin-top: 2px; color: var(--info); }
.notice.warning { border-color: color-mix(in srgb, var(--warning) 35%, transparent); background: var(--warning-soft); }
.notice.warning .icon { color: var(--warning); }
.notice.danger { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: var(--danger-soft); }
.notice.danger .icon { color: var(--danger); }
.notice.success { border-color: color-mix(in srgb, var(--success) 35%, transparent); background: var(--success-soft); }
.notice.success .icon { color: var(--success); }
.notice strong { color: var(--text); }
.notice:last-child { margin-bottom: 0; }

/* --- Meldungen (Toasts) -------------------------------------------------- */

.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 90; width: min(400px, calc(100vw - 44px)); display: grid; gap: 10px; }
.toast {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px;
  border: 1px solid var(--border-light); border-left: 3px solid var(--info); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.5; animation: toast-in .22s ease;
}
.toast .icon { margin-top: 2px; color: var(--info); }
.toast p { flex: 1; margin: 0; color: var(--text-soft); }
.toast-success { border-left-color: var(--success); }
.toast-success .icon { color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-error .icon { color: var(--danger); }
.toast-close { border: 0; padding: 2px; background: transparent; color: var(--muted-dark); cursor: pointer; }
.toast-close:hover { color: var(--text); }
.toast.is-leaving { opacity: 0; transform: translateX(12px); transition: opacity .2s ease, transform .2s ease; }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* --- Dialog -------------------------------------------------------------- */

dialog {
  width: min(560px, calc(100vw - 32px)); padding: 0;
  border: 1px solid var(--border-light); border-radius: 12px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(4, 6, 9, .68); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.dialog-head h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.dialog-body { padding: 20px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 12px 12px; }

/* --- Pakete (Bestellseiten) ---------------------------------------------- */

.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.package {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .15s ease, transform .15s ease;
}
.package:hover { border-color: var(--border-light); transform: translateY(-2px); }
.package.featured { border-color: color-mix(in srgb, var(--accent) 48%, transparent); }
.package-ribbon {
  min-height: 25px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px 9px 0 0; background: var(--accent-soft); color: var(--accent);
  font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.package-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 16px; border-bottom: 1px solid var(--border); }
.package-head h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.package-head small { display: block; margin-top: 3px; color: var(--muted-dark); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.package-price { text-align: right; white-space: nowrap; }
.package-price strong { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -.03em; }
.package-price span { display: block; color: var(--muted); font-size: 11px; }
.package-price s { color: var(--muted-dark); font-size: 12px; }
.package-body { display: flex; flex: 1; flex-direction: column; padding: 17px 18px 18px; }
.spec-label { margin-bottom: 9px; color: var(--muted-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.spec-list { display: grid; gap: 8px; margin-bottom: 16px; }
.spec-list li { display: grid; grid-template-columns: 17px 1fr; gap: 8px; align-items: start; color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.spec-list .icon { margin-top: 2px; color: var(--muted-dark); }
.spec-list .icon.accent { color: var(--accent); }
.package-form { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.package-form .field { margin-bottom: 11px; }
.package-desc { color: var(--text-soft); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.checklist { margin: 0; padding: 6px 22px 12px; list-style: none; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist li > div { display: grid; gap: 2px; }
.checklist strong { font-size: 14px; font-weight: 650; }
.checklist li > div > span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.checklist-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--warning-soft); color: var(--warning); }
.checklist li.is-done .checklist-mark { background: var(--success-soft); color: var(--success); }
.checklist li.is-done strong { color: var(--muted); font-weight: 600; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 12px; }
.select.select-auto { flex: 0 0 190px; width: 190px; }
.package-note { margin: auto 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.package { min-width: 0; }

.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .15s ease, transform .15s ease;
}
.choice:hover { border-color: var(--accent); transform: translateY(-2px); }
.choice h3 { margin: 0 0 3px; font-size: 17px; letter-spacing: -.02em; }
.choice p { margin: 0; color: var(--muted); font-size: 13px; }
.choice .price { text-align: right; white-space: nowrap; }
.choice .price small { display: block; color: var(--muted); font-size: 11px; }
.choice .price strong { font-size: 19px; letter-spacing: -.03em; }

/* --- Serververwaltung ---------------------------------------------------- */

.power { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.power .button { min-height: 48px; font-size: 13px; }

.meter { margin-bottom: 18px; }
.meter:last-child { margin-bottom: 0; }
.meter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.meter-head span { color: var(--muted); }
.meter-head strong { color: var(--text-soft); font-weight: 650; }
progress {
  appearance: none; display: block; width: 100%; height: 7px;
  border: 0; border-radius: 99px; overflow: hidden; background: var(--surface-3); color: var(--accent);
}
progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; transition: width .4s ease; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
progress.is-high::-webkit-progress-value { background: var(--warning); }
progress.is-high::-moz-progress-bar { background: var(--warning); }

.secret { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.secret code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.secret button { border: 0; padding: 5px; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.secret button:hover { background: var(--surface-3); color: var(--accent); }

.ip-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip { padding: 3px 9px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--text-soft); }

.total { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.total small { color: var(--muted); font-size: 12px; }
.total strong { font-size: 26px; letter-spacing: -.04em; }

/* --- Tickets ------------------------------------------------------------- */

.thread { display: grid; gap: 14px; }
.message { max-width: min(720px, 88%); padding: 15px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.message.is-own { justify-self: end; border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); background: var(--accent-soft); }
.message-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.message-meta strong { color: var(--text); font-size: 13px; }
.message-text { color: var(--text-soft); overflow-wrap: anywhere; }
.thread-log { display: flex; align-items: center; gap: 12px; color: var(--muted-dark); font-size: 12px; }
.thread-log::before, .thread-log::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.channel { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.channel h3 { margin: 0; font-size: 16px; }
.channel p { margin: 0; color: var(--muted); font-size: 13px; }
.channel .value { color: var(--text-soft); font-weight: 600; overflow-wrap: anywhere; }
.channel .button { margin-top: auto; align-self: flex-start; }

/* --- Anmeldeseiten ------------------------------------------------------- */

.auth { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.auth::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--text) 3%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 3%, transparent) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 72%);
}
.auth-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; }
.auth-main { position: relative; flex: 1; display: grid; place-items: center; padding: 24px 20px 56px; }
.auth-card { width: min(440px, 100%); border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card.wide { width: min(520px, 100%); }
.auth-card-head { padding: 28px 30px 0; }
.auth-card-head h1 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.035em; }
.auth-card-head p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-card-body { padding: 24px 30px 28px; }
.auth-card-foot { padding: 17px 30px; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; text-align: center; }
.auth-foot { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 20px; color: var(--muted-dark); font-size: 12px; }
.auth-foot a:hover { color: var(--text-soft); }
.auth-stack { width: min(440px, 100%); display: grid; gap: 14px; }
.auth-stack.wide { width: min(520px, 100%); }
.auth-stack .auth-card { width: 100%; }
.auth-stack .notice { margin: 0; background: var(--surface); }

.error-code { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .12em; }

/* --- Reiter --------------------------------------------------------------- */

.tabs {
  display: flex; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 1 0; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: 13.5px; font-weight: 650; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab.is-active { background: var(--accent); color: var(--accent-ink); }
.tab.is-active .icon { color: inherit; }
.tab .badge { font-size: 11px; padding: 1px 8px; }
.tab.is-active .badge { background: color-mix(in srgb, var(--accent-ink) 14%, transparent); color: var(--accent-ink); }
.tab-count {
  min-width: 22px; padding: 1px 7px; border-radius: 99px;
  background: var(--surface-3); color: var(--text-soft); font-size: 11px; font-weight: 800; text-align: center;
}
.tab.is-active .tab-count { background: color-mix(in srgb, var(--accent-ink) 14%, transparent); color: var(--accent-ink); }
.tab-panel { margin-top: 14px; scroll-margin-top: 80px; }
.stack > .tab-panel, .stack > .tabs { margin-top: 0; }

/* --- Dashboard ------------------------------------------------------------ */

.profile { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; padding: 22px 28px; margin-bottom: 14px; }
.profile-avatar {
  width: 104px; height: 104px; flex: 0 0 auto; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%), var(--surface-3);
  color: var(--accent);
  font-size: 34px; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase;
}
.profile-main { flex: 1 1 320px; min-width: 0; }
.profile-name { display: flex; align-items: center; gap: 9px; margin: 0 0 4px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.verified { width: 21px; height: 21px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.profile-id { display: flex; align-items: center; gap: 4px; margin: 0 0 9px; color: var(--text-soft); font-size: 13px; }
.profile-id strong { color: var(--text); font-weight: 650; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: 13px; }
.profile-meta li { display: inline-flex; align-items: center; gap: 7px; }
.profile-meta .icon { color: var(--muted-dark); }
.profile-meta strong { color: var(--text); font-weight: 650; }
.profile-actions { display: flex; gap: 6px; align-self: flex-end; }

.search-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-soft); font-size: 13px;
}
.search-note .icon { color: var(--accent); }
.search-note .link { margin-left: auto; }

.tabs-products .tab { min-height: 38px; }

.product-list { display: grid; gap: 10px; }
.product-row {
  --row-a: #12786b; --row-b: #1f5f9e; --row-c: #4b45a8;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(200px, 1.5fr) repeat(4, minmax(110px, 1fr)) minmax(120px, auto);
  align-items: center; gap: 16px; min-height: 74px; padding: 12px 22px 12px 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, var(--row-a) 0%, var(--row-b) 55%, var(--row-c) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset;
  transition: transform .15s ease, filter .15s ease;
}
.product-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 78% -40%, rgba(255, 255, 255, .22), transparent 42%),
    radial-gradient(circle at 34% 150%, rgba(255, 255, 255, .14), transparent 46%),
    radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.3px) 0 0 / 14px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 75%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 75%, transparent 100%);
}
a.product-row:hover { transform: translateY(-1px); filter: brightness(1.07) saturate(1.05); }
.product-row.section-web { --row-a: #1c5ea6; --row-b: #3b4fb6; --row-c: #6943ad; }
.product-row.section-service { --row-a: #4743a8; --row-b: #6e43aa; --row-c: #9d3f8c; }
.product-row.tone-warning { --row-a: #8c5a12; --row-b: #7b3f1e; --row-c: #66292f; }
.product-row.tone-info { --row-a: #334155; --row-b: #3b4a66; --row-c: #44466e; }

.product-name { display: flex; align-items: center; gap: 13px; min-width: 0; }
.product-name strong { display: block; font-size: 14px; letter-spacing: -.01em; color: #fff; }
.product-name small { display: block; color: rgba(255, 255, 255, .7); font-size: 12px; }
.product-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .22); }
.tone-warning .product-dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, .24); }
.tone-info .product-dot { background: #93c5fd; box-shadow: 0 0 0 4px rgba(147, 197, 253, .22); }

.product-fact { min-width: 0; text-align: center; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.product-fact small { display: block; margin-bottom: 3px; color: #fff; font-size: 12.5px; font-weight: 700; }
.product-fact em { font-style: normal; white-space: nowrap; }
.state-pill {
  display: inline-block; padding: 1px 9px; border-radius: 4px;
  background: #22c55e; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1.6;
}
.tone-warning .state-pill { background: #f59e0b; color: #1f1300; }
.tone-info .state-pill { background: #3b82f6; }
.tone-neutral .state-pill { background: rgba(255, 255, 255, .22); }

.product-action { display: flex; justify-content: flex-end; }
.product-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 5px; background: rgba(6, 8, 12, .86); color: #fff;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
a.product-row:hover .product-button { background: #000; }
.product-button.is-muted { background: rgba(6, 8, 12, .45); color: rgba(255, 255, 255, .8); }

.product-empty {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 74px; padding: 14px 18px;
  border: 1px dashed var(--border-light); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--muted); font-size: 13px; text-align: center;
}
.product-empty .icon { color: var(--muted-dark); }

.order-more {
  display: grid; justify-items: center; gap: 10px;
  margin-top: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 12.5px; text-align: center;
}
.order-more .row { justify-content: center; gap: 6px; }

.dashboard-bottom { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 18px; margin-top: 22px; align-items: stretch; }
.dashboard-bottom > .stack { gap: 12px; }
.dashboard-bottom .stat { min-height: 76px; }
.stat-value.mono { font-size: 17px; letter-spacing: .02em; }
.stat-value.is-text { font-size: 15px; letter-spacing: 0; font-weight: 650; }
.stat form { display: flex; }

.community {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; min-height: 252px; padding: 30px 26px;
  border-radius: var(--radius);
  background: linear-gradient(115deg, #2f3fa6 0%, #4d4fc4 42%, #5b46b5 70%, #217e8f 100%);
  color: #fff; text-align: center;
}
.community-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.community-body { max-width: 640px; }
.community h2 { margin: 0 0 8px; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.community p { margin: 0 0 18px; color: rgba(255, 255, 255, .85); font-size: 14px; }

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px;
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: radial-gradient(ellipse at 100% 0%, var(--accent-soft), transparent 62%), var(--surface);
}
.cta > div { flex: 1 1 320px; }
.cta h2 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; }
.cta p { margin: 0; color: var(--text-soft); font-size: 13.5px; }

.disclosure > summary { cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
details.card.disclosure:not([open]) > summary { border-bottom: 0; }

/* --- Server-Verwaltung ---------------------------------------------------- */

.facts {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: var(--radius);
  background: linear-gradient(100deg, var(--accent-soft), transparent 70%), var(--surface);
}
.facts > div { min-width: 0; padding: 17px 20px; border-right: 1px solid var(--border); text-align: center; }
.facts > div:last-child { border-right: 0; }
.facts small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.facts strong { display: block; font-size: 14px; font-weight: 650; }
.facts .tiny { display: block; color: var(--muted); }

.control { padding: 18px; }
.control-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.control-identity { padding: 22px 6px 20px; text-align: center; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.control-icon {
  width: 58px; height: 58px; display: inline-grid; place-items: center; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); color: var(--accent);
}
.control-identity h2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 19px; letter-spacing: -.02em; }
.control-identity p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.control-actions { display: grid; gap: 8px; }
.control-hint { margin: 14px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.link-button { display: inline-grid; place-items: center; padding: 4px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.link-button:hover { background: var(--surface-3); color: var(--accent); }

.meter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card.meter { margin: 0; padding: 16px 18px; }

.timeline { padding: 6px 22px 10px; }
.timeline li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline strong { color: var(--text); font-weight: 650; }
.timeline time { color: var(--muted); font-size: 12px; white-space: nowrap; }

.rule { height: 1px; margin: 20px 0; border: 0; background: var(--border); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { position: relative; padding-left: 38px; counter-increment: step; display: grid; gap: 2px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800;
}
.steps strong { color: var(--text); font-size: 14px; font-weight: 650; }

/* --- Bestellseite, Auswahlkacheln, Zusammenfassung ------------------------ */

.step {
  width: 24px; height: 24px; display: inline-grid; place-items: center; margin-right: 6px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800;
}
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.option-grid.wide { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.option-grid.methods { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.option { position: relative; display: block; cursor: pointer; }
.option-body {
  height: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: var(--page);
  color: var(--text-soft); font-size: 14px; font-weight: 600;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.option-body.column { flex-direction: column; align-items: flex-start; gap: 3px; }
.option-body strong { color: var(--text); font-size: 14px; }
.option-body small { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.option-body .icon { color: var(--muted-dark); }
.option:hover .option-body { border-color: var(--muted-dark); }
.option input:checked + .option-body { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.option input:checked + .option-body .icon { color: var(--accent); }
.option input:focus-visible + .option-body { outline: 2px solid var(--accent); outline-offset: 2px; }

.summary.sticky { position: sticky; top: 90px; }
.summary-lines > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14px; }
.summary-lines dt { color: var(--text-soft); font-weight: 600; }
.summary-lines dt small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.summary-lines dd { color: var(--text); font-weight: 650; white-space: nowrap; }
.summary-lines .is-note dt, .summary-lines .is-note dd { color: var(--muted); font-weight: 500; font-size: 13px; }
.summary-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin: 8px 0 12px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.summary-total span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.summary-total strong { font-size: 26px; letter-spacing: -.04em; }
.summary .check { margin-top: 14px; }
.summary .button-block { margin-top: 6px; }

.pending-order {
  display: flex; align-items: center; gap: 13px; margin-bottom: 20px; padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: var(--radius-sm); background: var(--accent-soft);
}
.pending-order small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pending-order strong { display: block; font-size: 15px; }
.pending-order span { color: var(--text-soft); font-size: 13px; }

/* --- Guthaben aufladen ---------------------------------------------------- */

.method-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.method { position: relative; display: block; grid-column: span 3; cursor: pointer; }
.method:nth-child(-n+3) { grid-column: span 4; }
.method-tile {
  --tile-a: #334155; --tile-b: #475569;
  position: relative; overflow: hidden; height: 100%; min-height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(110deg, var(--tile-a), var(--tile-b));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.method:nth-child(-n+3) .method-tile { min-height: 70px; }
.method-text { display: grid; gap: 2px; min-width: 0; }
.method-text strong { font-size: 13.5px; font-weight: 700; }
.method-text small { color: rgba(255, 255, 255, .78); font-size: 11.5px; line-height: 1.35; }
.method-symbol { flex: 0 0 auto; color: rgba(255, 255, 255, .9); opacity: .85; }
.method-check {
  position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; display: none; place-items: center;
  border-radius: 50%; background: #fff; color: #0b1220;
}
.method:hover .method-tile { transform: translateY(-1px); filter: brightness(1.06); }
.method input:checked + .method-tile { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.method input:checked + .method-tile .method-check { display: grid; }
.method input:checked + .method-tile .method-symbol { visibility: hidden; }
.method input:focus-visible + .method-tile { outline: 2px solid var(--accent); outline-offset: 4px; }
.method-tile.tone-indigo { --tile-a: #3730a3; --tile-b: #4f46e5; }
.method-tile.tone-blue { --tile-a: #1d4f91; --tile-b: #1b8fd6; }
.method-tile.tone-red { --tile-a: #9f1d1d; --tile-b: #dc2626; }
.method-tile.tone-teal { --tile-a: #0f5f59; --tile-b: #0f9488; }
.method-tile.tone-pink { --tile-a: #8f1d55; --tile-b: #c0266d; }
.method-tile.tone-magenta { --tile-a: #7a1748; --tile-b: #a51e5b; }
.method-tile.tone-purple { --tile-a: #4c1d95; --tile-b: #6d28d9; }
.method-tile.tone-rose { --tile-a: #b2557a; --tile-b: #d98ba6; }
.method-tile.tone-dark { --tile-a: #111827; --tile-b: #374151; }
.method-tile.tone-green { --tile-a: #166534; --tile-b: #16a34a; }
.method-tile.tone-graphite { --tile-a: #1f2937; --tile-b: #4b5563; }
.method-tile.tone-amber { --tile-a: #b45309; --tile-b: #f59e0b; }
.method-tile.tone-violet { --tile-a: #3b1d8f; --tile-b: #7c3aed; }
.method-tile.tone-navy { --tile-a: #1e3a8a; --tile-b: #2563eb; }
.method-tile.tone-crimson { --tile-a: #881337; --tile-b: #e11d48; }
.method-tile.tone-sky { --tile-a: #0c4a6e; --tile-b: #0284c7; }
.method-logo { flex: 0 0 auto; max-width: 64px; max-height: 34px; object-fit: contain; }
.method input:checked + .method-tile .method-logo { visibility: hidden; }

.charge-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.charge-row .field { margin-bottom: 0; }
.charge-row + .help { margin: 7px 0 14px; }
.button-success { background: #22c55e; color: #052e14; }
.button-success:hover { background: #34d06c; }
html[data-theme="light"] .button-success { background: #16a34a; color: #fff; }
html[data-theme="light"] .button-success:hover { background: #15803d; }

/* --- Bestellseite (Server und weitere Produkte) ----------------------------- */

.mt-sm { margin-top: 8px; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 18px; align-items: start; }
.order-summary { position: sticky; top: calc(var(--topbar-height) + 16px); }
.order-tabs { display: flex; margin-bottom: 14px; }
.order-tabs span {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px;
  border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-size: 13.5px; font-weight: 650;
}

.os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.os-tile { position: relative; display: block; cursor: pointer; }
.os-body {
  --os-a: #334155; --os-b: #475569;
  position: relative; overflow: hidden; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(110deg, var(--os-a), var(--os-b));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.os-tile:hover .os-body { transform: translateY(-1px); filter: brightness(1.06); }
.os-tile input:checked + .os-body { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.os-tile input:focus-visible + .os-body { outline: 2px solid var(--accent); outline-offset: 4px; }
.os-name { font-size: 13.5px; font-weight: 650; }
.os-version {
  min-width: 0; max-width: 72%; min-height: 30px; padding: 3px 28px 3px 9px; appearance: none; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 5px;
  background-color: rgba(0, 0, 0, .28);
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  color: #fff; font-size: 12.5px; font-weight: 600;
}
.os-version:focus { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 1px; }
.os-version option { background: #111827; color: #fff; }
.os-mark {
  width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 19px; font-weight: 800;
}
.os-logo { flex: 0 0 auto; max-width: 54px; max-height: 42px; object-fit: contain; }
.os-check {
  position: absolute; top: -1px; left: -1px; width: 20px; height: 20px; display: none; place-items: center;
  border-radius: 6px 0 8px 0; background: #fff; color: #0b1220;
}
.os-tile input:checked + .os-body .os-check { display: grid; }
.os-debian .os-body { --os-a: #7d0026; --os-b: #c70a45; }
.os-ubuntu .os-body { --os-a: #a8360c; --os-b: #e95420; }
.os-windows .os-body { --os-a: #0b4f9c; --os-b: #0ea5e9; }
.os-almalinux .os-body { --os-a: #0b2f55; --os-b: #145d93; }
.os-rocky .os-body { --os-a: #0b5f45; --os-b: #10b981; }
.os-centos .os-body { --os-a: #5b2470; --os-b: #a53f8f; }
.os-fedora .os-body { --os-a: #1a3f78; --os-b: #3c6eb4; }
.os-alpine .os-body { --os-a: #0b4a6b; --os-b: #1e88c7; }
.os-arch .os-body { --os-a: #155e93; --os-b: #1793d1; }
.os-amazon .os-body { --os-a: #a85a00; --os-b: #f59e0b; }
.os-freebsd .os-body { --os-a: #7a0000; --os-b: #c40000; }
.os-gentoo .os-body { --os-a: #36305f; --os-b: #5b4f8a; }
.os-openbsd .os-body { --os-a: #8a6514; --os-b: #c99a2e; }
.os-opensuse .os-body { --os-a: #3f7a0b; --os-b: #73ba25; }
.os-oracle .os-body { --os-a: #8f2f22; --os-b: #e2513f; }
.os-proxmox .os-body { --os-a: #a8430c; --os-b: #e57000; }
.os-kali .os-body { --os-a: #111827; --os-b: #2f6ad9; }

.legal { margin-top: 18px; }
.legal > .label { display: block; margin-bottom: 8px; }
.legal .check { margin-bottom: 9px; }

.cost-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cost-head strong { font-size: 14.5px; letter-spacing: .02em; text-transform: uppercase; }
.cost-head span { font-weight: 700; white-space: nowrap; }
.cost-note { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.cost-specs { display: grid; gap: 5px; margin: 12px 0 0; }
.cost-specs li { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 12.5px; }
.cost-specs .icon {
  width: 16px; height: 16px; padding: 2px; flex: 0 0 auto; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
}
.cost-block { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.cost-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cost-row .select { flex: 1 1 auto; }
.cost-row strong { white-space: nowrap; }
.cost-row.is-small { color: var(--muted); font-size: 12.5px; }
.cost-row.is-small span:last-child { color: var(--text-soft); text-align: right; }
.cost-totals { display: grid; gap: 6px; margin: 14px 0 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.cost-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cost-totals > div > span { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cost-totals strong { font-size: 17px; white-space: nowrap; }
.cost-totals strong small { color: var(--muted); font-size: 12px; font-weight: 500; }
.cost-totals > div:first-child strong { font-size: 22px; letter-spacing: -.02em; }
.cost-totals .is-small span { color: var(--muted); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.order-summary .notice { margin-bottom: 12px; }

.product-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; }
.product-features li { display: flex; align-items: flex-start; gap: 9px; color: var(--text-soft); font-size: 13.5px; }
.product-features .icon { margin-top: 3px; color: var(--accent); }

/* --- Überweisung ---------------------------------------------------------- */

.bank-table th { width: 34%; padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 13.5px; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.bank-table th .icon { display: inline-block; vertical-align: -2px; }
.bank-table td { font-size: 13.5px; }
.bank-table tbody tr:hover td { background: transparent; }
.bank-table td.actions { width: 52px; padding: 0 14px 0 0; }
.bank-table tbody tr:last-child th { border-bottom: 0; }
.link-button .icon { max-width: none; }
.qr { margin: 0; display: grid; justify-items: center; text-align: center; }
.qr svg { width: 220px; height: 220px; border-radius: var(--radius-sm); background: #fff; padding: 6px; }
.qr figcaption { max-width: 260px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.chip.plain { font-family: inherit; font-size: 13px; }
.card-foot .icon { display: inline-block; vertical-align: -2px; margin-right: 4px; }

.hint-box {
  display: flex; align-items: flex-start; gap: 18px; padding: 20px 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: var(--radius);
  background: linear-gradient(100deg, var(--accent-soft), transparent 80%), var(--surface);
}
.hint-box-icon {
  width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.hint-box h2 { margin: 2px 0 6px; color: var(--accent); font-size: 17px; letter-spacing: -.01em; }
.hint-box p { margin: 0 0 6px; color: var(--text-soft); font-size: 13.5px; }
.hint-box p.tiny { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); }

/* --- Einstellungen -------------------------------------------------------- */

.setting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.setting { display: flex; flex-direction: column; padding: 16px 18px 18px; }
.setting h2 { margin: 0 0 6px; font-size: 15px; letter-spacing: -.01em; }
.setting h2 small { color: var(--muted); font-size: 12px; font-weight: 500; }
.setting p { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.setting > form, .setting > .button { margin-top: auto; }
.setting-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--text-soft) !important; }
.setting-note .icon { color: var(--info); }
.button-danger-solid { background: var(--danger-solid); color: #fff; }
.button-danger-solid:hover { background: color-mix(in srgb, var(--danger-solid) 86%, #000); }
dialog.dialog-wide { width: min(760px, calc(100vw - 32px)); }
.dialog-foot .grow { align-self: center; }

.toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check.check-card { margin: 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.check.check-card:hover { border-color: var(--border-light); }

/* --- Tabellen-Werkzeuge und Seiten ---------------------------------------- */

.table-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.per-page { display: inline-flex; align-items: center; gap: 9px; color: var(--text-soft); font-size: 13px; }
.per-page .select { width: auto; min-height: 34px; padding: 4px 32px 4px 10px; }
.table-tools .search .input { min-height: 34px; }
.pager { display: flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.pager-item {
  min-width: 36px; min-height: 34px; display: inline-grid; place-items: center; padding: 0 11px;
  border-right: 1px solid var(--border); color: var(--text-soft); font-size: 12.5px; font-weight: 600;
}
.pager-item:last-child { border-right: 0; }
a.pager-item:hover { background: var(--surface-2); color: var(--text); }
.pager-item.is-current { background: var(--accent); color: var(--accent-ink); }
.pager-item.is-disabled { color: var(--muted-dark); }
.pager-item.is-gap { color: var(--muted-dark); }

/* --- Ticket-Support ------------------------------------------------------- */

.split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.ticket-side-head { padding: 26px 20px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.ticket-side-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.ticket-side-body { display: grid; gap: 14px; padding: 16px; }
.ticket-group { display: grid; gap: 6px; }
.ticket-group-label {
  display: flex; align-items: center; gap: 8px; padding: 4px 4px 6px;
  color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
details.ticket-group > summary { cursor: pointer; list-style: none; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
details.ticket-group > summary::-webkit-details-marker { display: none; }
details.ticket-group > summary .icon { margin-left: auto; transition: transform .15s ease; }
details.ticket-group[open] > summary .icon { transform: rotate(180deg); }
.ticket-item { display: block; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .15s ease, background-color .15s ease; }
.ticket-item:hover { border-color: var(--border-light); background: var(--surface-2); }
.ticket-item.is-active { border-color: var(--accent); background: var(--accent-soft); }
.ticket-item-title { display: block; color: var(--text); font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; color: var(--muted); font-size: 12px; }
.ticket-main .card-title { margin: 0 0 4px; font-size: 19px; letter-spacing: -.02em; }
.ticket-main .card-head { align-items: flex-start; }
.ticket-main .thread { margin-bottom: 22px; }
.ticket-form .card-foot .icon, .ticket-side .small .icon { display: inline-block; vertical-align: -2px; }
.reply { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.reply .textarea { min-height: 96px; }

/* --- Formulare (Ergänzungen) ---------------------------------------------- */

.input.readonly { display: flex; align-items: center; background: var(--surface-2); color: var(--text-soft); overflow-wrap: anywhere; }
.link-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.link-row .field { margin-bottom: 0; }
form.inline { display: inline-flex; }
.contract { width: min(640px, 100%); margin-inline: auto; }

/* --- Diagramme ------------------------------------------------------------ */

.chart-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.chart { margin: 0; min-width: 0; }
.chart figcaption { margin-bottom: 8px; color: var(--text); font-size: 13px; font-weight: 700; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid, .chart-axis { stroke: var(--border); stroke-width: 1; }
.chart-axis { stroke: var(--border-light); }
.chart-tick { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.chart-bar { fill: var(--chart-1); transition: opacity .12s ease; }
.chart-hit { fill: transparent; }
.chart-mark { outline: none; cursor: default; }
.chart-mark:hover .chart-hit, .chart-mark:focus-visible .chart-hit { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.chart-mark:hover .chart-bar, .chart-mark:focus-visible .chart-bar { opacity: .78; }
.tooltip {
  position: fixed; z-index: 95; max-width: 240px; padding: 7px 10px; pointer-events: none;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow);
  color: var(--text); font-size: 12px; font-weight: 650;
}

/* --- Kleinere Bildschirme ------------------------------------------------ */

@media (max-width: 1440px) {
  .product-row { grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(100px, 1fr)) auto; }
  .product-row .product-fact:nth-of-type(3) { display: none; } /* Bestelldatum */
}

@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-layout { grid-template-columns: minmax(0, 1fr); }
  .order-summary { position: static; }
  .os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method, .method:nth-child(-n+3) { grid-column: span 6; }
  .grid-side, .grid-main, .grid-aside, .split, .dashboard-bottom { grid-template-columns: minmax(0, 1fr); }
  .summary.sticky { position: static; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-right: 0; }
  .facts > div:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .chart-grid-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(4, 6, 9, .6); }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 40px; }
  .footer { padding: 16px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; padding: 14px 16px 14px 18px; }
  .product-row .product-name { grid-column: 1 / -1; }
  .product-row .product-fact { display: block; text-align: left; }
  .product-row .product-fact:nth-of-type(3) { display: none; } /* Bestelldatum */
  .product-action { justify-content: flex-start; align-self: end; }
}

@media (max-width: 680px) {
  .meter-row { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--border); text-align: left; padding: 13px 17px; }
  .facts > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .facts > div:last-child { border-bottom: 0; grid-column: 1 / -1; border-right: 0; }
  .setting-grid, .toggle-grid, .charge-row, .os-grid, .product-features { grid-template-columns: minmax(0, 1fr); }
  .os-grid { gap: 8px; }
  .os-body { min-height: 52px; padding: 8px 12px; }
  .os-mark { width: 34px; height: 34px; font-size: 16px; }
  .tabs .tab .badge { display: none; }
  .category-grid .input-group { flex-wrap: wrap; }
  .category-grid .input-group .input { flex-basis: 100%; }
  .method, .method:nth-child(-n+3) { grid-column: span 12; }
  .hint-box { flex-direction: column; padding: 18px 16px; }
  .bank-table th { width: auto; white-space: normal; }
  .table-tools { padding-left: 16px; padding-right: 16px; }
  .profile { padding: 18px 16px; gap: 14px; }
  .profile-avatar { width: 64px; height: 64px; font-size: 22px; }
  .profile-name { font-size: 19px; }
  .profile-actions { align-self: auto; }
  .topbar-search { display: none; }
  .community { min-height: 220px; padding: 26px 18px; }
  .tab { flex: 0 0 auto; }
  .cta { padding: 18px 16px; }
  .timeline { padding-left: 17px; padding-right: 17px; }
  .timeline li { grid-template-columns: 14px minmax(0, 1fr); }
  .timeline time { grid-column: 2; }
  .grid-2, .grid-3, .grid-4, .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 25px; }
  .balance small, .user-button .name { display: none; }
  .balance { padding-left: 12px; }
  .user-button { padding: 0 7px; }
  .card-head, .card-body, .card-body.tight, .card-foot { padding-left: 17px; padding-right: 17px; }
  .table th, .table td { padding-left: 17px; padding-right: 17px; }
  .message { max-width: 100%; }
  .choice { flex-direction: column; align-items: flex-start; }
  .choice .price { text-align: left; }
  .toasts { bottom: 12px; right: 12px; width: calc(100vw - 24px); }
  .auth-card-head, .auth-card-body { padding-left: 22px; padding-right: 22px; }
  .search { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .sidebar, .topbar, .footer, .toasts, .page-actions, .table-tools, .pager, .card-head .row { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
}
