/* ==========================================================================
   aufmamt.de – Stylesheet
   Mobil zuerst · heller und dunkler Modus · keine externen Ressourcen
   ========================================================================== */

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DSEG7 Classic";
  src: url("/fonts/dseg7-classic-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. Design-Tokens
   Markenfarben aus dem Logo – hier zentral anpassen.
   ========================================================================== */
:root {
  /* Markenfarben (aus dem Logo gemessen) */
  --brand-navy:   #02316C;  /* Hintergrund-Blau */
  --brand-ink:    #021737;  /* Konturen */
  --brand-cream:  #FCF7E6;  /* Papier */
  --brand-red:    #EE2634;  /* Unterstrich */
  --brand-stamp:  #D41C24;  /* Stempel */
  --brand-karton: #D2985C;  /* Karton */

  --font-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-led:  "DSEG7 Classic", var(--font-mono);

  --wrap: 1200px;
  --radius: 16px;
  --border: 2.5px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.5, .5, 1);

  /* Heller Modus */
  --bg:            #FCF7E6;
  --bg-sunken:     #F4EBD0;
  --surface:       #FFFDF7;
  --text:          #021737;
  --text-muted:    #4A5670;
  --line:          rgba(2, 23, 55, .12);
  --line-mid:      rgba(2, 23, 55, .3);
  --outline:       #021737;
  --shadow-hard:   #021737;
  --checkbox:      #021737;
  --accent-text:   #C0141D;
  --btn-red:       #D41C24;
  --link:          #02316C;
  --stamp-color:   #C0141D;
  --ok:            #1D4FA8;
  --ok-bg:         rgba(29, 79, 168, .07);
  --focus:         #021737;
  --hero-bg:       #02316C;
  --header-bg:     rgba(252, 247, 230, .86);
  --folder-1:      #F5E1B5;
  --folder-2:      #D9E6F8;
  --folder-3:      #F7D9D4;
  --footer-bg:     #021737;
  --tiktok-bg:     #021737;
  --mark:          #FFE58A;
  color-scheme: light;
}

/* Dunkler Modus: automatisch (Systemeinstellung) oder per Schalter */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #061633;
    --bg-sunken:   #04102A;
    --surface:     #0C2248;
    --text:        #FCF7E6;
    --text-muted:  #A9B5CC;
    --line:        rgba(252, 247, 230, .12);
    --line-mid:    rgba(252, 247, 230, .3);
    --outline:     #2C4F8F;
    --shadow-hard: #010817;
    --checkbox:    #A9B5CC;
    --accent-text: #FF7076;
    --link:        #9CC0FF;
    --stamp-color: #FF7076;
    --ok:          #8FB4FF;
    --ok-bg:       rgba(143, 180, 255, .08);
    --focus:       #FCF7E6;
    --hero-bg:     #032556;
    --header-bg:   rgba(6, 22, 51, .86);
    --folder-1:    #3A3121;
    --folder-2:    #12305E;
    --folder-3:    #3A1D29;
    --footer-bg:   #020C1F;
    --tiktok-bg:   #000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:          #061633;
  --bg-sunken:   #04102A;
  --surface:     #0C2248;
  --text:        #FCF7E6;
  --text-muted:  #A9B5CC;
  --line:        rgba(252, 247, 230, .12);
  --line-mid:    rgba(252, 247, 230, .3);
  --outline:     #2C4F8F;
  --shadow-hard: #010817;
  --checkbox:    #A9B5CC;
  --accent-text: #FF7076;
  --link:        #9CC0FF;
  --stamp-color: #FF7076;
  --ok:          #8FB4FF;
  --ok-bg:       rgba(143, 180, 255, .08);
  --focus:       #FCF7E6;
  --hero-bg:     #032556;
  --header-bg:   rgba(6, 22, 51, .86);
  --folder-1:    #3A3121;
  --folder-2:    #12305E;
  --folder-3:    #3A1D29;
  --footer-bg:   #020C1F;
  --tiktok-bg:   #000;
  color-scheme: dark;
}

/* ==========================================================================
   2. Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { line-height: 1.1; text-wrap: balance; overflow-wrap: break-word; }
/* Lange deutsche Komposita („Grundsteuererklärung“) in schmalen Spalten trennen */
.vcard__title, .vorgang__title, .akte-head__title, .akte__name, .error-page__title, .ernst__title { hyphens: auto; -webkit-hyphens: auto; }
p { text-wrap: pretty; }
a { color: var(--link); }
button, input { font: inherit; color: inherit; }
::selection { background: var(--brand-red); color: #fff; }
main:focus { outline: none; }
/* Stempel-Animationen starten vergrößert – nie seitliches Scrollen erzeugen.
   (clip statt hidden, damit position: sticky weiter funktioniert) */
main { overflow-x: clip; }

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

/* Auf dunklen Flächen immer heller Fokusrahmen */
.hero, .cta-band, .site-footer, .tt, .ernst__head { --focus: var(--brand-cream); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.wrap--narrow { max-width: 820px; }

.sr-only {
  position: absolute !important;
  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;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--brand-ink);
  color: var(--brand-cream);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.mono {
  font-family: var(--font-mono);
  font-size: .92em;
  letter-spacing: .01em;
}

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }

/* ==========================================================================
   3. Bausteine: Buttons, Chips, Stempel
   ========================================================================== */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--outline);
  --btn-shadow: var(--shadow-hard);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  font: 750 1rem/1.1 var(--font-sans);
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: var(--border) solid var(--btn-border);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--btn-shadow);
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--btn-shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--btn-shadow); transition-duration: .05s; }
.btn .icon { width: 20px; height: 20px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--btn-shadow); }

