/* Coolify Status – Oberfläche
   Farben und Schriften stehen oben als Variablen und lassen sich dort anpassen. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/sora-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/sora-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marke: Verlauf als Akzent für Knöpfe und aktive Elemente */
  --brand-a: #c331c6;
  --brand-b: #3415b4;
  --brand: linear-gradient(100deg, var(--brand-a), var(--brand-b));

  --bg: #f5f4f9;
  --surface: #ffffff;
  --surface-2: #faf9fd;
  --ink: #1a1530;
  --ink-2: #57526b;
  --ink-3: #807b93;
  --line: #e2dfec;
  --line-strong: #cbc6dc;
  --focus: #3415b4;
  --chart: #3415b4;
  color-scheme: light;

  /* Zustände: Füllfarbe für Marken, dunklere Variante für Text */
  --up: #0b9b72;        --up-ink: #06704f;        --up-soft: #e3f5ee;
  --degraded: #e9a21a;  --degraded-ink: #855600;  --degraded-soft: #fcf1d9;
  --down: #d93a4c;      --down-ink: #b3243a;      --down-soft: #fce6e9;
  --deploying: #6247d9; --deploying-ink: #4a31b8; --deploying-soft: #ebe7fb;
  --unknown: #9c98ad;   --unknown-ink: #5d5873;   --unknown-soft: #edebf3;
  --none: #dcd9e6;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --radius-s: 8px;
}

/* Dunkles Design. Der Umschalter oben rechts setzt data-theme am <html>-Element
   (static/theme.js). Ohne JavaScript gilt die Einstellung des Geräts.
   Die beiden Blöcke müssen dieselben Werte enthalten. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131022;
  --surface: #1c1830;
  --surface-2: #221d39;
  --ink: #f1eff8;
  --ink-2: #b7b2cb;
  --ink-3: #8f89a8;
  --line: #2e2948;
  --line-strong: #433d63;
  --focus: #c8a8ff;
  --chart: #a78bfa;

  --up: #17a97f;    --up-ink: #58d6ac;    --up-soft: #12332d;
  --degraded: #dc9614;  --degraded-ink: #f2bc55;  --degraded-soft: #3a2c12;
  --down: #e5485a;    --down-ink: #ff8f9b;    --down-soft: #3f1a26;
  --deploying: #8570ee; --deploying-ink: #b9acff; --deploying-soft: #2a2356;
  --unknown: #6f6990;   --unknown-ink: #b7b2cb;   --unknown-soft: #2a2542;
  --none: #332e4e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #131022;
    --surface: #1c1830;
    --surface-2: #221d39;
    --ink: #f1eff8;
    --ink-2: #b7b2cb;
    --ink-3: #8f89a8;
    --line: #2e2948;
    --line-strong: #433d63;
    --focus: #c8a8ff;
    --chart: #a78bfa;

    --up: #17a97f;        --up-ink: #58d6ac;        --up-soft: #12332d;
    --degraded: #dc9614;  --degraded-ink: #f2bc55;  --degraded-soft: #3a2c12;
    --down: #e5485a;      --down-ink: #ff8f9b;      --down-soft: #3f1a26;
    --deploying: #8570ee; --deploying-ink: #b9acff; --deploying-soft: #2a2356;
    --unknown: #6f6990;   --unknown-ink: #b7b2cb;   --unknown-soft: #2a2542;
    --none: #332e4e;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.875em; }
.num { font-variant-numeric: tabular-nums; }

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

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------ Kopfzeile */

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand svg { display: block; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius-s); color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand-a); border-radius: var(--radius-s) var(--radius-s) 0 0; }
.top form { margin: 0; }
.top-tools { display: flex; align-items: center; gap: 4px; }
.theme-toggle { width: 36px; min-height: 36px; padding: 0; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: none; }
}
.auth .theme-toggle { position: fixed; top: 16px; right: 16px; }
@media (max-width: 640px) {
  .top .wrap { gap: 10px; }
  .brand span { display: none; }
}

main { padding: 36px 0 72px; }
@media (max-width: 640px) { main { padding: 24px 0 56px; } }

/* ------------------------------------------------------------ Knöpfe und Felder */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font-body); color: var(--ink);
  padding: 10px 16px; min-height: 40px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--surface);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn svg { flex: none; }
