/* ==========================================================================
   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;
  --zoom: 1; /* Schriftgröße aus dem Design – Angaben in vw/vh werden dadurch geteilt, sonst ragen sie über den Bildschirm */
}

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;
}

/* --- Design (Einstellungen → Voreinstellungen → Design) ---------------------
   Die Wahl steht als data-* am <html>-Element; die Akzentfarbe setzt theme.js. */

/* Ecken */
html[data-radius="square"] { --radius: 3px; --radius-sm: 2px; }
html[data-radius="round"] { --radius: 14px; --radius-sm: 10px; }

/* Hintergrund: Flächen leicht in der Akzentfarbe getönt */
html[data-bg="tinted"] {
  --page: color-mix(in srgb, var(--accent) 7%, #090c11);
  --surface: color-mix(in srgb, var(--accent) 4%, #0e1219);
  --surface-2: color-mix(in srgb, var(--accent) 5%, #121720);
  --surface-3: color-mix(in srgb, var(--accent) 7%, #171d27);
  --border: color-mix(in srgb, var(--accent) 10%, #222a36);
  --header: color-mix(in srgb, color-mix(in srgb, var(--accent) 7%, #090c11) 94%, transparent);
}
html[data-theme="light"][data-bg="tinted"] {
  --page: color-mix(in srgb, var(--accent) 7%, #f5f7fa);
  --surface: #ffffff;
  --surface-2: color-mix(in srgb, var(--accent) 6%, #f0f3f6);
  --surface-3: color-mix(in srgb, var(--accent) 9%, #e7ecf1);
  --border: color-mix(in srgb, var(--accent) 14%, #dde4eb);
  --header: color-mix(in srgb, #ffffff 92%, transparent);
}

/* Hintergrund in einer gewählten Farbe (Vorgabe oder eigene): die Flächen und Linien legt theme.js als
   Inline-Werte auf <html>, abgeleitet aus der Farbe und passend zum Farbschema. Hier nur der weiche Übergang. */
html[data-bg]:not([data-bg="neutral"]):not([data-bg="tinted"]) body { transition: background-color .2s ease; }

/* Schrift */
html[data-font="serif"] body { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; }
html[data-font="mono"] body { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
html[data-font="serif"] :is(button, input, select, textarea),
html[data-font="mono"] :is(button, input, select, textarea) { font-family: inherit; }

/* Inhaltsbreite: schmal hält Tabellen und Karten auf großen Bildschirmen näher beieinander */
html[data-width="narrow"] .content { max-width: 1280px; }

/* Kontrast: kräftigere Schrift und Linien */
html[data-contrast="high"] {
  --text: #ffffff; --text-soft: #e3e8ef; --muted: #b6bfcc; --muted-dark: #8f99a8;
  --border: #3b4656; --border-light: #4c5869;
}
html[data-theme="light"][data-contrast="high"] {
  --text: #05090e; --text-soft: #1e293b; --muted: #46536a; --muted-dark: #56606e;
  --border: #b6c2cf; --border-light: #98a7b7;
}

/* Schriftgröße: das ganze Panel wird kleiner bzw. größer, das Layout passt sich an */
html[data-size="small"] { zoom: .92; --zoom: .92; }
html[data-size="large"] { zoom: 1.1; --zoom: 1.1; }

/* Animationen reduziert: keine Übergänge und Bewegungen */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  transition-duration: .01ms !important; scroll-behavior: auto !important;
}

/* --- 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 { display: block; height: 34px; width: auto; max-width: 100%; }
/* Logo je Farbschema: logo.png (dunkle Schrift) im hellen, logo-dark.png (helle Schrift) im dunklen */
.brand .brand-logo-dark { display: none; }
html:not([data-theme="light"]) .brand.has-dark-logo .brand-logo { display: none; }
html:not([data-theme="light"]) .brand.has-dark-logo .brand-logo-dark { display: block; }
.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-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); }

.main { min-height: calc(100vh / var(--zoom)); 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; }

.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 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-user { display: flex; align-items: center; gap: 11px; padding: 6px 8px 10px; }
.dropdown-user .avatar { display: grid; flex: none; width: 34px; height: 34px; color: var(--accent); font-size: 13px; }
.dropdown-user strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.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;
}
.banner-danger { background: var(--danger-soft); color: var(--danger); }

.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; }
/* Verwaltung → Produkte bzw. Einstellungen: Reiter unter der Überschrift, darunter ein kurzer Satz zum Reiter */
.admin-tabs { margin-bottom: 16px; }
.tab-intro { max-width: 820px; margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.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; }

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

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-top { align-items: start; }
.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; }
.stack-sm { display: grid; gap: 10px; align-content: start; }
.link.strong { font-weight: 650; }
.prewrap { white-space: pre-wrap; color: var(--text-soft); font-size: 13.5px; line-height: 1.6; }
.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; }
.border-top { border-top: 1px solid var(--border); }

/* --- 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-head h2 .hint { margin-left: 8px; font-weight: 500; letter-spacing: 0; }
.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-icon.is-success { color: var(--success); background: var(--success-soft); border-color: transparent; }
.stat-icon.is-warning { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.stat-icon.is-danger { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.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 .button .icon { margin: 0; color: inherit; }
.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-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); }
.input-narrow { max-width: 5rem; } /* Zahlenfeld mit wenigen Stellen (statt style-Attribut, das die CSP blockiert) */
.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; }
.input-suffix.is-wide .input { padding-right: 128px; }
.input-suffix.is-wide span { font-size: 12.5px; }

.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 { position: relative; overflow-x: auto; } /* relative: versteckte Beschriftungen (sr-only) bleiben im Rahmen */
.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: 4px;
  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 / var(--zoom) - 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-warning { border-left-color: var(--warning); }
.toast-warning .icon { color: var(--warning); }
.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 / var(--zoom) - 32px)); max-height: calc(100dvh / var(--zoom) - 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; }
.confirm-dialog { width: min(460px, calc(100vw / var(--zoom) - 32px)); }
.confirm-dialog .dialog-head { border-bottom: 0; padding-bottom: 6px; }
.confirm-dialog .dialog-body { padding-top: 4px; }
.confirm-dialog .dialog-body p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.confirm-dialog .dialog-head + .dialog-body[hidden] + .dialog-foot { margin-top: 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-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); }
.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; }

/* --- KVM-Cloud ------------------------------------------------------------ */

/* Bestellen: Regler je Ressource (eigene Konfiguration) bzw. Leistungen des Pakets */
.cloud-config { display: grid; gap: 0; }
.cloud-slider { padding: 14px 0 16px; border-bottom: 1px solid var(--border); }
.cloud-slider:first-child { padding-top: 0; }
.cloud-slider-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cloud-slider-head label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 14px; font-weight: 650; }
.cloud-slider-head label .icon { color: var(--muted-dark); }
.cloud-slider-value { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.cloud-slider-value .input { width: 92px; padding-top: 6px; padding-bottom: 6px; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.cloud-slider-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cloud-slider-foot span:nth-child(2) { color: var(--text-soft); }

.range {
  --fill: 0%;
  width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--surface-3) var(--fill));
}
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-3); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.range::-webkit-slider-thumb {
  width: 18px; height: 18px; margin-top: -6px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface);
  -webkit-appearance: none; appearance: none; transition: transform .12s ease;
}
.range::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--accent-soft); }

.cloud-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cloud-specs li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 4px; background: var(--surface-2); color: var(--text-soft); font-size: 13px; }
.cloud-specs .icon { flex: none; color: var(--accent); }
.cloud-specs strong { color: var(--text); font-weight: 650; }

/* Verwalten */
.title-edit { display: flex; align-items: center; gap: 6px; }
.cloud-stack { grid-template-columns: minmax(0, 1fr); }
.cloud-login-actions { display: grid; gap: 8px; }
.node-sources { display: grid; gap: 2px; margin: 4px 0 0; padding-left: 18px; }

/* Admin: Preise und Grenzen der eigenen Konfiguration */
.cloud-price-table th, .cloud-price-table td { padding-left: 0; padding-right: 8px; }
.cloud-price-table td:last-child, .cloud-price-table th:last-child { padding-right: 0; }
.cloud-price-table .input { min-width: 64px; padding-top: 6px; padding-bottom: 6px; }
.cloud-price-table .input-suffix .input { min-width: 78px; }
.cloud-resources { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 680px) {
  .form-grid.cloud-resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cloud-slider-value .input { width: 78px; }
}

/* --- 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); }

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

/* Ticketübersicht: alle Tickets untereinander, jede Zeile führt zum Ticket */
.tk-rows { margin: 0; padding: 0; list-style: none; }
.tk-rows-head, .tk-row { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(5, minmax(0, 1fr)); gap: 16px; align-items: center; padding: 0 18px; }
.tk-rows-head { padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; }
.tk-rows-head > span { color: inherit; font: inherit; }
.tk-rows li + li { border-top: 1px solid var(--border); }
.tk-rows li:last-child .tk-row { border-radius: 0 0 var(--radius) var(--radius); }
.tk-row { padding-top: 12px; padding-bottom: 12px; color: var(--text-soft); font-size: 13.5px; transition: background-color .15s ease; }
.tk-row:hover { background: var(--surface-2); }
.tk-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tk-row-main { display: grid; gap: 2px; min-width: 0; }
.tk-row-title { overflow: hidden; color: var(--text); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tk-row.is-unread .tk-row-title { font-weight: 750; }
/* Status und Priorität als Kästchen statt Pillen (Liste und Ticketinformationen) */
.tk-row-created, .tk-row-time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tk-row.is-closed .tk-row-title { color: var(--text-soft); font-weight: 550; }

/* Fenster „Neues Ticket“: Kopf und Knöpfe bleiben sichtbar, der Inhalt scrollt */
dialog.ticket-dialog { width: min(720px, calc(100vw / var(--zoom) - 32px)); max-height: calc(100dvh / var(--zoom) - 32px); }
dialog.ticket-dialog[open] { display: flex; flex-direction: column; }
.ticket-dialog form { display: flex; flex-direction: column; min-height: 0; }
.ticket-dialog .dialog-body { display: grid; overflow-y: auto; overscroll-behavior: contain; }
.ticket-dialog .dialog-body > .notice { margin-bottom: 16px; }
.ticket-dialog .form-grid > .field:last-child { margin-bottom: 14px; }

/* Ticketfenster: Der Verlauf scrollt in der Karte, das Antwortfeld bleibt darunter sichtbar – die Seite selbst
   scrollt dafür nicht. Am Desktop setzt app.js die Höhe passend zum Browserfenster (--helpdesk-max). */
.tk-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: 4px 0 24px; }
.tk-reply { flex: none; padding: 0 24px; }
.ticket-uid { display: inline-flex; align-items: center; gap: 2px; }

