/* ───────── Schriften ───────── */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  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: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-latin-ext.woff2') format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Plex Mono'; src: url('/fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

/* ───────── Tokens ───────── */
:root {
  --fog: #e8ece9;
  --paper: #f8f9f7;
  --ink: #13212b;
  --ink-soft: #46555f;
  --ink-faint: #6d7c85;
  --line: #c9d1cd;
  --line-soft: #dce2df;
  --pine: #0f5c4d;
  --pine-deep: #0a4237;
  --pine-tint: #d5e6e0;
  --amber: #f2a81d;
  --amber-tint: #fbe7b8;
  --red: #b83a2e;
  --red-tint: #f3d9d5;

  --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --r-ctl: 6px; --r-box: 10px;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fog); color: var(--ink);
  font: 400 1rem/1.55 var(--sans); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--pine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-deep); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: -0.01em; }
[hidden] { display: none !important; }

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

.short { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); z-index: 99; border-radius: var(--r-ctl); }
.skip:focus { top: var(--s3); }

/* ───────── Typografie ───────── */
.display {
  font-weight: 620; font-stretch: 90%; font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.02; letter-spacing: -0.018em; text-wrap: balance;
}
h2, .h2 { font-weight: 620; font-stretch: 92%; font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h3, .h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: 0.875rem; }
.prose { max-width: var(--measure); text-wrap: pretty; }
.prose p + p { margin-top: var(--s4); }
h2 + .prose { margin-top: var(--s4); }
.num { font-variant-numeric: tabular-nums; }
.mt-3 { margin-top: var(--s3); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); }

/* ───────── Buttons & Formulare ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 0.62em 1.1em; border-radius: var(--r-ctl); border: 1px solid var(--pine);
  background: var(--pine); color: var(--paper); font-weight: 600; font-size: 0.9375rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: var(--paper); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { background: var(--paper); border-color: var(--ink-faint); color: var(--ink); }
.btn.danger { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.btn.danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.big { padding: 0.85em 1.5em; font-size: 1.0625rem; }
.btn.small { padding: 0.4em 0.75em; font-size: 0.8125rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label { font-weight: 560; font-size: 0.875rem; display: block; margin-bottom: var(--s1); }
.hint { font-size: 0.8125rem; color: var(--ink-faint); margin-top: var(--s1); }
.field { display: block; }
.field + .field { margin-top: var(--s4); }
input:not([type]), input[type=text], input[type=date], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 0.6em 0.75em; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-ctl); line-height: 1.3;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pine); outline-offset: 0; border-color: var(--pine); }
input.mono, textarea.mono { font-family: var(--mono); font-size: 0.9375rem; }
input:not([type=checkbox]):not([type=radio]), select { min-height: 2.65rem; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2346555f' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8em center; padding-right: 2.2em; }
.check { display: flex; gap: var(--s2); align-items: center; font-weight: 450; font-size: 0.9375rem; margin: 0; }
.terms, .consent { align-items: flex-start; }
.terms { margin-top: var(--s5); }
.terms input, .consent input { margin-top: 0.2em; flex: none; }
.consent { margin-bottom: var(--s3); max-width: 34rem; text-align: left; font-size: 0.8125rem; line-height: 1.4; font-weight: 400; }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--pine); }
.row { display: flex; gap: var(--s3); align-items: flex-end; flex-wrap: wrap; }
.row > .grow { flex: 1 1 14rem; }
.inline-form { display: inline; margin: 0; }

/* ───────── Hinweise ───────── */
.flash { padding: var(--s3) var(--s4); border-radius: var(--r-ctl); border: 1px solid; margin-bottom: var(--s5); max-width: 62ch; }
.flash.ok { background: var(--pine-tint); border-color: color-mix(in srgb, var(--pine) 35%, transparent); }
.flash.error { background: var(--red-tint); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.flash .secret-line { margin-top: var(--s3); }

/* Geheimer Wert mit Kopieren-Knopf */
.copy { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--paper); max-width: 100%; }
.copy > code, .copy > input { flex: 1; min-width: 0; padding: 0.55em 0.75em; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 0.875rem; border: 0; background: transparent; }
.copy > button { flex: none; border: 0; border-left: 1px solid var(--line); background: transparent; padding: 0 var(--s4); cursor: pointer; font-weight: 600; font-size: 0.8125rem; border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.copy > button:hover { background: var(--fog); }
.copy > button.done { color: var(--pine); }

/* ───────── Status & Tags ───────── */
.dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line); margin-right: var(--s2); vertical-align: 0.05em; }
.dot.live { background: var(--pine); }
.dot.stale { background: var(--amber); }
.dot.off { background: var(--red); }
.tag { display: inline-block; padding: 0.1em 0.55em; border-radius: 4px; background: var(--line-soft); font-size: 0.8125rem; font-weight: 560; line-height: 1.5; }
a.tag { text-decoration: none; }
.tag.pine { background: var(--pine-tint); color: var(--pine-deep); }
.tag.amber { background: var(--amber-tint); color: #5c3d00; }
.tag.red { background: var(--red-tint); color: #7f241b; }
.tag.ink { background: var(--ink); color: var(--paper); }

/* ───────── Öffentliche Seiten ───────── */
.wrap { width: min(1120px, 100% - 2 * var(--s5)); margin-inline: auto; }
.site-head { padding-block: var(--s5); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); font-weight: 680; font-stretch: 90%; font-size: 1.25rem; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 520; }
.nav a:not(.btn):hover, .nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }

.hero { padding-block: var(--s7) var(--s8); display: grid; gap: var(--s7) var(--s8); grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.hero .lede { margin-top: var(--s5); }
.hero-main > .claim { margin-top: var(--s6); }

/* Hostnamen-Baukasten: Eingabe und Domain bilden zusammen einen Namen */
.claim-box { display: flex; align-items: stretch; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-box); max-width: 40rem; }
.claim-box:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.claim-box input, .claim-box select { border: 0; background-color: transparent; border-radius: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 560; font-stretch: 92%; padding: 0.7em 0.5em 0.7em 0.8em; outline: none; }
.claim-box input { flex: 1 1 8rem; min-width: 0; text-align: right; padding-right: 0; }
.claim-box input::placeholder { color: var(--ink-faint); font-weight: 450; }
.claim-box select { flex: 0 1 auto; width: auto; max-width: 52%; color: var(--pine); padding: 0.7em 2.3em 0.7em 0; background-position: right 0.85em center; cursor: pointer; }
.claim-fixed { align-self: center; flex: 0 1 auto; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 560; font-stretch: 92%; color: var(--pine); padding: 0.7em 0.8em 0.7em 0; overflow-wrap: anywhere; }
/* Wo der Browser es kann (Chrome, Edge), bekommt die Auswahl eine eigene Liste im Stil der Seite statt der blauen Systemliste. */
@supports (appearance: base-select) {
  .claim-box select, .claim-box select::picker(select) { appearance: base-select; }
  .claim-box select { background-image: none; padding-right: 0.8em; align-items: center; }
  .claim-box select::picker-icon { content: ''; width: 0.55em; height: 0.55em; margin-left: 0.55em; border: solid var(--ink-soft); border-width: 0 2px 2px 0; transform: translateY(-0.12em) rotate(45deg); transition: transform 0.15s; }
  .claim-box select:open::picker-icon { transform: translateY(0.1em) rotate(-135deg); }
  .claim-box select::picker(select) { position-area: block-end span-inline-start; margin-top: 8px; padding: 0.3rem; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-box); box-shadow: 0 12px 32px rgb(19 33 43 / 0.2); }
  .claim-box select option { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.9em; border-radius: 6px; font-size: 1.05rem; font-weight: 500; font-stretch: 100%; color: var(--ink); cursor: pointer; }
  .claim-box select option:hover, .claim-box select option:focus-visible { background: var(--pine-tint); outline: none; }
  .claim-box select option:checked { color: var(--pine); font-weight: 650; }
  .claim-box select option::checkmark { content: ''; width: 0.4em; height: 0.7em; border: solid var(--pine); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-0.1em); order: 2; margin-left: auto; }
}
.claim-dot { align-self: center; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 560; color: var(--ink-faint); padding-inline: 1px; }
.claim-row { display: flex; gap: var(--s4); align-items: center; margin-top: var(--s4); flex-wrap: wrap; min-height: 3.1rem; }
.claim-status { font-size: 0.9375rem; min-height: 1.5em; }
.claim-status.ok { color: var(--pine); font-weight: 560; }
.claim-status.taken { color: var(--red); font-weight: 560; }

