/* Verwaltung (Login, Betreiber, Assistent) im Apple-Design: Systemschrift, gruppierte Listen, iOS-Farben. */
@font-face { font-family: "Inter Variable"; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Variable"; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Variable", "Helvetica Neue", Arial, sans-serif;
  --sf-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Variable", "Helvetica Neue", Arial, sans-serif;
  --label: #1c1c1e; --secondary: #6c6c70; --tertiary: #8e8e93;
  --bg: #f2f2f7; --card: #fff; --separator: #e5e5ea; --fill: #e9e9ee; --gray3: #c7c7cc;
  --blue: #007aff; --blue-press: #0062cc; --red: #ff3b30; --green: #34c759; --orange: #ff9500;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font: 400 17px/1.47 var(--sf); letter-spacing: -.01em; color: var(--label); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-family: var(--sf-display); letter-spacing: -.02em; }
h1 { font-size: 28px; font-weight: 700; line-height: 1.15; margin: 0 0 .6rem; }
h1.large { font-size: 34px; }
h2 { font-size: 20px; font-weight: 600; margin: 0 0 .8rem; }
b, strong { font-weight: 600; }
small { display: block; font-size: 13px; color: var(--secondary); font-weight: 400; }
.muted { color: var(--secondary); }
.lead { font-size: 19px; color: var(--secondary); margin: 0 0 1.4rem; }
.hint { font-size: 15px; color: var(--secondary); margin: 1rem 0 0; }
.eyebrow { margin: 0 0 .3rem; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); }