/* Verlauf wie ein Schriftwechsel: Nachrichten untereinander, Support mit Akzentlinie */
.tk-thread {
  display: grid; align-content: start; flex: 0 1 auto; min-height: 0; padding: 0 24px 22px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-light) transparent;
  /* oben und unten weich ausblenden, damit angeschnittene Nachrichten nicht hart abbrechen */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
@media (min-width: 961px) {
  .helpdesk-main {
    position: sticky; top: calc(var(--topbar-height) + 16px);
    display: flex; flex-direction: column; max-height: var(--helpdesk-max, calc(100dvh / var(--zoom) - 220px));
  }
  .composer-input { max-height: calc(35vh / var(--zoom)); }
}
.tk-day { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.tk-day::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.tk-log { display: flex; align-items: center; gap: 7px; margin: 8px 0; padding-left: 20px; color: var(--muted); font-size: 12.5px; }
.tk-log .icon { flex: none; }
.tk-msg { margin: 8px 0; padding: 4px 0 6px 18px; border-left: 2px solid var(--border-light); }
.tk-msg.from-support { padding: 14px 18px 16px; border-left-color: var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.tk-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.tk-msg-head strong { color: var(--text); font-size: 13.5px; }
.tk-msg.from-support .tk-msg-head strong { color: var(--accent); }
.tk-msg-role { color: var(--muted); font-size: 12px; }
.tk-msg-head time { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tk-msg-head .chat-avatar { width: 22px; height: 22px; font-size: 9px; }
.tk-msg-body { margin-top: 8px; color: var(--text-soft); font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; }
.tk-files { margin-top: 12px; }
.tk-files { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.chat-avatar { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text-soft); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.chat-image { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.chat-image img { display: block; max-width: 220px; max-height: 160px; object-fit: cover; }
.chat-image:hover { border-color: var(--accent); }
.chat-file { display: inline-flex; align-items: center; gap: 10px; max-width: 300px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); text-decoration: none; }
.chat-file:hover { border-color: var(--accent); color: var(--accent); }
.chat-file .icon { flex: none; }
.chat-file span { display: grid; min-width: 0; }
.chat-file strong { color: var(--text); font-size: 13px; font-weight: 650; }
.chat-file small { color: var(--muted); font-size: 11.5px; }

/* Kasten „Zugangsdaten“ rechts unter den Ticketinformationen */
.tk-secret { padding: 14px 18px 16px; }
.tk-secret + .tk-secret { border-top: 1px solid var(--border); }
.tk-secret-fields { display: grid; gap: 7px; margin: 0; }
.tk-secret-fields > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 8px; }
.tk-secret-fields dt { color: var(--muted); font-size: 12.5px; }
.tk-secret-fields dd { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; margin: 0; }
.tk-secret-fields dd .mono { min-width: 0; color: var(--muted); font-size: 13px; letter-spacing: .08em; overflow-wrap: anywhere; }
.tk-secret-fields dd .mono.is-shown { color: var(--text); letter-spacing: 0; }
/* Knöpfe über die ganze Breite wie „Ticket schließen“; Löschen als quadratischer Knopf daneben */
.tk-secret-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; }
.tk-secret-delete { padding-left: 0; padding-right: 0; aspect-ratio: 1; }
.tk-secret-delete:hover { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--danger-soft); color: var(--danger); }
.tk-secret-note { margin: 0; color: var(--muted); font-size: 12.5px; }
.tk-secret-form { display: grid; gap: 14px; }
.tk-secret-form .secret-inputs { grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; }

/* Eingabe der Zugangsdaten: IP-Adresse, Nutzername, Passwort */
.secret-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.secret-input { display: grid; gap: 5px; min-width: 0; }
.secret-input label { color: var(--muted); font-size: 12px; font-weight: 500; }
.secret-input .input { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.secret-password { position: relative; }
.secret-password .input { width: 100%; padding-right: 38px; }
.secret-eye { position: absolute; top: 50%; right: 4px; display: grid; place-items: center; width: 30px; height: 28px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; transform: translateY(-50%); }
.secret-eye:hover, .secret-eye[aria-pressed="true"] { color: var(--text); }

/* Eingabe für geschützte Zugangsdaten */
.secret-section { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
/* Beschriftung wie bei den übrigen Feldern („Dein Anliegen“, „Produkt (optional)“) */
.secret-section > legend { margin-bottom: 6px; padding: 0; color: var(--text-soft); font-size: 13px; font-weight: 600; }

/* Live-Aktualisierung: geänderte Bereiche kurz hervorheben */
.live-contents { display: contents; }
@keyframes live-flash { from { background-color: var(--accent-soft); } to { background-color: transparent; } }
@keyframes live-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tk-msg.is-new { animation: live-in .35s ease-out; }
.product-list.live-flash, [data-live-region].live-flash > .product-list { animation: live-flash 1.2s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .tk-msg.is-new, .product-list.live-flash, [data-live-region].live-flash > .product-list { animation: none; }
}

/* Dateiauswahl für Ticket-Anhänge */
.dropzone { position: relative; display: grid; gap: 8px; }
.dropzone-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone-label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--border-light); border-radius: var(--radius); background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.dropzone-label .icon { flex: none; }
.dropzone-label strong { color: var(--text-soft); }
.dropzone-label:hover, .dropzone.is-over .dropzone-label, .dropzone-input:focus-visible + .dropzone-label { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dropzone-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dropzone-list li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-soft); font-size: 13px; }
.dropzone-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone-list li small { color: var(--muted); white-space: nowrap; }

/* Hilfe & Kontakt: empfohlener Weg (Ticket) mit Support-PIN, weitere Kontaktwege, Selbsthilfe */
.grid.support-top { align-items: stretch; }
.support-primary, .support-pin, .channel { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.support-primary { background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface); }
.support-primary p, .support-pin p, .channel p, .support-link p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.support-primary p { max-width: 640px; color: var(--text-soft); font-size: 13.5px; }
.support-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.support-title h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.support-primary-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 4px; }
.support-meta { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; }
.stat-icon.is-accent { width: 44px; height: 44px; border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-soft); }
.support-pin-value { display: flex; align-items: center; gap: 10px; margin-top: -6px; font-size: 22px; font-weight: 720; }
.support-pin .link { margin-top: auto; align-self: flex-start; }
.channel h3, .support-link h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.channel .value, .support-primary .value { color: var(--text-soft); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.channel-top { display: flex; align-items: center; gap: 12px; }
.channel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.channel-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.channel-tags li { padding: 1px 9px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; line-height: 1.6; }
.support-link { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; transition: border-color .15s ease; }
.support-link:hover { border-color: color-mix(in srgb, var(--accent) 48%, transparent); }
.support-link p { margin: 3px 0 8px; }
.support-link-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
/* Schmale Karten: Schlagworte und Button untereinander, der Button in voller Breite */
.support-primary, .channel { container-type: inline-size; }
@container (max-width: 359px) {
  .channel-foot { flex-direction: column; align-items: stretch; }
  .support-primary-foot .button { width: 100%; }
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }

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

.auth { position: relative; min-height: calc(100vh / var(--zoom)); 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-head-actions { display: flex; align-items: center; gap: 8px; }
/* Sprachauswahl (partials/language_switch.php) */
.lang-switch { display: contents; }
.lang-button {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-soft); cursor: pointer;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  transition: border-color .15s ease, color .15s ease;
}
.lang-button:hover { border-color: var(--accent); color: var(--accent); }
.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; }
/* Einwilligung (Empfehlungs-Cookie): Zustimmen und Ablehnen gleich groß nebeneinander, auf schmalen Bildschirmen untereinander */
.consent-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.consent-choice form { margin: 0; }
@media (max-width: 480px) { .consent-choice { grid-template-columns: minmax(0, 1fr); } }
.referral-note { flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
.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); }
/* Anmeldung und Registrierung: links Begrüßung mit Kennzahlen bzw. Vorteilen, rechts das Formular */
.auth-stack.split { width: min(1120px, 100%); }
.auth-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; }
.auth-hero.is-register { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.auth-hero-form { display: grid; gap: 14px; padding-left: 56px; }
.auth-hero-form .auth-card { width: 100%; }
.auth-hero-form .auth-card-body { padding-bottom: 30px; }
.auth-intro { position: relative; padding: 40px 56px 40px 0; border-right: 1px solid var(--border); }
.auth-intro-mark { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.auth-intro-mark span { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.auth-intro-mark::after { content: ""; flex: 1; max-width: 400px; height: 1px; background: linear-gradient(90deg, var(--border-light), transparent); }
.auth-intro h2 { max-width: 560px; margin: 0 0 16px; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.045em; }
.auth-intro p { max-width: 520px; margin: 0; color: var(--text-soft); font-size: 16px; line-height: 1.65; }
.auth-intro-stats { display: flex; flex-wrap: wrap; gap: 14px 0; margin: 36px 0 0; }
.auth-intro-stats div { padding: 0 30px; border-left: 1px solid var(--border); }
.auth-intro-stats div:first-child { padding-left: 0; border-left: 0; }
.auth-intro-stats dt { font-size: 25px; font-weight: 800; letter-spacing: -.035em; }
.auth-intro-stats dd { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.auth-intro-features { display: grid; gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--text-soft); font-size: 14.5px; }
.auth-intro-features li { display: flex; align-items: center; gap: 13px; }
.auth-intro-features span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--border-light); border-radius: 9px; background: var(--surface); color: var(--accent); }
@media (max-width: 900px) {
  .auth-stack.split { width: min(520px, 100%); }
  .auth-hero, .auth-hero.is-register { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .auth-hero-form { padding-left: 0; }
  .auth-intro { order: 2; padding: 0 4px; border-right: 0; }
  .auth-intro-mark { margin-bottom: 18px; }
  .auth-intro h2 { font-size: 28px; }
  .auth-intro p { font-size: 15px; }
  .auth-intro-stats { margin-top: 24px; }
  .auth-intro-stats div { padding: 0 18px; }
  .auth-intro-stats dt { font-size: 20px; }
  .auth-intro-features { margin-top: 24px; }
}

/* --- Fehlerseiten (templates/errors/error.php) ------------------------------
   Gestapelte Platten wie im Logo, in der Akzentfarbe; bei 404 fehlt die oberste (gestrichelter Umriss). */
.error-page { display: grid; justify-items: center; gap: 0; width: min(560px, 100%); margin: 0 auto; padding: 8px 0 12px; text-align: center; }
.content > .error-page { padding: clamp(24px, 9vh, 96px) 0 40px; }
.error-art { width: 220px; max-width: 70%; height: auto; margin-bottom: 26px; overflow: visible; }
.ea-shadow { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.ea-plate .ea-face { fill: var(--accent); }
.ea-plate.is-2 .ea-face { fill: color-mix(in srgb, var(--accent) 78%, var(--page)); }
.ea-plate.is-3 .ea-face { fill: color-mix(in srgb, var(--accent) 58%, var(--page)); }
.ea-plate .ea-left { fill: color-mix(in srgb, var(--accent-strong) 72%, #000); }
.ea-plate .ea-right { fill: color-mix(in srgb, var(--accent-strong) 52%, #000); }
.ea-gap polygon { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 5 4; stroke-linejoin: round; }
.ea-gap .ea-face { fill: color-mix(in srgb, var(--accent) 6%, transparent); }
.ea-gap { animation: ea-float 3.2s ease-in-out infinite alternate; }
@keyframes ea-float { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.ea-badge circle { fill: var(--surface); stroke: var(--border-light); stroke-width: 1.5; }
.ea-badge rect, .ea-badge path { fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.error-page h1 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.error-text { max-width: 440px; margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.error-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; min-width: 0; max-width: 100%; margin: 34px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); font-size: 12.5px; }
.error-facts > div { display: flex; gap: 7px; min-width: 0; max-width: 100%; }
.error-facts dt { color: var(--muted); }
.error-facts dd { margin: 0; color: var(--text-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.error-facts .is-path dd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ea-gap { animation: none; } }

/* --- 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; }

/* --- Profilbild im Kreis (Einstellungen, Admin) und Haken „Daten bestätigt“ --- */

.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;
}
.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); }
/* Produkt-ID unter der Überschrift einer Verwaltungsseite */
.product-uid { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; color: var(--text-soft); font-size: 13px; }
.product-uid strong { min-width: 0; color: var(--text); font-weight: 600; }
/* Angaben aus der Vorlage eines Shop-Produkts (z. B. Storage Box) */
.rows dd.store-copy { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.store-copy .mono { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.store-copy .link-button { flex: none; }
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* Gruppe über die volle Breite (z. B. Erreichbarkeit): Felder gleich breit nebeneinander, durch Linien getrennt */
.rows.store-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.rows.store-strip > div { padding: 8px 22px; border-bottom: 0; }
.rows.store-strip > div + div { border-left: 1px solid var(--border); }
.rows.store-strip > div:first-child { padding-left: 0; }
.rows.store-strip > div:last-child { padding-right: 0; }
/* Gruppe über die volle Breite mit mehr als vier Feldern (z. B. Information bei Nextcloud): zwei Spalten wie eine Tabelle */
.rows.store-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rows.store-columns > div:nth-child(odd) { padding-right: 22px; }
.rows.store-columns > div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--border); }
.rows.store-columns > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.store-notes { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.template-fields { display: grid; gap: 22px; }
/* Webspace über KeyHelp: Login/Passwort nebeneinander, Verbrauch mit Balken */
.webspace-access { display: flex; flex-direction: column; }
.webspace-access .card-body { flex: 1 1 auto; }
.webspace-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.webspace-actions form { margin: 0; }
.webspace-actions p { grid-column: 1 / -1; }
.usage-bar { display: block; width: 100%; height: 5px; margin-top: 8px; border: 0; border-radius: 3px; background: var(--surface-3); overflow: hidden; -webkit-appearance: none; appearance: none; }
.usage-bar::-webkit-progress-bar { background: var(--surface-3); border-radius: 3px; }
.usage-bar::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
.usage-bar::-moz-progress-bar { background: var(--accent); border-radius: 3px; }
.usage-bar.is-warning::-webkit-progress-value { background: var(--warning); }
.usage-bar.is-warning::-moz-progress-bar { background: var(--warning); }
.usage-bar.is-danger::-webkit-progress-value { background: var(--danger); }
.usage-bar.is-danger::-moz-progress-bar { background: var(--danger); }
.usage-bar.is-large { height: 8px; margin-top: 12px; border-radius: 4px; }
.usage-bar.is-large::-webkit-progress-bar, .usage-bar.is-large::-webkit-progress-value { border-radius: 4px; }
.usage-bar.is-large::-moz-progress-bar { border-radius: 4px; }
/* Verbrauch: Speicherplatz groß, darunter alle übrigen Ressourcen als gleich gebaute Kacheln */
.usage-hero-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 13px; }
.usage-hero-label { display: inline-flex; align-items: center; gap: 7px; }
.usage-hero-percent { color: var(--text-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.usage-hero-percent.is-warning { color: var(--warning); }
.usage-hero-percent.is-danger { color: var(--danger); }
.usage-hero-value { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.usage-hero-value strong { margin-right: 2px; color: var(--text); font-size: 24px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.usage-hero-foot { margin: 7px 0 0; color: var(--muted); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.usage-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.usage-tiles.has-hero { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.usage-tiles > li { min-width: 0; display: flex; flex-direction: column; padding: 12px 13px; border-radius: 4px; background: var(--surface-2); }
.usage-tile-head { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.usage-tile-head .icon { flex: none; margin-top: 1px; }
.usage-tile-label { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.usage-tile-value { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.usage-tile-value span { white-space: nowrap; }
.usage-tile-value strong { margin-right: 1px; color: var(--text); font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.usage-tiles .usage-bar { margin-top: 10px; }
.usage-inf { flex: none; margin-left: auto; color: var(--muted); font-size: 17px; line-height: 1; }
.usage-excluded { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }
/* Verbindungscheck (KeyHelp): je Prüfung Zeichen, Bezeichnung, Ergebnis und ggf. was zu tun ist */
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list > li {
  display: grid; grid-template-columns: 22px minmax(140px, 210px) minmax(0, 1fr); gap: 3px 14px; align-items: start;
  padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; line-height: 1.5;
}
.check-list > li:last-child { border-bottom: 0; }
.check-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; background: var(--surface-3); color: var(--muted); }
.check-list .is-ok .check-mark { background: var(--success-soft); color: var(--success); }
.check-list .is-warning .check-mark { background: var(--warning-soft); color: var(--warning); }
.check-list .is-error .check-mark { background: var(--danger-soft); color: var(--danger); }
.check-list .is-info .check-mark { background: var(--info-soft); color: var(--info); }
.check-label { padding-top: 1px; color: var(--text); font-weight: 600; }
.check-detail { padding-top: 1px; color: var(--text-soft); overflow-wrap: anywhere; }
.check-hint { grid-column: 3; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.check-list .is-error .check-hint { color: var(--text-soft); }
.check-list .is-skipped .check-label, .check-list .is-skipped .check-detail { color: var(--muted); font-weight: 500; }
/* Verbindungsseiten (KeyHelp, Virtualizor): Hinweis über dem Raster behält seinen Abstand (er ist das letzte Element seines Live-Bereichs) */
.conn-notice > .notice { margin-bottom: 16px; }
/* Verbindung und Prüfung gleich hoch; „Speichern“ sitzt unten in der Karte */
.conn-grid { align-items: stretch; }
.conn-grid .card { display: flex; flex-direction: column; }
.conn-form { flex: 1 1 auto; display: flex; flex-direction: column; }
.conn-save { margin-top: auto; }
.conn-form .form-grid { margin-bottom: 16px; }
.conn-form .disclosure { margin-bottom: 16px; }
.conn-form .disclosure > summary { margin-bottom: 12px; }
/* Warnungen in der Status-Karte unter den Zeilen */
.status-notices { border-top: 1px solid var(--border); }
.status-notices > .notice { margin-bottom: 12px; }
.status-notices > .notice:last-child { margin-bottom: 0; }
/* Bestellungen prüfen: Pakete links, Betriebssysteme rechts */
.order-checks { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.order-checks > * + * { border-left: 1px solid var(--border); }
@media (max-width: 1180px) {
  .order-checks { grid-template-columns: minmax(0, 1fr); }
  .order-checks > * + * { border-left: 0; border-top: 1px solid var(--border); }
}
/* Differenzkonten (KeyHelp) und Differenzserver (Virtualizor): Verknüpfen und Ausblenden nebeneinander, ausgeblendete als Liste */
.orphan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.orphan-actions form { margin: 0; }
.orphan-actions .row { flex: 1 1 100%; flex-wrap: nowrap; gap: 8px; }
.orphan-actions .select { width: 210px; min-height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: 12.5px; }
.orphan-hidden { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
/* Aktive Sitzungen (Einstellungen → Sicherheit) */
.session-list { margin: 0; padding: 0; list-style: none; }
.session-list li { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.session-list li:last-child { border-bottom: 0; }
.session-list form { margin: 0 0 0 auto; }
.session-icon { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--muted); }
.session-list .is-current .session-icon { background: var(--success-soft); color: var(--success); }
.session-main { min-width: 0; }
.session-main strong { color: var(--text); }
/* Domainpreise (Verwaltung → Domains): Eingaben direkt in der Tabelle */
.price-table td { vertical-align: middle; }
.price-table .input-suffix { min-width: 112px; }
.price-table .input { min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
.price-table .price-new .input[name="new_tld"] { min-width: 120px; }
.price-settings { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; border-top: 1px solid var(--border); }
.price-settings .field { margin: 0; width: 260px; }
.price-settings .check { margin: 0 0 8px; }
.price-settings .button { margin-left: auto; }
/* E-Mail-Adressen nur umbrechen, wenn sie sonst nicht passen (nicht mitten im Namen) */
.orphan-table td[data-label="E-Mail"] { overflow-wrap: break-word; }
.orphan-hidden li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.orphan-hidden li:last-child { border-bottom: 0; }
.orphan-hidden form { margin: 0; }
@media (max-width: 680px) {
  .check-list > li { grid-template-columns: 22px minmax(0, 1fr); }
  .check-detail, .check-hint { grid-column: 2; }
  /* Konten nur in KeyHelp: je Konto ein Block statt breiter Tabelle */
  .orphan-table thead { display: none; }
  .orphan-table, .orphan-table tbody, .orphan-table tr, .orphan-table td { display: block; width: 100%; }
  .orphan-table tr { padding: 12px 18px; border-bottom: 1px solid var(--border); }
  .orphan-table td, .table-compact.orphan-table td { padding: 3px 0; border: 0; }
  .orphan-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; color: var(--muted); font-size: 11.5px; }
  .orphan-actions, .orphan-actions .row { flex-wrap: wrap; }
  .orphan-actions .select { width: 100%; }
}
.template-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.template-group > legend { margin-bottom: 10px; padding: 0; color: var(--text); font-size: 13px; font-weight: 650; }

.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; }

/* --- Dashboard: Reiter und Produktbalken --------------------------------- */
.tabs-products .tab { min-height: 38px; }

.product-list { display: grid; gap: 8px; }
/* Produktbalken: ruhige Karte in den Flächenfarben des Panels, die Farbe kommt nur vom Status (Streifen links, Punkt, Marke) */
.product-row {
  --row-tone: var(--success);
  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 20px 12px 24px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.product-row::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: 4px; background: var(--row-tone); }
a.product-row:hover { border-color: color-mix(in srgb, var(--row-tone) 50%, var(--border)); background: var(--surface-3); transform: translateY(-1px); }
.product-row.tone-warning { --row-tone: var(--warning); }
.product-row.tone-info { --row-tone: var(--info); }
.product-row.tone-danger { --row-tone: var(--danger); }
.product-row.tone-neutral { --row-tone: var(--muted-dark); }

.product-name { display: flex; align-items: center; gap: 13px; min-width: 0; }
.product-name strong { display: block; font-size: 14px; letter-spacing: -.01em; color: var(--text); }
.product-name small { display: block; color: var(--muted); font-size: 12px; }

.product-fact { min-width: 0; font-size: 12.5px; line-height: 1.4; color: var(--text-soft); }
.product-fact small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.product-fact em { font-style: normal; white-space: nowrap; }
.state-pill {
  display: inline-block; padding: 1px 9px; border-radius: 99px;
  background: color-mix(in srgb, var(--row-tone, var(--success)) 16%, transparent); color: var(--row-tone, var(--success));
  font-size: 11.5px; font-weight: 750; line-height: 1.6;
}

.product-action { display: flex; justify-content: flex-end; }
.product-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  font-size: 12px; font-weight: 700; white-space: nowrap; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
a.product-row:hover .product-button { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.product-button.is-muted { border-color: var(--border); background: transparent; color: var(--muted); }

.product-empty {
  display: grid; justify-items: center; gap: 8px; padding: 36px 20px 34px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2);
  color: var(--muted); font-size: 13.5px; line-height: 1.5; text-align: center;
}
.product-empty-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 4px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
}
.product-empty h3 { margin: 0; color: var(--text); font-size: 16px; }
.product-empty p { max-width: 460px; margin: 0; }
.product-empty .row { justify-content: center; gap: 8px; margin-top: 12px; }
.product-empty.is-search { padding: 26px 20px; }
.product-empty.is-search .product-empty-icon { width: 44px; height: 44px; }
/* Bei leerem Bereich stehen die Bestell-Knöpfe schon im Hinweis, der Streifen darunter entfällt (ein Gutschein bleibt als eigene Zeile) */
.dash-panel:has(.product-empty) .order-more-main,
.tab-panel:has(.product-empty) .order-more-main { display: none; }
.dash-panel:has(.product-empty) .order-more-voucher,
.tab-panel:has(.product-empty) .order-more-voucher { border-top: 0; }
/* Ohne Bestell-Links und ohne Gutschein gibt es den Streifen nicht */
.order-more:not(:has(.order-more-main, .order-more-voucher)) { display: none; }

/* Platz für das nächste Produkt: gestrichelter Rahmen wie ein freier Steckplatz, links Symbol und Text, rechts die Bestell-Links */
.order-more {
  margin-top: 16px; overflow: hidden;
  border: 1px dashed var(--border-light); border-radius: var(--radius);
  color: var(--muted); font-size: 12.5px; text-align: left;
}
.order-more-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; }
.order-more-icon {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text-soft);
}
.order-more-text { display: grid; flex: 1 1 220px; gap: 2px; min-width: 0; }
.order-more-text strong { color: var(--text); font-size: 13.5px; font-weight: 700; }
.order-more-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-more-actions .button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
/* Gutschein aus dem Admin-Bereich (Gutscheine → „Im Dashboard anzeigen“): kurze, mittige Zeile unten im Streifen */
.order-more-voucher {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 10px 16px;
  border-top: 1px dashed var(--border-light); background: var(--accent-soft); color: var(--text-soft); text-align: center;
}
.order-more-voucher strong { color: var(--text); font-size: 13px; font-weight: 700; }
.order-more-voucher-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); }
.order-more-voucher-note { color: var(--muted); font-size: 12px; }
.order-more-voucher form { margin: 0; }
.voucher-code {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px dashed var(--accent); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: 650 12.5px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; cursor: pointer;
}
.voucher-code:hover { background: var(--surface-2); color: var(--accent); }
.voucher-code svg { color: var(--muted); }
.voucher-code:hover svg { color: var(--accent); }

.stat-value.mono { font-size: 17px; letter-spacing: .02em; }
.stat-value.is-text { font-size: 15px; letter-spacing: 0; font-weight: 650; }
.stat-value.is-uid { font-size: 13px; letter-spacing: 0; font-weight: 650; overflow-wrap: anywhere; }
.stat form { display: flex; }

.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; }
/* Auswahl mit Suche (Gutscheine, Kündigung) */
.picker { position: relative; }
.picker-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 38px; padding: 4px 6px 4px 8px; cursor: text;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: var(--page);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.picker-box:hover { border-color: var(--muted-dark); }
.picker-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.picker-input { flex: 1 1 120px; min-width: 0; height: 28px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: var(--text); }
.picker-input::placeholder { color: var(--muted-dark); }
.picker-input:disabled { cursor: default; }
.picker-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 4px 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.picker-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-chip button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.picker-chip button:hover { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.picker-list {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.picker-group { padding: 8px 10px 4px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.picker-group:first-child { padding-top: 4px; }
.picker-option { padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text-soft); font-size: 13px; cursor: pointer; }
.picker-option.is-active { background: var(--surface-2); color: var(--text); }
.picker-empty { padding: 8px 10px; color: var(--muted); font-size: 13px; }
.picker + .help { display: block; }
.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-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; }
.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; }
.meter-row.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* Tube-Server: nur Prozessor und Arbeitsspeicher */
.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-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 ---------------------------------------------------- */

/* Alle Kacheln gleich groß, in der Breite vier pro Reihe (weniger auf schmalen Flächen, siehe @container unten).
   Flexbox statt Raster, weil die Spalten per Container-Abfrage an den Kindern umgestellt werden. */
.method-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.method { position: relative; display: block; flex: 0 0 calc((100% - 30px) / 4); min-width: 0; cursor: pointer; }
.method-tile {
  --tile-a: #334155; --tile-b: #475569;
  position: relative; overflow: hidden; height: 100%; min-height: 64px;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.method-text { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.method-text strong { font-size: 13.5px; font-weight: 700; }
.method-text small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.method-symbol, .method-logo {
  order: -1; flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--tile-a), var(--tile-b)); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.method-symbol svg { width: 22px; height: 22px; }
.method-check {
  position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; display: none; place-items: center;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
}
.method:hover .method-tile { border-color: var(--border-light); background: var(--surface-3); }
.method input:checked + .method-tile { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.method input:checked + .method-tile .method-check { display: grid; }
.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; }
/* Zahlungsart als Symbol-Feld in der Markenfarbe; die Kachel selbst bleibt neutral (Flächen und Akzent des Panels) */
/* Eigenes Logo (public/assets/img/pay/<id>.svg|png): im selben Feld, weiß auf Markenfarbe */
.method-logo { padding: 7px; box-sizing: border-box; object-fit: contain; }
/* Spalten nach verfügbarer Breite, damit Name und Beschreibung höchstens zwei Zeilen brauchen. */
.method-grid { container-type: inline-size; }
@container (max-width: 899px) {
  .method { flex-basis: calc((100% - 20px) / 3); }
}
@container (max-width: 619px) {
  .method { flex-basis: calc((100% - 10px) / 2); }
}
@container (max-width: 419px) {
  .method { flex-basis: 100%; }
}

.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; }
.charge-row + .check { margin-top: 16px; }
.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); }
/* Rechte Spalte mit Infokästen über der Kostenübersicht: sie füllt die Zeilenhöhe, damit die Kostenübersicht beim Scrollen kleben bleibt */
.order-side { display: flex; flex-direction: column; gap: 18px; align-self: stretch; min-width: 0; }
.order-info .spec-list { margin-bottom: 0; font-feature-settings: "calt" 0; } /* „2x 10 Gbit“ nicht von der Schrift zu „2× 10“ machen lassen */
.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; }

/* --- 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; }

/* Dialog „Design“ (Einstellungen → Voreinstellungen): Vorschau je Farbschema, feste Farben aus beiden Schemata;
   die Akzentfarbe der Vorschau setzt app.js (--tp-accent-light/-dark) */
dialog.dialog-design { width: min(600px, calc(100vw / var(--zoom) - 32px)); }
/* langer Dialog: Kopf und Buttons bleiben stehen, der Inhalt scrollt */
dialog.dialog-design[open] { display: flex; flex-direction: column; }
dialog.dialog-design > form { display: flex; flex-direction: column; min-height: 0; }
dialog.dialog-design .dialog-body { overflow-y: auto; }
.dialog-foot .grow-start { margin-right: auto; }
.design-group { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.design-group > legend { margin-bottom: 8px; padding: 0; }
.design-group > .segmented { justify-self: start; }
.design-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 560px) {
  .design-options { grid-template-columns: minmax(0, 1fr); }
  /* schmal: Abbrechen und Speichern nebeneinander, „Standard“ darunter */
  .dialog-design .dialog-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-design .dialog-foot .grow-start { grid-column: 1 / -1; order: 3; margin-right: 0; }
}
.theme-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.theme-pick { position: relative; display: block; min-width: 0; cursor: pointer; }
.theme-pick-body { display: grid; gap: 7px; padding: 6px 6px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); transition: border-color .15s ease; }
.theme-pick:hover .theme-pick-body { border-color: var(--muted-dark); }
.theme-pick input:checked + .theme-pick-body { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.theme-pick input:focus-visible + .theme-pick-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-pick-label { color: var(--text-soft); font-size: 12.5px; font-weight: 600; text-align: center; }
.theme-pick input:checked + .theme-pick-body .theme-pick-label { color: var(--text); }
.theme-preview { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 5px; box-shadow: 0 0 0 1px var(--border); }
.tp-screen { position: absolute; inset: 0; display: flex; gap: 4px; padding: 5px; }
.tp-screen.is-light { --tp-page: #f5f7fa; --tp-surface: #ffffff; --tp-line: #dde4eb; --tp-accent: var(--tp-accent-light, #148f79); background: var(--tp-page); }
.tp-screen.is-dark { --tp-page: #090c11; --tp-surface: #121720; --tp-line: #222a36; --tp-accent: var(--tp-accent-dark, #6fe0ca); background: var(--tp-page); }
.theme-preview.is-auto .tp-screen.is-light { clip-path: inset(0 50% 0 0); }
.theme-preview.is-auto .tp-screen.is-dark { clip-path: inset(0 0 0 50%); }
.tp-side { flex: 0 0 22%; border-radius: 3px; background: var(--tp-surface); box-shadow: inset 0 0 0 1px var(--tp-line); }
.tp-main { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.tp-bar { height: 16%; border-radius: 2px; background: var(--tp-accent); width: 45%; }
.tp-card { flex: 1; border-radius: 3px; background: var(--tp-surface); box-shadow: inset 0 0 0 1px var(--tp-line); }
.tp-card.is-short { flex: .6; }

/* Akzentfarben als Farbtupfer – je Farbschema dieselben Werte wie in theme.js */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.swatch { position: relative; display: grid; justify-items: center; gap: 6px; padding: 8px 2px 6px; border-radius: var(--radius); cursor: pointer; }
.swatch:hover { background: var(--surface-2); }
.swatch.is-teal { --sw: #6fe0ca; }
.swatch.is-blue { --sw: #7fb4ff; }
.swatch.is-violet { --sw: #b7a2ff; }
.swatch.is-pink { --sw: #f792c8; }
.swatch.is-orange { --sw: #f7b26a; }
.swatch.is-green { --sw: #8edc94; }
html[data-theme="light"] .swatch.is-teal { --sw: #148f79; }
html[data-theme="light"] .swatch.is-blue { --sw: #1f6fd1; }
html[data-theme="light"] .swatch.is-violet { --sw: #6a4bd6; }
html[data-theme="light"] .swatch.is-pink { --sw: #c0347e; }
html[data-theme="light"] .swatch.is-orange { --sw: #b35a00; }
html[data-theme="light"] .swatch.is-green { --sw: #23824a; }
/* Hintergründe: Farbtupfer zeigen die Fläche, die das Farbschema daraus macht (dunkel, im hellen Design hell) */
.swatch.is-bg-neutral { --sw: #090c11; }
.swatch.is-bg-tinted { --sw: color-mix(in srgb, var(--accent) 14%, #090c11); }
.swatch.is-bg-black { --sw: #000000; }
.swatch.is-bg-graphite { --sw: #15171b; }
.swatch.is-bg-midnight { --sw: #0d162e; }
.swatch.is-bg-forest { --sw: #091611; }
.swatch.is-bg-plum { --sw: #1a0f24; }
.swatch.is-bg-wine { --sw: #210c11; }
.swatch.is-bg-sand { --sw: #1a1711; }
html[data-theme="light"] .swatch.is-bg-neutral { --sw: #f5f7fa; }
html[data-theme="light"] .swatch.is-bg-tinted { --sw: color-mix(in srgb, var(--accent) 14%, #f5f7fa); }
html[data-theme="light"] .swatch.is-bg-black { --sw: #fbfbfb; }
html[data-theme="light"] .swatch.is-bg-graphite { --sw: #f2f3f5; }
html[data-theme="light"] .swatch.is-bg-midnight { --sw: #eff4fb; }
html[data-theme="light"] .swatch.is-bg-forest { --sw: #edf6f0; }
html[data-theme="light"] .swatch.is-bg-plum { --sw: #f8f4fc; }
html[data-theme="light"] .swatch.is-bg-wine { --sw: #fcf4f5; }
html[data-theme="light"] .swatch.is-bg-sand { --sw: #f8f2e8; }
.swatch.is-bg .swatch-dot { box-shadow: inset 0 0 0 1px var(--border-light); }
.swatch-dot, .swatch-ring { width: 30px; height: 30px; border-radius: 50%; }
.swatch-dot { background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
/* eigene Farbe: Farbwähler im Regenbogenring */
.swatch-ring { display: grid; place-items: center; background: conic-gradient(#f87171, #fbbf24, #4ade80, #38bdf8, #a78bfa, #f472b6, #f87171); }
.swatch-color { width: 22px; height: 22px; padding: 0; border: 2px solid var(--surface); border-radius: 50%; background: none; cursor: pointer; appearance: none; -webkit-appearance: none; }
.swatch-color::-webkit-color-swatch-wrapper { padding: 0; }
.swatch-color::-webkit-color-swatch { border: 0; border-radius: 50%; }
.swatch-color::-moz-color-swatch { border: 0; border-radius: 50%; }
.swatch-name { color: var(--muted); font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.swatch input:checked + .swatch-dot, .swatch input:checked ~ .swatch-ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text-soft); }
.swatch input:checked ~ .swatch-name { color: var(--text); }
.swatch input:focus-visible + .swatch-dot, .swatch input:focus-visible ~ .swatch-ring, .swatch-color:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.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); }
.setting-note + .setting-note { margin-top: -8px; }
.setting-note.is-warning { background: var(--warning-soft); }
.setting-note.is-warning .icon { color: var(--warning); }
.setting > .setting-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.setting-actions > .button { flex: 1 1 auto; }
.dialog-intro { margin: 0 0 14px; line-height: 1.55; }
.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 / var(--zoom) - 32px)); }
.dialog-foot .grow { align-self: center; }

/* E-Mail-Benachrichtigungen (Einstellungen): Gruppen links, ruhige Liste rechts */
.card-body.notify { padding-block: 4px; }
.notify-group { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 20px 0; }
.notify-group + .notify-group { border-top: 1px solid var(--border); }
.notify-group h3 { margin: 1px 0 0; color: var(--text-soft); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.notify-list { display: grid; gap: 18px; }
.notify-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; cursor: pointer; }
.notify-row > .switch { flex: none; }
.notify-info { display: grid; gap: 3px; min-width: 0; max-width: 620px; }
.notify-info > strong, .notify-info > label { color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.notify-info > span, .notify-info > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.notify-amount { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 13px; cursor: default; }
.notify-amount .input { width: 88px; min-height: 32px; padding: 5px 10px; text-align: right; }
.notify-row:not(:has(.switch input:checked)) .notify-amount { display: none; }
.switch { position: relative; display: inline-flex; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch-track { position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--border-light); transition: background-color .15s ease; }
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s ease;
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

.toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

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

.reply { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.reply .textarea { min-height: 96px; }
.reply .small .icon { display: inline-block; vertical-align: -2px; }

/* --- 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; }

/* Vertrag kündigen / widerrufen: Formular mit Hinweisen rechts daneben (schmal: darunter) */
.auth-stack.xl { width: min(1060px, 100%); }
.contract-layout { width: min(1080px, 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.contract-layout .auth-card { width: 100%; }
.contract-aside { display: grid; gap: 14px; min-width: 0; }
.contract-info .card-head h2 { display: inline-flex; align-items: center; gap: 8px; }
.contract-info .card-head h2 .icon { color: var(--info); }
.contract-info .card-body { color: var(--text-soft); font-size: 13.5px; line-height: 1.55; }
.contract-info p { margin: 0 0 10px; }
.contract-info .link { overflow-wrap: anywhere; }
.contract-list { display: grid; gap: 8px; margin: 0; padding-left: 18px; list-style: disc; }
.contract-list li::marker { color: var(--muted); }
.contract-list strong { color: var(--text); }
.contract-address { margin: 0 0 6px; color: var(--text); font-style: normal; }
.contract-ways { margin: 0; padding: 0; list-style: none; }
.contract-ways li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); color: var(--text-soft); font-size: 13.5px; line-height: 1.55; }
.contract-ways li:first-child { border-top: 0; }
.contract-ways strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 13.5px; }
.contract-ways p { margin: 0 0 4px; }
.contract-ways p:last-child, .contract-ways .contract-address:last-child { margin-bottom: 0; }
.contract-way-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 1180px) {
  .content .contract-layout { width: min(640px, 100%); grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .contract-layout { width: min(640px, 100%); grid-template-columns: minmax(0, 1fr); }
  .auth-stack.xl { width: min(640px, 100%); }
}

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

.chart-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.chart { margin: 0; min-width: 0; }
.chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--text); font-size: 13px; font-weight: 700; }
.chart-total { color: var(--text-soft); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.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;
}

/* --- Domains ------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.text-danger { color: var(--danger); }

.domain-search .tabs { margin-bottom: 14px; }
.domain-field { display: flex; gap: 8px; }
.domain-input { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.domain-input .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-dark); pointer-events: none; }
.domain-field .input { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 48px; padding-left: 44px; font-size: 16px; font-weight: 600; }
.domain-field .button { min-height: 48px; padding-inline: 20px; }

.domain-result {
  display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.domain-result > div { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.domain-result strong { color: var(--text); font-size: 17px; overflow-wrap: anywhere; }
.domain-result span { color: var(--text-soft); font-size: 13.5px; }
.domain-result-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.domain-result.is-free { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); background: linear-gradient(100deg, var(--success-soft), transparent 75%), var(--surface); }
.domain-result.is-free .domain-result-icon { background: var(--success); color: var(--page); }
.domain-result.is-taken .domain-result-icon { background: var(--warning-soft); color: var(--warning); }
.domain-alternatives { margin-top: 16px; }
/* wie die Zahlungsarten: die letzte Reihe füllt immer die ganze Breite */
.alt-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px 18px; }
.alt-item { flex: 1 1 calc((100% - 30px) / 4); min-width: 210px; display: grid; gap: 8px; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--page); transition: border-color .15s ease, opacity .15s ease; }
.alt-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.alt-top strong { min-width: 0; color: var(--text); font-size: 13.5px; overflow-wrap: anywhere; }
.alt-top small { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.alt-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.alt-price { color: var(--text-soft); font-size: 13px; font-weight: 700; white-space: nowrap; }
.alt-price small { margin-left: 3px; color: var(--muted); font-weight: 500; }
.alt-item.is-free { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.alt-item.is-free .alt-top small { color: var(--success); font-weight: 650; }
.alt-item.is-taken { opacity: .55; }
.alt-item.is-taken .alt-price { text-decoration: line-through; }
.domain-intro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.domain-intro > div { display: grid; gap: 4px; align-content: start; }
.domain-intro .icon { margin-bottom: 4px; color: var(--accent); }
.domain-intro strong { color: var(--text); font-size: 14px; }
.domain-intro span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.domain-cost-name { text-transform: none !important; letter-spacing: 0 !important; }
.ns-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.ns-fields .field { margin-bottom: 8px; }

.dns-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 0; list-style: none; }
.dns-legend li { display: inline-flex; align-items: center; gap: 6px; }
.dns-legend .chip { padding: 1px 7px; }
.dns-readonly { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.dns-readonly .dns-label { margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dns-readonly p { margin: 0 0 12px; }
.dns-table { display: grid; gap: 8px; }
.dns-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px minmax(0, 2.4fr) 36px; gap: 8px; align-items: center; }
.dns-row + .dns-row, [data-dns-rows] > .dns-row { margin-top: 8px; }
[data-dns-rows] > .dns-row:first-child { margin-top: 0; }
.dns-head { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dns-head + [data-dns-rows] { margin-top: -2px; }
.dns-row .icon-button { width: 36px; height: 36px; }
.dns-empty { margin: 4px 0 0; }

.toggle-grid-3 { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.toggle-grid-3 > .toggle-item { flex: 1 1 calc((100% - 30px) / 4); min-width: 170px; }
.toggle-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-soft); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.toggle-item:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--text); }

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

@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)); }
  .grid-side, .grid-main { grid-template-columns: minmax(0, 1fr); }
  .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); }
  .toggle-grid-3 > .toggle-item { flex-basis: calc((100% - 10px) / 2); }
}

@media (max-width: 960px) {
  .notify-group, .member-permissions .notify-group { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .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)); }
}

@media (max-width: 680px) {
  .meter-row, .meter-row.is-pair { 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); }
  .notify-row { gap: 16px; }
  .domain-field { flex-wrap: wrap; }
  .domain-input { flex-basis: 100%; }
  .domain-search .tab { padding-inline: 8px; font-size: 13px; }
  .domain-field .button { flex: 1 1 auto; }
  .domain-result { flex-wrap: wrap; }
  .domain-result .button { width: 100%; }
  .domain-intro, .ns-fields { grid-template-columns: minmax(0, 1fr); }
  .toggle-grid-3 > .toggle-item { flex-basis: 100%; }
  .dns-row { grid-template-columns: minmax(0, 1fr) 104px 36px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
  .dns-row > [data-dns-data] { grid-column: 1 / 3; grid-row: 2; }
  .dns-row > .icon-button { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .dns-head { display: none; }
  .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%; }
  .bank-table th { width: auto; white-space: normal; }
  .table-tools { padding-left: 16px; padding-right: 16px; }
  .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; }
  .user-button .name { display: none; }
  .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; }
  .chat-avatar { width: 28px; height: 28px; font-size: 11px; }
  .chat-image img { max-width: 160px; }
  .toasts { bottom: 12px; right: 12px; width: calc(100vw / var(--zoom) - 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; }
}

/* Transaktionen: Richtungssymbol, „Beleg|Rechnung Vorgang (ID: …)“, Betrag rechts */
.doc-badge { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 5px; background: var(--info-soft); color: var(--info); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.doc-badge.is-invoice { background: var(--success-soft); color: var(--success); }
@media print { .no-print { display: none !important; } }
.ledger-entry { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ledger-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.ledger-icon.is-credit { background: var(--success-soft); color: var(--success); }
.ledger-icon.is-credit .icon { transform: rotate(180deg); }
.ledger-icon.is-warning { background: var(--warning-soft); color: var(--warning); }
.ledger-icon.is-accent { background: var(--accent-soft); color: var(--accent); }
.ledger-icon.is-info { background: var(--info-soft); color: var(--info); }
.ledger-text { display: grid; gap: 2px; min-width: 0; }
.ledger-text small { color: var(--muted); font-size: 12px; }
.ledger-uid { color: var(--muted); font-size: 12.5px; font-weight: 400; white-space: nowrap; } /* die ID bricht als Ganzes um */
.ledger-uid .mono { font-size: .95em; user-select: all; }
.ledger-uid .uid-short { display: none; }
.ledger .ledger-amount { font-size: 14px; font-variant-numeric: tabular-nums; }
.ledger .ledger-amount.is-debit { color: var(--text); }
.ledger .ledger-amount.is-credit { color: var(--success); }
/* Transaktionen: Zeilen etwas enger als in anderen Tabellen (die Protokolle behalten ihren Abstand) */
#transactions td { padding-top: 8px; padding-bottom: 8px; }
#transactions .button-small { min-height: 30px; }
.show-sm { display: none; }

/* Spalten, die auf schmalen Bildschirmen entfallen (z. B. Backup-Liste, Transaktionen) */
@media (max-width: 560px) {
  .table .hide-sm { display: none; }
  .show-sm { display: inline; }
  /* schmal: Kurzform der ID (vollständig im PDF und über die Suche), ohne Richtungssymbol */
  .ledger-uid .uid-full { display: none; }
  .ledger-uid .uid-short { display: inline; }
  .ledger .ledger-icon { display: none; }
}

/* Umschalter (z. B. Art eines Gutscheins) */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 13px; font-weight: 600; }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Volle Breite, Optionen gleich breit nebeneinander (z. B. Art des Gutscheins) */
/* Auswahl als Links (z. B. Zeitraum der Statistik in der Admin-Übersicht) */
.segmented > a { display: block; padding: 6px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 13px; font-weight: 600; }
.segmented > a:hover { color: var(--text); }
.segmented > a.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.range-switch { padding: 3px; }
.segmented.is-block { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; width: 100%; }
.segmented.is-block span { text-align: center; }

/* Angerechneter Rabatt-Gutschein auf Bestellseiten */
.voucher-applied { display: grid; gap: 6px; }
.voucher-applied .cost-row { align-items: flex-start; }
.voucher-label { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--text-soft); }
.voucher-label .icon { flex: none; margin-top: 2px; color: var(--success); }
.voucher-label > span { display: grid; gap: 1px; }
.voucher-label small { color: var(--muted); font-size: 12px; }
.voucher-applied form { margin: 0; }
button.link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* --- Ticket-Ansicht: Verlauf links, Infospalte rechts (Kunde und Team) ---- */
.helpdesk { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.helpdesk-main { min-width: 0; }
.helpdesk-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.helpdesk-info { overflow: hidden; }
.helpdesk-facts { padding: 4px 18px; }
.helpdesk-facts dd { text-align: right; }
.helpdesk-customer { display: flex; align-items: center; gap: 10px; margin: 0 18px; padding: 12px 0; border-top: 1px solid var(--border); }
.helpdesk-customer strong { display: block; color: var(--text); font-size: 13.5px; }
.helpdesk-customer small { display: block; color: var(--muted); font-size: 12px; }
.helpdesk-actions { display: grid; gap: 8px; padding: 14px 18px 16px; border-top: 1px solid var(--border); }
.helpdesk-actions form { margin: 0; }
.mb-sm { margin-bottom: 10px; }
.overline a .icon { display: inline-block; vertical-align: -2px; }

/* Antwortfeld: kompakt mit Werkzeugleiste */
.composer { position: relative; display: grid; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.composer:focus-within, .composer.is-over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* Dateien auf das Antwortfeld ziehen */
.composer.is-over::after {
  content: attr(data-drop-label); position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: inherit; background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--accent); font-size: 14px; font-weight: 600; pointer-events: none;
}
.composer-input { width: 100%; min-height: 84px; padding: 13px 15px; border: 0; border-radius: 12px 12px 0 0; background: transparent; color: var(--text); font: inherit; line-height: 1.5; resize: vertical; outline: none; }
/* Angehängte Dateien als kleine Einträge über der Werkzeugleiste */
.composer-files { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 12px 10px; list-style: none; }
.composer-files li { display: inline-flex; align-items: center; gap: 8px; max-width: min(100%, 300px); padding: 3px 3px 3px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text-soft); font-size: 12.5px; }
.composer-files li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-files li small { flex: none; color: var(--muted); font-size: 11.5px; }
.composer-files li .icon-button { flex: none; width: 22px; height: 22px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; }
.composer-files li .icon-button:hover { background: var(--danger-soft); color: var(--danger); }
.composer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--border); }
.composer-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.composer-file-input:focus-visible + .composer-tool { outline: 2px solid var(--accent); outline-offset: 2px; }
.composer-tool:hover, .composer-tool.is-active { border-color: var(--border); background: var(--surface-2); color: var(--text); }
.composer-send { margin-left: auto; }
@media (max-width: 480px) {
  /* Handy: Werkzeuge oben, Senden darunter über die ganze Breite */
  .composer-bar { gap: 6px 4px; padding: 8px; }
  .composer-tool { padding: 0 8px; }
  .composer-send { flex: 1 0 100%; justify-content: center; margin-left: 0; }
}

@media (max-width: 1400px) {
  .helpdesk { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1180px) {
  /* Ticketliste neben der Seitenleiste: Kategorie und Erstellungsdatum stehen im Ticket selbst */
  .tk-rows-head, .tk-row { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
  .tk-row-cat, .tk-row-created { display: none; }
}
@media (max-width: 960px) {
  /* Handy/Tablet: Infospalte unter dem Verlauf, Ticketzeilen zweizeilig */
  .helpdesk { grid-template-columns: minmax(0, 1fr); }
  .tk-body { padding: 0 0 18px; }
  .tk-thread { max-height: calc(60svh / var(--zoom)); padding: 0 16px 18px; }
  .tk-reply { padding: 0 16px; }
  .tk-rows-head { display: none; }
  .tk-row { grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; padding: 12px 16px; }
  .tk-row-main { grid-column: 1 / -1; }
  .tk-row-cat, .tk-row-created { display: none; }
  .tk-row-state { order: 1; }
  .tk-row-priority { order: 2; }
  .tk-row-time { order: 3; text-align: right; white-space: nowrap; }
  .tk-msg { padding-left: 14px; }
  .tk-msg.from-support { padding: 12px 14px 14px; }
  .tk-msg-body { font-size: 14px; }
  .secret-inputs { grid-template-columns: minmax(0, 1fr); }
  .helpdesk-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 16px; padding: 6px 16px; }
  .helpdesk-facts > div { display: grid; justify-content: start; gap: 2px; min-height: 0; padding: 7px 0; border-bottom: 0; }
  .helpdesk-facts dd { text-align: left; }
  .helpdesk-customer { margin: 0 16px; }
  .helpdesk-actions { padding: 12px 16px 14px; }
}

/* --- Zwei-Faktor & Passkeys ------------------------------------------------ */
.auth-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.auth-passkey { display: grid; gap: 10px; margin-top: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.otp-input { font-size: 20px; letter-spacing: .25em; text-align: center; }
.setting-highlight { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.setting-highlight p { flex: 1; }

.setup-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: setup; }
.setup-steps > li { position: relative; display: grid; gap: 6px; padding-left: 40px; counter-increment: setup; }
.setup-steps > li::before { content: counter(setup); position: absolute; left: 0; top: -2px; 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; }
.setup-steps > li > strong { color: var(--text); font-size: 14px; }
.setup-steps > li > span { color: var(--muted); font-size: 13px; }
.totp-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.totp-setup .qr svg { width: 170px; height: 170px; }
.totp-setup > div:last-child { display: grid; gap: 6px; justify-items: start; }
.totp-secret { font-size: 14px; letter-spacing: .06em; }
.setup-form { display: grid; gap: 4px; margin-top: 6px; }
.setup-form .button { justify-self: start; }

.recovery-card { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); }
.recovery-card h2 .icon { display: inline-block; vertical-align: -2px; color: var(--warning); }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0 16px; padding: 0; list-style: none; }
.recovery-codes li { padding: 9px 12px; border: 1px dashed var(--border-light); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-size: 15px; letter-spacing: .04em; text-align: center; }

.passkey-list { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.passkey-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.passkey-list strong { display: block; color: var(--text); font-size: 14px; }
.passkey-list small { color: var(--muted); font-size: 12px; }
.passkey-list form { margin: 0; }
.passkey-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.passkey-add { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.passkey-add .button { justify-self: start; }

/* --- Profilbild ------------------------------------------------------------ */
.avatar.has-image, .profile-avatar.has-image, .chat-avatar.has-image { padding: 0; overflow: hidden; background: var(--surface-3); }
.has-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-avatar.is-medium { width: 88px; height: 88px; font-size: 28px; }
.profile-avatar.is-small { width: 56px; height: 56px; font-size: 19px; }
.avatar-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
/* Auswählen/Speichern und Entfernen als gleich gestaltete Knöpfe in einer Reihe */
.avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.avatar-actions form { margin: 0; }
.avatar-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.avatar-form [data-avatar-name]:empty { display: none; }
.button.avatar-remove { color: var(--danger); }
.button.avatar-remove:hover { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--danger-soft); color: var(--danger); }
.avatar-form label.button { cursor: pointer; }
.avatar-form input[type="file"]:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.user-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.user-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; color: var(--text-soft); font-size: 13.5px; }
.user-head-meta + .small { margin-top: 2px; }
/* Kennzahlen eines Kunden unter dem Kopf (Verwaltung → Benutzer): Felder durch Linien getrennt */
.user-facts { display: grid; gap: 1px; margin: 0 0 16px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border); }
.user-facts.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.user-facts.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.user-facts.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.user-facts.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.user-facts > div { min-width: 0; padding: 11px 18px; background: var(--surface); }
.user-facts dt { margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.user-facts dd { display: flex; align-items: center; gap: 4px; min-height: 24px; margin: 0; color: var(--text); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .user-facts[class*="cols-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Reiter „Produkte“ beim Benutzer: beendete Produkte (gelöscht, storniert) zurückgenommen */
.table tr.is-ended td { color: var(--muted); }
.table tr.is-ended strong { color: var(--text-soft); font-weight: 600; }
.table tr.is-highlight td, .table tr:target td { background: var(--accent-soft); }

/* --- Mitbesitzer -------------------------------------------------------------- */
.member-notice { align-items: flex-start; }
.member-notice > div { flex: 1 1 auto; min-width: 0; }
.member-notice form { flex: 0 0 auto; margin: 0; }
.member-rights { display: flex; flex-wrap: wrap; gap: 6px; }
.member-permissions { margin: 0 0 4px; padding: 0; border: 0; min-width: 0; }
.member-permissions legend { margin-bottom: 10px; padding: 0; color: var(--text); font-size: 13px; font-weight: 600; }
/* Rechte eines Mitbesitzers: wie die E-Mail-Benachrichtigungen (Bereiche links, Schalter rechts); auf schmalen Bildschirmen
   untereinander (die Regel für ≤ 960 px steht weiter oben und hätte gegen diese spätere sonst verloren) */
.member-permissions .notify-group { grid-template-columns: 170px minmax(0, 1fr); }
@media (max-width: 960px) {
  .member-permissions .notify-group { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
.member-permissions > .notify-group { padding-top: 4px; }
.member-groups { border-top: 1px solid var(--border); transition: opacity .15s ease; }
.member-permissions:has([data-permission-all]:checked) .member-groups { opacity: .55; }
.notify-group.is-sensitive .switch input:checked + .switch-track { background: var(--warning); }
.switch input:disabled { cursor: default; }
.notify-row:has(.switch input:disabled) { cursor: default; }
.perm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); color: var(--text-soft); font-size: 12px; font-weight: 600; white-space: nowrap; }
.perm-chip .icon { color: var(--muted); }
.perm-chip.is-all { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--accent-soft); color: var(--accent); }
.perm-chip.is-all .icon { color: var(--accent); }
.perm-chip.is-sensitive { border-color: color-mix(in srgb, var(--warning) 35%, var(--border)); }
.perm-chip.is-sensitive .icon { color: var(--warning); }
td.actions form.inline { margin-left: 6px; vertical-align: middle; }
/* Aktionen einer Tabellenzeile (z. B. „Rechte“ und Löschen): Flex statt Textfluss, damit alle Schaltflächen exakt auf einer Höhe stehen */
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; vertical-align: middle; }
.row-actions > .button, .row-actions > form.inline { margin: 0; flex: 0 0 auto; }
td.actions .row-actions > form.inline { margin: 0; }
.row-actions form.inline .button { margin: 0; }
[data-live-region="server-notices"] > .notice:last-child { margin-bottom: 16px; }

/* Reiter der Server-Verwaltung in einer Zeile: app.js nimmt erst die Symbole weg, macht sie dann enger
   und bricht nur um, wenn es gar nicht anders passt (is-tight → is-tighter → is-wrapped). */
.tabs-server.is-tight .tab { gap: 6px; padding: 0 10px; }
.tabs-server.is-tight .tab .icon { display: none; }
.tabs-server.is-tighter .tab { padding: 0 7px; font-size: 12.5px; }
.tabs-server.is-wrapped { flex-wrap: wrap; }
.tabs-server.is-wrapped .tab { flex: 1 0 calc((100% - (var(--tab-cols, 4) - 1) * 4px) / var(--tab-cols, 4)); min-width: 0; }
/* Reiter der Server-Verwaltung: bei vielen Reitern ohne Symbole, damit alle hineinpassen */
.tabs-server { container-type: inline-size; }
@container (max-width: 800px) {
  .tabs-server.is-crowded .tab { padding: 0 10px; gap: 6px; }
  .tabs-server.is-crowded .tab .icon { display: none; }
}
@media (max-width: 640px) {
  .tabs-server.is-crowded { flex-wrap: wrap; }
  .tabs-server.is-crowded .tab { flex: 1 1 30%; }
}

/* --- Nachgeladene Reiter der Server-Seite --------------------------------- */
.tool-panel.is-loading { opacity: .55; transition: opacity .15s ease; }
.tool-bar:empty { display: none; }
.tool-filter { display: inline-flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 13px; font-weight: 600; }
.tool-filter .select { width: auto; min-width: 190px; }
.card-divider { border-top: 1px solid var(--border); }
.check-col { width: 40px; }
.firewall-rules .select, .firewall-rules .input { min-width: 92px; }
.firewall-rules td:first-child .select { min-width: 128px; }
.firewall-rules td { vertical-align: middle; }
.firewall-plans td { vertical-align: top; }
.firewall-current { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.firewall-current > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.firewall-current strong { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.key-text { font-size: 12px; line-height: 1.5; white-space: pre; overflow-x: auto; resize: none; }
/* Fenster mit langem Inhalt (z. B. Firewall-Regeln): Kopf und Knöpfe bleiben stehen, der Inhalt rollt */
dialog.dialog-scroll[open] { display: flex; flex-direction: column; }
dialog.dialog-scroll > form { display: flex; flex-direction: column; min-height: 0; }
dialog.dialog-scroll .dialog-body { overflow-y: auto; overscroll-behavior: contain; }

/* --- Diagramme (Server-Statistik) -----------------------------------------
   Zwei Reihen in festen Farben (1 = eingehend/lesen, 2 = ausgehend/schreiben), für den
   jeweiligen Hintergrund geprüft (Farbsehschwäche, Kontrast). Linien 2px, Fläche 10 %. */
:root { --chart-1: #3987e5; --chart-2: #d95926; }
html[data-theme="light"] { --chart-1: #2a78d6; --chart-2: #eb6834; }
.chart { margin: 0; }
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.chart-head h3 { margin: 0; color: var(--text); font-size: 14px; font-weight: 650; }
.chart-head p { flex: 1 1 auto; margin: 0; color: var(--text-soft); font-size: 12.5px; }
.chart-unit { color: var(--muted); font-size: 12px; font-weight: 500; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; color: var(--text-soft); font-size: 12px; }
.chart-legend li { display: inline-flex; align-items: center; gap: 6px; }
.chart-key { display: inline-block; flex: none; width: 14px; height: 2px; border-radius: 1px; background: var(--chart-1); }
.chart-key.is-2 { background: var(--chart-2); }
.chart-key.is-box { width: 10px; height: 10px; border-radius: 2px; }
.chart-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 160px auto; column-gap: 10px; }
.chart-y { position: relative; min-width: 26px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-y span { position: absolute; right: 0; transform: translateY(50%); line-height: 1; white-space: nowrap; }
.chart-area { position: relative; min-width: 0; border-radius: 2px; }
.chart-area:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.chart-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-rule { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-line.is-2 { stroke: var(--chart-2); }
.chart-wash { fill: var(--chart-1); opacity: .1; }
.chart-cross { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--muted); pointer-events: none; }
.chart-dot { position: absolute; width: 8px; height: 8px; margin: 0 0 -4px -4px; border-radius: 50%; background: var(--chart-1); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.chart-dot.is-2 { background: var(--chart-2); }
.chart-tip {
  position: absolute; top: 4px; z-index: 3; min-width: 130px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22); font-size: 12px; line-height: 1.5; pointer-events: none;
}
.chart-tip-head { margin-bottom: 2px; color: var(--muted); white-space: nowrap; }
.chart-tip-row { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.chart-tip-row strong { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.chart-tip-row span:last-child { color: var(--text-soft); }
.chart-x { position: relative; grid-column: 2; height: 20px; color: var(--muted); font-size: 11px; }
.chart-x span { position: absolute; top: 5px; transform: translateX(-50%); white-space: nowrap; }
.chart-empty { margin: 0; color: var(--muted); font-size: 13px; }
.chart-gridline { position: absolute; left: 0; right: 0; height: 1px; background: var(--border); pointer-events: none; }
.chart-columns { position: absolute; inset: 0; display: flex; gap: 2px; }
.chart-col { position: relative; display: flex; flex: 1 1 0; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.chart-col:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 4px; }
.chart-seg { display: block; flex: none; width: 100%; max-width: 24px; background: var(--chart-1); }
.chart-seg.is-2 { background: var(--chart-2); }
.chart-seg + .chart-seg { margin-top: 2px; }
.chart-seg.is-top { border-radius: 4px 4px 0 0; }
.chart-col.is-active .chart-seg { filter: brightness(1.15); }
.chart-days-x { display: flex; grid-column: 2; gap: 2px; color: var(--muted); font-size: 11px; }
.chart-days-x span { flex: 1 1 0; min-width: 0; padding-top: 5px; text-align: center; white-space: nowrap; }
.chart-table { margin-top: 12px; font-size: 13px; }
.chart-table summary { color: var(--text-soft); cursor: pointer; }
.chart-table .table-wrap { margin-top: 8px; }

@media (max-width: 640px) {
  .member-notice { flex-wrap: wrap; }
  .member-notice form { flex-basis: 100%; }
}

/* --- Dashboard: Begrüßung und Kennzahlen (Reiter und Produktbalken siehe .tabs-products, .product-row) --- */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-bottom: 18px; }
.dash-avatar { flex: none; border-radius: 12px; }
.dash-avatar-img {
  width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface-3); color: var(--accent);
  font-size: 18px; font-weight: 800; text-transform: uppercase; transition: border-color .15s ease;
}
.dash-avatar:hover .dash-avatar-img, .dash-avatar:focus-visible .dash-avatar-img { border-color: var(--accent); }
.dash-hello { flex: 1 1 280px; min-width: 0; }
.dash-hello h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.dash-hello h1 .verified { width: 19px; height: 19px; }
.dash-hello p { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dash-id { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.dash-id { flex-wrap: wrap; }
.dash-id strong { color: var(--text-soft); font-weight: 600; white-space: nowrap; }

/* Kennzahlen als eigene Kästchen: links Bezeichnung und Wert, rechts ein Symbol */
/* Spalten, Größen und Symbol richten sich nach der Breite des Bereichs (auch bei eingeklapptem Menü). */
.dash-kpis { container-type: inline-size; margin-bottom: 16px; }
.dash-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dash-kpi { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; min-width: 0; }
.dash-kpi-text { display: grid; gap: 4px; min-width: 0; }
.dash-kpi-icon {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text-soft);
}
.dash-kpi-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.dash-kpi-label .icon { color: var(--muted-dark); }
.dash-kpi-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; color: var(--text); font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dash-kpi-value > span { white-space: nowrap; }
.dash-kpi-value .link-button { align-self: center; margin: -2px 0; padding: 3px; font-size: 0; }
.dash-kpi-unit { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
@container (max-width: 1129px) {
  .dash-kpi { gap: 10px; padding: 14px; }
  .dash-kpi-icon { width: 40px; height: 40px; border-radius: 9px; }
  .dash-kpi-icon .icon { width: 20px; height: 20px; }
  .dash-kpi-value { font-size: 20px; }
}
@container (max-width: 1059px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 640px) {
  .dash-kpi-grid { gap: 10px; }
  .dash-kpi { padding: 13px 14px; }
  .dash-kpi-value { font-size: 17px; }
  .dash-kpi-unit { font-size: 12.5px; }
  .dash-kpi-icon { width: 38px; height: 38px; }
  .dash-kpi-icon .icon { width: 19px; height: 19px; }
}
/* Schmal: ohne Symbol; der Kopieren-Knopf der Support-PIN rückt in die freie Ecke oben rechts. */
@container (max-width: 479px) {
  .dash-kpi-icon { display: none; }
  .dash-kpi-value .link-button { position: absolute; top: 9px; right: 9px; margin: 0; }
}
@container (max-width: 339px) {
  .dash-kpi-value { font-size: 15px; }
}

/* Reiter als eigene Leiste, darunter die Karte „Meine Produkte“ mit den farbigen Produktbalken (.product-row, .order-more) */
.dash-tabs { margin-bottom: 14px; }
.dash-panel { margin-top: 0; padding: 16px; container-type: inline-size; }
.dash-products .order-more { margin-top: 18px; }

.button.is-on { color: var(--accent); }
/* Spalten der Balken nach dem Platz in der Karte (nicht nach der Fensterbreite):
   breit alle Angaben, mittel ohne Bestelldatum, schmal zweispaltig untereinander. */
@container (max-width: 1079px) {
  .dash-products .product-row { grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(100px, 1fr)) auto; }
  .dash-products .product-row .product-fact:nth-of-type(3) { display: none; } /* Bestelldatum */
}
@container (max-width: 819px) {
  .dash-products .product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; padding: 14px 16px 14px 18px; }
  .dash-products .product-row .product-name { grid-column: 1 / -1; }
  .dash-products .product-action { justify-content: flex-start; align-self: end; }
}

@media (max-width: 680px) {
  .dash-panel { padding: 12px; }
}
@media (max-width: 400px) {
  .dash-id strong { white-space: normal; overflow-wrap: anywhere; }
}

/* Cloudflare Turnstile: Platz für das Prüffeld freihalten, damit nichts springt */
.turnstile { min-height: 65px; margin-top: 16px; }
.turnstile-error { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning); font-size: 12.5px; line-height: 1.45; }

/* Transaktionen als PDF: Zeiträume zum Anklicken */
.date-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.date-presets .button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Shop-Produkt mit Vorlage (z. B. Storage Box): Spalten und Leiste bei wenig Platz */
@media (max-width: 1440px) {
  .rows.store-strip.is-wide { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows.store-strip.is-wide > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .rows.store-strip.is-wide > div:nth-child(even) { padding-right: 0; }
  .rows.store-strip.is-wide > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 1180px) {
  .store-grid { grid-template-columns: minmax(0, 1fr); }
  .store-grid > :empty { display: none; }
  /* schmale Leisten (bis drei Felder) werden zur normalen Liste */
  .rows.store-strip:not(.is-wide) { display: block; }
  .rows.store-strip:not(.is-wide) > div:nth-child(n) { padding: 8px 0; border-top: 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .rows.store-strip:not(.is-wide) > div:last-child { border-bottom: 0; }
  .rows.store-columns { display: block; }
  .rows.store-details.store-columns > div:nth-child(n) { padding: 8px 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .rows.store-details.store-columns > div:last-child { border-bottom: 0; }
}
@media (max-width: 680px) {
  .webspace-actions { grid-template-columns: minmax(0, 1fr); }
  .rows.store-strip { display: block; }
  .rows.store-details.store-strip > div:nth-child(n) { padding: 8px 0; border-top: 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .rows.store-details.store-strip > div:last-child { border-bottom: 0; }
}

/* --- Automatische Aufladung (Guthaben aufladen) ---------------------------- */
.auto-methods { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.auto-methods legend { padding: 0; margin-bottom: 8px; }
.auto-actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.auto-change { flex: 1 1 100%; }
.auto-change[open] > summary { margin-bottom: 14px; }

/* --- Rechtstexte (PDF-Upload) ----------------------------------------------- */
.legal-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.legal-upload .input { width: auto; max-width: 280px; flex: 1 1 200px; padding: 6px 8px; }

/* --- Eingabefelder auf Telefonen ----------------------------------------------
   iOS Safari vergrößert die Seite beim Antippen eines Feldes mit weniger als 16 px Schrift (und verkleinert sie danach nicht wieder). */
@media (max-width: 680px) {
  .input, .select, .textarea, .composer-input, .picker-input { font-size: 16px; }
}

/* Passwortfeld neben einem Knopf (Benutzerseite: 2FA bzw. Passkeys eines Admin-Kontos entfernen) */
.input-confirm { display: inline-block; width: 11rem; max-width: 100%; margin-right: 6px; padding: 5px 8px; vertical-align: middle; }
