/* Rechner v3 */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("/assets/fonts/plex.woff2") format("woff2"); }

:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --card-2: #f8fafd;
  --ink: #1f3a93;
  --ink-600: #2a4bb5;
  --ink-soft: #eaefff;
  --text: #121826;
  --muted: #5f6b7c;
  --line: #e3e8f0;
  --line-strong: #cbd3df;
  --green: #15803d;
  --green-soft: #e6f6ec;
  --amber: #b45309;
  --amber-soft: #fdf1dc;
  --slate: #475569;
  --slate-soft: #e7ecf3;
  --focus: rgba(31, 58, 147, 0.2);
  --shadow-sm: 0 1px 2px rgba(18, 24, 38, 0.05);
  --shadow: 0 1px 2px rgba(18, 24, 38, 0.04), 0 10px 30px rgba(18, 24, 38, 0.07);
  --r: 16px;
  --r-s: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218; --card: #171b23; --card-2: #1c2129; --ink: #9db0ff; --ink-600: #b3c2ff; --ink-soft: #222a40;
    --text: #e8ebf0; --muted: #98a2b3; --line: #262c37; --line-strong: #3a4250;
    --green: #4ade80; --green-soft: #15291d; --amber: #fbbf24; --amber-soft: #2d2410; --slate: #a3adbd; --slate-soft: #252b36;
    --focus: rgba(157, 176, 255, 0.3); --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218; --card: #171b23; --card-2: #1c2129; --ink: #9db0ff; --ink-600: #b3c2ff; --ink-soft: #222a40;
  --text: #e8ebf0; --muted: #98a2b3; --line: #262c37; --line-strong: #3a4250;
  --green: #4ade80; --green-soft: #15291d; --amber: #fbbf24; --amber-soft: #2d2410; --slate: #a3adbd; --slate-soft: #252b36;
  --focus: rgba(157, 176, 255, 0.3); --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.4);
}

/* Base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 780px; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-600); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 20; }
.ico { display: inline-flex; width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.ico svg { width: 100%; height: 100%; }
strong { font-weight: 600; }
h1 { font-size: clamp(2rem, 2.6vw + 1rem, 2.75rem); line-height: 1.1; letter-spacing: -0.022em; font-weight: 600; margin: 0 0 12px; }
h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; margin: 52px 0 14px; }
h3 { font-size: 1.0625rem; font-weight: 600; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1875rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 600; font-size: 1.15rem; line-height: 1; box-shadow: 0 2px 6px rgba(31,58,147,.35); }
.site-nav { display: flex; gap: 4px; overflow-x: auto; margin-left: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 10px; white-space: nowrap; color: var(--muted); font-weight: 500; font-size: 0.975rem; }
.site-nav a .ico { width: 18px; height: 18px; }
.site-nav a:hover { background: var(--card-2); color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--ink-soft); color: var(--ink); }

/* Hero */
.hero { background: radial-gradient(900px 320px at 12% -20%, var(--ink-soft) 0%, transparent 65%), linear-gradient(180deg, color-mix(in srgb, var(--ink-soft) 45%, var(--bg)) 0%, var(--bg) 100%); padding: 44px 0 10px; }
.hero .wrap > * { max-width: 800px; }
.hero-big { padding: 64px 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 0.875rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.intro { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); margin: 0 0 8px; }
main { padding: 26px 24px 72px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; margin: 0 0 32px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.card-h h2 { margin: 0; font-size: 1.125rem; }
.hint { color: var(--muted); font-size: 0.9375rem; margin: 16px 0 0; }

/* Inputs */
.field { display: grid; gap: 7px; }
.field > label, .lbl { font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.field .sub { font-size: 0.875rem; color: var(--muted); font-weight: 400; }
.num, .field select, .sentence select {
  font: inherit; height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--card); color: var(--text); width: 100%; min-width: 0;
  box-shadow: var(--shadow-sm);
}
.num { font-size: 1.25rem; font-weight: 600; color: var(--ink); text-align: right; width: 9ch; }
.field .num { width: 100%; }
.num:focus, .field select:focus, .sentence select:focus, .stepper:focus-within { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus); }
.field select, .sentence select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6b7c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.inline { display: flex; align-items: center; gap: 10px; }
.inline .num { flex: 1 1 auto; }
.inline .unit { color: var(--muted); font-weight: 500; }
.suffix { position: relative; }
.suffix .num { padding-right: 62px; }
.suffix .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }

