/* =====================================================================
   KLASSIK-BOOTSTRAP-DESIGN · site.css · v2.1
   Farben 1:1 wie im Arbeitszeit-Rechner. Abwärtskompatibel (ab ca. 2017).
   Hell = Standard · Dunkel = System ODER <html data-theme="dark">;
   data-theme="light" erzwingt Hell. Dunkel-Werte stehen deshalb zweimal.
   Eigenes CSS NACH dieser Datei einbinden – es gewinnt dann automatisch.
   ===================================================================== */

/* ================================================================ Tokens */
:root {
  color-scheme: light dark;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: "Lucida Grande", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: Menlo, Monaco, Consolas, "Courier New", monospace;
  --container: 940px; --gutter: 30px; --radius: 4px;
  /* Seite & Text */
  --page: #ffffff; --ink: #333333; --ink-soft: #555555; --ink-muted: #999999; --link: #0088cc;
  --link-glow: rgba(0,136,204,.25);
  /* Navbar */
  --nav-1: #ffffff; --nav-2: #f2f2f2; --nav-border: #d4d4d4; --nav-text: #777777; --nav-brand: #777777;
  --nav-active: rgba(0,0,0,.06); --nav-ts: 0 1px 0 #ffffff;
  /* Flächen */
  --hr-1: #eeeeee; --hr-2: #ffffff; --well: #f5f5f5; --well-border: #e3e3e3; --surface: #ffffff;
  --surface-border: #dddddd; --table-line: #dddddd; --stripe: #f9f9f9; --stripe-well: #ffffff; --foot-bar: #f5f5f5;
  --code-bg: #f7f7f9; --code-border: #e1e1e8; --code-text: #dd1144; --pre-bg: #f5f5f5;
  /* Standard-Button */
  --def-1: #ffffff; --def-2: #e6e6e6; --def-border: #cccccc; --def-border-b: #b3b3b3; --def-text: #333333;
  --def-active: #d9d9d9; --def-ts: 0 1px 1px rgba(255,255,255,.75);
  /* Hinweise (Alerts) */
  --alert-bg: #f2dede; --alert-border: #eed3d7; --alert-text: #b94a48; --ok-bg: #dff0d8; --ok-border: #d6e9c6;
  --ok-text: #468847; --info-bg: #d9edf7; --info-border: #bce8f1; --info-text: #3a87ad; --warn-bg: #fcf8e3;
  --warn-border: #fbeed5; --warn-text: #c09853;
  /* Eingabefelder (Aqua-Look) */
  --text: #1e242b; --muted: #6a7480; --emboss: 0 1px 0 rgba(255,255,255,.9); --field: #ffffff;
  --field-border: #9ca5b1; --field-inset: rgba(0,0,0,.13); --divider: #e4e8ed; --accent: #2f80ed;
  --ring: rgba(56,142,240,.45); --danger: #c2352b; --danger-ring: rgba(194,53,43,.3); --btn-1: #ffffff;
  --btn-2: #eff1f4; --btn-3: #dde1e6; --btn-4: #e8ebee; --btn-border: #98a0ab; --btn-text: #2b3138; --btn-a1: #c9ced5;
  --btn-a2: #dadee3; --del-bg: #c3c9d1; --del-text: #ffffff;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236a7480' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Seite & Text */
    --page: #1a1a1a; --ink: #e6e6e6; --ink-soft: #b5b5b5; --ink-muted: #8a8a8a; --link: #3fa9e8;
    --link-glow: rgba(63,169,232,.3);
    /* Navbar */
    --nav-1: #2c2c2c; --nav-2: #111111; --nav-border: #252525; --nav-text: #999999; --nav-brand: #bbbbbb;
    --nav-active: rgba(255,255,255,.07); --nav-ts: 0 -1px 0 rgba(0,0,0,.25);
    /* Flächen */
    --hr-1: #2b2b2b; --hr-2: #111111; --well: #232323; --well-border: #303030; --surface: #222222;
    --surface-border: #333333; --table-line: #363636; --stripe: #212121; --stripe-well: #2a2a2a; --foot-bar: #222222;
    --code-bg: #262626; --code-border: #363636; --code-text: #ff8fab; --pre-bg: #202020;
    /* Standard-Button */
    --def-1: #4a4a4a; --def-2: #333333; --def-border: #1f1f1f; --def-border-b: #151515; --def-text: #eeeeee;
    --def-active: #2a2a2a; --def-ts: 0 -1px 0 rgba(0,0,0,.4);
    /* Hinweise (Alerts) */
    --alert-bg: #3a2222; --alert-border: #5a2e2e; --alert-text: #f0a3a0; --ok-bg: #1f3320; --ok-border: #2e4a2f;
    --ok-text: #9fd49a; --info-bg: #1b2f3b; --info-border: #284556; --info-text: #8ccbea; --warn-bg: #36301c;
    --warn-border: #4e4426; --warn-text: #e3c77d;
    /* Eingabefelder (Aqua-Look) */
    --text: #e9ecf0; --muted: #98a1ac; --emboss: 0 -1px 0 rgba(0,0,0,.6); --field: #1b1d21; --field-border: #0c0d0f;
    --field-inset: rgba(0,0,0,.55); --divider: #373b41; --accent: #4c9bff; --ring: rgba(76,155,255,.5);
    --danger: #ff7468; --danger-ring: rgba(255,116,104,.3); --btn-1: #5b6068; --btn-2: #484c53; --btn-3: #3b3f45;
    --btn-4: #44484e; --btn-border: #121315; --btn-text: #eef0f3; --btn-a1: #2b2e33; --btn-a2: #363a40;
    --del-bg: #4a4e55; --del-text: #d8dce1;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2398a1ac' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  /* Seite & Text */
  --page: #1a1a1a; --ink: #e6e6e6; --ink-soft: #b5b5b5; --ink-muted: #8a8a8a; --link: #3fa9e8;
  --link-glow: rgba(63,169,232,.3);
  /* Navbar */
  --nav-1: #2c2c2c; --nav-2: #111111; --nav-border: #252525; --nav-text: #999999; --nav-brand: #bbbbbb;
  --nav-active: rgba(255,255,255,.07); --nav-ts: 0 -1px 0 rgba(0,0,0,.25);
  /* Flächen */
  --hr-1: #2b2b2b; --hr-2: #111111; --well: #232323; --well-border: #303030; --surface: #222222;
  --surface-border: #333333; --table-line: #363636; --stripe: #212121; --stripe-well: #2a2a2a; --foot-bar: #222222;
  --code-bg: #262626; --code-border: #363636; --code-text: #ff8fab; --pre-bg: #202020;
  /* Standard-Button */
  --def-1: #4a4a4a; --def-2: #333333; --def-border: #1f1f1f; --def-border-b: #151515; --def-text: #eeeeee;
  --def-active: #2a2a2a; --def-ts: 0 -1px 0 rgba(0,0,0,.4);
  /* Hinweise (Alerts) */
  --alert-bg: #3a2222; --alert-border: #5a2e2e; --alert-text: #f0a3a0; --ok-bg: #1f3320; --ok-border: #2e4a2f;
  --ok-text: #9fd49a; --info-bg: #1b2f3b; --info-border: #284556; --info-text: #8ccbea; --warn-bg: #36301c;
  --warn-border: #4e4426; --warn-text: #e3c77d;
  /* Eingabefelder (Aqua-Look) */
  --text: #e9ecf0; --muted: #98a1ac; --emboss: 0 -1px 0 rgba(0,0,0,.6); --field: #1b1d21; --field-border: #0c0d0f;
  --field-inset: rgba(0,0,0,.55); --divider: #373b41; --accent: #4c9bff; --ring: rgba(76,155,255,.5);
  --danger: #ff7468; --danger-ring: rgba(255,116,104,.3); --btn-1: #5b6068; --btn-2: #484c53; --btn-3: #3b3f45;
  --btn-4: #44484e; --btn-border: #121315; --btn-text: #eef0f3; --btn-a1: #2b2e33; --btn-a2: #363a40;
  --del-bg: #4a4e55; --del-text: #d8dce1;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2398a1ac' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root[data-theme="light"] { color-scheme: light; }

/* ================================================================ Basis */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font: 14px/20px var(--font);
  color: var(--ink); background: var(--page);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: bold; color: var(--ink); }