.btn--primary { --btn-bg: var(--btn-red); --btn-fg: #fff; }
.btn--light { --btn-bg: var(--brand-cream); --btn-fg: var(--brand-ink); --btn-border: var(--brand-ink); --btn-shadow: var(--brand-ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--brand-cream); --btn-border: var(--brand-cream); --btn-shadow: rgba(1, 10, 30, .55); }
.btn--ghost-light:hover { --btn-bg: rgba(252, 247, 230, .08); }
.btn--tiktok { --btn-bg: var(--tiktok-bg); --btn-fg: var(--brand-cream); }
.btn--lg { min-height: 56px; padding: 14px 24px; font-size: 1.08rem; border-radius: 14px; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; box-shadow: 3px 3px 0 var(--btn-shadow); }

.chips, .share__list, .hashtags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  font: 700 .92rem/1 var(--font-sans);
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--shadow-hard);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out);
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow-hard); }
.chip:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow-hard); }
.chip--accent { background: var(--btn-red); color: #fff; }
.chip__count {
  font: 700 .72rem/1 var(--font-mono);
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--bg-sunken);
  color: var(--text-muted);
}

/* Stempel: doppelter Rahmen + Tintenstruktur */
.stamp {
  --stamp-c: var(--stamp-color);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55em .9em .5em;
  font: 800 .82rem/1 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--stamp-c);
  border: 2.5px solid currentColor;
  border-radius: 7px;
  rotate: -6deg;
  -webkit-mask: url("/img/stempel-textur.svg") center / 220px;
  mask: url("/img/stempel-textur.svg") center / 220px;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 2.5px;
  border: 1px solid currentColor;
  border-radius: 4px;
  pointer-events: none;
}
.stamp--sm { font-size: .66rem; padding: .5em .75em .45em; border-width: 2px; }
.stamp--sm::before { inset: 2px; }
.stamp--xl { font-size: clamp(1.3rem, 4.6vw, 2rem); padding: .45em .75em .4em; border-width: 4px; border-radius: 10px; }
.stamp--xl::before { inset: 4px; border-width: 2px; border-radius: 6px; }
.stamp--light { --stamp-c: var(--brand-cream); }
.stamp--muted { --stamp-c: var(--text-muted); }
.stamp--ok { --stamp-c: var(--ok); }