/* Beispiel: der Name steht fest, die Adresse wechselt */
.drift { border-block: 2px solid var(--ink); padding-block: var(--s4) var(--s3); }
.drift-name { font-weight: 620; font-stretch: 90%; font-size: clamp(1.25rem, 2.3vw, 1.65rem); letter-spacing: -0.015em; color: var(--pine); overflow-wrap: anywhere; }
.drift-list { margin-top: var(--s4); }
.drift-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s3); padding: 0.55rem 0.6rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.9375rem; align-items: baseline; }
.drift-list li span:first-child { color: var(--ink-faint); font-family: var(--sans); font-size: 0.875rem; }
.drift-list li.now { background: var(--amber-tint); border-top-color: var(--amber); font-weight: 500; }
.drift-list li.now span:first-child { color: #5c3d00; font-weight: 560; }
.drift-foot { margin-top: var(--s3); font-size: 0.8125rem; color: var(--ink-faint); }
@media (prefers-reduced-motion: no-preference) {
  .drift-list li { opacity: 0; transform: translateY(6px); animation: drift-in .5s cubic-bezier(.2,.7,.2,1) forwards; }
  .drift-list li:nth-child(1) { animation-delay: .35s; }
  .drift-list li:nth-child(2) { animation-delay: .85s; }
  .drift-list li:nth-child(3) { animation-delay: 1.35s; }
  .drift-list li.now { animation-name: drift-in, drift-flash; animation-duration: .5s, 1.6s; animation-delay: 1.35s, 1.35s; }
}
@keyframes drift-in { to { opacity: 1; transform: none; } }
@keyframes drift-flash { 0% { background: var(--amber); } 100% { background: var(--amber-tint); } }

.section { padding-block: var(--s8); border-top: 1px solid var(--line); }
.section-head { max-width: 38rem; margin-bottom: var(--s6); }
.section-head p { margin-top: var(--s3); color: var(--ink-soft); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s7); align-items: start; }

.setup-list dt { font-weight: 600; margin-top: var(--s4); }
.setup-list dt:first-child { margin-top: 0; }
.setup-list dd { color: var(--ink-soft); }
.field-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box); overflow: hidden; }
.field-table th, .field-table td { text-align: left; padding: 0.7rem 1rem; vertical-align: top; border-top: 1px solid var(--line-soft); }
.field-table tr:first-child > * { border-top: 0; }
.field-table th { font-weight: 560; width: 11rem; color: var(--ink-soft); background: color-mix(in srgb, var(--fog) 55%, var(--paper)); }
.field-table td { overflow-wrap: anywhere; }

/* Tarife als Zeilenliste */
.plan-rows li { display: grid; grid-template-columns: minmax(8rem, 1fr) 9rem minmax(0, 1.6fr) 12rem; gap: var(--s5); align-items: baseline; padding-block: var(--s5); border-top: 1px solid var(--line); }
.plan-rows li:last-child { border-bottom: 1px solid var(--line); }
.plan-rows .p-name { font-weight: 620; font-stretch: 92%; font-size: 1.5rem; letter-spacing: -0.015em; }
.plan-rows .p-hosts { font-size: 1.05rem; }
.plan-rows .p-hosts b { font-weight: 640; font-size: 2rem; font-stretch: 84%; letter-spacing: -0.02em; margin-right: 0.2em; }
.plan-rows .p-price { font-weight: 560; white-space: nowrap; text-align: right; }
.plan-rows li.is-free .p-name { color: var(--pine); }
.plan-rows li.current { background: var(--paper); margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); }