h1 { margin: 0 0 6px; font-size: 38.5px; line-height: 1.1; letter-spacing: -.005em; }
h2 { margin: 0 0 8px; font-size: 31.5px; line-height: 1.15; }
h3 { margin: 0 0 6px; font-size: 24.5px; line-height: 1.2; }
h4 { margin: 0 0 4px; font-size: 17.5px; line-height: 1.3; }
h1 small, h2 small, h3 small, h4 small { font-size: 14px; font-weight: normal; color: var(--ink-muted); }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 25px; }
small { font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--hr-1); border-bottom: 1px solid var(--hr-2); margin: 20px 0; }

code, kbd, pre { font-family: var(--font-mono); }
code { padding: 2px 4px; font-size: 12px; color: var(--code-text); background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 3px; }
kbd { font: inherit; font-weight: bold; color: var(--ink); padding: 0 4px; border: 1px solid var(--table-line); border-radius: 3px; background: var(--well); }
pre { margin: 0 0 10px; padding: 9.5px; font-size: 13px; line-height: 20px; color: var(--ink); background: var(--pre-bg); border: 1px solid var(--surface-border); border-radius: var(--radius); overflow: auto; }
pre code { padding: 0; color: inherit; background: none; border: 0; font-size: inherit; }
blockquote { margin: 0 0 20px; padding: 0 0 0 15px; border-left: 5px solid var(--hr-1); }
blockquote p { font-size: 17.5px; font-weight: 300; line-height: 1.4; }
blockquote footer, blockquote cite { display: block; color: var(--ink-muted); font-style: normal; }
figure { margin: 0 0 20px; }
figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-muted); }