@keyframes stamp-in {
  0%   { opacity: 0; scale: 2.4; rotate: -26deg; }
  55%  { opacity: 1; scale: .9;  rotate: -11deg; }
  75%  { scale: 1.06; rotate: -13deg; }
  100% { opacity: 1; scale: 1;   rotate: -12deg; }
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  font: 600 .76rem/1.3 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow a { color: inherit; }
.eyebrow__tag, .part-title__num {
  display: inline-block;
  padding: 4px 8px;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  font: 700 .72rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow--light { color: #FFE3E4; }
.eyebrow--light .eyebrow__tag { color: var(--brand-cream); }

/* ==========================================================================
   4. Kopfbereich
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 2px solid var(--outline);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}
.brand__logo { width: 44px; height: 44px; transition: rotate .45s var(--ease-spring), scale .45s var(--ease-spring); }
.brand:hover .brand__logo { rotate: -14deg; scale: 1.08; }
.brand__name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.brand__name span { color: var(--accent-text); }

.site-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover { background: var(--bg-sunken); }
.site-nav .icon { width: 18px; height: 18px; }
.site-nav a.site-nav__tiktok {
  margin-left: 6px;
  color: var(--brand-cream);
  background: var(--tiktok-bg);
  border: 2px solid var(--outline);
  box-shadow: 2px 2px 0 var(--shadow-hard);
}
.site-nav a.site-nav__tiktok:hover { background: var(--tiktok-bg); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow-hard); }

.site-header__actions { display: flex; gap: 8px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--shadow-hard);
  cursor: pointer;
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out);
}
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow-hard); }
.icon-btn .icon { width: 22px; height: 22px; }

.theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}

.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 859.98px) {
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    padding: 10px clamp(16px, 4vw, 32px) 18px;
    background: var(--bg);
    border-bottom: 2px solid var(--outline);
    box-shadow: 0 18px 30px -14px rgba(2, 23, 55, .4);
  }
  .site-nav.is-open { display: block; animation: nav-in .22s var(--ease-out); }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 14px 12px; font-size: 1.1rem; }
  .site-nav a.site-nav__tiktok { justify-content: center; margin: 8px 0 0; }

  /* Ohne JavaScript: Navigation einfach sichtbar */
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .site-nav { display: block; position: static; width: 100%; padding: 0 0 10px; border: 0; box-shadow: none; background: none; }
  .no-js .site-nav__list { flex-direction: row; flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
}
@keyframes nav-in { from { opacity: 0; translate: 0 -8px; } }

/* ==========================================================================
   5. Startseite: Hero, Wartenummer, Ticker
   ========================================================================== */
.hero {
  position: relative;
  color: var(--brand-cream);
  background: var(--hero-bg);
  overflow: hidden;
  overflow: clip visible;
  padding-top: clamp(28px, 6vw, 72px);
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 85% 10%, rgba(238, 38, 52, .28), transparent 38%),
    linear-gradient(rgba(252, 247, 230, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 247, 230, .055) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}
.hero__para {
  position: absolute;
  right: -.08em;
  bottom: -.22em;
  font-size: clamp(18rem, 48vw, 40rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(252, 247, 230, .045);
  user-select: none;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 36px;
  padding-bottom: clamp(36px, 6vw, 72px);
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font: 600 .8rem/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #C9D6EE;
}
.hero__title {
  margin: 20px 0 0;
  font-size: clamp(3.1rem, 13vw, 7.4rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.05em;
}
.hero__hello {
  display: block;
  margin-bottom: .18em;
  font-size: .34em;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #C9D6EE;
}
.hero__dot { color: var(--brand-red); }
.hero__claim {
  position: relative;
  isolation: isolate;
  margin: 22px 0 0;
  font-size: clamp(1.5rem, 4.8vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.hero__claim span { position: relative; white-space: nowrap; }
.hero__claim span::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -3%;
  right: -3%;
  bottom: .02em;
  height: .24em;
  background: var(--brand-red);
  border-radius: 99px;
  transform-origin: left center;
  animation: draw-line .9s .5s var(--ease-out) both;
}
@keyframes draw-line { from { transform: scaleX(0); } }
.hero__text { max-width: 33em; margin: 14px 0 0; color: #D5DEEF; font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__visual {
  position: relative;
  display: grid;
  justify-items: center;
  z-index: 3;
}
.hero__stage {
  position: relative;
  width: min(74vw, 290px);
  aspect-ratio: 1;
}
.hero__mascot {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(8px 10px 0 rgba(1, 10, 30, .45));
  animation: bob 6s ease-in-out infinite;
}
.hero__paper {
  position: absolute;
  z-index: 0;
  width: 22%;
  aspect-ratio: 3 / 4;
  padding: 14px 11px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 9px, rgba(2, 23, 55, .3) 9px 11px) content-box,
    linear-gradient(var(--brand-cream), var(--brand-cream)) padding-box;
  border: 2.5px solid var(--brand-ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(1, 10, 30, .45);
}
.hero__paper--1 { top: -2%; left: -10%; rotate: -16deg; animation: float 7s ease-in-out infinite; }
.hero__paper--2 { top: 30%; right: -12%; width: 18%; rotate: 14deg; animation: float 8s -2s ease-in-out infinite; }
.hero__paper--3 { bottom: 6%; left: -4%; width: 15%; rotate: 7deg; animation: float 9s -4s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -8px; rotate: 1.2deg; }
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 4px -12px; }
}

/* Wartenummer-Anzeige (LED) */
.queue {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: -28px;
  z-index: 3;
  rotate: -2deg;
}
.queue--static { margin-top: 0; rotate: 0deg; }
.queue__board {
  display: grid;
  gap: 6px;
  min-width: 206px;
  padding: 12px 16px 14px;
  background: linear-gradient(#0D1322, #070B14);
  border: 3px solid var(--brand-ink);
  border-radius: 14px;
  box-shadow:
    6px 6px 0 rgba(1, 8, 23, .85),
    inset 0 0 0 2px rgba(255, 255, 255, .04),
    inset 0 10px 30px rgba(0, 0, 0, .6);
}
.queue__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.queue__label {
  font: 700 .66rem/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8D96A8;
}
.led {
  position: relative;
  font-family: var(--font-led);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.led--sm { font-size: 1.35rem; }
.led__ghost { color: rgba(255, 59, 48, .09); }
.led__value {
  position: absolute;
  inset: 0;
  text-align: right;
  color: #FF3B30;
  text-shadow: 0 0 4px rgba(255, 59, 48, .9), 0 0 16px rgba(255, 59, 48, .45);
}
.led__value.is-changing { animation: led-flicker .45s steps(3) 1; }
@keyframes led-flicker {
  0% { opacity: .15; }
  50% { opacity: 1; }
  70% { opacity: .4; }
  100% { opacity: 1; }
}

/* Nummernautomat + Wartemarke */
.queue__dispenser { position: relative; display: grid; justify-items: center; }
.queue__button {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 112px;
  padding: 12px 10px 13px;
  font: 800 .92rem/1.15 var(--font-sans);
  color: #fff;
  text-align: center;
  background: var(--btn-red);
  border: 3px solid var(--brand-ink);
  border-radius: 14px 14px 10px 10px;
  box-shadow: 5px 5px 0 rgba(1, 8, 23, .85);
  cursor: pointer;
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out);
}
.queue__button:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 rgba(1, 8, 23, .85); }
.queue__button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 rgba(1, 8, 23, .85); }
.queue__slot { display: block; width: 72%; height: 7px; background: var(--brand-ink); border-radius: 4px; box-shadow: inset 0 2px 0 #000; }

.ticket {
  position: absolute;
  top: calc(100% - 4px);
  right: 6px;
  z-index: 10;
  width: 206px;
  padding: 16px 16px 26px;
  font: 500 .74rem/1.4 var(--font-mono);
  color: var(--brand-ink);
  background: #FFFDF5;
  border: 2px solid var(--brand-ink);
  border-top: 0;
  rotate: 3deg;
  filter: drop-shadow(6px 8px 0 rgba(1, 10, 30, .35));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.ticket[hidden] { display: none; }
.ticket.is-printing { animation: print 1.15s steps(10, end) both; }
@keyframes print {
  from { clip-path: inset(0 0 100% 0); translate: 0 -14px; }
  to   { clip-path: inset(0 0 0 0); translate: 0 0; }
}
.ticket p { margin: 0; }
.ticket__head { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; padding-bottom: 8px; border-bottom: 1.5px dashed rgba(2, 23, 55, .4); }
.ticket__label { margin-top: 10px !important; text-transform: uppercase; letter-spacing: .14em; font-size: .64rem; color: #4A5670; }
.ticket__number { font: 700 3rem/1 var(--font-led); color: var(--brand-ink); margin: 4px 0 10px !important; }
.ticket__facts { display: grid; gap: 4px; margin: 0 0 10px; }
.ticket__facts div { display: flex; justify-content: space-between; gap: 10px; }
.ticket__facts dt { color: #4A5670; }
.ticket__facts dd { margin: 0; font-weight: 700; text-align: right; }
.ticket__small { font-size: .62rem; color: #4A5670; padding-top: 8px; border-top: 1.5px dashed rgba(2, 23, 55, .4); }
.ticket__link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--brand-stamp); }

/* Durchsagen-Ticker */
.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-block: 12px;
  font: 700 .82rem/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--btn-red);
  border-block: 3px solid var(--brand-ink);
}
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker__track span { white-space: nowrap; padding-right: .5em; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sehr schmale Handys (z. B. 360 px): Anzeige und Automat kompakter */
@media (max-width: 400px) {
  .queue { gap: 10px; }
  .queue__board { min-width: 0; padding: 10px 12px 12px; }
  .queue__row { gap: 12px; }
  .queue__label { letter-spacing: .1em; }
  .led { font-size: 2.05rem; }
  .led--sm { font-size: 1.15rem; }
  .queue__button { width: 94px; font-size: .84rem; }
  .ticket { right: 0; width: 196px; }
  .error-page__visual .led { font-size: 2.6rem; }
  .error-page__visual { padding-inline: 8px; }
}
@media (max-width: 340px) {
  .ticket { width: 180px; }
  .error-page__visual .led { font-size: 2.1rem; }
  .ernst__block, .ernst__foot, .ernst__head { padding-inline: 16px; }
}
.error-page__inner > *, .ernst__body > * { min-width: 0; }
.checklist__text, .ernst__text, .prose { overflow-wrap: break-word; }
.checklist__text { hyphens: auto; -webkit-hyphens: auto; min-width: 0; overflow-wrap: anywhere; }
.checklist > li { min-width: 0; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; }
  .hero__stage { width: min(100%, 430px); }
  .queue { margin-top: -22px; justify-self: start; margin-left: 2%; }
}

/* ==========================================================================
   6. Abschnitte
   ========================================================================== */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tight { padding-block: clamp(24px, 4vw, 44px); }
.section--sunken { background: var(--bg-sunken); border-block: 1px solid var(--line); }

.section-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: clamp(26px, 4vw, 42px); }
.section-head--center { justify-items: center; margin-inline: auto; text-align: center; }
.section-title {
  margin: 0;
  font-size: clamp(2rem, 5.6vw, 3.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.section-title--sm { font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -.03em; margin-bottom: 22px; }
.section-lead { margin: 0; max-width: 40em; color: var(--text-muted); font-size: 1.08rem; }

.empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 640px;
  padding: 28px;
  background: var(--surface);
  border: var(--border) dashed var(--line-mid);
  border-radius: 18px;
}
.empty p { margin: 0; }

/* ==========================================================================
   7. Video-Raster und Karten (9:16)
   ========================================================================== */
.vgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
}
@media (min-width: 700px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.vcard__link { display: block; color: inherit; text-decoration: none; border-radius: 18px; }
.vcard__link:focus-visible { outline-offset: 6px; }
.vcard__poster {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background: var(--brand-navy);
  border: var(--border) solid var(--outline);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--shadow-hard);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.vcard__link:hover .vcard__poster,
.vcard__link:focus-visible .vcard__poster {
  transform: translate(-3px, -4px) rotate(-.7deg);
  box-shadow: 9px 10px 0 var(--shadow-hard);
}
.vcard__ticket {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 6px 8px 5px;
  font: 700 .78rem/1 var(--font-mono);
  color: var(--brand-ink);
  background: var(--brand-cream);
  border: 2px solid var(--brand-ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--brand-ink);
}
.vcard__ticket span { color: var(--brand-stamp); }
.vcard__play {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--btn-red);
  border: 2px solid var(--brand-ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--brand-ink);
  transition: transform .3s var(--ease-spring);
}
.vcard__play .icon { width: 18px; height: 18px; margin-left: 2px; }
.vcard__link:hover .vcard__play { transform: scale(1.14) rotate(10deg); }
.vcard__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 48px 12px 13px;
  color: var(--brand-cream);
  background: linear-gradient(to top, rgba(2, 12, 32, .95) 0%, rgba(2, 12, 32, .8) 45%, transparent 100%);
}
.vcard__amt {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 6px 3px;
  font: 700 .62rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--btn-red);
  border-radius: 4px;
}
.vcard__title {
  margin: 0;
  font-size: clamp(1.02rem, 2.6vw, 1.32rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.vcard__stamp {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 4;
  translate: -50% -50%;
  font-size: .92rem;
  --stamp-c: var(--brand-stamp);
  background: rgba(252, 247, 230, .92);
  opacity: 0;
  pointer-events: none;
}
.vcard__link:hover .vcard__stamp,
.vcard__link:focus-visible .vcard__stamp { animation: stamp-in .46s var(--ease-spring) forwards; }
.vcard__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  margin: 12px 2px 0;
  font-size: .78rem;
  color: var(--text-muted);
}

/* Poster: lokales Bild oder gestalteter Platzhalter */
.poster { position: absolute; inset: 0; display: block; }
.poster--image img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease-out); }
.vcard__link:hover .poster--image img { scale: 1.05; }
.poster--art { overflow: hidden; background: var(--brand-navy); }
.poster--art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(252, 247, 230, .14) 1.2px, transparent 1.5px);
  background-size: 16px 16px;
}
.poster--v1 { background: #B3141C; }
.poster--v2 { background: #A86A33; }
.poster--v3 { background: var(--brand-ink); }
.poster__sheet {
  position: absolute;
  width: 44%;
  aspect-ratio: 3 / 4;
  padding: 12px 9px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 7px, rgba(2, 23, 55, .28) 7px 9px) content-box,
    linear-gradient(var(--brand-cream), var(--brand-cream)) padding-box;
  border: 2px solid var(--brand-ink);
  border-radius: 3px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .28);
  transition: translate .5s var(--ease-out), rotate .5s var(--ease-out);
}
.poster__sheet--a { top: 7%; left: 6%; rotate: -12deg; }
.poster__sheet--b { top: 11%; right: 4%; width: 40%; rotate: 10deg; }
.poster__sheet--c { top: 20%; left: 28%; width: 42%; rotate: -2deg; }
.vcard__link:hover .poster__sheet--a { translate: -6px -8px; rotate: -18deg; }
.vcard__link:hover .poster__sheet--b { translate: 6px -10px; rotate: 16deg; }
.poster__para {
  position: absolute;
  right: -4%;
  bottom: 14%;
  font-size: 8rem;
  font-size: 62cqw;
  font-weight: 800;
  line-height: 1;
  color: rgba(252, 247, 230, .09);
}
.poster__mascot {
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: 80%;
  translate: -50% 0;
  rotate: -4deg;
  filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, .3));
  transition: transform .45s var(--ease-spring);
}
.vcard__link:hover .poster__mascot { transform: translateY(-6px) rotate(5deg); }