.domain-list { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.domain-list li { font-weight: 560; font-stretch: 92%; font-size: clamp(1.4rem, 2.8vw, 2rem); letter-spacing: -0.015em; }
.domain-list .tag { vertical-align: 0.35em; margin-left: var(--s2); font-size: 0.75rem; }

.foot-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.legal { padding-bottom: var(--s6); }
.legal-title { font-weight: 620; font-stretch: 92%; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.018em; margin-bottom: var(--s2); }
.legal h2 { font-size: 1.25rem; font-stretch: 100%; letter-spacing: -0.01em; margin-top: var(--s6); margin-bottom: var(--s2); }
.legal p + p { margin-top: var(--s3); }
.legal { max-width: 70ch; }
.site-foot { padding-block: var(--s7); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.9375rem; display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }

/* Formularseiten (Anmelden, Registrieren) */
.auth { max-width: 26rem; padding-block: var(--s7) var(--s8); }
.auth h1 { font-weight: 620; font-stretch: 92%; font-size: 2.5rem; line-height: 1.08; letter-spacing: -0.018em; margin-bottom: var(--s5); }
.auth .btn { margin-top: var(--s5); width: 100%; }
.auth-alt { margin-top: var(--s5); color: var(--ink-soft); }
.claimed { font-weight: 600; font-stretch: 92%; font-size: 1.2rem; color: var(--pine); margin-bottom: var(--s5); overflow-wrap: anywhere; }

/* ───────── Kundenbereich ───────── */
.app-head { background: var(--ink); color: var(--paper); }
.app-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding-block: var(--s3); flex-wrap: wrap; }
.app-head .brand { color: var(--paper); font-size: 1.1rem; }
.app-head .nav a:not(.btn) { color: var(--paper); opacity: .8; font-size: 0.9375rem; }
.app-head .nav a[aria-current], .app-head .nav a:hover { opacity: 1; }
.app-head .btn.quiet { color: var(--paper); border-color: #ffffff40; }
.app-head .btn.quiet:hover { background: #ffffff18; color: var(--paper); border-color: #ffffff80; }
.page { padding-block: var(--s7) var(--s8); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s6); }
.page-head h1 { font-weight: 620; font-stretch: 92%; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.018em; overflow-wrap: anywhere; }
.page-head .sub { color: var(--ink-soft); margin-top: var(--s2); }
.crumb { font-size: 0.875rem; margin-bottom: var(--s3); }
.crumb a { color: var(--ink-soft); }
.stack > * + * { margin-top: var(--s7); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box); padding: var(--s5); }
.panel > h2, .panel > h3 { margin-bottom: var(--s4); }
.panel.danger-zone { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
.grid-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); margin-bottom: var(--s3); flex-wrap: wrap; }

/* Plätze: ein Kästchen pro erlaubtem Host */
.slots { display: flex; flex-wrap: wrap; gap: 4px; }
.slots i { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--ink-faint); }
.slots i.used { background: var(--pine); border-color: var(--pine); }
.slots-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; width: 14rem; }
.slots-bar > svg { height: 8px; width: 100%; }
.usage { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.usage b { font-weight: 640; font-size: 1.25rem; }

.host-rows > li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) auto; gap: var(--s5); align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--line); }
.host-rows > li:last-child { border-bottom: 1px solid var(--line); }
.host-rows .h-name { font-weight: 600; font-stretch: 92%; font-size: 1.3rem; letter-spacing: -0.012em; overflow-wrap: anywhere; }
.host-rows .h-name a { color: var(--ink); text-decoration: none; }
.host-rows .h-name a:hover { color: var(--pine); text-decoration: underline; }
.host-rows .h-ips { font-family: var(--mono); font-size: 0.875rem; line-height: 1.6; overflow-wrap: anywhere; }
.host-rows .h-when { font-size: 0.8125rem; color: var(--ink-faint); font-family: var(--sans); }
.host-rows li.paused .h-name { color: var(--ink-faint); }