/* Segmented control */
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-s); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 14px; border-radius: 7px; font-weight: 500; font-size: 0.9375rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(18,24,38,.12); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus); }
.seg.full { display: flex; }
.seg.full label { flex: 1; }
.seg.full span { text-align: center; }

/* Pills (Steuerklasse) */
.pills { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pills span { display: block; text-align: center; height: 50px; line-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-s); font-weight: 600; font-size: 1.0625rem; background: var(--card); cursor: pointer; box-shadow: var(--shadow-sm); }
.pills input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pills input:focus-visible + span { box-shadow: 0 0 0 4px var(--focus); }
.pill-help { font-size: 0.875rem; color: var(--muted); margin: 8px 0 0; min-height: 1.4em; }

/* Switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card-2); cursor: pointer; }
.switch .t { font-weight: 500; }
.switch .t small { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { flex: 0 0 auto; width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--focus); }

/* Stepper */
.stepper { display: flex; width: 100%; align-items: stretch; height: 50px; border: 1px solid var(--line-strong); border-radius: var(--r-s); overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); }
.stepper button { width: 48px; border: 0; background: var(--card-2); color: var(--ink); font: inherit; font-size: 1.375rem; cursor: pointer; }
.stepper button:hover { background: var(--ink-soft); }
.stepper output { flex: 1; min-width: 64px; display: grid; place-items: center; font-weight: 600; font-size: 1.125rem; }

/* Details "more" */
.more { border-top: 1px solid var(--line); padding-top: 16px; }
.more summary { cursor: pointer; color: var(--ink); font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-left: 2px; }
.more[open] summary::before { transform: rotate(45deg); }

/* Brutto-Netto layout */
.bn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; margin: 0 0 36px; }
.bn-layout > *, .summary > * { min-width: 0; }
.bn-form { padding: 26px; display: grid; gap: 22px; }
.bn-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bn-result { position: sticky; top: 88px; padding: 24px 26px 22px; }
.bn-result .result-label { margin: 0 0 2px; color: var(--muted); font-size: 0.9375rem; font-weight: 500; }
.bn-result .result-value { font-size: clamp(2rem, 2.2vw + 1rem, 2.625rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; color: var(--text); }
.bn-result .result-sub { margin: 6px 0 0; color: var(--muted); font-size: 0.9375rem; }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 18px 0 10px; }
.bar i { display: block; height: 100%; transition: width .25s ease; }
.b-netto { background: var(--green); } .b-steuern { background: var(--amber); } .b-sv { background: var(--slate); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.875rem; color: var(--muted); margin: 0 0 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.rows { margin: 14px 0 0; border-top: 1px solid var(--line); }
.rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.rows div.sub { color: var(--muted); padding-left: 16px; }
.rows div.head { font-weight: 600; color: var(--text); }
.rows div.head .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 8px; vertical-align: -1px; }
.rows div.total { font-weight: 600; font-size: 1.0625rem; border-bottom: 0; padding-top: 12px; color: var(--green); }
.rows span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bn-result .hint { font-size: 0.8125rem; margin-top: 12px; }