/* ==========================================================================
   8. Ämter als Akten, Laufzettel, CTA
   ========================================================================== */
.akten {
  list-style: none;
  display: grid;
  gap: 22px 20px;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) { .akten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .akten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.akte { --folder: var(--folder-1); }
.akte:nth-child(3n + 2) { --folder: var(--folder-2); }
.akte:nth-child(3n + 3) { --folder: var(--folder-3); }
.akte__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 27px;
  color: var(--text);
  text-decoration: none;
  border-radius: 16px;
  transition: transform .22s var(--ease-out);
}
.akte__tab {
  position: absolute;
  top: 0;
  left: 18px;
  z-index: 1;
  height: 31px;
  padding: 8px 14px 0;
  font: 700 .68rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--folder);
  border: var(--border) solid var(--outline);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.akte__body {
  position: relative;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 20px 18px;
  background: var(--folder);
  border: var(--border) solid var(--outline);
  border-radius: 4px 16px 16px 16px;
  box-shadow: 5px 5px 0 var(--shadow-hard);
  transition: box-shadow .22s var(--ease-out);
}
.akte__link:hover { transform: translate(-2px, -3px); }
.akte__link:hover .akte__body { box-shadow: 8px 9px 0 var(--shadow-hard); }
.akte__name { font-size: 1.55rem; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; padding-right: 64px; }
.akte__desc { font-size: .96rem; line-height: 1.45; color: var(--text-muted); }
.akte__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  font: 600 .8rem/1 var(--font-mono);
  border-top: 1.5px dashed var(--line-mid);
}
.akte__arrow { width: 22px; height: 22px; transition: translate .2s var(--ease-out); }
.akte__link:hover .akte__arrow { translate: 4px 0; }
.akte__stamp {
  position: absolute;
  top: 46px;
  right: 14px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.akte__link:hover .akte__stamp:not(.akte__stamp--static),
.akte__link:focus-visible .akte__stamp:not(.akte__stamp--static) { animation: stamp-in .46s var(--ease-spring) forwards; }
.akte__stamp--static { opacity: .85; rotate: 8deg; top: 44px; }

.laufzettel {
  list-style: none;
  display: grid;
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0;
}
@media (min-width: 860px) { .laufzettel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.laufzettel__step {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--surface);
  border: var(--border) solid var(--outline);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow-hard);
}
.laufzettel__step p { margin: 0; color: var(--text-muted); }
@media (min-width: 860px) {
  .laufzettel__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    right: -31px;
    width: 30px;
    border-top: var(--border) dashed var(--outline);
  }
}
.laufzettel__box {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: var(--accent-text);
  border: var(--border) solid var(--checkbox);
  border-radius: 8px;
}
.laufzettel__box .icon { width: 28px; height: 28px; stroke-width: 3; transition: scale .4s var(--ease-spring), rotate .4s var(--ease-spring); }
.reveal-ready .laufzettel__step:not(.is-visible) .laufzettel__box .icon { scale: 0; rotate: -25deg; }
.laufzettel__step:nth-child(2) .laufzettel__box .icon { transition-delay: .25s; }
.laufzettel__step:nth-child(3) .laufzettel__box .icon { transition-delay: .5s; }
.laufzettel__num { font: 700 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.laufzettel__title { margin: 6px 0 8px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; }

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 7vw, 84px);
  color: var(--brand-cream);
  background: #C8161F;
  border-top: 3px solid var(--brand-ink);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 16px, transparent 16px 32px);
}
.cta-band__inner { position: relative; display: grid; gap: 26px; align-items: center; }
@media (min-width: 860px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 48px; } }
.cta-band__title { margin: 10px 0 10px; font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.cta-band__text { margin: 0; max-width: 38em; color: #FFE3E4; }

/* ==========================================================================
   9. Brotkrümel, Formularfelder, Amt-Kopf
   ========================================================================== */
.breadcrumbs { padding-block: 20px 8px; font-size: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "›"; margin-inline: 8px; font-weight: 700; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.breadcrumbs a:hover { color: var(--text); text-decoration-color: var(--brand-red); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 650; }

.formfields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 22px 0 0;
  overflow: hidden;
  background: var(--outline);
  border: 2px solid var(--outline);
  border-radius: 12px;
}
.formfields > div { padding: 10px 14px 12px; background: var(--surface); }
.formfields dt {
  margin-bottom: 5px;
  font: 700 .64rem/1.2 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.formfields dd { margin: 0; font-weight: 700; font-size: .98rem; line-height: 1.3; }
.formfields dd a { color: inherit; text-decoration-color: var(--brand-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.formfields .stamp { margin-top: 2px; }
@media (min-width: 700px) { .formfields { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.formfields--compact { max-width: 560px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.formfields--compact > div { background: color-mix(in srgb, var(--surface) 70%, transparent); }

.akte-head { position: relative; margin-top: 10px; padding-top: 29px; }
.akte-head__tab {
  position: absolute;
  top: 0;
  left: 22px;
  z-index: 1;
  height: 33px;
  padding: 9px 16px 0;
  font: 700 .7rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--folder-1);
  border: var(--border) solid var(--outline);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.akte-head__body {
  display: grid;
  gap: 30px;
  padding: clamp(22px, 4.5vw, 44px);
  background: var(--folder-1);
  border: var(--border) solid var(--outline);
  border-radius: 4px 22px 22px 22px;
  box-shadow: 7px 7px 0 var(--shadow-hard);
}
.akte-head__title { margin: 12px 0 12px; font-size: clamp(2.6rem, 9vw, 5rem); font-weight: 800; line-height: .95; letter-spacing: -.05em; }
.akte-head__desc { margin: 0; max-width: 36em; font-size: 1.12rem; }
.akte-head__visual { display: grid; justify-items: start; }
@media (min-width: 860px) {
  .akte-head__body { grid-template-columns: 1fr auto; align-items: center; }
  .akte-head__visual { justify-items: end; }
}
.other-aemter { padding-bottom: clamp(48px, 8vw, 88px); }

/* ==========================================================================
   10. Videoseite
   ========================================================================== */
.vorgang__head { padding-block: 8px 28px; }
.vorgang__title {
  margin: 14px 0 0;
  font-size: clamp(2.4rem, 8.5vw, 4.6rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.045em;
}
.vorgang__layout { display: grid; gap: 36px; padding-bottom: clamp(48px, 8vw, 96px); }
.vorgang__player { display: grid; justify-items: center; align-content: start; gap: 16px; }
.vorgang__content { min-width: 0; }
@media (min-width: 960px) {
  .vorgang__layout { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
  .vorgang__player { position: sticky; top: 90px; }
}

/* TikTok-Player mit Zwei-Klick-Lösung */
.tt {
  position: relative;
  width: 100%;
  width: max(240px, min(100%, 380px, calc((100vh - 150px) * 9 / 16)));
  width: max(240px, min(100%, 380px, calc((100svh - 150px) * 9 / 16)));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background: var(--brand-navy);
  border: 3px solid var(--outline);
  border-radius: 22px;
  box-shadow: 7px 7px 0 var(--shadow-hard);
}
.tt--embed.is-loaded { aspect-ratio: auto; height: 740px; width: min(100%, 340px); background: #fff; }
.tt.is-loaded { background: #000; }
.tt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tt__consent { position: absolute; inset: 0; display: grid; }
.tt .poster__mascot { bottom: auto; top: 14%; width: 76%; }
.tt .poster__para { bottom: auto; top: 30%; }
.tt__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(2, 12, 32, .97) 0%, rgba(2, 12, 32, .82) 40%, rgba(2, 12, 32, .1) 72%, transparent);
}
.tt__panel {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 18px 20px;
  color: var(--brand-cream);
  text-align: center;
}
.tt__load {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.tt__load:focus-visible { outline: none; }
.tt__load:focus-visible .tt__label { outline: 3px solid var(--brand-cream); outline-offset: 4px; }
.tt__play {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: #fff;
  background: var(--btn-red);
  border: 3px solid var(--brand-ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--brand-ink);
  transition: transform .25s var(--ease-spring);
  animation: pulse 2.6s ease-in-out infinite;
}
.tt__play .icon { width: 36px; height: 36px; margin-left: 4px; }
.tt__load:hover .tt__play { transform: scale(1.08) rotate(-5deg); }
@keyframes pulse {
  0%, 100% { box-shadow: 4px 4px 0 var(--brand-ink), 0 0 0 0 rgba(238, 38, 52, .5); }
  50% { box-shadow: 4px 4px 0 var(--brand-ink), 0 0 0 14px rgba(238, 38, 52, 0); }
}
.tt__label {
  padding: 9px 14px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--brand-ink);
  background: var(--brand-cream);
  border: 2px solid var(--brand-ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--brand-ink);
}
.tt__note { margin: 0; max-width: 24em; font-size: .82rem; line-height: 1.4; color: #D5DEEF; }
.tt__note a { color: var(--brand-cream); font-weight: 700; }
.tt__remember { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: #D5DEEF; cursor: pointer; }
.tt__remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-red); }
.tt-direct { width: 100%; max-width: 380px; }

/* Teil 1: Satire */
.part-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.part-title__hint { font-size: .62em; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }

.prose { max-width: 40em; font-size: 1.12rem; line-height: 1.7; }
.prose > * { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 2em 0 .6em; font-size: 1.4rem; letter-spacing: -.02em; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.25rem; letter-spacing: -.02em; }
.prose h4 { margin: 1.4em 0 .4em; font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent-text); }
.prose strong { font-weight: 750; }
.prose a { color: var(--link); text-decoration-color: var(--brand-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  font-size: 1.22rem;
  font-weight: 650;
  line-height: 1.45;
  background: var(--surface);
  border: 2px solid var(--outline);
  border-left: 8px solid var(--brand-red);
  border-radius: 6px 14px 14px 6px;
  box-shadow: 4px 4px 0 var(--shadow-hard);
}
.prose blockquote p { margin: 0; }
.prose mark { background: var(--mark); color: var(--brand-ink); padding: 0 .2em; border-radius: 3px; }

.hashtags { margin-top: 24px; }
.hashtags a {
  display: inline-block;
  padding: 5px 10px;
  font: 600 .8rem/1.2 var(--font-mono);
  color: var(--text-muted);
  border: 1.5px solid var(--line-mid);
  border-radius: 999px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.hashtags a:hover { color: var(--text); border-color: var(--text); }

/* Trennlinie „Hier abtrennen“ */
.tear {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 44px 34px;
  color: var(--text-muted);
  container-type: inline-size;
}
.tear::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: var(--border) dashed currentColor;
  opacity: .6;
}
.tear__scissors {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  background: var(--bg);
}
.tear__label {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  padding: 0 12px;
  font: 700 .72rem/1.3 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  background: var(--bg);
}
.tear.is-visible .tear__scissors { animation: snip-move 2.4s .2s cubic-bezier(.55, 0, .35, 1) both; }
.tear.is-visible .tear__scissors .icon { animation: snip .22s .2s ease-in-out 10 alternate; }
@keyframes snip-move { to { transform: translateX(calc(100cqw - 40px)); } }
@keyframes snip { to { rotate: -16deg; } }

/* Teil 2: „Und jetzt mal im Ernst“ */
.ernst {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: var(--border) solid var(--outline);
  border-radius: 20px;
  box-shadow: 7px 7px 0 var(--shadow-hard);
}
.ernst__head {
  position: relative;
  padding: 22px 22px 22px;
  color: var(--brand-cream);
  background: var(--brand-navy);
  border-bottom: var(--border) solid var(--outline);
}
.ernst__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font: 700 .72rem/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C9D6EE;
}
.ernst__kicker .part-title__num { color: var(--brand-cream); }
.ernst__title { margin: 0; padding-right: 96px; font-size: clamp(1.75rem, 4.6vw, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.ernst__intro { margin: 10px 0 0; color: #D5DEEF; }
.ernst__intro strong { color: var(--brand-cream); }
.ernst__stamp { position: absolute; top: 18px; right: 16px; rotate: 9deg; }
.ernst__body { display: grid; }
.ernst__block { padding: 22px; border-bottom: 1.5px dashed var(--line-mid); }
@media (min-width: 640px) {
  .ernst__body { grid-template-columns: 1fr 1fr; }
  .ernst__block--wide, .ernst__block:only-child { grid-column: 1 / -1; }
  .ernst__block:not(.ernst__block--wide) + .ernst__block:not(.ernst__block--wide) { border-left: 1.5px dashed var(--line-mid); }
}
.ernst__empty { margin: 0; padding: 22px; grid-column: 1 / -1; border-bottom: 1.5px dashed var(--line-mid); }
.ernst__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.ernst__label .icon { width: 24px; height: 24px; color: var(--accent-text); }
.ernst__hint { margin-left: auto; font: 600 .66rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.ernst__text { line-height: 1.6; }
.ernst__text p, .ernst__text ul { margin: 0 0 .6em; }
.ernst__text > :last-child { margin-bottom: 0; }
.ernst__text ul { padding-left: 1.2em; }
.ernst__foot { display: grid; gap: 14px; padding: 20px 22px 22px; background: var(--bg-sunken); }
.ernst__official { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ernst__domain { font-size: .86rem; color: var(--text-muted); }
.ernst__print { margin: 0; }
.ernst__disclaimer { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--text-muted); }
.ernst__disclaimer strong { color: var(--text); }

.checklist { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.checklist__item:hover { border-color: var(--line-mid); }
.checklist__box {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  background: var(--bg);
  border: var(--border) solid var(--checkbox);
  border-radius: 6px;
  cursor: pointer;
}
.checklist__box::after {
  content: "";
  width: 13px;
  height: 7px;
  margin-top: -3px;
  border-left: 3px solid var(--accent-text);
  border-bottom: 3px solid var(--accent-text);
  transform: rotate(-45deg) scale(0);
  transition: transform .28s var(--ease-spring);
}
.checklist__box:checked::after { transform: rotate(-45deg) scale(1); }
.checklist__item:has(:checked) { background: var(--ok-bg); }
.checklist__item:has(:checked) .checklist__text {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--accent-text);
  text-decoration-thickness: 2px;
}

.share { margin-top: 34px; }
.share__title {
  margin: 0 0 12px;
  font: 700 .74rem/1.2 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.share [hidden] { display: none; }

.related__more { margin: 28px 0 0; }

/* Vorschau aus der Verwaltung */
.preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--mark);
  color: var(--brand-ink);
  border: 2px solid var(--brand-ink);
  border-radius: 12px;
}
.preview-banner p { margin: 0; font-weight: 600; }
.preview-banner a { color: var(--brand-ink); font-weight: 800; }
.preview-banner .stamp { --stamp-c: var(--brand-stamp); }

/* ==========================================================================
   11. Fehlerseiten
   ========================================================================== */
.error-page { padding-block: clamp(40px, 8vw, 100px); }
.error-page__inner { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .error-page__inner { grid-template-columns: auto 1fr; gap: 72px; } }
.error-page__visual { position: relative; display: grid; justify-items: center; padding: 10px 24px 34px; }
.error-page__visual .led { font-size: 3.4rem; }
.error-page__stamp {
  position: absolute;
  right: -6px;
  bottom: 0;
  rotate: -14deg;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  animation: stamp-drop .55s .35s var(--ease-spring) both;
}
@keyframes stamp-drop {
  0%  { opacity: 0; scale: 2.4; rotate: -30deg; }
  60% { opacity: 1; scale: .92; rotate: -12deg; }
  100% { opacity: 1; scale: 1; rotate: -14deg; }
}
.error-page__title { margin: 14px 0 14px; font-size: clamp(2.2rem, 6.5vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.error-page__text { margin: 0; max-width: 34em; font-size: 1.12rem; color: var(--text-muted); }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.error-page__hint { margin: 30px 0 12px; font-weight: 650; }
.bescheid {
  max-width: 40em;
  margin: 24px 0 0;
  padding: 16px 18px;
  font-size: .96rem;
  background: var(--surface);
  border: 2px solid var(--outline);
  border-left: 8px solid var(--brand-red);
  border-radius: 6px 14px 14px 6px;
}
.bescheid p { margin: 0 0 .5em; }
.bescheid p:last-child { margin-bottom: 0; }

/* ==========================================================================
   12. Rechtliches
   ========================================================================== */
.legal { padding-block: 8px clamp(56px, 8vw, 96px); font-size: 1.04rem; }
.legal h1 { margin: 12px 0 26px; font-size: clamp(2.3rem, 6.5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.legal__summary {
  margin-bottom: 8px;
  padding: 18px 22px;
  background: var(--surface);
  border: var(--border) solid var(--outline);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--shadow-hard);
}
.legal__summary h2 { margin: 0 0 8px; font-size: 1.1rem; }
.legal__summary ul { margin: 0; }
.legal__stand { margin-top: 2em; color: var(--text-muted); font-size: .92rem; }
mark.platzhalter { background: var(--mark); color: var(--brand-ink); padding: 0 .2em; border-radius: 3px; }
.consent-box {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--surface);
  border: var(--border) dashed var(--outline);
  border-radius: 14px;
}
.consent-box h3 { margin: 0 0 6px; font-size: 1.08rem; }
.consent-box__state { margin: 0 0 14px; font-weight: 650; }

/* ==========================================================================
   13. Fußbereich
   ========================================================================== */
.site-footer {
  padding-block: 44px 26px;
  color: var(--brand-cream);
  background: var(--footer-bg);
  border-top: 3px solid var(--brand-ink);
}
.disclaimer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-bottom: 42px;
  padding: 20px 22px;
  background: rgba(252, 247, 230, .05);
  border: 2px dashed rgba(252, 247, 230, .5);
  border-radius: 16px;
}
.disclaimer__stamp { font-size: 1rem; }
.disclaimer__text { flex: 1 1 280px; margin: 0; font-size: 1.05rem; line-height: 1.5; color: #D5DEEF; }
.disclaimer__text strong { display: block; color: var(--brand-cream); font-size: 1.12rem; }
.site-footer__grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer .brand { color: var(--brand-cream); margin-bottom: 14px; }
.site-footer .brand__logo { width: 52px; height: 52px; }
.site-footer .brand__name span { color: #FF7076; }
.site-footer__claim { max-width: 26em; margin: 0 0 18px; color: #AEB8CC; }
.site-footer__heading {
  margin: 0 0 14px;
  font: 700 .74rem/1.2 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #AEB8CC;
}
.site-footer__nav ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.site-footer__nav a { color: var(--brand-cream); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .15s; }
.site-footer__nav a:hover { text-decoration-color: var(--brand-red); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 42px;
  padding-top: 20px;
  font-size: .85rem;
  color: #AEB8CC;
  border-top: 1px solid rgba(252, 247, 230, .14);
}
.site-footer__bottom p { margin: 0; }

/* ==========================================================================
   14. Einblenden beim Scrollen
   ========================================================================== */
.reveal-ready [data-reveal] { transition: opacity .6s ease, translate .7s var(--ease-out); }
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; translate: 0 18px; }

/* ==========================================================================
   15. Weniger Bewegung
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .ticker__track { animation: none !important; }
  .tear.is-visible .tear__scissors { animation: none !important; }
}

/* ==========================================================================
   16. Druck: Checkliste für den Termin
   ========================================================================== */
@media print {
  .site-header, .skip-link, .ticker, .site-footer__grid, .site-footer__bottom,
  .breadcrumbs, .share, .related, .page-video .vorgang__player, .page-video .satire, .page-video .tear,
  .ernst__stamp, .ernst__official, [data-print] { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .vorgang__layout { display: block; }
  .ernst, .formfields { box-shadow: none; border-color: #000; }
  .ernst__head { color: #000; background: none; }
  .ernst__kicker, .ernst__intro { color: #000; }
  .site-footer { color: #000; background: none; border: 0; padding: 0; }
  .disclaimer { border-color: #000; }
  .disclaimer__text, .disclaimer__text strong { color: #000; }
  .stamp--light { --stamp-c: #000; }
}
