/* ==========================================================================
   Software Tech — Gemeinsames Stylesheet
   --------------------------------------------------------------------------
   Eine Datei für alle Seiten. Keine externen Fonts, keine Frameworks,
   keine Drittanbieter-Ressourcen.

   Aufbau:
     1.  Design Tokens
     2.  Reset und Basis
     3.  Layout und Abschnitte
     4.  Typografie-Bausteine
     5.  Buttons
     6.  Kopfbereich und Navigation
     7.  Breadcrumbs
     8.  Hero
     9.  Karten, Listen, Raster
    10.  Tabellen
    11.  Prozessschritte
    12.  FAQ
    13.  CTA-Band
    14.  Formulare
    15.  Fußbereich und Back-to-Top
    16.  Hinweisboxen und Platzhaltermarkierung
    17.  Scroll-Reveal
    18.  Reduced Motion
    19.  Druckausgabe
   ========================================================================== */

/* 1. Design Tokens ======================================================== */

:root {
  /* Farben: dunkelblau, anthrazit, weiss, ein zurückhaltender Blauakzent.
     Alle Text-/Hintergrundpaare sind auf WCAG 2.2 AA ausgelegt. */
  --c-navy-900: #0b1f36;
  --c-navy-800: #0e2a47;
  --c-navy-700: #14375c;
  --c-ink: #23272e;
  --c-slate: #4f5a67;
  --c-line: #dce2e9;
  --c-line-strong: #c3ccd6;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f6f9;
  --c-bg-softer: #eef2f7;

  /* Akzent: -strong ist die Variante für weisse Schrift (Kontrast >= 4.5:1) */
  --c-accent: #2f80d9;
  --c-accent-strong: #1f66b5;
  --c-accent-soft: #e8f1fb;
  --c-accent-on-dark: #7db8f0;

  --c-on-dark: #eef3f9;
  --c-on-dark-muted: #b3c3d4;

  --c-warn-bg: #fdf7e7;
  --c-warn-line: #d9c58a;
  --c-warn-ink: #6f5613;
  --c-error: #a4231d;
  --c-success-bg: #e9f5ee;
  --c-success-line: #b7dcc7;
  --c-success-ink: #1a5c33;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 3px rgba(11, 31, 54, .07), 0 2px 10px rgba(11, 31, 54, .05);
  --shadow-lg: 0 6px 24px rgba(11, 31, 54, .11);

  --container: 1140px;
  --container-narrow: 46rem;
  --nav-h: 4.5rem;
}

/* 2. Reset und Basis ====================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 {
  color: var(--c-navy-800);
  line-height: 1.25;
  margin: 0 0 .7em;
  font-weight: 700;
  letter-spacing: -.011em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.95rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-top: 0; }
h3 { font-size: 1.19rem; }
h4 { font-size: 1.03rem; }

p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }

a { color: var(--c-accent-strong); text-decoration: underline; text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 650; }

/* Sichtbarer Fokus auf allen interaktiven Elementen */
:focus-visible {
  outline: 3px solid var(--c-accent-strong);
  outline-offset: 2px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--c-navy-800);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus-visible { top: 0; }

/* 3. Layout und Abschnitte ================================================ */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container-narrow { max-width: var(--container-narrow); }

section { padding-block: 4.5rem; }
section.tight { padding-block: 3rem; }
.bg-soft { background: var(--c-bg-soft); }
.bg-dark { background: var(--c-navy-900); color: var(--c-on-dark); }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark a { color: var(--c-accent-on-dark); }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head > :last-child { margin-bottom: 0; }
.section-head .lead { color: var(--c-slate); }
.bg-dark .section-head .lead { color: var(--c-on-dark-muted); }

.kicker {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--c-accent-strong);
  margin-bottom: .55rem;
}
.bg-dark .kicker { color: var(--c-accent-on-dark); }

/* 4. Typografie-Bausteine ================================================= */

