/* Vorlagen-Generator DigiSchicht. Farben und Schrift wie auf der Startseite. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/inter-latin.woff2) format('woff2'); 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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0B1F3A;
  --navy-2: #10305a;
  --teal-ink: #0B7B72;
  --teal-dark: #096860;
  --teal-glow: #33C7C0;
  --mist: #E4F5F3;
  --paper: #EEF2F5;
  --surface: #FFFFFF;
  --ink: #15212F;
  --soft: #4B5767;
  --line: #D5DEE6;
  --line-strong: #6B7785;
  --amber-bg: #FFF4DC;
  --amber-line: #E9C77A;
  --amber-edge: #C98A00;
  --amber-ink: #5C3B00;
  --err-bg: #FDECEC;
  --err-ink: #8A1C1C;
  --w-page: calc(70rem + 2 * var(--gutter));
  --w-text: 42rem;
  --gutter: clamp(20px, 4vw, 40px);
  --s1: 0 1px 2px rgba(11,31,58,.06), 0 12px 32px rgba(11,31,58,.10);
  --s2: 0 6px 16px rgba(11,31,58,.14);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--paper); overflow-wrap: anywhere; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid #0B5FFF; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy); padding: 12px 16px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf und Hero */
.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 56px; padding-block: 6px; }
.top a { color: #fff; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.top a:hover { text-decoration: underline; }
.top .accent { color: var(--teal-glow); }
.top-note { color: #C9D6EC; font-size: 0.9rem; display: none; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 32px 0 64px; }
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 16px; max-width: 24ch; color: #fff; }
.hero .lead { color: #D6E0F0; font-size: 1.1rem; max-width: var(--w-text); margin: 0 0 20px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; color: #fff; }

main { padding-bottom: 56px; }
h2 { font-size: 1.35rem; line-height: 1.25; color: var(--navy); margin: 0 0 12px; }
h3 { font-size: 1.1rem; color: var(--navy); margin: 28px 0 8px; }
h4 { font-size: 1.05rem; color: var(--navy); margin: 0 0 8px; }
h5 { font-size: 1rem; margin: 0 0 6px; color: var(--ink); }
p { margin: 0 0 12px; max-width: var(--w-text); }

/* Pflichthinweis kompakt */
.notice { background: var(--amber-bg); border: 1px solid var(--amber-line); border-left: 4px solid var(--amber-edge); color: var(--amber-ink); border-radius: 12px; padding: 14px 20px; margin: -32px 0 20px; position: relative; box-shadow: var(--s1); }
.notice p { margin: 0 0 6px; max-width: none; }
.notice summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.notice ul { margin: 4px 0 6px; padding-left: 20px; max-width: var(--w-text); }
.notice li { margin-bottom: 4px; }

/* Hauptkarte */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px var(--gutter); margin: 0 0 24px; box-shadow: var(--s1); }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font-weight: 700; color: var(--navy); font-size: 1.15rem; padding: 0; margin-bottom: 6px; }
.hint { color: var(--soft); font-size: 0.95rem; margin: 0 0 12px; }
.count { font-weight: 600; color: var(--teal-ink); margin: 0 0 8px; }

.steps-bar { list-style: none; display: flex; gap: 8px; margin: 0 0 24px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.steps-bar li { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 0.9rem; font-weight: 600; }
.steps-bar .dot { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #C3CED8; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--soft); }
.steps-bar li.is-current .dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.steps-bar li.is-current { color: var(--navy); }
.steps-bar li.is-done .dot { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.steps-bar li.is-done { color: var(--teal-ink); }
.steps-bar .lbl { line-height: 1.2; }

/* Betriebsart-Kacheln */
#gen-branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 128px; padding: 16px 10px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; color: var(--navy); transition: border-color .15s, transform .15s, box-shadow .15s; }
.tile label:hover { border-color: var(--teal-ink); transform: translateY(-2px); box-shadow: var(--s2); }
.tile .ico { width: 40px; height: 40px; color: var(--teal-ink); }
.tile .ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tile input:checked + label { border-color: var(--navy); background: var(--mist); }
.tile input:checked + label::after { content: ''; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.tile input:focus-visible + label { outline: 3px solid #0B5FFF; outline-offset: 2px; }

.opt { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 6px 0; }
.opt input { width: 24px; height: 24px; margin: 8px 0 0; flex: none; accent-color: var(--teal-ink); }
.opt label { padding: 8px 0; flex: 1; }
#gen-tasks .opt { border-bottom: 1px solid #E6ECF1; }
.feld { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.feld label { font-size: 0.95rem; font-weight: 600; }
.badge { font-weight: 400; color: var(--soft); font-size: 0.85rem; margin-left: 6px; }
input[type="text"], select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; min-height: 52px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
button { font: inherit; cursor: pointer; border-radius: 12px; min-height: 44px; padding: 10px 18px; font-weight: 700; }
.btn-prim { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-prim:hover { background: var(--navy-2); }
.btn-sec { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-sec:hover { background: var(--mist); }
.btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; background: var(--teal-ink); color: #fff; border: 0; font-size: 1.125rem; padding: 12px 28px; box-shadow: 0 6px 16px rgba(11,123,114,.35); }
.btn-cta:hover { background: var(--teal-dark); }
.btn-cta svg { width: 22px; height: 22px; }
.cta-row { display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin-top: 8px; }
.cta-row .hint { margin: 0; }
details.mehr { margin: 0 0 20px; border-top: 1px solid var(--line); padding-top: 12px; }
details.mehr summary { cursor: pointer; font-weight: 700; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
details.mehr[open] summary { margin-bottom: 12px; }
.err { background: var(--err-bg); color: var(--err-ink); border: 1px solid #D49A9A; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; max-width: none; }

/* Fragen Ja / Nein / Weiß nicht */
fieldset.q { border: 0; border-bottom: 1px solid #E6ECF1; margin: 0; padding: 14px 0; }
fieldset.q legend { font-size: 1rem; font-weight: 600; color: var(--ink); padding: 0; float: left; width: 100%; margin: 0 0 6px; }
fieldset.q > * { clear: both; }
.q-help { margin: 0 0 8px; }
.q-help summary { cursor: pointer; color: var(--teal-ink); font-size: 0.9rem; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.q-help p { margin: 4px 0 0; padding: 10px 14px; background: #F4F7F8; border-radius: 8px; font-size: 0.92rem; color: var(--soft); max-width: var(--w-text); }
.q-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.qopt { position: relative; }
.qopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qopt label { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 88px; padding: 6px 18px; border: 2px solid #B8C4CF; border-radius: 12px; font-weight: 700; cursor: pointer; background: #fff; color: var(--soft); }
.qopt label:hover { border-color: var(--teal-ink); }
.qopt-ja input:checked + label { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.qopt-nein input:checked + label { background: #fff; border-color: var(--navy); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.qopt-unsicher input:checked + label { background: var(--amber-bg); border-color: var(--amber-edge); color: var(--amber-ink); }
.qopt input:focus-visible + label { outline: 3px solid #0B5FFF; outline-offset: 2px; }
.open-count { font-size: 0.85rem; color: var(--soft); font-weight: 600; }
.vormerk { border-top: 1px solid #9ED8D2; padding-top: 10px; }

/* Ergebnis: Leiste und Fertig-Streifen */
.out-nav { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 14px; margin: 16px 0; box-shadow: var(--s1); }
.out-nav .links { display: flex; flex-wrap: wrap; gap: 0 4px; flex: 1; }
.out-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 600; color: var(--navy); text-decoration: none; border-radius: 8px; }
.out-nav a:hover { background: var(--mist); }
.out-nav button { margin-left: auto; }
.btn-teal { background: var(--teal-ink); color: #fff; border: 2px solid var(--teal-ink); }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.ready { background: var(--mist); border: 1px solid #9ED8D2; border-left: 5px solid var(--teal-ink); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.ready-h { margin-bottom: 6px; }
.ready-steps { margin: 0 0 10px; padding-left: 22px; max-width: var(--w-text); }
.ready-steps li { margin-bottom: 4px; }
.ready .bar { margin-top: 8px; }
.ready .hint { margin: 10px 0 0; }
body.has-out .hero, body.has-out #gen-form { display: none; }
body.has-out .notice { margin-top: 20px; }

/* Dokumente als Blatt */
.doc { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--navy); border-radius: 6px; padding: 24px var(--gutter); margin: 0 0 28px; box-shadow: var(--s1); }
.doc-kopf h2 { margin-bottom: 12px; font-size: 1.5rem; }
.kopf { display: grid; grid-template-columns: 1fr; gap: 2px 24px; margin: 0 0 12px; }
.kopf dt { font-size: 0.85rem; color: var(--soft); font-weight: 600; }
.kopf dd { margin: 0 0 8px; min-height: 1.6em; border-bottom: 1px dotted #B8C4CF; }
.entwurf { background: var(--amber-bg); border: 1px solid var(--amber-line); border-left: 4px solid var(--amber-edge); color: var(--amber-ink); border-radius: 8px; padding: 10px 14px; font-size: 0.95rem; max-width: none; }
.steps { padding-left: 22px; max-width: var(--w-text); }
.steps li { margin-bottom: 6px; }
.grp { margin-top: 32px; border-top: 2px solid var(--navy); padding-top: 12px; }
.task { margin: 0 0 28px; }
.faktor { font-size: 0.8rem; color: var(--soft); margin: 0 0 4px; font-weight: 400; }
.lbl { font-weight: 600; margin: 0 0 4px; font-size: 0.95rem; }
.doc ul { margin: 0 0 10px; padding-left: 22px; }
.doc li { margin-bottom: 4px; }
.normzeile { font-size: 0.85rem; color: var(--soft); margin: 6px 0 0; }
.felder { display: grid; grid-template-columns: 1fr; gap: 0 16px; margin-top: 8px; }
.feld-breit { max-width: none; }
.normen { font-size: 0.92rem; }
.sign { margin-top: 20px; break-inside: avoid; }
.sign-row { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
.sign-cell { border-top: 1px solid var(--ink); padding-top: 4px; font-size: 0.85rem; color: var(--soft); }
.hinweis-betriebsart { background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); border-radius: 8px; padding: 10px 14px; margin: 12px 0; max-width: none; }
.doc-note { border-style: dashed; }
.printfoot { display: none; }
.pv { display: none; }
.print-empty { display: none; }
h5, .lbl { break-after: avoid; }

/* Gefährdungstabelle */
.gbu-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 8px; table-layout: fixed; }
.gbu-table th, .gbu-table td { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
.gbu-table thead th:nth-child(1) { width: 21%; }
.gbu-table thead th:nth-child(2) { width: 29%; }
.gbu-table thead th:nth-child(3) { width: 12%; }
.gbu-table thead th:nth-child(4) { width: 15%; }
.gbu-table thead th:nth-child(5) { width: 10%; }
.gbu-table thead th:nth-child(6) { width: 13%; }
.gbu-table th, .gbu-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid #E1E8EE; }
.gbu-table thead th { background: #E8EEF5; color: var(--navy); font-size: 0.75rem; font-weight: 700; }
.gbu-table tbody tr:nth-child(even) { background: #F8FAFB; }
.gbu-table tbody th { font-weight: 600; font-size: 0.95rem; }
.gbu-table ul { margin: 0; font-size: 0.95rem; }
.gbu-table input[type="text"] { min-height: 40px; border: 0; border-bottom: 1px dotted #7C8A97; border-radius: 0; padding: 6px 2px; background: transparent; }
.gbu-table input[type="text"]:focus { border-bottom: 2px solid var(--teal-ink); outline: 0; background: #F2FBFA; }
.chips-risk { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips-risk legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid #B8C4CF; background: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--soft); }
.chip span::before { content: ''; width: 10px; height: 10px; background: currentColor; }
.chip-gering span::before { border-radius: 50%; }
.chip-mittel span::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chip-hoch span::before { border-radius: 1px; }
.chip input:checked + span { border-width: 2px; color: var(--ink); }
.chip-gering input:checked + span { background: #E3F4E8; border-color: #14532D; color: #14532D; }
.chip-mittel input:checked + span { background: #FFF1CC; border-color: #6B4500; color: #6B4500; }
.chip-hoch input:checked + span { background: #FBE1E1; border-color: #8A1C1C; color: #8A1C1C; }
.chip input:focus-visible + span { outline: 3px solid #0B5FFF; outline-offset: 2px; }

.teilnehmer { list-style: none; padding: 0; margin: 0 0 16px; }
.teilnehmer li { margin: 0 0 6px; }
.teil { display: grid; grid-template-columns: 1fr; gap: 0 16px; align-items: end; }
.sigline { border-bottom: 1px solid var(--ink); min-height: 44px; display: flex; align-items: flex-end; }
.sigline span { font-size: 0.8rem; color: var(--soft); }
.anlass .opt { min-height: 36px; padding: 2px 0; }

footer.site { background: var(--navy); color: #C9D6EC; padding-block: 24px; }
footer.site a { color: #C9D6EC; display: inline-block; min-height: 44px; line-height: 44px; margin-right: 16px; }
footer.site p { margin: 0; max-width: none; }

/* Smartphone: Tabelle als Karten */
@media (max-width: 719px) {
  .gbu-table, .gbu-table tbody, .gbu-table tr, .gbu-table td, .gbu-table th { display: block; width: 100%; }
  .gbu-table thead th:nth-child(n) { width: auto; }
  .gbu-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gbu-table tbody tr { border: 1px solid var(--line); border-left: 5px solid var(--teal-ink); border-radius: 8px; margin: 0 0 14px; background: #fff !important; }
  .gbu-table td::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; color: var(--soft); margin-bottom: 4px; }
  .gbu-table td, .gbu-table th { border-bottom: 1px solid #EEF2F5; }
  .steps-bar .lbl { display: none; }
  .steps-bar li.is-current .lbl { display: inline; }
  .out-nav .links a { padding: 0 8px; }
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .top-note { display: inline; }
  .hero { padding: 48px 0 72px; }
  #gen-branches { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 32px; }
  .teil { grid-template-columns: 1fr 1fr; }
  .kopf { grid-template-columns: 1fr 1fr; }
  .felder { grid-template-columns: 1fr 1fr; }
  .sign-row { grid-template-columns: 1fr 1fr; }
  .doc { padding: 40px 32px; }
  .cta-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .btn-cta { width: auto; min-width: 280px; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  #gen-branches { grid-template-columns: repeat(4, 1fr); }
}

@media print {
  @page { margin: 16mm 14mm 22mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .noprint, .top, .hero, .notice, footer.site, .footer, .skip, #gen-form, .sr, #gen-error, .cc-root, .out-nav, .ready { display: none !important; }
  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .doc { border: 0; border-top: 0; padding: 0; margin: 0; border-radius: 0; box-shadow: none; }
  .doc-ba { break-before: page; }
  .doc-un { break-before: page; }
  .teil { grid-template-columns: 1fr 1fr; break-inside: avoid; }
  .anlass input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; width: 14px; height: 14px; }
  .doc-ba.first { break-before: auto; }
  h2, h3, h4 { color: #000; break-after: avoid; }
  a { color: #000; text-decoration: none; }
  input[type="text"], select, textarea { border: 0; border-bottom: 1px solid #000; border-radius: 0; padding: 2px 0; min-height: 0; background: transparent; appearance: none; -webkit-appearance: none; }
  textarea { border: 1px solid #888; min-height: 40mm; }
  .entwurf, .hinweis-betriebsart { background: #fff; border: 1px solid #000; color: #000; }
  .printfoot { display: block; position: fixed; bottom: -15mm; left: 0; right: 0; font-size: 8pt; line-height: 1.25; border-top: 1px solid #000; padding-top: 2px; max-width: none; }
  .pv-hide { display: none !important; }
  .pv { display: block; border-bottom: 1px solid #000; min-height: 1.5em; white-space: pre-wrap; overflow-wrap: anywhere; }
  .felder { grid-template-columns: 1fr 1fr; }
  .normen a::after { content: ' (' attr(href) ')'; word-break: break-all; }
  .normen a .sr { display: none; }
  body:not(.has-out) .print-empty { display: block; }
  .gbu-table { font-size: 9pt; }
  .gbu-table thead { display: table-header-group; }
  .gbu-table tr { break-inside: avoid; }
  .gbu-table th, .gbu-table td { border-bottom: 1px solid #888; padding: 6px; }
  .gbu-table thead th { background: #eee; color: #000; }
  .gbu-table tbody tr:nth-child(even) { background: #fff; }
  .gbu-table td .pv { min-height: 8mm; }
  .chip span { border: 1px solid #000; background: #fff; color: #000; }
  .chip input:checked + span { border-width: 2px; font-weight: 800; }
  .chip-gering input:checked + span, .chip-mittel input:checked + span, .chip-hoch input:checked + span { border-color: #000; color: #000; }
}

/* Gemeinsamer Kopf und Fuß (wie Startseite) */
:root { --tile-1: linear-gradient(135deg, #22B5A8, #0B7B72); --tile-2: linear-gradient(135deg, #3FCABD, #128F84); --tile-3: linear-gradient(135deg, #5CDBCF, #22A99C); --tile-4: linear-gradient(135deg, #A0EDE5, #5ED2C6); }
.top .wrap { display: block; min-height: 0; padding-block: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-block: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.top a.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; }
.logo-squares { display: grid; grid-template-columns: 11px 11px; grid-template-rows: 11px 11px; gap: 3px; flex-shrink: 0; }
.logo-squares i { display: block; border-radius: 2px; box-shadow: 0 1px 1.5px rgba(0,0,0,0.35); }
.logo-squares i:nth-child(1) { background: var(--tile-1); }
.logo-squares i:nth-child(2) { background: var(--tile-2); }
.logo-squares i:nth-child(3) { background: var(--tile-3); }
.logo-squares i:nth-child(4) { background: var(--tile-4); }
.logo-word { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.025em; color: #fff; line-height: 1; }
.logo-word .accent { color: var(--teal-glow); }
.topnav { display: flex; gap: 2px; flex-wrap: wrap; }
.top .topnav a { display: inline-flex; align-items: center; min-height: 44px; color: #C9D6EC; text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 8px 12px; border-radius: 6px; }
.top .topnav a:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.top .topnav a.topnav-contact { color: #fff; border: 1px solid rgba(255,255,255,0.5); margin-left: 6px; }
.top .topnav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.footer { background: var(--navy); color: #C9D6EC; padding-block: clamp(40px, 6vw, 64px) 28px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.footer-logo-link { display: flex; align-items: center; margin-bottom: 18px; min-height: 44px; }
.footer-logo { height: 48px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.footer h2 { font-size: 1rem; color: #fff; margin: 0 0 12px; max-width: none; letter-spacing: 0; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a, .footer-address a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.footer-address { font-style: normal; color: #C9D6EC; font-size: 0.975rem; line-height: 1.6; }
.footer-address p { margin: 0 0 4px; color: #C9D6EC; max-width: none; }
.footer-address a { min-height: 32px; }
.footer-legal { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.9rem; line-height: 1.55; color: #AEBBCC; max-width: none; }
.footer-credit { margin: 10px 0 0; font-size: 0.875rem; color: #B8C4D0; max-width: none; }
.footer-credit a { color: #B8C4D0; display: inline-block; padding: 4px 2px; }
.footer-credit a:hover { color: #fff; }

/* footer-v2: wie die Fußbereiche der Schwesterprojekte (Spalten, ruhige Links ohne Unterstreichung) */
.footer { background: #0B1F3A; color: #B8C4D6; padding: 48px 0 28px; font-size: 0.95rem; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; } }
.footer h2 { font-size: 0.95rem; font-weight: 700; color: #fff; margin: 0 0 10px; letter-spacing: 0; max-width: none; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; flex-wrap: nowrap; }
.footer a { color: #B8C4D6; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer a:focus-visible { outline: 3px solid #7FB0FF; outline-offset: 2px; }
.footer-logo-link { display: flex; align-items: center; margin: 0 0 14px; min-height: 44px; }
.footer-logo { height: 40px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.footer-about { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.6; color: #B8C4D6; max-width: 30ch; }
.footer-more { margin: 0; }
.footer-more a { color: #fff; font-weight: 600; gap: 6px; }
.footer-address { font-style: normal; font-size: 0.92rem; line-height: 1.65; color: #B8C4D6; }
.footer-address p { margin: 0 0 6px; color: #B8C4D6; max-width: none; }
.footer-address a { min-height: 32px; }
.footer-legal, .footer-credit { text-align: center; font-size: 0.8rem; line-height: 1.55; color: #98A6BC; max-width: none; margin: 0; }
.footer-legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); }
.footer-credit { margin-top: 6px; }
.footer-credit a { color: #B8C4D6; display: inline; min-height: 0; text-decoration: underline; text-underline-offset: 2px; padding: 4px 2px; }

/* chrome-v1: gemeinsamer Rahmen (Container, Kopf, Fuß) für alle Seiten */
:root { --sc-gutter: clamp(20px, 4vw, 40px); }
.sc-wrap { box-sizing: border-box; width: 100%; max-width: calc(70rem + 2 * var(--sc-gutter)); margin-inline: auto; padding-inline: var(--sc-gutter); }
.site-head { background: #0B1F3A; color: #fff; }
.sh-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-block: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-head a.sh-brand, .footer a.footer-logo-link { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; }
.sh-squares { display: grid; grid-template-columns: 11px 11px; grid-template-rows: 11px 11px; gap: 3px; flex-shrink: 0; }
.sh-squares i { display: block; border-radius: 2px; box-shadow: 0 1px 1.5px rgba(0,0,0,0.35); }
.sh-squares i:nth-child(1) { background: linear-gradient(135deg, #22B5A8, #0B7B72); }
.sh-squares i:nth-child(2) { background: linear-gradient(135deg, #3FCABD, #128F84); }
.sh-squares i:nth-child(3) { background: linear-gradient(135deg, #5CDBCF, #22A99C); }
.sh-squares i:nth-child(4) { background: linear-gradient(135deg, #A0EDE5, #5ED2C6); }
.sh-word, .footer .sh-word { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.025em; color: #fff; line-height: 1; }
.sh-accent, .footer .sh-accent { color: #33C7C0; }
.sh-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.site-head .sh-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #C9D6EC; text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 8px 12px; border-radius: 6px; }
.site-head .sh-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.site-head .sh-nav a.sh-contact { color: #fff; border: 1px solid rgba(255,255,255,0.5); margin-left: 6px; }
.site-head .sh-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.site-head a:focus-visible, .footer a.footer-logo-link:focus-visible { outline: 3px solid #7FB0FF; outline-offset: 2px; }
.footer { text-align: left; }
@media print { .site-head { display: none !important; } }

/* sticky-nav: Navigation bleibt oben (ab Tablet-Breite), Anker landen nicht unter der Leiste */
@media (min-width: 720px) {
  .site-head, .hero-bar { position: sticky; top: 0; z-index: 100; }
  html { scroll-padding-top: 84px; }
}
.hero-bar { background: #0B1F3A; color: #fff; }
@media print { .hero-bar { display: none !important; } }