/* ================================================================ Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 22px 16px 30px; }
main.container { padding-bottom: 0; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 20; padding: 8px 12px; background: var(--page); border: 1px solid var(--surface-border); border-radius: var(--radius); }
.skip-link:focus { top: 8px; }

/* Navbar */
.navbar {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 10;
  background: linear-gradient(var(--nav-1), var(--nav-2));
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 4px rgba(0,0,0,.065);
}
.navbar .inner { max-width: var(--container); margin: 0 auto; padding: 0 16px; min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; }
.brand { font-size: 20px; font-weight: 200; color: var(--nav-brand); text-shadow: var(--nav-ts); white-space: nowrap; letter-spacing: .01em; margin-right: 18px; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand b { font-weight: 200; opacity: .6; }
.navbar nav { margin-right: auto; }
.nav { display: flex; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 10px 14px; color: var(--nav-text); text-shadow: var(--nav-ts); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--nav-active); box-shadow: inset 0 3px 8px rgba(0,0,0,.1); }
.nav-end { display: flex; align-items: center; margin-left: auto; }
.nav-end > * + * { margin-left: 8px; }
@media (max-width: 767px) {
  .navbar nav { order: 3; flex-basis: 100%; margin: 0; }
  .nav { display: none; flex-direction: column; padding: 4px 0 10px; border-top: 1px solid var(--nav-border); }
  .nav.is-open { display: flex; }
  .nav a { padding: 9px 4px; }
  .nav a[aria-current="page"] { padding-left: 10px; border-radius: var(--radius); }
}

/* Seitenkopf & Abschnitte */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.lead { margin: 0; color: var(--ink-soft); font-size: 15px; }
.section { margin: 0 0 30px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.section-title h2, .section-title h3 { margin: 0; }
.eyebrow { font-size: 17px; font-weight: normal; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .01em; margin-right: 4px; }

/* Raster */
.row   { display: grid; grid-template-columns: 7fr 5fr; grid-gap: var(--gutter); gap: var(--gutter); align-items: start; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: var(--gutter); gap: var(--gutter); align-items: start; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: var(--gutter); gap: var(--gutter); align-items: start; }
.grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-gap: 20px; gap: 20px; }
.stack > * + * { margin-top: 20px; }
@media (max-width: 767px) { .row, .row-2, .row-3 { grid-template-columns: 1fr; grid-gap: 22px; gap: 22px; } }