.lead { font-size: 1.12rem; }
.small { font-size: .9rem; }
.muted { color: var(--c-slate); }

.prose > h2 { margin-top: 2.4rem; }
.prose > h3 { margin-top: 1.9rem; }
.prose > :first-child { margin-top: 0; }

/* 5. Buttons ============================================================== */

.btn {
  display: inline-block;
  padding: .78rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--c-accent-strong); color: #fff; }
.btn-primary:hover { background: #17518f; }

.btn-outline {
  background: transparent;
  color: var(--c-accent-strong);
  border-color: var(--c-accent-strong);
}
.btn-outline:hover { background: var(--c-accent-soft); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* 6. Kopfbereich und Navigation =========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
  flex: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-navy-700) 100%);
  font-family: var(--font-mono);
  font-size: .92rem;
  flex: none;
}
.brand em { font-style: normal; color: var(--c-accent-on-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .55rem;
  cursor: pointer;
  color: #fff;
}
.nav-toggle .bar {
  display: block;
  width: 23px; height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: .5rem .72rem;
  color: var(--c-on-dark-muted);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-list a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
.nav-list .nav-cta a {
  background: var(--c-accent-strong);
  color: #fff;
  margin-left: .4rem;
  padding-inline: 1rem;
}
.nav-list .nav-cta a:hover { background: #17518f; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    padding: .5rem 1.25rem 1.25rem;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: .8rem .7rem; font-size: 1.05rem; }
  .nav-list .nav-cta a { margin: .5rem 0 0; text-align: center; }
}

/* 7. Breadcrumbs ========================================================== */

.breadcrumb {
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
  font-size: .88rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding-block: .7rem;
}
.breadcrumb li { margin: 0; color: var(--c-slate); }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--c-line-strong); }
.breadcrumb a { color: var(--c-slate); }
.breadcrumb [aria-current="page"] { color: var(--c-ink); font-weight: 600; }

/* 8. Hero ================================================================= */

.hero {
  position: relative;
  background: linear-gradient(158deg, var(--c-navy-900) 0%, var(--c-navy-800) 58%, var(--c-navy-700) 100%);
  color: var(--c-on-dark);
  padding-block: 5rem;
  overflow: hidden;
}
/* Zurückhaltendes technisches Raster, rein dekorativ */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero h1 { color: #fff; }
.hero .lead { color: var(--c-on-dark-muted); max-width: 40rem; margin-bottom: 1.9rem; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 3rem;
  align-items: center;
}
.hero-page { padding-block: 3.6rem; }
.hero-page h1 { margin-bottom: .6rem; }
.hero-page .lead { margin-bottom: 1.6rem; }

/* Abstraktes Code-Panel als Hero-Visual */
.code-panel {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px;
  padding: 1.1rem 1.2rem 1.35rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .32);
}
.code-panel .dots { display: flex; gap: 6px; margin-bottom: 1rem; }
.code-panel .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.code-panel .ln { height: 9px; border-radius: 5px; margin-bottom: 11px; background: rgba(255, 255, 255, .14); }
.code-panel .ln:last-child { margin-bottom: 0; }
.code-panel .ln.a { background: rgba(125, 184, 240, .55); }
.code-panel .ln.d { background: rgba(255, 255, 255, .075); }
.code-panel .i1 { margin-left: 1.4rem; }
.code-panel .i2 { margin-left: 2.8rem; }

@media (max-width: 900px) {
  .hero { padding-block: 3.5rem; }
  .hero-split { grid-template-columns: 1fr; gap: 2.2rem; }
  .code-panel { max-width: 25rem; }
}

