/* Vorratskontor — Demo von FatCat Digital
   Schlicht, strukturiert, sachlich: Papierweiß, Graphit, Haarlinien, eckige Formen.
   Eine Signalfarbe (Orange) markiert nur, was sich bewegt oder wichtig ist. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-german.woff2") format("woff2");
}

:root {
  --paper: #f5f4f0;
  --paper-2: #ebe9e3;
  --surface: #ffffff;
  --ink: #14181d;
  --ink-2: #1d232a;
  --ink-3: #2a313a;
  --line: #d6d3ca;
  --line-strong: #14181d;
  --grid: #e3e0d8;
  --text: #14181d;
  --muted: #50565e;          /* 6,7:1 auf --paper */
  --on-ink: #f1f0ec;
  --on-ink-muted: #a7adb5;   /* 7,9:1 auf --ink */
  --signal: #e8590c;         /* Fläche/Grafik, nicht für Fließtext auf hell */
  --signal-text: #b8440a;    /* 4,9:1 auf --paper und #fff1e8 */
  --signal-on-ink: #ff8a4c;  /* 7,6:1 auf --ink */
  --pine: #1f5a4a;           /* 7,3:1 auf --paper */
  --focus: #e8590c;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 7.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  font-feature-settings: "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
abbr[title] { text-decoration: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 0.625rem 1rem; font-weight: 600;
}
.skip:focus { top: 0.75rem; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -0.01em; }
.num { text-align: right; }

/* ---------- Kopf: Demo-Leiste + Navigation ---------- */
.top { position: sticky; top: 0; z-index: 50; }
.demobar { background: var(--ink); color: var(--on-ink-muted); font-size: .78rem; line-height: 1.4; }
.demobar p { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0.45rem var(--gutter); }
.demobar__tag { color: var(--on-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.demobar a { color: var(--signal-on-ink); font-weight: 600; text-underline-offset: 2px; margin-left: 0.25rem; }
.demobar a:focus-visible { outline-color: var(--signal-on-ink); }
@media (max-width: 40rem) { .demobar a { display: block; margin-left: 0; } }

.header { background: rgba(245, 244, 240, .96); border-bottom: 1px solid var(--line-strong); }
@supports (backdrop-filter: blur(4px)) { .header { background: rgba(245, 244, 240, .86); backdrop-filter: blur(10px); } }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 2rem; height: 2rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 750; font-size: 1.08rem; letter-spacing: -0.015em; }
.brand__sub { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.navtoggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; background: none; border: 1px solid var(--ink); cursor: pointer;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
  display: block; width: 1.125rem; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s;
}
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -0.375rem; }
.navtoggle__bars::after { top: 0.375rem; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(0.375rem) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-0.375rem) rotate(-45deg); }

.nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--ink);
}
.nav.is-open { display: block; }
.nav ul { display: flex; flex-direction: column; padding: 0.5rem var(--gutter) 1.25rem; }
.nav a {
  display: block; padding: 0.8rem 0; text-decoration: none; font-weight: 550;
  border-bottom: 1px solid var(--line);
}
.nav a:hover { color: var(--signal-text); }
.nav__cta { margin-top: 0.75rem; text-align: center; background: var(--ink); color: var(--on-ink) !important; border: 0 !important; padding: 0.8rem 1rem !important; }
.nav__cta:hover { background: var(--signal); color: var(--ink) !important; }
html:not(.js) .nav { display: block; position: static; border: 0; }
html:not(.js) .navtoggle { display: none; }
html:not(.js) .header__inner { flex-wrap: wrap; }

@media (min-width: 1180px) {
  .navtoggle { display: none; }
  .nav, html:not(.js) .nav { display: block; position: static; background: none; border: 0; }
  .nav ul { flex-direction: row; align-items: center; gap: 0.25rem; padding: 0; }
  .nav a { border: 0; padding: 0.5rem 0.7rem; font-size: .93rem; }
  .nav__cta { margin: 0 0 0 0.6rem; padding: 0.55rem 1rem !important; }
}

