:root {
  --ink: #161a21;
  --ink-2: #20252d;
  --paper: #f5f6f7;
  --surface: #ffffff;
  --line: #dfe3e7;
  --muted: #667085;
  --navy: #1e3f72;
  --amber: #e9a72f;
  --amber-2: #d89012;
  --green: #218b43;
  --green-soft: #e8f5ec;
  --amber-soft: #fff4db;
  --blue-soft: #edf4ff;
  --red: #b33a3a;
  --radius: 10px;
  --shadow: 0 10px 35px rgba(25, 35, 48, .07);
}

/* Testvariante: Gelb + Graphit + Anthrazit. Entfernen der body-Klasse
   "theme-yellow" schaltet sofort auf die vorherige Farbwelt zurück. */
.theme-yellow {
  --ink: #202226;
  --ink-2: #2a2d31;
  --paper: #f4f4f4;
  --navy: #41464c;
  --amber: #ffe618;
  --amber-2: #ddc900;
  --amber-soft: #fffbd6;
  --blue-soft: #eff0f1;
  --shadow: 0 10px 35px rgba(28, 30, 33, .07);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { font-family: "Segoe UI Variable Text", "Segoe UI", "Aptos", sans-serif; font-size: 15px; }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }

.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 244px; padding: 26px 10px 20px; display: flex; flex-direction: column; color: #fff; background: radial-gradient(circle at -20% 110%, #2b313a 0, transparent 38%), linear-gradient(165deg, #1a1e24, #11151a); }
.brand { padding: 0 14px 24px; display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand strong { font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 29px; font-weight: 750; letter-spacing: -1px; line-height: 1; }
.brand span { margin-top: 7px; color: #cbd0d7; font-size: 14px; }
.nav { padding-top: 18px; display: grid; gap: 4px; }
.nav-item { position: relative; width: 100%; min-height: 47px; padding: 0 13px; border: 0; border-radius: 8px; display: flex; gap: 13px; align-items: center; color: #dce0e5; background: transparent; cursor: pointer; text-align: left; }
.nav-item::before { content: ""; position: absolute; left: -10px; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: var(--amber); transition: height .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { color: #fff; background: rgba(255,255,255,.10); }
.nav-item.active::before { height: 30px; }
.nav-item.active svg { color: var(--amber); }
.sidebar-foot { margin-top: auto; padding: 16px 13px 0; display: grid; grid-template-columns: 9px 1fr; gap: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: 12px; font-weight: 600; }
.sidebar-foot small { color: #929aa4; margin-top: 3px; font-size: 11px; }
.live-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #54c675; box-shadow: 0 0 0 4px rgba(84,198,117,.12); }

.workspace { min-width: 0; grid-column: 2; display: flex; min-height: 100vh; flex-direction: column; }
.topbar { position: sticky; z-index: 20; top: 0; height: 74px; padding: 0 28px; display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-weight: 650; white-space: nowrap; }
.breadcrumb > svg { width: 16px; height: 16px; color: #596275; }
.breadcrumb .chev { width: 12px; color: #98a0aa; }
.global-search { width: min(310px, 27vw); height: 40px; margin-left: auto; padding: 0 8px 0 12px; display: flex; align-items: center; gap: 8px; background: #f8f9fa; border: 1px solid #d9dee4; border-radius: 8px; }
.global-search svg { width: 18px; color: #596275; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
kbd { border: 1px solid #d9dee4; border-radius: 5px; padding: 3px 5px; color: #7a838e; background: #fff; font-size: 11px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.top-link, .profile, .icon-button { border: 0; background: transparent; cursor: pointer; }
.top-link { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.profile { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.profile svg { width: 13px; transform: rotate(90deg); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #e6e8ec; }
.icon-button { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 8px; }
.icon-button:hover { background: #f1f3f5; }
.notification { position: relative; }
.notification span { position: absolute; top: -2px; right: -1px; width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--amber); font-size: 10px; font-weight: 700; }
.mobile-menu { display: none; }

.main { width: 100%; max-width: 1500px; margin: 0 auto; padding: 34px 30px 46px; outline: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: clamp(31px, 3vw, 42px); font-weight: 760; letter-spacing: -1.35px; line-height: 1.04; }
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.primary, .secondary, .ghost, .danger { min-height: 42px; padding: 0 17px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font-weight: 700; }
.primary { border: 1px solid var(--amber-2); background: linear-gradient(#f5b943, #e9a126); box-shadow: 0 3px 8px rgba(202,132,10,.16); }
.primary:hover { background: #f2b13b; }
.secondary { border: 1px solid #d6dce2; background: #fff; }
.ghost { border: 0; background: transparent; color: var(--navy); }
.danger { border: 1px solid #e7caca; color: var(--red); background: #fff8f8; }
.primary svg, .secondary svg { width: 18px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { min-height: 112px; padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(20,30,40,.02); }
.metric-row { display: flex; align-items: center; gap: 14px; }
.metric-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--ink); background: #f6f7f8; }
.metric-icon.ok { color: var(--green); background: var(--green-soft); }
.metric-icon.warn { color: var(--amber-2); background: var(--amber-soft); }
.metric b { display: block; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 29px; font-weight: 740; line-height: 1; }
.metric span { display: block; margin-top: 6px; color: var(--muted); }
.metric small { display: block; margin-top: 9px; color: #8a929c; }
.progress { overflow: hidden; height: 7px; margin-top: 12px; border-radius: 9px; background: #e5e8eb; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }

.dashboard-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 16px; }
.overview-grid { display: grid; grid-template-columns: 1.75fr .94fr .94fr 1fr; grid-template-areas: "system storage traffic services" "websites websites websites side"; gap: 16px; align-items: stretch; }
.overview-grid > * { min-width: 0; }
.overview-system { grid-area: system; }
.overview-storage { grid-area: storage; }
.overview-traffic { grid-area: traffic; }
.overview-services { grid-area: services; }
.overview-websites { grid-area: websites; }
.overview-side { grid-area: side; display: grid; gap: 16px; align-content: start; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { min-height: 59px; padding: 0 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 17px; }
.panel-head .spacer { flex: 1; }
.panel-body { padding: 18px; }
.health-panel { grid-row: span 2; }
.health-callout { padding: 16px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; border-radius: 8px; background: linear-gradient(90deg, #e6f5ea, #f1faf4); }
.health-callout .round-check { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); }
.health-callout strong, .health-callout small { display: block; }
.health-callout small { color: #4f6556; margin-top: 3px; }
.service-list { margin-top: 10px; }
.service-row { min-height: 50px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid #edf0f2; }
.service-row:last-child { border-bottom: 0; }
.service-row > span { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.state { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 13px; font-weight: 700; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.activity-list { display: grid; }
.activity { min-height: 58px; padding: 9px 0; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #edf0f2; }
.activity:last-child { border: 0; }
.activity-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); }
.activity strong, .activity small { display: block; }
.activity small { margin-top: 3px; color: var(--muted); }
.activity time { color: #8a929c; font-size: 12px; white-space: nowrap; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-actions button { min-height: 68px; border: 1px solid #dce1e6; border-radius: 8px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--navy); background: #fafbfc; cursor: pointer; font-weight: 700; }
.quick-actions button { min-width: 0; padding-inline: 5px; font-size: 12px; }
.quick-actions button:hover { border-color: #c3ccd6; background: #f3f7fb; }
.usage-body { padding: 18px 20px 20px; }
.ring { --value: 0; --ring-color: var(--green); position: relative; width: 106px; height: 106px; margin: 1px auto 14px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--ring-color) calc(var(--value) * 1%), #e4e7e9 0); }
.ring::after { content: ""; position: absolute; inset: 12px; border-radius: inherit; background: #fff; }
.ring span { position: relative; z-index: 1; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 25px; font-weight: 760; }
.ring small { font-size: 14px; }
.usage-value { display: flex; align-items: baseline; justify-content: center; gap: 5px; white-space: nowrap; }
.usage-value strong { font-size: 18px; }
.usage-value span { color: var(--muted); font-size: 13px; }
.usage-legend { margin-top: 15px; display: grid; grid-template-columns: 1fr auto; gap: 9px 8px; align-items: center; color: var(--muted); font-size: 12px; }
.usage-legend span { display: flex; align-items: center; gap: 7px; }
.usage-legend i { width: 9px; height: 9px; border-radius: 50%; background: #b9bec4; }
.usage-legend b { color: var(--ink); font-size: 12px; }
.compact-services { padding: 7px 16px 9px; }
.compact-service { min-height: 59px; display: grid; grid-template-columns: 38px 30px 1fr; align-items: center; gap: 9px; border-bottom: 1px solid #edf0f2; }
.compact-service:last-child { border-bottom: 0; }
.compact-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: #f5f6f7; }
.compact-service b { font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 20px; }
.compact-service > span:last-child { color: var(--muted); font-size: 13px; }

.content-split { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
.content-split > *, .dashboard-grid > * { min-width: 0; }
.toolbar { min-height: 66px; padding: 11px 16px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; }
.tab { height: 38px; padding: 0 14px; border: 0; border-radius: 7px; color: #596275; background: transparent; cursor: pointer; }
.tab.active { color: var(--navy); background: var(--blue-soft); font-weight: 700; }
.toolbar-search { height: 39px; margin-left: auto; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid #d8dde2; border-radius: 7px; background: #fff; }
.toolbar-search input { width: 180px; border: 0; outline: 0; }
.select { height: 39px; padding: 0 31px 0 11px; border: 1px solid #d8dde2; border-radius: 7px; background: #fff; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 46px; padding: 0 15px; color: #596275; background: #f7f8f9; font-size: 12px; font-weight: 650; text-align: left; white-space: nowrap; }
td { height: 66px; padding: 0 15px; border-bottom: 1px solid #edf0f2; vertical-align: middle; }
tbody tr { transition: background .12s ease; }
tbody tr:hover, tbody tr.selected { background: #f0f6ff; }
.domain-name, .mail-name { color: #173f78; font-weight: 750; }
.subtext { display: block; margin-top: 4px; color: #89919b; font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.ok { color: #176e35; background: var(--green-soft); }
.pill.warn { color: #8a5b05; background: var(--amber-soft); }
.pill.muted { color: #5f6874; background: #eef0f2; }
.more { width: 34px; height: 34px; border: 0; border-radius: 6px; display: grid; place-items: center; background: transparent; cursor: pointer; }
.more:hover { background: #eef1f4; }
.quota { min-width: 120px; }
.quota b { display: block; font-size: 12px; }
.quota .progress { width: 115px; margin-top: 6px; }

.drawer { position: sticky; top: 90px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.drawer-title { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-title-row { display: flex; align-items: center; gap: 10px; }
.drawer-title h2 { margin: 0; font-size: 22px; }
.drawer-title .close { margin-left: auto; }
.drawer-title p { margin: 7px 0 0; color: var(--muted); }
.drawer-tabs { padding: 0 20px; display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.drawer-tabs button { position: relative; height: 48px; padding: 0; border: 0; color: #667085; background: transparent; cursor: pointer; font-size: 13px; }
.drawer-tabs button.active { color: var(--navy); font-weight: 750; }
.drawer-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--amber); }
.drawer-body { padding: 19px 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.field input, .field select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d5dbe1; border-radius: 7px; outline: none; background: #fff; }
.field input:focus, .field select:focus { border-color: #3a5f91; box-shadow: 0 0 0 3px rgba(44,80,126,.12); }
.switch-row { min-height: 58px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; border-bottom: 1px solid #edf0f2; }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { margin-top: 4px; color: var(--muted); }
.switch { position: relative; width: 44px; height: 24px; border: 0; border-radius: 999px; background: #b5bcc5; cursor: pointer; }
.switch::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .16s ease; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }
.notice { margin: 15px 0; padding: 13px; display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: #25446d; background: #eff5fc; border-radius: 7px; font-size: 13px; }
.notice strong, .notice span { display: block; }
.notice span { margin-top: 3px; color: #60738b; }
.drawer-actions { padding: 16px 20px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: #fbfbfc; }

.timeline-panel { margin-top: 16px; }
.run-line { padding: 23px 20px; display: flex; justify-content: space-between; gap: 7px; }
.run-dot { position: relative; width: 16px; height: 16px; flex: 0 0 auto; border: 4px solid #fff; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px #d9dee3; }
.run-dot.warn { background: var(--amber); }
.run-line .run-dot:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 3px; width: calc((min(100vw, 900px) - 120px) / 14); height: 2px; background: #dce1e5; z-index: -1; }
.legend { padding: 0 20px 20px; display: flex; gap: 18px; color: var(--muted); font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.resource-card { padding: 20px; min-height: 190px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.resource-card .metric-icon { margin-bottom: 18px; }
.resource-card h2 { margin: 0; font-size: 18px; }
.resource-card p { margin: 8px 0 18px; color: var(--muted); line-height: 1.45; }
.resource-card .card-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }

footer { min-height: 52px; margin-top: auto; padding: 0 30px; display: flex; align-items: center; gap: 20px; color: #76808c; background: #fff; border-top: 1px solid var(--line); font-size: 12px; }
.footer-health { margin-left: auto; }
.footer-health i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.scrim { display: none; position: fixed; z-index: 25; inset: 0; background: rgba(5,10,15,.48); }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; padding: 13px 17px; display: flex; gap: 10px; align-items: center; color: #fff; background: #1d2821; border-radius: 8px; box-shadow: 0 14px 45px rgba(0,0,0,.2); transform: translateY(100px); opacity: 0; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

.theme-yellow .sidebar {
  background: #191919;
}
.theme-yellow .primary {
  border-color: #d9c400;
  background: linear-gradient(#fff05a, #ffe618);
  box-shadow: 0 3px 8px rgba(157, 141, 0, .18);
}
.theme-yellow .primary:hover { background: #ffeb35; }
.theme-yellow .domain-name,
.theme-yellow .mail-name { color: #373c42; }
.theme-yellow tbody tr:hover,
.theme-yellow tbody tr.selected { background: #fffbd6; }
.theme-yellow .notice { color: #34383d; background: #f0f1f2; }
.theme-yellow .notice span { color: #676c72; }
.theme-yellow .tab.active { color: #30343a; background: #fffbd6; }
.theme-yellow .drawer-tabs button.active { color: #30343a; }
.theme-yellow .quick-actions button { color: #3c4248; }
.theme-yellow .main .tab:hover,
.theme-yellow .main .more:hover,
.theme-yellow .main .secondary:hover,
.theme-yellow .main .ghost:hover,
.theme-yellow .quick-actions button:hover { background: #fffde7; }
.theme-yellow .toolbar-search input:focus,
.theme-yellow .field input:focus,
.theme-yellow .field select:focus { border-color: #555b62; box-shadow: 0 0 0 3px rgba(65,70,76,.14); }
.theme-yellow :focus-visible { outline-color: rgba(65,70,76,.4); }
.toast svg { color: #69d58a; }

@media (max-width: 1180px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1.2fr .8fr; }
  .overview-grid { grid-template-columns: 1.4fr 1fr; grid-template-areas: "system services" "storage traffic" "websites websites" "side side"; }
  .overview-side { grid-template-columns: 1.2fr .8fr; }
  .health-panel { grid-row: auto; }
  .content-split { grid-template-columns: minmax(0,1fr) 340px; }
  .top-link span, .profile > span:not(.avatar) { display: none; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .app-shell { display: block; }
  .workspace { margin-left: 0; }
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .scrim.open { display: block; }
  .mobile-menu { display: grid; }
  .breadcrumb { display: none; }
  .global-search { width: auto; flex: 1; margin-left: 0; }
  .content-split { grid-template-columns: 1fr; }
  .drawer { position: static; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "system system" "storage traffic" "services services" "websites websites" "side side"; }
  .resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar { height: 64px; padding: 0 12px; gap: 5px; }
  .global-search kbd, .top-link, .profile svg { display: none; }
  .profile { margin-left: 2px; }
  .avatar { width: 34px; height: 34px; }
  .main { padding: 25px 14px 36px; }
  .page-head { flex-direction: column; }
  .page-head .primary { width: 100%; }
  .metrics { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; grid-template-areas: "system" "storage" "traffic" "services" "websites" "side"; }
  .overview-side { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-wrap: wrap; }
  .toolbar-search { order: 3; width: 100%; margin-left: 0; }
  .toolbar-search input { width: 100%; }
  .tabs { overflow-x: auto; }
  .quick-actions { grid-template-columns: 1fr; }
  footer { padding: 12px 14px; flex-wrap: wrap; }
  footer a, .footer-health { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

:focus-visible { outline: 3px solid rgba(39,75,121,.35); outline-offset: 2px; }
.main:focus-visible { outline: none; }

/* Produktionsportal: dynamische Portal- und Formularzustände */
.topbar-spacer { flex: 1; }
.nav-item small { margin-left: auto; color: #858b92; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.eyebrow { display: block; margin-bottom: 9px; color: #686e75; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.state.neutral { color: #7b8188; }
.compact-icon.ok { color: var(--green); background: var(--green-soft); }
.compact-icon.warn, .activity-icon.warn { color: #8a5b05; background: var(--amber-soft); }
.usage-body { text-align: center; }
.usage-body p { margin: 14px 0 10px; color: var(--muted); line-height: 1.45; }
.stat-orb { width: 106px; height: 106px; margin: 1px auto 14px; display: grid; place-content: center; border: 12px solid #d9efe0; border-radius: 50%; background: #fff; }
.stat-orb.yellow { border-color: #fff6a7; }
.stat-orb strong, .stat-orb span { display: block; }
.stat-orb strong { font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 30px; line-height: 1; }
.stat-orb span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.text-link { color: #353a40; font-weight: 750; text-decoration: underline; text-decoration-color: #ffe618; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.quick-actions a { min-height: 68px; padding: 7px 5px; border: 1px solid #dce1e6; border-radius: 8px; display: grid; place-items: center; align-content: center; gap: 6px; color: #3c4248; background: #fafbfc; font-size: 12px; font-weight: 700; }
.quick-actions a:hover { border-color: #e4d747; background: #fffde7; }
.empty-compact { padding: 18px 0; display: grid; gap: 5px; color: var(--muted); }
.empty-compact strong { color: var(--ink); }
.muted-metric { color: #6e7379; }
.phase-label { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #625a00; background: #fffbd6; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.target-cell { display: block; max-width: 270px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.row-actions form { margin: 0; }
.icon-action { width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 6px; display: grid; place-items: center; color: #555b61; background: transparent; cursor: pointer; }
.icon-action:hover { border-color: #e1d85f; background: #fffde7; }
.icon-action svg { width: 17px; height: 17px; }
.pending-panel { min-height: 280px; padding: clamp(28px, 5vw, 54px); display: grid; grid-template-columns: 70px minmax(0, 620px); align-content: center; gap: 24px; }
.pending-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 14px; color: #383d43; background: #fffbd6; }
.pending-icon svg { width: 30px; height: 30px; }
.pending-panel h2 { margin: 14px 0 8px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
.pending-panel p { margin: 0; color: var(--muted); line-height: 1.65; }

.editor { max-width: 900px; padding: 0 24px 24px; }
.editor section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.editor h2 { margin: 0 0 18px; font-size: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 18px; }
.editor label, .login-form label { display: grid; gap: 7px; font-weight: 680; }
.editor input, .editor select, .login-form input { width: 100%; min-height: 44px; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid #cfd4da; border-radius: 7px; }
.editor input:focus, .editor select:focus, .login-form input:focus { outline: 3px solid rgba(255,230,24,.38); border-color: #9d9100; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.55; }
.schedule-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 13px 10px; text-align: center; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; }
.choice input:checked + span { border-color: #d9c400; background: #ffe618; }
.choice input:focus-visible + span { outline: 3px solid rgba(65,70,76,.35); outline-offset: 2px; }
.schedule-fields { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(160px, 260px)); gap: 18px; }
.schedule-fields [hidden] { display: none; }
.switch { width: auto; height: auto; border-radius: 0; background: transparent; }
.switch::after { content: none; }
.switch input { width: 20px; min-height: 20px; }
.switch-line { margin: 22px 0; display: flex !important; align-items: center; gap: 10px; }
.switch-line input { width: 20px; min-height: 20px; }
.form-actions { display: flex; gap: 10px; }
.button.quiet { min-height: 42px; padding: 0 17px; border: 1px solid #d6dce2; border-radius: 7px; display: inline-flex; align-items: center; background: #fff; font-weight: 700; }
.danger-zone { max-width: 900px; margin-top: 18px; padding: 18px 24px; border: 1px solid #ecd3d3; border-radius: var(--radius); background: #fffafa; }
.danger-button { border: 0; color: var(--red); background: transparent; cursor: pointer; font-weight: 700; text-decoration: underline; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-weight: 650; }
.history-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.result { font-weight: 750; color: var(--red); }
.result.success { color: var(--green); }

.notice.success { color: #176e35; background: var(--green-soft); }
.notice.error { color: #812d2d; background: #fff0f0; }

.login-page { min-height: 100vh; padding: 30px; display: grid; place-items: center; background: #191919; }
.login-shell { width: min(980px, 100%); min-height: 590px; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; border-radius: 14px; background: #fff; box-shadow: 0 32px 90px rgba(0,0,0,.35); }
.login-mark { position: relative; overflow: hidden; padding: clamp(42px, 7vw, 76px); color: #fff; background: #242424; }
.login-mark::after { content: ""; position: absolute; width: 430px; height: 430px; right: -220px; bottom: -190px; border: 72px solid #2c2c2c; border-radius: 50%; outline: 1px solid #494949; }
.login-mark > * { position: relative; z-index: 1; }
.login-brand { margin: 0 0 95px; color: #ffe618; font-size: 28px; font-weight: 780; letter-spacing: -1px; }
.login-mark h1 { margin: 0; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: clamp(44px, 6vw, 66px); line-height: .95; letter-spacing: -.065em; }
.login-mark .lede { max-width: 420px; margin-top: 25px; color: #c9c9c9; font-size: 17px; line-height: 1.65; }
.login-form { align-self: center; padding: clamp(38px, 6vw, 66px); }
.login-form h2 { margin: 5px 0 8px; font-size: 31px; letter-spacing: -.04em; }
.login-form > p { color: var(--muted); }
.login-form form { margin-top: 28px; display: grid; gap: 17px; }
.login-button { width: 100%; border-color: #d9c400; background: #ffe618; }
.login-button:hover { background: #ffeb35; }
.fineprint { margin-top: 18px; color: #7e848a !important; font-size: 12px; line-height: 1.5; }

@media (max-width: 760px) {
  .field-grid, .schedule-picker { grid-template-columns: 1fr 1fr; }
  .login-page { padding: 0; }
  .login-shell { min-height: 100vh; grid-template-columns: 1fr; border-radius: 0; }
  .login-mark { min-height: 250px; padding: 34px 28px; }
  .login-brand { margin-bottom: 38px; }
  .login-form { padding: 36px 28px 48px; }
}

@media (max-width: 520px) {
  .field-grid, .schedule-picker, .schedule-fields { grid-template-columns: 1fr; }
  .pending-panel { grid-template-columns: 1fr; }
}

/* Erweiterte Hosting-Verwaltung */
.stat-orb strong { font-size: 19px; white-space: nowrap; }
.notice.warning { color: #6d5900; background: #fffbd6; }
.management-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.create-panel { position: sticky; top: 90px; overflow: hidden; }
.stack-form { padding: 20px; display: grid; gap: 16px; }
.stack-form label, .row-menu-card label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.stack-form input, .stack-form select, .row-menu-card input, .row-menu-card select { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #cfd5db; border-radius: 7px; background: #fff; }
.stack-form input:focus, .stack-form select:focus, .row-menu-card input:focus { outline: 3px solid rgba(255,230,24,.35); border-color: #8e8400; }
.compound-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(135px, auto); }
.compound-field input { border-radius: 7px 0 0 7px; }
.compound-field select { border-left: 0; border-radius: 0 7px 7px 0; }
.row-menu { position: relative; }
.row-menu > summary { min-height: 34px; padding: 0 10px; border: 1px solid #d8dde2; border-radius: 6px; display: inline-flex; align-items: center; cursor: pointer; background: #fff; font-size: 12px; font-weight: 700; list-style: none; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu[open] > summary { background: #fffbd6; border-color: #ddd15c; }
.row-menu-card { position: absolute; z-index: 15; top: 40px; right: 0; width: min(320px, calc(100vw - 36px)); padding: 16px; display: grid; gap: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 18px 55px rgba(20,25,30,.18); }
.row-menu-card form { display: grid; gap: 12px; }
.row-menu-card form + form { padding-top: 13px; border-top: 1px solid var(--line); }
.check-line { display: flex !important; align-items: center; gap: 9px; font-weight: 600 !important; }
.check-line input { width: 18px; min-height: 18px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .7fr); gap: 16px; align-items: start; }
.settings-card { overflow: hidden; }
.two-column { grid-template-columns: 1fr 1fr; }
.two-column .wide { grid-column: 1 / -1; }
.form-note { margin: 0; color: var(--muted); line-height: 1.55; }
.inline-action { margin-top: 20px; }
.resource-card > .secondary { margin-top: auto; align-self: flex-start; }

@media (max-width: 1050px) {
  .management-grid, .settings-grid { grid-template-columns: 1fr; }
  .create-panel { position: static; }
}

@media (max-width: 620px) {
  .two-column { grid-template-columns: 1fr; }
  .two-column .wide { grid-column: auto; }
  .compound-field { grid-template-columns: 1fr; }
  .compound-field input, .compound-field select { border: 1px solid #cfd5db; border-radius: 7px; }
  .row-menu-card { position: fixed; inset: auto 14px 14px; width: auto; max-height: 75vh; overflow: auto; }
}

/* Ausbaustufe 0.3: Domains und erweiterte E-Mail-Verwaltung */
[hidden] { display: none !important; }
.resource-editor-list { display: grid; }
.resource-editor { border-top: 1px solid var(--line); }
.resource-editor:first-child { border-top: 0; }
.resource-editor > summary { min-height: 76px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.resource-editor > summary::-webkit-details-marker { display: none; }
.resource-editor > summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d7dce1; border-radius: 50%; color: #646a70; font-size: 20px; line-height: 1; }
.resource-editor[open] > summary { background: #fffde7; }
.resource-editor[open] > summary::after { content: "−"; border-color: #d9c400; background: #ffe618; color: #191919; }
.resource-editor > summary > span:first-child { min-width: 0; display: grid; gap: 4px; }
.resource-editor > summary strong { overflow: hidden; color: #2f3439; text-overflow: ellipsis; white-space: nowrap; }
.resource-editor > summary small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.summary-status { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.resource-editor-body { padding: 22px; border-top: 1px solid var(--line); background: #fbfbfb; }
.resource-editor-body > .stack-form { padding: 0; }
.form-section { padding: 0 0 22px; }
.form-section + .form-section { padding-top: 22px; border-top: 1px solid var(--line); }
.form-section h3 { margin: 0 0 15px; font-size: 15px; letter-spacing: -.01em; }
.domain-form > .primary { justify-self: start; }
.toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.stack-form textarea { width: 100%; padding: 10px 11px; resize: vertical; border: 1px solid #cfd5db; border-radius: 7px; background: #fff; font: 12px/1.5 ui-monospace, "Cascadia Mono", monospace; }
.stack-form textarea:focus { outline: 3px solid rgba(255,230,24,.35); border-color: #8e8400; }
.certificate-section { margin-top: 24px; }
.certificate-section > .stack-form { max-width: 780px; padding: 0; }
.certificate-section > form + form { margin-top: 13px; }
.inline-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 10px; }
.inline-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.inline-form input { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #cfd5db; border-radius: 7px; background: #fff; }
.align-end { align-self: end; min-height: 42px; }
.forwarder-list { margin-bottom: 14px; display: grid; gap: 7px; }
.forwarder-list > div { min-height: 42px; padding: 6px 8px 6px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #dfe3e7; border-radius: 7px; background: #fff; }
.forwarder-list form { margin: 0; }
.capability-note { margin: 0 20px 20px; padding: 14px; border-left: 3px solid #ffe618; background: #fffde7; }
.capability-note strong { font-size: 13px; }
.capability-note p { margin: 5px 0 0; color: #666b71; font-size: 12px; line-height: 1.5; }
.resource-editor .danger-zone { max-width: none; padding: 15px 18px; }

@media (max-width: 720px) {
  .resource-editor > summary { align-items: flex-start; flex-wrap: wrap; }
  .summary-status { width: 100%; margin-left: 0; justify-content: flex-start; }
  .resource-editor > summary::after { position: absolute; right: 18px; }
  .resource-editor { position: relative; }
  .resource-editor-body { padding: 18px 14px; }
  .toggle-grid, .inline-form { grid-template-columns: 1fr; }
  .inline-form .secondary { width: 100%; }
}