.btn-primary { background: var(--brand); border-color: transparent; color: #fff; }
.btn-primary:hover { filter: brightness(1.08); border-color: transparent; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.btn-small { padding: 7px 12px; min-height: 34px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }
.btn .spin { display: none; }
.btn.busy .spin { display: block; animation: spin 0.8s linear infinite; }
.btn.busy .still { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 6px; }
.hint { color: var(--ink-2); font-size: 14px; line-height: 1.45; margin-top: 6px; }
input[type="text"], input[type="password"], input[type="email"], input[type="url"],
input[type="number"], input[type="time"], input[type="search"], select {
  width: 100%; font: 400 16px/1.3 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  padding: 9px 12px; min-height: 42px;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
input::placeholder { color: var(--ink-3); }

.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand-b); }
.check label { margin: 0; font-weight: 600; }
.check .hint { margin-top: 2px; }

/* ------------------------------------------------------------ Meldungen */

.flash { border-radius: var(--radius-s); padding: 12px 16px; margin-bottom: 12px; font-weight: 600; border: 1px solid; }
.flash-ok { background: var(--up-soft); border-color: var(--up); color: var(--up-ink); }
.flash-error { background: var(--down-soft); border-color: var(--down); color: var(--down-ink); }
.notice { border: 1px solid var(--degraded); background: var(--degraded-soft); color: var(--degraded-ink); border-radius: var(--radius-s); padding: 12px 16px; margin-bottom: 20px; }
.notice a { font-weight: 600; }

/* ------------------------------------------------------------ Zustandsmarke */

.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap; }
.status svg { flex: none; }
.s-up { color: var(--up-ink); } .s-up svg { color: var(--up); }
.s-degraded { color: var(--degraded-ink); } .s-degraded svg { color: var(--degraded); }
.s-down { color: var(--down-ink); } .s-down svg { color: var(--down); }
.s-deploying { color: var(--deploying-ink); } .s-deploying svg { color: var(--deploying); }
.s-unknown, .s-none { color: var(--unknown-ink); } .s-unknown svg, .s-none svg { color: var(--unknown); }