/* ---------- Bausteine ---------- */
.label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}
.label__no {
  font-family: var(--mono); font-weight: 500; letter-spacing: 0; color: var(--ink);
  border: 1px solid currentColor; padding: 0.05rem 0.35rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem; font-weight: 650; text-decoration: none;
  border: 1px solid var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--solid { background: var(--ink); color: var(--on-ink); }
.btn--solid:hover { background: var(--ink-3); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--on-ink); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--signal:hover { background: #ff7a33; border-color: #ff7a33; }
.btn--block { width: 100%; }

.section { padding: var(--sec) 0; border-top: 1px solid var(--line-strong); }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--on-ink); border-top-color: var(--ink); }
.section--ink .label { color: var(--on-ink-muted); }
.section--ink .label__no { color: var(--on-ink); }
.section--ink :focus-visible { outline-color: var(--signal-on-ink); }

.sechead { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 46rem; }
.sechead h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.05; letter-spacing: -0.03em; word-spacing: .06em; font-weight: 750; }
.sechead--split > div { display: grid; gap: 1rem; }
.sechead__lead { color: var(--muted); font-size: 1.06rem; max-width: 38rem; }
.section--ink .sechead__lead { color: var(--on-ink-muted); }
@media (min-width: 900px) {
  .sechead--split { grid-template-columns: 1fr 1fr; max-width: none; align-items: end; gap: 2rem 4rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.hero__text { display: grid; gap: 1.4rem; align-content: start; }
.hero__title {
  font-size: clamp(2.25rem, 10vw, 5.6rem); line-height: .96; letter-spacing: -0.045em; font-weight: 800;
}
.hero__accent { color: var(--signal-text); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.kpis { display: grid; border-top: 1px solid var(--ink); margin-top: 0.5rem; }
.kpis > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis > div { display: block; padding: 0.9rem 0.75rem 0 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .kpis > div + div { padding-left: 0.75rem; }
  .kpis > div:last-child { border-right: 0; }
  .kpis > div > dd { text-align: left; }
  .kpis > div .kpis__unit { display: block; margin-left: 0; }
}
.kpis dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.kpis dd { text-align: right; font-size: clamp(1.4rem, 4vw, 2.1rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; }
.kpis__unit { display: inline; margin-left: 0.35rem; font-size: .75rem; font-weight: 500; letter-spacing: 0; color: var(--muted); line-height: 1.3; }

/* Signatur: Liefertour */
.tour { background: var(--surface); border: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr); align-self: start; }
.tour__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--ink); font-size: .82rem;
}
.tour__id { font-weight: 750; background: var(--ink); color: var(--on-ink); padding: 0.1rem 0.5rem; }
.tour__day { color: var(--muted); }
.tour__state { margin-left: auto; font-family: var(--mono); font-size: .78rem; color: var(--pine); font-weight: 600; }
.tour__state::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; background: currentColor; margin-right: 0.4rem; vertical-align: 0.05em; }
.tour__state.is-live { color: var(--signal-text); }
.tour__map { width: 100%; height: auto; }
.map__hills { fill: none; stroke: #c9c5ba; stroke-width: 1.5; stroke-linejoin: round; }
.map__hills--2 { stroke: #dedad0; }
.map__river { fill: none; stroke: #d5e0e2; stroke-width: 12; stroke-linecap: round; }
.route { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.route--plan { stroke: #a9a59b; stroke-width: 2; stroke-dasharray: 2 7; }
.route--done { stroke: var(--signal); stroke-width: 3.5; }
.stop circle { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; transition: fill .25s; }
.stop.is-done circle { fill: var(--ink); }
.stop text, .depot text {
  font: 600 15px/1 var(--sans); fill: var(--ink);
  paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round;
}
.depot rect { fill: var(--ink); }
.depot path { stroke: var(--surface); stroke-width: 2; }
.truck__dot { fill: var(--signal); stroke: var(--surface); stroke-width: 2.5; }
.truck__halo { fill: var(--signal); opacity: .18; }

.tour__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.tour__list li {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem; font-size: .85rem;
  background: var(--surface); color: var(--muted); transition: color .25s;
}
.tour__list .t { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.tour__list .chk { margin-left: auto; width: 0.95rem; height: 0.95rem; border: 1.5px solid #8b9097; flex: none; position: relative; }
.tour__list li.is-done { color: var(--ink); }
.tour__list li.is-done .chk { background: var(--ink); border-color: var(--ink); }
.tour__list li.is-done .chk::after {
  content: ""; position: absolute; left: 0.26rem; top: 0.08rem; width: 0.3rem; height: 0.55rem;
  border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tour__cap { padding: 0.75rem 1rem; font-size: .78rem; color: var(--muted); }
@media (min-width: 480px) { .tour__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 1023px) { .tour__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .hero__title { font-size: clamp(3rem, 4.6vw, 4rem); }
}

/* ---------- Sortiment ---------- */
.groups {
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--ink); border-left: 1px solid var(--ink);
}
.group {
  display: grid; gap: 0.6rem; align-content: start; padding: 1.5rem 1.4rem 1.7rem;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--surface);
  transition: background .2s;
}
.group:hover { background: #fbfaf7; }
.group__no { font-family: var(--mono); font-size: .78rem; color: var(--signal-text); font-weight: 600; }
.group h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
.group p { color: var(--muted); font-size: .96rem; }
.group--img { padding: 0; gap: 0; }
.group--img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--ink); filter: grayscale(.25) contrast(1.03); }
.group__body { display: grid; gap: 0.6rem; padding: 1.4rem 1.4rem 1.7rem; }
@media (min-width: 680px) {
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  /* 4 Spalten, spaltenweise gefüllt: 01/02, 03/04, dann die Bildkarten 05 und 06 über zwei Zeilen */
  .groups { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; }
  .group--img { grid-row: span 2; align-content: stretch; grid-template-rows: 1fr auto; }
  .group--img img { aspect-ratio: auto; height: 100%; min-height: 0; contain: size; }
}

/* ---------- Kundenkonto ---------- */
.konto { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.konto .sechead { margin-bottom: 0; }
.ticks { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; width: 0.95rem; height: 0.95rem; background: var(--signal);
}
.ticks li::after {
  content: ""; position: absolute; left: 0.3rem; top: 0.42rem; width: 0.28rem; height: 0.5rem;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.app { background: var(--ink-2); border: 1px solid var(--ink-3); font-size: .9rem; align-self: start; }
.app__bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--ink-3); }
.app__dots { display: inline-flex; gap: 0.3rem; }
.app__dots i { width: 0.55rem; height: 0.55rem; background: var(--ink-3); display: block; }
.app__title { font-weight: 650; }
.app__badge { margin-left: auto; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); background: var(--signal-on-ink); padding: 0.15rem 0.45rem; font-weight: 700; }
.app__meta { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink-3); }
.app__meta p { display: grid; gap: 0.1rem; padding: 0.8rem 1rem; }
.app__meta p + p { border-left: 1px solid var(--ink-3); }
.app__meta span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-ink-muted); }
.app__meta strong { font-weight: 650; }
.app__table { width: 100%; border-collapse: collapse; }
.app__table th, .app__table td { text-align: left; padding: 0.65rem 1rem; border-bottom: 1px solid var(--ink-3); vertical-align: top; }
.app__table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-ink-muted); font-weight: 600; }
.app__table th.num, .app__table td.num { text-align: right; }
.app__table td.mono { color: var(--on-ink-muted); white-space: nowrap; }
.app__table td.num { font-weight: 700; font-family: var(--mono); }
.app__table th:nth-child(3), .app__table td:nth-child(3) { display: none; }
.app__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; color: var(--on-ink-muted); }
.app__btn { background: var(--on-ink); color: var(--ink); padding: 0.45rem 0.8rem; font-weight: 650; font-size: .85rem; }
@media (min-width: 560px) { .app__table th:nth-child(3), .app__table td:nth-child(3) { display: table-cell; color: var(--on-ink-muted); } }
@media (min-width: 1024px) { .konto { grid-template-columns: 0.9fr 1.1fr; align-items: center; } }