/* 9. Karten, Listen, Raster =============================================== */

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 3rem; align-items: start; }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid-sidebar { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 660px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--c-slate); font-size: .97rem; }
.card-link { display: block; text-decoration: none; color: inherit; transition: box-shadow .18s ease, transform .18s ease; }
.card-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-link h3 { color: var(--c-accent-strong); text-decoration: underline; text-underline-offset: .16em; }
.card .more { display: inline-block; margin-top: .9rem; font-weight: 600; font-size: .93rem; color: var(--c-accent-strong); }
.card .more::after { content: " →"; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem; height: 2.7rem;
  border-radius: 8px;
  background: var(--c-accent-soft);
  color: var(--c-accent-strong);
  margin-bottom: 1rem;
}
.card-icon svg { width: 1.4rem; height: 1.4rem; }

/* Checkliste mit Haken */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .55rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: .72rem; height: .4rem;
  border-left: 2.5px solid var(--c-accent-strong);
  border-bottom: 2.5px solid var(--c-accent-strong);
  transform: rotate(-45deg);
}
.bg-dark .check-list li::before { border-color: var(--c-accent-on-dark); }

/* Kompakte Faktenbox */
.factbox {
  background: var(--c-navy-800);
  color: var(--c-on-dark);
  border-radius: var(--radius);
  padding: 1.7rem;
}
.factbox h3 { color: #fff; }
.factbox ul { list-style: none; padding: 0; margin: 0; }
.factbox li {
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  margin: 0;
}
.factbox li:last-child { border-bottom: 0; }

/* Tag-Liste */
.tags { display: flex; flex-wrap: wrap; gap: .65rem; list-style: none; padding: 0; margin: 0; }
.tags li {
  margin: 0;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .93rem;
  font-weight: 500;
  color: var(--c-navy-800);
}

/* 10. Tabellen ============================================================ */

.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 34rem;
}
caption {
  text-align: left;
  font-size: .88rem;
  color: var(--c-slate);
  padding-bottom: .6rem;
}
th, td {
  text-align: left;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
thead th {
  background: var(--c-bg-softer);
  color: var(--c-navy-800);
  font-weight: 650;
  border-bottom: 2px solid var(--c-line-strong);
}
tbody tr:last-child td { border-bottom: 0; }

/* 11. Prozessschritte ===================================================== */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: step;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  margin: 0;
}
.steps > li::before {
  content: "0" counter(step);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  color: var(--c-accent-strong);
  background: var(--c-accent-soft);
  padding: .2rem .62rem;
  border-radius: 5px;
  margin-bottom: .9rem;
}
.steps h3 { margin-bottom: .35rem; font-size: 1.08rem; }
.steps p { color: var(--c-slate); font-size: .96rem; margin-bottom: 0; }

/* 12. FAQ ================================================================= */

.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  cursor: pointer;
  padding: 1.05rem 2rem 1.05rem 0;
  font-weight: 600;
  color: var(--c-navy-800);
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .3rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--c-accent-strong);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq .answer { padding: 0 0 1.15rem; color: var(--c-slate); }
.faq .answer > :last-child { margin-bottom: 0; }

/* 13. CTA-Band ============================================================ */

.cta-band {
  background: var(--c-navy-800);
  color: var(--c-on-dark);
  border-radius: var(--radius);
  padding: 2.4rem;
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: var(--c-on-dark-muted); max-width: 42rem; }
.cta-band .btn-row { margin-top: 1.5rem; }

/* 14. Formulare =========================================================== */

.form-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--c-navy-800);
  margin-bottom: .32rem;
}
.field .opt { font-weight: 400; color: var(--c-slate); }
.field .hint { font-size: .85rem; color: var(--c-slate); margin: .3rem 0 0; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .68rem .8rem;
  font: inherit;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--c-accent-strong); outline-offset: 0; }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--c-error); border-width: 2px; }

.field-error {
  display: none;
  color: var(--c-error);
  font-size: .86rem;
  font-weight: 500;
  margin: .3rem 0 0;
}
.field.is-invalid .field-error { display: block; }