.empty { border: 2px dashed var(--line); border-radius: var(--r-box); padding: var(--s7) var(--s5); }
.empty h3 { margin-bottom: var(--s2); }
.empty p { color: var(--ink-soft); max-width: 44ch; margin-bottom: var(--s4); }

.kv { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s3) var(--s5); }
.kv dt { color: var(--ink-soft); font-size: 0.9375rem; }
.kv dd { overflow-wrap: anywhere; }
/* Lange Werte (URLs, Zugangsdaten): Beschriftung über dem Wert, damit der Wert die volle Breite bekommt */
.kv.stacked { grid-template-columns: minmax(0, 1fr); gap: 0; }
.kv.stacked dt { margin-top: var(--s4); margin-bottom: var(--s2); }
.kv.stacked dt:first-child { margin-top: 0; }
.log li { display: grid; grid-template-columns: 8rem 1fr auto; gap: var(--s3); padding: 0.45rem 0; border-top: 1px solid var(--line-soft); font-size: 0.9rem; }
.log li:first-child { border-top: 0; }

/* ───────── Admin ───────── */
.admin { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--ink); color: var(--paper); padding: var(--s5) var(--s4); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s6); overflow-y: auto; }
.rail .brand { color: var(--paper); padding-inline: var(--s2); }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav a { color: #ffffffb8; text-decoration: none; padding: 0.55rem var(--s3); border-radius: var(--r-ctl); font-weight: 520; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.rail nav a:hover { color: #fff; background: #ffffff14; }
.rail nav a[aria-current] { color: #fff; background: #ffffff1f; box-shadow: inset 3px 0 0 var(--amber); }
.rail nav .count { font-size: 0.75rem; background: #ffffff22; padding: 0.05em 0.5em; border-radius: 10px; font-variant-numeric: tabular-nums; }
.rail nav .count.warn { background: var(--amber); color: var(--ink); font-weight: 600; }
.rail-foot { margin-top: auto; font-size: 0.8125rem; color: #ffffff99; padding-inline: var(--s2); }
.rail-foot .btn { margin-top: var(--s3); width: 100%; }
.rail .btn.quiet { color: var(--paper); border-color: #ffffff40; }
.rail .btn.quiet:hover { background: #ffffff18; color: var(--paper); border-color: #ffffff80; }
.rail-foot .email { overflow-wrap: anywhere; color: #ffffffcc; }
.admin-main { padding: var(--s6) var(--s7) var(--s8); min-width: 0; }
.admin-main .page-head { margin-bottom: var(--s5); }
.admin-main .page-head h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); border-block: 2px solid var(--ink); }
.stats > div { padding: var(--s4) var(--s4) var(--s4) 0; }
.stats > div + div { padding-left: var(--s4); border-left: 1px solid var(--line); }
.stats b { display: block; font-weight: 640; font-stretch: 84%; font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-soft); font-size: 0.875rem; }
.stats .warn b { color: #8a5a00; }

.filters { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--s4); }
.filters > * { flex: 0 1 auto; }
.filters .grow { flex: 1 1 16rem; }
.filters select { width: auto; min-width: 9rem; }
.tbl-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tbl th { text-align: left; font-weight: 560; font-size: 0.8125rem; color: var(--ink-soft); padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: color-mix(in srgb, var(--fog) 55%, var(--paper)); }
.tbl td { padding: 0.6rem 1rem; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:first-child td { border-top: 0; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--fog) 45%, var(--paper)); }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl td.wrap-any { overflow-wrap: anywhere; max-width: 28rem; }
.tbl .strong { font-weight: 600; }
.tbl a.strong { font-weight: 600; color: var(--ink); text-decoration: none; }
.tbl a.strong:hover { color: var(--pine); text-decoration: underline; }
.tbl .actions { white-space: nowrap; text-align: right; }
.tbl .actions > * + * { margin-left: var(--s2); }
.tbl .rtype { font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; color: var(--pine-deep); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s4); font-size: 0.875rem; color: var(--ink-soft); }
.pager a { margin-left: var(--s4); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s6); margin-top: var(--s6); align-items: start; }
.dash-grid h2 { font-size: 1.25rem; font-stretch: 100%; margin-bottom: var(--s3); letter-spacing: -0.01em; }
.chart { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box); padding: var(--s4) var(--s4) var(--s2); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font: 500 11px var(--sans); fill: var(--ink-faint); }
.chart .bar { fill: var(--pine); }
.chart .bar.today { fill: var(--amber); }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s4); align-items: end; }
.form-grid .field + .field { margin-top: 0; }
.rec-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box); padding: var(--s4) var(--s5) var(--s5); margin-bottom: var(--s5); }
.rec-form h2 { font-size: 1.1rem; font-stretch: 100%; margin-bottom: var(--s3); }