/* ---------- Lieferung ---------- */
.plan { border: 1px solid var(--ink); background: var(--surface); }
.plan__scroll { overflow-x: auto; position: relative; }
.plan__table { width: 100%; min-width: 36rem; border-collapse: collapse; }
.plan__table caption { text-align: left; padding: 0.8rem 1rem; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--ink); }
.plan__legend { white-space: nowrap; }
.plan__table th, .plan__table td { padding: 0.8rem 0.6rem; text-align: center; border-bottom: 1px solid var(--line); }
.plan__table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--ink); }
.plan__table th:first-child { text-align: left; padding-left: 1rem; }
.plan__table td:last-child, .plan__table th:last-child { text-align: right; padding-right: 1rem; }
.plan__table tbody th { font-weight: 700; white-space: nowrap; }
.plan__table tbody tr:last-child > * { border-bottom: 0; }
.plan__table td { color: #8b9097; }
.plan__table td.mono { color: var(--ink); }
.dot { display: inline-block; width: 0.8rem; height: 0.8rem; background: var(--ink); vertical-align: middle; }
.plan__table .is-today { background: #fff1e8; }
.plan__table thead .is-today { color: var(--signal-text); }
.plan__table .is-today .dot { background: var(--signal); }
.plan__today { padding: 0.7rem 1rem; border-top: 1px solid var(--ink); font-size: .85rem; color: var(--muted); }
.plan__today strong { color: var(--ink); }

.lief { display: grid; gap: 2rem; margin-top: clamp(2rem, 5vw, 3rem); }
.lief__img img { width: 100%; aspect-ratio: 1024 / 345; object-fit: cover; border: 1px solid var(--ink); filter: grayscale(.2); }
.facts { display: grid; border-top: 1px solid var(--ink); }
.facts li { display: grid; align-content: start; gap: 0.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts strong { font-weight: 700; }
.facts span { color: var(--muted); font-size: .96rem; }
@media (min-width: 680px) {
  .facts { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}
@media (min-width: 1024px) {
  .lief { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 3rem; }
}

/* ---------- Abholmarkt ---------- */
.abhol { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.abhol__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--ink); }
.abhol__body { display: grid; align-content: center; }
.hours { background: var(--surface); border: 1px solid var(--ink); }
.hours__status { padding: 0.75rem 1rem; border-bottom: 1px solid var(--ink); font-weight: 650; display: flex; align-items: center; gap: 0.55rem; }
.hours__status::before { content: ""; width: 0.65rem; height: 0.65rem; background: #8b9097; flex: none; }
.hours__status.is-open { color: var(--pine); }
.hours__status.is-open::before { background: var(--pine); }
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table caption { text-align: left; padding: 0.75rem 1rem 0.35rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; }
.hours__table th, .hours__table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.hours__table th { font-weight: 600; }
.hours__table td { text-align: right; white-space: nowrap; }
.hours__table tr.is-today th, .hours__table tr.is-today td { background: #fff1e8; }
.hours__table tr.is-today th::after { content: " · heute"; color: var(--signal-text); font-weight: 600; }
.hours__note { padding: 0.8rem 1rem; font-size: .88rem; color: var(--muted); }
@media (min-width: 900px) {
  .abhol { grid-template-columns: 0.8fr 1.2fr; align-items: center; }
  .abhol__img img { aspect-ratio: 4 / 5; }
}

/* ---------- Ansprechpartner ---------- */
.roles { display: grid; border-top: 1px solid var(--ink); }
.role { display: grid; gap: 0.4rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.role__tag { font-family: var(--mono); font-size: .75rem; color: var(--signal-text); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.role h3 { font-size: 1.15rem; letter-spacing: -0.015em; font-weight: 700; }
.role p { color: var(--muted); font-size: .95rem; }
.role .role__time { font-family: var(--mono); font-size: .82rem; color: var(--ink); }
.roles__line { margin-top: 2rem; font-weight: 600; }
.roles__line a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.roles__line a:hover { color: var(--signal-text); }
@media (min-width: 680px) {
  .roles { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (min-width: 1024px) {
  .roles { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.contact__info { display: grid; gap: 1.25rem; align-content: start; }
.contact__info h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 750; }
.steps { display: grid; border-top: 1px solid var(--ink-3); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--ink-3); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); color: var(--signal-on-ink); font-weight: 600; }
.steps strong { font-weight: 700; }
.steps span { color: var(--on-ink-muted); font-size: .95rem; }
.addr { font-style: normal; color: var(--on-ink-muted); line-height: 1.7; }
.addr strong { color: var(--on-ink); }
.addr a { color: var(--on-ink); text-underline-offset: 3px; }

.form { display: grid; gap: 1rem; background: var(--ink-2); border: 1px solid var(--ink-3); padding: clamp(1.25rem, 3vw, 2rem); }
.form__hint { font-size: .82rem; color: var(--on-ink-muted); border-left: 3px solid var(--signal); padding-left: 0.7rem; }
.form__row { display: grid; gap: 0.35rem; }
.form__grid { display: grid; gap: 1rem; }
.form label, .form legend { font-weight: 600; font-size: .9rem; }
.opt { font-weight: 400; color: var(--on-ink-muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; background: var(--ink); color: var(--on-ink); border: 1px solid #4a525c; padding: 0.7rem 0.8rem; min-height: 2.9rem; border-radius: 0;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-ink-muted) 50%), linear-gradient(135deg, var(--on-ink-muted) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 52%, calc(100% - 0.85rem) 52%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.2rem; }
.form textarea { resize: vertical; min-height: 6rem; }
.form ::placeholder { color: #8a919a; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--signal-on-ink); outline-offset: 1px; border-color: var(--signal-on-ink); }
.form [aria-invalid="true"] { border-color: #ff9d90; }
.form__set { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.form__set legend { margin-bottom: 0.4rem; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid #4a525c; padding: 0.5rem 0.8rem; font-weight: 500 !important; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--signal-on-ink); }
.chip input, .form__check input { accent-color: var(--signal); width: 1.1rem; height: 1.1rem; margin: 0; }
.chip:has(input:focus-visible) { outline: 2px solid var(--signal-on-ink); outline-offset: 2px; }
.form__check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.form__check input { margin-top: 0.2rem; }
.form__check label { font-weight: 400; color: var(--on-ink-muted); font-size: .88rem; }
.form__msg { min-height: 1.4em; font-weight: 650; }
.form__msg.is-ok { color: var(--signal-on-ink); }
.form__msg.is-err { color: #ff9d90; }
@media (min-width: 600px) { .form__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

/* ---------- Footer ---------- */
.footer { background: #0c0f12; color: var(--on-ink-muted); padding: 1.75rem 0; font-size: .88rem; border-top: 1px solid var(--ink-3); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 0.8rem 1.75rem; justify-content: space-between; align-items: center; }
.footer__brand { color: var(--on-ink); font-weight: 700; }
.footer__brand .dim { color: var(--on-ink-muted); font-weight: 400; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer a { color: var(--on-ink-muted); text-underline-offset: 3px; }
.footer a:hover { color: var(--signal-on-ink); }
.footer a:focus-visible { outline-color: var(--signal-on-ink); }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 4K: oberhalb von 1920 px wächst die Grundschrift mit (alles in rem skaliert mit) ---------- */
@media (min-width: 1921px) { html { font-size: calc(100% + (100vw - 1920px) / 192); } }

/* Bildpipeline 2026-11-11: <picture> erzeugt keine eigene Box — Layout bleibt wie beim nackten <img> */
picture { display: contents; }
picture > source { display: none; } /* sonst wird <source> unter display:contents zum Grid-Element (handel: Bild 0 px hoch) */