/* Formulare */
label { display: block; font-size: 15px; font-weight: 500; color: var(--label); }
label small { display: inline; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: 400 17px var(--sf); color: var(--label);
  background: var(--card); border: 1px solid var(--gray3); border-radius: 12px; -webkit-appearance: none; appearance: none;
}
input:disabled { background: var(--fill); color: var(--secondary); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,122,255,.18); }
input + small, label > small:last-child { margin-top: 4px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > input { margin-top: 0; flex: 1; }
.grid-form { display: grid; grid-template-columns: 2fr 1fr 2fr auto; gap: 12px; align-items: end; }
.grid-form .btn { height: 48px; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px;
  font: 600 17px var(--sf); letter-spacing: -.01em; color: #fff; background: var(--blue); border: 0; border-radius: 12px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { background: var(--blue-press); }
.btn.big { width: 100%; min-height: 52px; font-size: 17px; border-radius: 14px; }
.btn.small { min-height: 34px; padding: 6px 14px; font-size: 15px; border-radius: 10px; }
.btn.secondary { color: var(--blue); background: rgba(0,122,255,.12); }
.btn.secondary:active { background: rgba(0,122,255,.2); }
.btn.plain { color: var(--blue); background: none; padding-left: 8px; padding-right: 8px; }
.btn.destructive { color: var(--red); background: rgba(255,59,48,.12); }
button.plain { font: inherit; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(0,122,255,.5); outline-offset: 2px; }

/* Meldungen */
.note { padding: 12px 16px; border-radius: 12px; background: var(--card); margin: 0 0 16px; font-size: 15px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.note.ok { background: #e8f8ed; color: #1d6b35; }
.note.err { background: #ffeceb; color: #b3261e; }
.note .copy { margin-top: 10px; }
.note small { margin-top: 6px; }
.copy { display: flex; gap: 8px; margin-top: 6px; }
.copy input { margin: 0; font-size: 15px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--fill); color: var(--secondary); }
.badge.active { background: #e8f8ed; color: #1d6b35; }
.badge.archived { background: var(--fill); color: var(--tertiary); }

/* Zentrierte Seiten (Login, Einladung) */
body.center { display: grid; place-items: center; padding: 24px 16px; }
.box { width: 100%; max-width: 420px; background: var(--card); border-radius: 20px; padding: 32px 28px; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.04); }
.box.wide { max-width: 560px; }
.app-mark { margin: 0 0 18px; font: 600 15px var(--sf); color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.app-mark::before { content: ""; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #5856d6, #ff2d55); }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--tertiary); font-size: 15px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--separator); }
.row-links { display: flex; justify-content: space-between; margin-top: 20px; font-size: 15px; }

/* App-Rahmen */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(249,249,249,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.nav-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 10px 20px; min-height: 56px; }
.brand { font-weight: 600; color: var(--label); white-space: nowrap; }
.brand span { font-weight: 400; color: var(--secondary); margin-left: 6px; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: 4px; flex: 1; }
.nav nav a { padding: 6px 14px; border-radius: 999px; color: var(--label); font-size: 15px; font-weight: 500; }
.nav nav a:hover { background: var(--fill); text-decoration: none; }
.nav nav a.on { background: var(--label); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 18px; font-size: 15px; white-space: nowrap; }
.support { background: var(--orange); color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 6px 12px; }
.support a { color: #fff; text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }
.wrap.wide { max-width: none; }
.card { background: var(--card); border-radius: 16px; padding: 20px 22px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 640px; }
.card.placeholder { text-align: center; padding: 48px 24px; }

/* Gruppierte Liste (wie iOS-Einstellungen) */
.list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 14px; overflow: hidden; }
.box .list { border: 1px solid var(--separator); }
.list li + li { border-top: 1px solid var(--separator); margin-left: 18px; }
.list li + li > * { margin-left: -18px; }
.list a, .li-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; color: var(--label); min-height: 56px; }
.list a:hover { background: #f7f7fa; text-decoration: none; }
.chev { width: 9px; height: 9px; border: solid var(--gray3); border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); flex: none; }

/* Tabelle (Betreiber) */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--secondary); padding: 12px 16px; background: #fafafc; border-bottom: 1px solid var(--separator); }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--separator); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.empty { text-align: center; color: var(--secondary); padding: 40px; }
.tbl td.act { text-align: right; white-space: nowrap; }
.tbl td.act form { display: inline; }
details.inline { display: inline-block; position: relative; }
details.inline summary { list-style: none; }
details.inline summary::-webkit-details-marker { display: none; }
details.inline[open] form { position: absolute; right: 0; top: 40px; z-index: 5; background: var(--card); padding: 12px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.15); width: 340px; }

/* Fortschritt der 6 Schritte */
.steps { background: var(--card); border-bottom: 1px solid var(--separator); }
.steps ol { list-style: none; margin: 0 auto; padding: 14px 20px 6px; max-width: 1180px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; counter-reset: s; }
.steps li { position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; background: var(--separator); }
.steps li.done:not(:last-child)::after { background: var(--blue); }
.steps a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--secondary); font-size: 13px; font-weight: 500; text-align: center; }
.steps a:hover { text-decoration: none; color: var(--label); }
.steps .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--secondary); font-weight: 600; font-size: 15px; }
.steps li.done .dot { background: var(--blue); color: #fff; }
.steps li.now .dot { background: var(--label); color: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.08); }
.steps li.now a { color: var(--label); font-weight: 600; }
.steps-sum { display: none; margin: 0; padding: 0 20px 10px; font-size: 13px; color: var(--secondary); text-align: center; }
.step-head { margin-bottom: 20px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* Handy */
@media (max-width: 820px) {
  .grid-form { grid-template-columns: 1fr; }
  .nav-in { flex-wrap: wrap; gap: 8px 16px; }
  .nav nav { order: 3; flex-basis: 100%; }
  .steps .t { display: none; }
  .steps-sum { display: block; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tr { padding: 10px 0; border-bottom: 1px solid var(--separator); }
  .tbl td { border: 0; padding: 4px 16px; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--secondary); text-transform: uppercase; letter-spacing: .05em; }
  .tbl td.act { text-align: left; }
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn { width: 100%; }
  h1.large { font-size: 28px; }
}