dialog { border: 1px solid var(--line); border-radius: var(--r-box); background: var(--paper); color: var(--ink); padding: var(--s5); max-width: 30rem; }
dialog::backdrop { background: #13212b99; }

/* ───────── Responsiv ───────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-block: var(--s6) var(--s7); }
  .split, .two, .dash-grid { grid-template-columns: 1fr; }
  .plan-rows li { grid-template-columns: 1fr auto; row-gap: var(--s2); }
  .plan-rows .p-desc { grid-column: 1 / -1; order: 5; }
  .admin { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: column; gap: var(--s3); padding: var(--s3) var(--s4); }
  .rail nav { flex-direction: row; flex-wrap: wrap; }
  .rail-foot { margin-top: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
  .rail-foot .btn { width: auto; margin-top: 0; }
  .admin-main { padding: var(--s5) var(--s4) var(--s7); }
}
@media (max-width: 640px) {
  .host-rows > li { grid-template-columns: 1fr; gap: var(--s2); }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: var(--s3); }
  .claim-box { flex-wrap: wrap; }
  .claim-box select { max-width: none; flex: 1 1 100%; padding-left: 0.8em; border-top: 1px solid var(--line); }
  .claim-fixed { flex: 1 1 100%; padding-left: 0.8em; border-top: 1px solid var(--line); }
  .claim-box input { text-align: left; padding-right: 0.8em; }
  .claim-dot { display: none; }
  .nav { gap: var(--s3); }
  .site-head .nav-opt, .site-head .long { display: none; }
  .site-head .short { display: inline; }
  .site-head .btn { padding: 0.5em 0.85em; font-size: 0.875rem; white-space: nowrap; }
  .site-head { gap: var(--s3); }
  .site-head .brand { font-size: 1.1rem; }
  .log li { grid-template-columns: 1fr; gap: 0; }
  /* Tabellen mit class="cards": jede Zeile wird eine Karte, die Beschriftung steht aus data-label vor dem Wert */
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; }
  .tbl.cards tr { padding: 0.5rem 0; border-top: 1px solid var(--line); }
  .tbl.cards tr:first-child { border-top: 0; }
  .tbl.cards td { border: 0; padding: 0.25rem 1rem; max-width: none; }
  .tbl.cards td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8125rem; color: var(--ink-soft); }
  .tbl.cards td.actions { text-align: left; padding-top: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Abrechnung */
.callout { border-color: var(--amber); background: color-mix(in srgb, var(--amber-tint) 55%, var(--paper)); }
.mt-0 { margin-top: 0; } .mb-3 { margin-bottom: var(--s3); }
.page > .panel + .panel, .page > .callout + .panel { margin-top: var(--s5); }
.row + .field, .field + .row, .hint + .field, .hint + .row, .row + .hint + .field { margin-top: var(--s4); }
.consent { margin-top: var(--s5); }
.plan-rows { margin-top: var(--s6); }
.actions .btn + .btn { margin-left: var(--s2); }
details > summary { cursor: pointer; }

.methods { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.methods legend { font-weight: 600; padding: 0; margin-bottom: var(--s2); }
.h4 { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; margin: 0 0 var(--s2); }

.host-pick { margin-bottom: var(--s6); }
.host-pick label { display: block; font-weight: 600; margin-bottom: var(--s2); }
.host-pick select { width: auto; min-width: min(100%, 22rem); font-family: var(--mono); }
