/* ==========================================================================
   Gemeinsames Designsystem der drei Mockups
   Visuelle Sprache angelehnt an deutschland-was-geht.org und
   einfach-machen.gov.de: weiße Fläche, schwere schwarze Versal-Headlines,
   flach-gesättigte Signalfarben, 8px-Radien, Haarlinien statt Schatten.
   Schriften lokal eingebettet (WOFF2) — funktioniert vollständig offline.
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #111111;
  --ink-2: #1f1f1f;
  --muted: #5a5a5a;
  --line: #000000;
  --paper: #ffffff;
  --paper-2: #f6f6f6;
  --paper-3: #ececec;

  /* Kampagnen-Signalfarben */
  --mint: #55ffb3;
  --blue: #4d9aff;
  --amber: #ffd84d;
  --danger: #b3261e;
  --ok: #12a150;

  /* pro Projekt überschrieben */
  --accent: var(--mint);
  --accent-ink: #000000;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --display: 'Montserrat', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 56px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Mockup-Kennzeichnung (durchgehend sichtbar) ---------- */

.mockup-ribbon {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  color: #fff;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 9px 16px;
  text-align: center;
  border-bottom: 2px solid var(--accent);
}
.mockup-ribbon .stripes {
  flex: 0 0 auto; width: 64px; height: 12px; border-radius: 2px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 6px, #000 6px 12px);
}
@media (max-width: 720px) { .mockup-ribbon .stripes { display: none; } .mockup-ribbon { font-size: 11px; } }

.mockup-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  padding: 5px 13px 5px 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.mockup-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .45; transform: scale(.8);} }

/* Toast bei Klick auf Schein-Interaktionen */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px);
  background: var(--ink); color: #fff;
  border: 2px solid var(--accent);
  border-radius: var(--r-md);
  padding: 13px 20px;
  font-size: 15px; font-weight: 500;
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.9,.3,1.2);
  max-width: min(92vw, 460px);
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--accent); }

/* ---------- Layout ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }

/* ---------- Typografie ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .94;
  letter-spacing: -.012em;
  margin: 0;
  hyphens: none;
  /* lange Komposita (»Bürgerdaten«, »Ausschreibungen«) dürfen im Notfall
     umbrechen, statt aus dem Viewport zu laufen */
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 8.5vw, 104px); }
h2 { font-size: clamp(27px, 4.6vw, 56px); }
h3 { font-size: clamp(18px, 2vw, 24px); line-height: 1.12; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.tiny { font-size: 12.5px; line-height: 1.45; }

.eyebrow {
  font-family: var(--body);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); opacity: .18; }

.mark { background: var(--accent); color: var(--accent-ink); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative; z-index: 60;
}
.site-head .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 74px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__glyph {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 17px;
  color: var(--accent-ink);
}
.brand__name { font-family: var(--display); font-weight: 900; font-size: 21px; letter-spacing: -.01em; text-transform: uppercase; }
.nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  padding: 10px 17px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink-2);
  text-decoration: none; cursor: pointer;
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}
.btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 3px 0 var(--line); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: #000; box-shadow: 0 3px 0 var(--accent); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--line); }
.btn--lg { font-size: 17px; padding: 14px 24px; }
.btn--ghost { background: transparent; }

/* ---------- Karten / Panels ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
}
.card--flat { border-radius: var(--r-md); padding: 18px 20px; }
.card--tint { background: var(--paper-2); }
.card--accent { background: var(--accent); color: var(--accent-ink); }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- Chips / Tags ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  /* eigene Textfarbe, damit helle Chips auch auf dunklem Grund lesbar bleiben */
  color: var(--ink);
  white-space: nowrap;
}
.chip--accent { background: var(--accent); color: var(--accent-ink); }
.chip--ok { background: #e4f7ec; }
.chip--warn { background: #fff2cc; }
.chip--bad { background: #ffe3e3; }
.chip--ink { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Quellanker — das wiederkehrende Vertrauensmerkmal aller drei Projekte */
.src {
  font-size: 12px; font-weight: 600;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  background: var(--paper-2);
  color: var(--ink-2);
  cursor: help;
  white-space: nowrap;
}
.src:hover { background: var(--accent); }

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--ink); color: #fff;
  padding-block: clamp(36px, 5vw, 60px);
}
.site-foot a { color: #fff; }
.site-foot .disclaimer {
  border: 2px solid var(--accent);
  border-radius: var(--r-md);
  padding: 18px 20px;
  background: rgba(255,255,255,.04);
}
.site-foot h3 { color: #fff; margin-bottom: 10px; }

/* ---------- Einblend-Animation ----------
   Progressive Enhancement: ohne JS (und im Druck) ist alles sichtbar.
   Nur wenn JS läuft, wird zunächst versteckt und beim Scrollen eingeblendet. */

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { animation: rise .62s cubic-bezier(.22,.9,.3,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media print {
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .mockup-ribbon { position: static; }
  .toast { display: none; }
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