.field-consent { display: flex; gap: .7rem; align-items: flex-start; }
.field-consent input {
  width: 1.15rem; height: 1.15rem;
  margin-top: .28rem;
  flex: none;
  accent-color: var(--c-accent-strong);
}
.field-consent label { font-weight: 400; font-size: .91rem; color: var(--c-slate); }

/* Rückmeldungen: nur echte Zustände, nie simulierter Erfolg */
.form-status { margin-top: 1.1rem; }
.form-status:empty { margin-top: 0; }
.status-box {
  border-radius: var(--radius-sm);
  padding: .95rem 1.15rem;
  font-size: .96rem;
}
.status-box > :last-child { margin-bottom: 0; }
.status-ok { background: var(--c-success-bg); border: 1px solid var(--c-success-line); color: var(--c-success-ink); }
.status-err { background: #fdeeed; border: 1px solid #e8b8b5; color: var(--c-error); }
.status-busy { background: var(--c-bg-softer); border: 1px solid var(--c-line-strong); color: var(--c-slate); }

/* Honeypot: für Menschen und Screenreader unsichtbar, für Bots erreichbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kontaktdaten */
.contact-block address { font-style: normal; line-height: 1.85; }
.phone-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block: .8rem .4rem; }
.phone-link { font-weight: 650; font-size: 1.1rem; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  padding: .38rem .8rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-navy-800);
  cursor: pointer;
}
.copy-btn:hover { background: var(--c-accent-soft); border-color: var(--c-accent); }
.copy-feedback { font-size: .86rem; font-weight: 600; color: var(--c-success-ink); min-height: 1.3em; margin: 0; }

/* 15. Fußbereich und Back-to-Top ========================================== */

.site-footer {
  background: var(--c-navy-900);
  color: var(--c-on-dark-muted);
  padding-block: 3rem 2rem;
  font-size: .94rem;
}
.site-footer a { color: var(--c-on-dark); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.2rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h2 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .8rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-brand .brand { margin-bottom: .8rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .11);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }

.to-top {
  position: fixed;
  right: 1.15rem; bottom: 1.15rem;
  z-index: 90;
  width: 2.8rem; height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: var(--c-navy-800);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(11, 31, 54, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-accent-strong); }

/* 16. Hinweisboxen und Platzhaltermarkierung ============================== */

.note {
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.3rem;
  font-size: .95rem;
  background: var(--c-bg-softer);
  border: 1px solid var(--c-line-strong);
}
.note > :last-child { margin-bottom: 0; }
.note-warn { background: var(--c-warn-bg); border-color: var(--c-warn-line); color: var(--c-warn-ink); }
.note-warn strong { color: inherit; }

/* Sichtbare Markierung für noch offene Angaben. Vor dem Livegang müssen
   alle .todo-Elemente ersetzt und entfernt sein. */
.todo {
  background: var(--c-warn-bg);
  border-bottom: 2px dotted var(--c-warn-line);
  color: var(--c-warn-ink);
  font-weight: 600;
  padding: 0 .25em;
}

/* 17. Scroll-Reveal ======================================================= */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
/* Ohne JavaScript bleibt der Inhalt selbstverständlich sichtbar */
.no-js .reveal { opacity: 1; transform: none; }

/* 18. Reduced Motion ====================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 19. Druckausgabe ======================================================== */

@media print {
  .site-header, .breadcrumb, .to-top, .cta-band, .site-footer,
  .hero::before, .code-panel, form { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .hero { background: none !important; color: #000; padding-block: 0 1rem; }
  .hero h1, h1, h2, h3 { color: #000; }
  .hero .lead, .muted, p { color: #000; }
  section { padding-block: 0 1.2rem; break-inside: avoid; }
  .card, .factbox, .note, .steps > li {
    border: 1px solid #999 !important;
    background: none !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .factbox li { border-color: #ccc; }
  a { color: #000; }
  /* Ziel-URL hinter externen Links ausgeben */
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .todo { background: none; color: #000; border-bottom: 1px solid #666; }
}
