:root {
  /* Navy and orange are the colours of the logo. Navy text on the orange passes WCAG AA (4.5 to 1);
     a darker orange would not, so a hovered button gets lighter instead (src/styles.test.ts). */
  --navy: #0c2444;
  --navy-soft: #1b3a63;
  --accent: #e8621c;
  --accent-hover: #f07a3a;
  --accent-soft: #f3a579;
  --ink: #1c2733;
  --muted: #55606e;
  --line: #d9dee5;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --danger: #a4262c;
  --danger-bg: #fdecee;
  --ok: #1d6f42;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-soft); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
address { font-style: normal; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section.wrap { padding-top: 32px; padding-bottom: 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 10; }

.site-header { background: var(--navy); color: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand:hover { color: #fff; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-dot-accent { fill: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.65rem; font-weight: 800; letter-spacing: -.01em; }
.brand-sub { margin-top: 5px; font-size: .66rem; font-weight: 700; letter-spacing: .34em; color: var(--accent-soft); }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { color: #fff; text-decoration: none; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

.btn {
  display: inline-block; background: var(--accent); color: var(--navy); font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 12px 22px; border: 0; border-radius: var(--radius); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--navy); }
.btn-plain { background: var(--bg-soft); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #7f1d22; color: #fff; }

.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.badge-in_vorbereitung { background: #e7ebf1; color: var(--navy); }
.badge-auf_anfrage { background: #fdf0d6; color: #7a4a00; }
.badge-aktiv { background: #dff3e7; color: var(--ok); }

.doors { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.door { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.door-accent { background: var(--navy); border-color: var(--navy); color: #fff; }
.door-accent h2 { color: #fff; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.checks { padding-left: 1.2em; margin: 0 0 1.2em; }
.checks li { margin-bottom: .4em; }
.note { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 12px 16px; }
.partner { font-weight: 700; }
.steps { padding-left: 1.3em; }

.contact { list-style: none; margin: 0 0 1em; padding: 0; }
.contact li { margin-bottom: .35em; }
.contact-label { display: inline-block; min-width: 6.5em; color: var(--muted); }

.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field select, .field textarea {
  width: 100%; font: inherit; color: inherit; background: #fff; padding: 11px 12px; border: 1px solid #8792a2; border-radius: 8px;
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin-top: 4px; }
.field-check label { font-weight: 400; margin: 0; }
.field-check .field-error { grid-column: 2; }
.field-error { color: var(--danger); font-size: .92rem; margin: 4px 0 0; }
.notice { background: var(--danger-bg); border: 1px solid var(--danger); color: var(--danger); border-radius: 8px; padding: 12px 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.legal h2 { margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .3em; }
.legal .missing { color: var(--danger); font-weight: 700; }

.site-footer { background: var(--navy); color: #dfe6f0; margin-top: 48px; padding: 32px 0; }
.site-footer a { color: #fff; }
.site-footer .contact-label { color: #a9b8cc; }
.footer-row { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-links { list-style: none; margin: 0; padding: 0; }

.admin-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.admin-bar form { margin: 0; }
.site-header .btn { padding: 6px 14px; }
main form + p { margin-top: 20px; }
.filters { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.filters a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.unsent { color: var(--danger); font-size: .85rem; font-weight: 700; }
.details { display: grid; grid-template-columns: minmax(8em, max-content) 1fr; gap: 6px 18px; margin: 0 0 24px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 20px; }
.inline-form .field { margin: 0; flex: 1 1 220px; }

/* Courier page on a phone: sign-up and WhatsApp stay within reach while scrolling. */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; justify-content: center;
  padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--line);
}
.sticky-cta .btn { padding: 10px 14px; font-size: .95rem; white-space: nowrap; text-align: center; }
@media (min-width: 860px) { .sticky-cta { display: none; } }