/* Static summary (programmatic pages) */
.summary { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; margin: 0 0 36px; }
.summary .bn-result { position: static; }
.summary .table-wrap { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0; }
.stat { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.stat span { font-size: 0.8125rem; color: var(--muted); }

/* Prozent calc */
.modes { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 22px; padding: 4px; list-style: none; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-s); }
.modes li { margin: 0; }
.modes button { font: inherit; font-size: 0.9375rem; font-weight: 500; padding: 8px 14px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.modes button:hover { color: var(--text); }
.modes button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(18,24,38,.12); }
.sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 10px; font-size: 1.3125rem; line-height: 1.3; }
.sentence label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sentence .num { width: 9ch; }
.sentence select { width: auto; font-weight: 600; color: var(--ink); }
.result { margin: 24px 0 0; padding: 22px 24px; border-radius: 14px; background: var(--ink); color: #fff; }
.result-label { margin: 0 0 4px; font-size: 0.9375rem; color: rgba(255,255,255,.8); }
.result .result-value { display: block; font-size: clamp(2rem, 3vw + 1rem, 2.75rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; }
.result .result-value.empty { font-weight: 400; font-size: 1.0625rem; color: rgba(255,255,255,.85); }
.result-formula { margin: 8px 0 0; color: rgba(255,255,255,.8); font-size: 0.9375rem; }
.result-extra { margin: 8px 0 0; font-size: 1rem; }
.pbar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.22); margin: 14px 0 0; overflow: hidden; }
.pbar i { display: block; height: 100%; background: #fff; border-radius: 999px; transition: width .25s ease; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 14px 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; color: var(--muted); font-size: 0.875rem; background: var(--card-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 500; }
td.n, th.n { text-align: right; white-space: nowrap; }
tbody tr:hover td, tbody tr:hover th { background: color-mix(in srgb, var(--card-2) 60%, var(--card)); }
.bn-table th { width: 60%; }
.bn-table tr.sub th { padding-left: 30px; color: var(--muted); font-weight: 400; }
.bn-table tr.sub td { color: var(--muted); }
.bn-table tr.total th, .bn-table tr.total td { font-weight: 600; background: var(--green-soft); color: var(--green); }

/* Formula / FAQ / related */
.formula { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 12px; padding: 12px 16px; margin: 12px 0 16px; font-size: 1.0625rem; box-shadow: var(--shadow-sm); }
.formula b { color: var(--ink); font-weight: 600; }
.faq { margin-top: 52px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 10px 0; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }
.related { margin-top: 56px; }
.related ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.related li { margin: 0; }
.related a { position: relative; display: grid; gap: 2px; padding: 16px 44px 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .12s, transform .12s; }
.related a:hover { text-decoration: none; border-color: var(--ink); transform: translateY(-1px); }
.related a strong { color: var(--ink); }
.related a span { color: var(--muted); font-size: 0.9375rem; }
.related a .ico { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink); width: 18px; height: 18px; }