.pill { display: inline-flex; align-items: center; font: 600 13px/1 var(--font-body); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill-project { background: var(--deploying-soft); border-color: transparent; color: var(--deploying-ink); }
button.pill { cursor: pointer; }
button.pill:hover { border-color: var(--deploying); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* ------------------------------------------------------------ Übersicht */

.lead { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.lead h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; }
.lead .sub { color: var(--ink-2); margin-top: 10px; }
.lead-up h1 { color: var(--ink); }
.lead-down h1 { color: var(--down-ink); }
.lead-degraded h1 { color: var(--degraded-ink); }
@media (max-width: 720px) { .lead { flex-direction: column; gap: 16px; } }

/* Gesamtwert über alle Services */
.overall { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; }
.overall-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.overall-head h2 { font-size: 17px; }
.overall-head span { color: var(--ink-2); font-size: 14px; }
.overall .figures { margin-bottom: 16px; }
.overall .figures dd { font-size: 24px; }
@media (max-width: 640px) { .overall { padding: 16px; } .overall .figures dd { font-size: 20px; } }

.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 20px; }
.filters .search { flex: 1 1 220px; max-width: 320px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font: 600 14px/1 var(--font-body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .n { font-variant-numeric: tabular-nums; opacity: 0.7; }
.chip[hidden] { display: none; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; min-width: 0; }
.tile:hover { border-color: var(--line-strong); }
.tile[data-state="down"] { border-color: var(--down); }
.tile[hidden] { display: none; }
.tile-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tile-kind { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.tile-name { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.tile-name a { text-decoration: none; }
.tile-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tile-host { color: var(--ink-2); font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-detail { color: var(--down-ink); font-size: 14px; }
.tile[data-state="degraded"] .tile-detail { color: var(--degraded-ink); }
.tile[data-state="deploying"] .tile-detail, .tile[data-state="unknown"] .tile-detail { color: var(--ink-2); }
.tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 2px; }
.tile-foot .when { color: var(--ink-2); font-size: 14px; min-width: 0; }
.btn-open:hover { background: var(--brand); color: #fff; border-color: transparent; }

.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--ink-2); }
.empty h2 { color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.empty .btn { margin-top: 18px; }

/* ------------------------------------------------------------ Verlaufsleiste
   Jeder Strich ist ein Zeitabschnitt. Höhe = Verfügbarkeit, Farbe = Zustand. */

.meter { display: flex; align-items: flex-end; gap: 2px; height: 34px; }
.meter i { flex: 1 1 0; min-width: 0; height: calc(var(--h, 1) * 100%); min-height: 3px; border-radius: 2px; background: var(--none); }
.meter .t-up { background: var(--up); }
.meter .t-degraded { background: var(--degraded); }
.meter .t-down { background: var(--down); }
.meter .t-deploying { background: var(--deploying); }
.meter .t-none { height: 3px; }
.meter i:hover { filter: brightness(1.15); outline: 2px solid var(--ink); outline-offset: 1px; }
.meter-cap { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.meter-cap strong { color: var(--ink); font-weight: 600; }
.meter-big { height: 64px; gap: 3px; }
.meter-big i { border-radius: 3px; }
@media (max-width: 640px) { .meter-big { gap: 1px; } .meter-big i { border-radius: 1px; } }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: 14px; margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 14px; border-radius: 2px; background: var(--none); display: inline-block; }
.legend .t-up { background: var(--up); }
.legend .t-degraded { background: var(--degraded); height: 10px; }
.legend .t-down { background: var(--down); height: 5px; }
.legend .t-deploying { background: var(--deploying); }
.legend .t-none { height: 3px; }

.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.35; padding: 7px 10px; border-radius: 6px; max-width: 280px; opacity: 0; transition: opacity 0.08s; }
.tip.on { opacity: 1; }

/* ------------------------------------------------------------ Service-Seite */

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.back:hover { color: var(--ink); }

.svc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 14px; }
.svc-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.svc-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.svc-state { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 14px 0 32px; color: var(--ink-2); }
.svc-state .status { font-size: 16px; }
@media (max-width: 720px) { .svc-head { flex-direction: column; gap: 14px; } }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.panel > h2 { font-size: 17px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h2 { font-size: 17px; }
.panel .muted, .muted { color: var(--ink-2); }
@media (max-width: 640px) { .panel { padding: 18px 16px; } }

.tabs { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-s); overflow: hidden; }
.tabs a { padding: 7px 12px; font: 600 14px/1.2 var(--font-body); text-decoration: none; color: var(--ink-2); border-left: 1px solid var(--line-strong); }
.tabs a:first-child { border-left: 0; }
.tabs a:hover { color: var(--ink); background: var(--surface-2); }
.tabs a[aria-current="true"] { background: var(--ink); color: var(--bg); }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.figures div { padding: 12px 14px; border-left: 1px solid var(--line); }
.figures div:first-child { border-left: 0; }
.figures dt { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.figures dd { margin: 2px 0 0; font: 600 20px/1.2 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.figures .on { background: var(--surface-2); }
@media (max-width: 560px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div:nth-child(3) { border-left: 0; }
  .figures div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Antwortzeit */
.chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; text-align: right; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; height: 150px; line-height: 1; }
.chart-plot { position: relative; height: 150px; }
.chart-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-3); display: none; pointer-events: none; }
.chart-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--chart); border: 2px solid var(--surface); display: none; pointer-events: none; }
.chart-plot.hover .chart-cross, .chart-plot.hover .chart-dot { display: block; }
.chart-x { grid-column: 2; display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* Tabellen */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 14px 8px 0; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.data td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data th:last-child, table.data td:last-child { padding-right: 0; }
table.data .r { text-align: right; }
table.data .sub { color: var(--ink-2); font-size: 14px; }
table.data .nowrap { white-space: nowrap; }
table.data a { text-underline-offset: 3px; }

dl.facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
dl.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
dl.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
dl.facts div:first-child { padding-top: 0; }
dl.facts dt { color: var(--ink-2); font-size: 14px; flex: none; }
dl.facts dd { margin: 0; text-align: right; font-size: 15px; overflow-wrap: anywhere; min-width: 0; }

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

.settings { max-width: 760px; }
.page-title { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.page-sub { color: var(--ink-2); margin-bottom: 28px; max-width: 62ch; }
.settings .panel { margin-bottom: 20px; }
.settings .panel > h2 { margin-bottom: 6px; }
.settings .panel > .intro { color: var(--ink-2); margin-bottom: 20px; max-width: 62ch; }
.fields { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline input[type="number"], .inline input[type="time"], .inline select { width: auto; }
.inline input[type="number"] { width: 96px; }
.option { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; }
.option + .option { margin-top: 10px; }
.option .inline { margin: 12px 0 0 32px; color: var(--ink-2); font-size: 15px; }
.option .inline label { margin: 0; font-weight: 400; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.savebar { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 4px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; z-index: 5; }
.savebar .muted { font-size: 14px; }

/* ------------------------------------------------------------ Anmeldung */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.auth-card .brand { margin-bottom: 26px; font-size: 19px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .muted { margin-bottom: 22px; }
.auth-card .fields { gap: 16px; }
.auth-card .btn { width: 100%; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