/* Footer */
.site-footer { padding-top: 30px; }
.footbar { padding: 8px 15px; background: var(--foot-bar); border-radius: var(--radius); color: var(--ink-muted); }
.foot { margin: 12px 0 0; color: var(--ink-soft); font-size: 13px; }

/* ============================================================ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 4px 12px; font-size: 14px; line-height: 20px; border-radius: var(--radius);
  color: var(--def-text); text-shadow: var(--def-ts); text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--def-1), var(--def-2));
  border: 1px solid var(--def-border); border-bottom-color: var(--def-border-b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.btn:hover { color: var(--def-text); background: var(--def-2); text-decoration: none; }
.btn:active, .btn[aria-pressed="true"] { background: var(--def-active); box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); }
.btn:focus { outline: none; }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--ring); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn svg { flex: none; width: 1em; height: 1em; }
.btn-group svg { width: 12px; height: 12px; }
.btn-large { padding: 10px 18px; font-size: 17.5px; border-radius: 6px; }
.btn-small { padding: 2px 10px; font-size: 11.9px; border-radius: 3px; }
.btn-block { display: flex; width: 100%; white-space: normal; }
.btn-primary, .btn-inverse, .btn-danger, .btn-success { color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.25); }
.btn-primary { background: linear-gradient(#0088cc, #0044cc); border-color: #0044cc #0044cc #002a80; }
.btn-primary:hover { color: #fff; background: #0044cc; }
.btn-primary:active { background: #003399; }
.btn-inverse { background: linear-gradient(#444, #222); border-color: #222 #222 #000; }
.btn-inverse:hover { color: #fff; background: #222; }
.btn-inverse:active { background: #080808; }
.btn-danger { background: linear-gradient(#ee5f5b, #bd362f); border-color: #bd362f #bd362f #802420; }
.btn-danger:hover { color: #fff; background: #bd362f; }
.btn-success { background: linear-gradient(#62c462, #51a351); border-color: #51a351 #51a351 #387038; }
.btn-success:hover { color: #fff; background: #51a351; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: 3px 0 0 3px; margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 3px 3px 0; }
.nav-toggle { display: none; }
@media (max-width: 767px) { .nav-toggle { display: inline-flex; } }
@media (max-width: 420px) { .btn-group .txt { display: none; } }

/* ======================================================== Komponenten */
/* Badges */
.badge { display: inline-block; padding: 2px 4px; font-size: 11.84px; font-weight: bold; line-height: 14px; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.25); vertical-align: middle; white-space: nowrap; background: #999; border-radius: 3px; }
.badge-primary { background: #0088cc; }
.badge-success { background: #468847; }
.badge-warning { background: #f89406; }
.badge-danger  { background: #b94a48; }
.badge-info    { background: #3a87ad; }
.badge-inverse { background: #333; }

/* Well & Alerts */
.well { background: var(--well); border: 1px solid var(--well-border); border-radius: var(--radius); box-shadow: inset 0 1px 1px rgba(0,0,0,.05); padding: 19px; }
.well > :last-child { margin-bottom: 0; }
.alert { margin: 10px 0 0; padding: 8px 14px; border-radius: var(--radius); background: var(--alert-bg); border: 1px solid var(--alert-border); color: var(--alert-text); }
.alert-success { background: var(--ok-bg);   border-color: var(--ok-border);   color: var(--ok-text); }
.alert-info    { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }
.alert-warning { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }

/* Tabellen */
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); text-align: left; padding: 0 10px 6px; }
.table td { padding: 8px 10px; border-top: 1px solid var(--table-line); vertical-align: top; }
.table .num { text-align: right; }
.table tr.total td { font-weight: bold; }
.table-striped tbody tr:nth-child(even) td { background: var(--stripe); }
.well .table-striped tbody tr:nth-child(even) td { background: var(--stripe-well); }
.table-flush th:first-child, .table-flush td:first-child { padding-left: 0; }
.table-flush th:last-child, .table-flush td:last-child { padding-right: 0; }
.table-wrap { overflow-x: auto; }

/* Hero: Bild + Text */
.hero { display: grid; grid-template-columns: 5fr 7fr; grid-gap: var(--gutter); gap: var(--gutter); align-items: center; }
.hero-media img { width: 100%; height: auto; }
.hero h1, .hero h2 { margin-bottom: 10px; }
.hero .btn-block { margin-top: 6px; }

/* Karte (z. B. Projekt) */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.055); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover, .card:focus-within { border-color: var(--link); box-shadow: 0 1px 4px var(--link-glow); }
.card-media { aspect-ratio: 16 / 9; background: var(--well); border-bottom: 1px solid var(--surface-border); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card-body > * + * { margin-top: 6px; }
.card-title { margin: 0; font-size: 17.5px; }
.card-text { margin: 0; color: var(--ink-soft); }
.card-meta { font-size: 13px; color: var(--ink-muted); }
.card-footer { margin-top: auto; padding-top: 8px; }
.card-link { color: inherit; }
.card-link:hover { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.card-link:focus { outline: none; }

/* Media-Objekt (z. B. Beitrag mit Vorschaubild) */
.media { display: grid; grid-template-columns: 72px 1fr; grid-gap: 12px; gap: 12px; align-items: start; }
.media-thumb { width: 72px; height: 72px; padding: 3px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: 3px; object-fit: cover; }
.media-body > :last-child { margin-bottom: 0; }
.media-title { margin: 0 0 4px; font-size: 17.5px; }
.media-title small { font-size: 13px; }

/* Banner mit Bildunterschrift */
.banner { position: relative; overflow: hidden; background: var(--well); }
.banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.banner-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 15px; background: rgba(0,0,0,.75); color: #fff; }
.banner-caption h4 { margin: 0 0 2px; color: #fff; }
.banner-caption p { margin: 0; color: #ddd; }
.banner-caption a { color: #5bc0f0; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; margin: 0 0 20px; padding: 8px 15px; list-style: none; background: var(--well); border-radius: var(--radius); }
.breadcrumb li + li::before { content: "/"; padding: 0 5px; color: #ccc; }
.breadcrumb [aria-current] { color: var(--ink-muted); }

/* Fließtext (Artikel, Projektbeschreibung) */
.prose { max-width: 70ch; }
.prose h2, .prose h3 { margin-top: 30px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose li { margin-bottom: 4px; }
.prose img { border-radius: var(--radius); }

/* ============================================ Eingabefelder (Aqua-Look) */
.inputs { font-family: var(--font-ui); color: var(--text); line-height: 1.4; }
.lbl { display: block; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-shadow: var(--emboss); margin: 0 0 6px 2px; }
.lbl-row { display: flex; align-items: center; justify-content: space-between; min-height: 20px; margin-bottom: 6px; }
.lbl-row .lbl { margin-bottom: 0; }
.form-group + .form-group { margin-top: 16px; }
.help { margin: 5px 2px 0; font-size: 12px; color: var(--muted); }

.field {
  width: 100%; height: 38px; padding: 0 11px; font-size: 15px;
  background: var(--field); border: 1px solid var(--field-border); border-radius: 6px;
  box-shadow: inset 0 2px 3px var(--field-inset); outline: none;
  transition: box-shadow .15s, border-color .15s;
}
textarea.field { height: auto; min-height: 96px; padding: 9px 11px; line-height: 1.4; resize: vertical; }
select.field { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 34px; background: var(--field) var(--select-arrow) no-repeat right 12px center; background-size: 12px 8px; cursor: pointer; }
.field-lg { height: 58px; padding: 0 8px; text-align: center; font-size: 28px; font-weight: bold; letter-spacing: .02em; font-variant-numeric: tabular-nums; border-radius: 7px; }
.field::placeholder { color: var(--muted); opacity: .45; font-weight: normal; }

.field-box {
  display: flex; align-items: baseline; justify-content: center; width: 92px; height: 34px; padding: 0 8px;
  background: var(--field); border: 1px solid var(--field-border); border-radius: 6px;
  box-shadow: inset 0 2px 3px var(--field-inset); cursor: text; transition: box-shadow .15s, border-color .15s;
}
.field-box input { width: 42px; border: 0; background: transparent; outline: none; text-align: right; padding: 0; font-size: 17px; font-weight: bold; line-height: 32px; font-variant-numeric: tabular-nums; }
.field-box .unit { margin-left: 4px; font-size: 12px; color: var(--muted); }

.field:focus, .field-box:focus-within { border-color: var(--accent); box-shadow: inset 0 2px 3px var(--field-inset), 0 0 0 3px var(--ring); }
.field.invalid, .field-box.invalid, .field[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 2px 3px var(--field-inset), 0 0 0 3px var(--danger-ring); }
.check { display: flex; align-items: center; font-family: var(--font-ui); color: var(--text); }
.check input { width: 16px; height: 16px; margin: 0 8px 0 0; }

.gbtn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--btn-border); border-radius: 5px; padding: 5px 12px;
  color: var(--btn-text); font-size: 12px; font-family: var(--font-ui); text-shadow: var(--emboss);
  background: linear-gradient(var(--btn-1), var(--btn-2) 50%, var(--btn-3) 51%, var(--btn-4));
  box-shadow: 0 1px 1px rgba(0,0,0,.12);
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.gbtn:active, .gbtn.is-active { background: linear-gradient(var(--btn-a1), var(--btn-a2)); box-shadow: inset 0 1px 3px rgba(0,0,0,.3); }
.gbtn:focus { outline: none; }
.gbtn:focus-visible { box-shadow: 0 0 0 3px var(--ring); }
.chip { padding: 1px 7px 1px 5px; font-size: 11px; border-radius: 9px; }
.chip svg { width: 11px; height: 11px; margin-right: 3px; }
.stepper { display: flex; align-items: center; }
.stepper > * + * { margin-left: 6px; }
.step { width: 34px; height: 34px; padding: 0; font-size: 18px; font-weight: bold; line-height: 1; }
.del {
  flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: var(--del-bg); color: var(--del-text); font-size: 14px; font-weight: bold; line-height: 22px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.2); transition: background .15s;
}
.del:hover { background: #d9534f; color: #fff; }
.del:focus { outline: none; }
.del:focus-visible { box-shadow: 0 0 0 3px var(--ring); }

/* ======================================================= Tool-Bausteine */
.item-list { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 1fr auto auto; grid-gap: 10px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--divider); animation: slideIn .18s ease-out; }
.item-name { font-weight: bold; font-size: 13px; }
.empty { padding: 10px 0; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--divider); }
.big { display: flex; align-items: baseline; margin: 10px 0 2px; }
.big b { font-size: 60px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.big span { margin-left: 6px; font-size: 17.5px; font-weight: bold; color: var(--ink-muted); }
.is-empty .big b { color: var(--ink-muted); opacity: .5; }
.btn-stat { flex-direction: column; gap: 0; padding: 8px 10px 10px; min-width: 0; }
.btn-stat .sub { margin-bottom: 2px; font-size: 11px; line-height: 14px; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.btn-stat .val svg { margin-left: 7px; }
.btn-stat .val { display: flex; align-items: center; font-size: 21px; line-height: 26px; font-weight: bold; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bump { animation: bump .14s ease-out; }
.updated { animation: pop .22s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes bump { 50% { transform: scale(1.08); } }
@keyframes pop { from { opacity: .4; } to { opacity: 1; } }

/* ============================================================= Helfer */
.muted { color: var(--ink-muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* =========================================================== Responsiv */
@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; grid-gap: 18px; gap: 18px; }
  .hero-media { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 520px) { .banner img { aspect-ratio: 16 / 9; } }
@media (max-width: 420px) {
  h1 { font-size: 30px; }
  .field-lg { font-size: 26px; height: 54px; }
  .big b { font-size: 52px; }
  .stepper > * + * { margin-left: 5px; }
  .field-box { width: 84px; }
  .well { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .navbar, .nav-end, .skip-link, .footbar, .btn, .gbtn { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: inherit; text-decoration: underline; }
  .well, .card { box-shadow: none; }
}