/* Home */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 0; }
.feature { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.feature .ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--ink-soft); color: var(--ink); display: grid; place-items: center; padding: 9px; }
.feature b { display: block; font-weight: 600; }
.feature span { color: var(--muted); font-size: 0.9375rem; }
.calc-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.calc-list li { margin: 0; }
.calc-list a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: var(--text); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.calc-list a:hover { text-decoration: none; border-color: var(--ink); transform: translateY(-2px); }
.calc-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink-soft); color: var(--ink); padding: 10px; }
.calc-list strong { display: block; color: var(--text); font-size: 1.125rem; margin-bottom: 3px; }
.calc-list span { color: var(--muted); font-size: 0.9375rem; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; }
.chips a { display: inline-block; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 0.9375rem; box-shadow: var(--shadow-sm); }
.chips a:hover { border-color: var(--ink); text-decoration: none; }
.nearby { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 14px; }
.nearby li { margin: 0; }
.nearby a { display: block; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.nearby a:hover { border-color: var(--ink); text-decoration: none; }

/* Ads: reserved height to avoid layout shift */
.ad { min-height: 280px; margin: 32px 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--card); padding: 40px 0 28px; font-size: 0.9375rem; color: var(--muted); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid p { margin: 12px 0 0; max-width: 42ch; }
.foot-grid h3 { margin: 4px 0 10px; font-size: 0.9375rem; color: var(--text); }
.foot-grid nav a { display: block; padding: 4px 0; color: var(--muted); }
.foot-grid nav a:hover { color: var(--ink); }
.foot-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.foot-note p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .bn-layout { grid-template-columns: 1fr; }
  .bn-result { position: static; }
  .summary { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  main { padding: 20px 16px 56px; }
  .site-head .wrap { gap: 12px; }
  .site-nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .site-nav a { padding: 7px 10px; font-size: 0.9rem; }
  .hero { padding: 30px 0 6px; }
  .hero-big { padding: 40px 0 16px; }
  .calc, .bn-form, .bn-result { padding: 18px 16px; border-radius: 14px; }
  .bn-form .row2 { grid-template-columns: 1fr; }
  .pills { gap: 6px; }
  .pills span { font-size: 1rem; }
  .sentence { font-size: 1.1875rem; }
  .sentence .num { width: 7.5ch; }
  th, td { padding: 10px 12px; }
  .bn-table th { width: auto; }
  .bn-table tr.sub th { padding-left: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  h2 { margin-top: 42px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Tage / Kalender */
.pane { display: grid; gap: 18px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.date { font: inherit; font-size: 1.0625rem; font-weight: 600; color: var(--ink); height: 50px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--card); width: 100%; min-width: 0; box-shadow: var(--shadow-sm); -webkit-appearance: none; appearance: none; }
.date:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 18px 0 0; }
.rgrid:empty { display: none; }
.rgrid.three { grid-template-columns: repeat(3, 1fr); }
.rgrid div { background: rgba(255,255,255,.12); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.rgrid b { display: block; font-size: 1.125rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.rgrid span { display: block; font-size: 0.8125rem; color: rgba(255,255,255,.78); margin-top: 2px; }
.muted { color: var(--muted); }
td .sub, th .sub { display: block; font-size: 0.8125rem; color: var(--muted); font-weight: 400; }
tr.cur th, tr.cur td { background: var(--ink-soft); color: var(--ink); font-weight: 600; }
.at-table th, .at-table td { padding: 10px 12px; font-size: 0.9375rem; }
.at-table tr.total th, .at-table tr.total td { font-weight: 600; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.kw-table th { white-space: nowrap; }
@media (max-width: 960px) { .row3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .row3 { grid-template-columns: 1fr; } .rgrid, .rgrid.three { grid-template-columns: 1fr 1fr; } }

/* Zeit: Arbeitszeit, Stunden, Stundenlohn */
.time { font: inherit; font-size: 1.0625rem; font-weight: 600; color: var(--ink); height: 50px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--card); width: 100%; min-width: 0; box-shadow: var(--shadow-sm); -webkit-appearance: none; appearance: none; }
.time:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus); }
.az-top { margin: 0 0 20px; align-items: end; }
.ts-wrap { margin: 0 0 14px; }
.ts th, .ts td { padding: 8px 8px; vertical-align: middle; }
.ts thead th { padding: 10px 8px; }
.ts tbody th { font-weight: 600; white-space: nowrap; }
.ts .time, .ts .num.mini { height: 44px; font-size: 1rem; padding: 0 10px; }
.ts .num.mini { width: 100%; padding-right: 40px; }
.ts .suffix .unit { right: 10px; font-size: 0.875rem; }
.ts td:nth-child(2), .ts td:nth-child(3) { width: 170px; }
.ts td:nth-child(4) { width: 132px; }
.ts td.dur { white-space: nowrap; }
.ts td.dur b { font-weight: 600; }
.ts td.dur small { display: block; font-size: 0.75rem; color: var(--amber); font-weight: 500; white-space: normal; max-width: 180px; }
.ts tfoot th, .ts tfoot td { background: var(--card-2); font-weight: 600; border-top: 2px solid var(--line); }
.ts tfoot td { font-weight: 400; color: var(--muted); }
.ts tfoot td.dur { font-weight: 600; color: var(--green); }
.d-short { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; }
.btn { font: inherit; font-size: 0.9375rem; font-weight: 500; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--ink-600); border-color: var(--ink-600); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--ink-soft); border-color: var(--ink); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus); }
.sum-rows { display: grid; gap: 8px; max-width: 420px; }
.sum-row { display: grid; grid-template-columns: 28px 1fr 44px; align-items: center; gap: 8px; }
.sum-row .idx { color: var(--muted); font-size: 0.9375rem; text-align: right; }
.sum-row .num { width: 100%; text-align: left; }
.sum-row .x { height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); font: inherit; font-size: 1.25rem; cursor: pointer; }
.sum-row .x:hover { color: var(--ink); border-color: var(--ink); }
.num.bad { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.pane .lbl { margin: 0 0 -8px; }
@media (max-width: 600px) {
  .az-top { grid-template-columns: 1fr; }
  .ts thead { display: none; }
  .ts, .ts tbody, .ts tfoot { display: block; }
  .ts tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 84px; gap: 6px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ts td:nth-child(2), .ts td:nth-child(3), .ts td:nth-child(4) { width: auto; }
  .ts .time::-webkit-calendar-picker-indicator { display: none; }
  .ts .time { padding: 0 6px; }
  .ts tbody tr:last-child { border-bottom: 0; }
  .ts th, .ts td { display: block; padding: 0; border: 0; }
  .ts td.dur { grid-column: 2 / -1; text-align: left; }
  .ts td.dur small { max-width: none; }
  .ts tfoot tr { padding: 12px 0 4px; border-top: 2px solid var(--line); border-bottom: 0; }
  .ts tfoot td[colspan] { grid-column: 2 / 4; }
  .d-long { display: none; } .d-short { display: inline; }
  .ts .time, .ts .num.mini { padding: 0 8px; font-size: 0.9375rem; }
  .ts .num.mini { padding-right: 34px; }
  .seg.full span { white-space: normal; padding: 8px 10px; }
}
