/* ==========================================================================
   IT-ERZIEHER — Stylesheet
   Kita-Optik für Erwachsene: Papier, Rotstift, Sternchen.
   Keine Frameworks, keine externen Ressourcen.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* --- Farben & Maße ------------------------------------------------------ */
:root {
  --papier:      #FBF6EC;
  --papier-tief: #F3EBDC;
  --karte:       #FFFDF8;
  --tinte:       #1B1814;
  --tinte-weich: #5D564B;
  --tinte-zart:  #8C8477;
  --rot:         #C8443C;
  --rot-hell:    #E4695F;
  --gelb:        #EFAE2A;
  --gruen:       #2F8265;
  --blau:        #33526E;
  --rand:        rgba(27, 24, 20, .14);
  --rand-stark:  rgba(27, 24, 20, .28);
  --schatten:    0 1px 0 rgba(27,24,20,.06), 0 10px 28px -18px rgba(27,24,20,.45);
  --schatten-tief: 0 2px 0 rgba(27,24,20,.07), 0 26px 50px -28px rgba(27,24,20,.5);

  --display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;

  --shell: 1140px;
  --radius: 14px;
  --radius-gross: 22px;

  /* Das Rentenband ist immer dunkel — auch im Dunkelmodus.
     Sonst kippen die fest eingetragenen hellen Textfarben ins Unlesbare. */
  --band-grund:  #1B1814;
  --band-text:   #FBF6EC;
  --band-weich:  rgba(251, 246, 236, .70);
  --band-zart:   rgba(251, 246, 236, .58);
  --band-linie:  rgba(251, 246, 236, .18);
  --band-flaeche: rgba(251, 246, 236, .07);
  /* Schrift auf rotem Grund */
  --auf-rot: #FFFDF8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier:      #16181D;
    --papier-tief: #1D2027;
    --karte:       #202429;
    --tinte:       #F2EDE3;
    --tinte-weich: #B6AEA1;
    --tinte-zart:  #8A8377;
    --rot:         #F08078;
    --rot-hell:    #F5A099;
    --gelb:        #F2C05A;
    --gruen:       #63BE9B;
    --blau:        #9CC0E0;
    --rand:        rgba(242, 237, 227, .16);
    --rand-stark:  rgba(242, 237, 227, .32);
    --schatten:    0 10px 28px -18px rgba(0,0,0,.9);
    --schatten-tief: 0 26px 50px -28px rgba(0,0,0,.95);

    --band-grund:  #0E1014;
    --band-text:   #F2EDE3;
    --band-weich:  rgba(242, 237, 227, .70);
    --band-zart:   rgba(242, 237, 227, .58);
    --band-linie:  rgba(242, 237, 227, .16);
    --band-flaeche: rgba(242, 237, 227, .06);
    /* helles Rot braucht dunkle Schrift */
    --auf-rot: #14110E;
  }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  /* feine Papierstruktur, rein aus CSS */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(239,174,42,.07), transparent 42%),
    radial-gradient(circle at 84% 78%, rgba(47,130,101,.06), transparent 46%);
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.22rem; font-weight: 700; }
p + p { margin-top: .9em; }
strong { font-weight: 600; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
section { padding: clamp(3.2rem, 7vw, 5.6rem) 0; }
.mittig { text-align: center; }

/* --- Wiederkehrende Kleinteile ------------------------------------------ */
.tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rot); margin-bottom: .9rem;
}
.tag::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.tag.mittig { display: inline-flex; }

.blei { color: var(--tinte-weich); font-size: 1.1rem; max-width: 62ch; }
.mittig .blei { margin-inline: auto; }

/* handschriftliche Rotstift-Notiz */
.notiz {
  font-family: var(--hand); font-size: 1.45rem; line-height: 1.25;
  color: var(--rot); transform: rotate(-2.2deg);
  display: inline-block;
}
.notiz-pfeil::before { content: "↘ "; }

.stern { color: var(--gelb); }

/* --- Kopfzeile ----------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rand);
}
.masthead .shell { display: flex; align-items: center; gap: 1rem; min-height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: .62rem;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
}
.brand .b-mark {
  width: 34px; height: 34px; flex: none; border-radius: 8px;
  box-shadow: 0 1px 0 rgba(27,24,20,.18), 0 6px 14px -8px rgba(27,24,20,.6);
  transition: transform .18s ease;
}
.brand:hover .b-mark { transform: translateY(-1px) rotate(-3deg); }
.brand .b-text { line-height: 1; }
.brand .b-it { color: var(--rot); }

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .45rem .7rem; border-radius: 9px; color: var(--tinte-weich);
}
.nav a:hover, .nav a:focus-visible { color: var(--tinte); background: var(--papier-tief); }
.nav .nav-cta {
  color: var(--auf-rot); background: var(--rot); padding: .5rem .95rem;
  box-shadow: 0 2px 0 rgba(27,24,20,.18);
}
.nav .nav-cta:hover { background: var(--rot-hell); color: var(--auf-rot); }

.burger {
  margin-left: auto; display: none; width: 42px; height: 38px;
  background: none; border: 1px solid var(--rand); border-radius: 10px;
  cursor: pointer; padding: 9px 9px;
}
.burger span { display: block; height: 2px; background: var(--tinte); border-radius: 2px; }
.burger span + span { margin-top: 5px; }

@media (max-width: 880px) {
  .burger { display: block; }
  .nav {
    position: absolute; inset: 68px 0 auto; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papier); border-bottom: 1px solid var(--rand);
    padding: .6rem 1.25rem 1.1rem; box-shadow: var(--schatten);
  }
  .nav.offen { display: flex; }
  .nav a { padding: .75rem .4rem; }
  .nav .nav-cta { text-align: center; margin-top: .5rem; }
}

/* --- Knöpfe -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: .72rem 1.35rem; border-radius: 11px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primaer { background: var(--rot); color: var(--auf-rot); box-shadow: 0 2px 0 rgba(27,24,20,.2); }
.btn-primaer:hover { background: var(--rot-hell); color: var(--auf-rot); }
.btn-geist { background: transparent; color: var(--tinte); border-color: var(--rand-stark); }
.btn-geist:hover { background: var(--papier-tief); }
.btn-klein { font-size: .92rem; padding: .5rem 1rem; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding-top: clamp(2.6rem, 6vw, 4.4rem); padding-bottom: clamp(2.6rem, 6vw, 4.4rem); }
.hero .shell { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--rot); }
.hero .blei { font-size: 1.15rem; }
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-fuss { margin-top: 1.5rem; font-size: .93rem; color: var(--tinte-zart); }

@media (max-width: 900px) { .hero .shell { grid-template-columns: 1fr; } }

/* Stempelkarte */
.stempelkarte {
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: var(--radius-gross); padding: 1.5rem 1.6rem 1.35rem;
  box-shadow: var(--schatten-tief); transform: rotate(1.4deg);
  position: relative;
}
.stempelkarte::after {
  content: ""; position: absolute; inset: 8px; border: 2px dashed var(--rand);
  border-radius: calc(var(--radius-gross) - 6px); pointer-events: none;
}
.stempelkarte h3 { font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: var(--tinte-weich); }
.stempelkarte .sk-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-top: .15rem; }
.sk-gitter { display: grid; grid-template-columns: repeat(5, 1fr); gap: .55rem; margin: 1.1rem 0 .9rem; }
.sk-feld {
  aspect-ratio: 1; border: 2px solid var(--rand); border-radius: 10px;
  display: grid; place-items: center; font-size: 1.35rem; color: var(--tinte-zart);
  background: var(--papier);
}
.sk-feld.voll { border-color: var(--gelb); color: var(--gelb); background: color-mix(in srgb, var(--gelb) 12%, var(--karte)); }
.sk-feld.kreuz { border-color: var(--rot); color: var(--rot); background: color-mix(in srgb, var(--rot) 10%, var(--karte)); }
.stempelkarte .sk-fuss { font-size: .88rem; color: var(--tinte-weich); border-top: 1px dashed var(--rand); padding-top: .75rem; }

/* --- Vertrauensleiste ---------------------------------------------------- */
.leiste { border-block: 1px solid var(--rand); background: var(--papier-tief); }
.leiste .shell { display: flex; flex-wrap: wrap; gap: .6rem 2rem; padding: .95rem 0; justify-content: center; }
.leiste span { font-size: .9rem; font-weight: 600; color: var(--tinte-weich); display: inline-flex; align-items: center; gap: .45rem; }
.leiste span::before { content: "✓"; color: var(--gruen); font-weight: 700; }

/* --- Karten-Raster ------------------------------------------------------- */
.raster { display: grid; gap: 1.15rem; margin-top: 2.4rem; }
.raster-3 { grid-template-columns: repeat(3, 1fr); }
.raster-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .raster-3, .raster-2 { grid-template-columns: 1fr; } }

.karte {
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem; box-shadow: var(--schatten);
  display: flex; flex-direction: column;
}
.karte h3 { margin-bottom: .55rem; }
.karte p { color: var(--tinte-weich); }
.karte-nr {
  font-family: var(--display); font-weight: 800; font-size: .85rem;
  color: var(--rot); letter-spacing: .1em; margin-bottom: .7rem;
}

/* Trotzphase-Karten mit Zitat */
.trotz .zitat {
  font-family: var(--hand); font-size: 1.6rem; line-height: 1.25;
  color: var(--tinte); margin-bottom: .8rem;
}
.trotz .folge {
  margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--rand);
  font-size: .95rem; color: var(--tinte-weich);
}
.trotz .folge b { color: var(--rot); font-weight: 700; }

/* Angebots-Karten */
.angebot .karte { position: relative; }
.angebot .karte.hervor { border-color: var(--rot); box-shadow: var(--schatten-tief); }
.angebot .marke {
  position: absolute; top: -11px; right: 16px; background: var(--rot); color: var(--auf-rot);
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  padding: .2rem .7rem; border-radius: 999px;
}
.liste { margin-top: 1.1rem; display: grid; gap: .55rem; }
.liste li { position: relative; padding-left: 1.6rem; font-size: .97rem; color: var(--tinte-weich); }
.liste li::before {
  content: "★"; position: absolute; left: 0; top: -.05em; color: var(--gelb); font-size: .95rem;
}
.preis {
  margin-top: 1.3rem; padding-top: 1rem; border-top: 1px dashed var(--rand);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
}
.preis small { display: block; font-family: var(--body); font-weight: 400; font-size: .87rem; color: var(--tinte-zart); }

/* Platzhalter, die Michael noch füllen muss */
.platzhalter {
  background: color-mix(in srgb, var(--gelb) 26%, transparent);
  border-bottom: 2px solid var(--gelb);
  padding: 0 .3rem; border-radius: 3px;
  font-family: var(--body); font-size: .88em; font-weight: 600;
}

/* --- Werkzeug-Karten ----------------------------------------------------- */
.werkzeug-karte { text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.werkzeug-karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-tief); }
.werkzeug-karte .wz-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--rot) 12%, var(--karte)); color: var(--rot);
  font-size: 1.5rem; margin-bottom: 1rem;
}
.werkzeug-karte .wz-mehr { margin-top: 1.2rem; font-weight: 700; color: var(--rot); font-family: var(--display); }
.gratis {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gruen);
  border: 1px solid color-mix(in srgb, var(--gruen) 45%, transparent);
  border-radius: 999px; padding: .12rem .6rem; margin-bottom: .8rem;
}

/* --- Ablauf-Schritte ----------------------------------------------------- */
.schritte { counter-reset: schritt; display: grid; gap: 0; margin-top: 2.4rem; }
.schritt {
  display: grid; grid-template-columns: 58px 1fr; gap: 1.4rem;
  padding: 1.4rem 0; border-top: 1px solid var(--rand);
}
.schritt:last-child { border-bottom: 1px solid var(--rand); }
.schritt::before {
  counter-increment: schritt; content: counter(schritt);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  background: var(--papier-tief); border: 1px solid var(--rand); color: var(--rot);
}
.schritt h3 { margin-bottom: .3rem; }
.schritt p { color: var(--tinte-weich); }

/* --- Ernst-Panel --------------------------------------------------------- */
.ernst { background: var(--papier-tief); border-block: 1px solid var(--rand); }
.ernst .shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .ernst .shell { grid-template-columns: 1fr; } }
.ernst-liste { display: grid; gap: 1.1rem; }
.ernst-liste li { display: grid; grid-template-columns: 26px 1fr; gap: .9rem; align-items: start; }
.ernst-liste li::before {
  content: "✓"; color: var(--gruen); font-weight: 800; font-size: 1.1rem; line-height: 1.5;
}
.ernst-liste b { display: block; font-weight: 600; }
.ernst-liste span { color: var(--tinte-weich); font-size: .97rem; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { max-width: 780px; margin-top: 2.2rem; }
.faq details {
  border-bottom: 1px solid var(--rand); padding: .35rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--rot); font-family: var(--display); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.1rem; color: var(--tinte-weich); max-width: 68ch; }

/* --- Über ---------------------------------------------------------------- */
.ueber .shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .ueber .shell { grid-template-columns: 1fr; } }
.ueber-bild {
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius-gross);
  padding: 1rem; box-shadow: var(--schatten); transform: rotate(-1.6deg);
}
.ueber-bild img { border-radius: calc(var(--radius-gross) - 10px); width: 100%; }
.ueber-bild figcaption { font-family: var(--hand); font-size: 1.3rem; color: var(--tinte-weich); text-align: center; padding-top: .6rem; }

/* --- Kontakt / Anmeldebogen ---------------------------------------------- */
.bogen {
  background: var(--karte); border: 1px solid var(--rand-stark); border-radius: var(--radius-gross);
  box-shadow: var(--schatten-tief); padding: clamp(1.5rem, 4vw, 2.6rem);
  max-width: 760px; margin: 2.4rem auto 0; position: relative;
}
.bogen::before {
  content: "Formular IT-E/1"; position: absolute; top: 1.1rem; right: 1.4rem;
  font-family: var(--body); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tinte-zart);
}
.bogen h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.bogen .bogen-blei { color: var(--tinte-weich); margin-bottom: 1.8rem; font-size: .98rem; }
.feld { margin-bottom: 1.15rem; }
.feld label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.feld label .opt { font-weight: 400; color: var(--tinte-zart); }
.feld .durchgestrichen { text-decoration: line-through; color: var(--tinte-zart); font-weight: 400; }
.feld input, .feld textarea, .feld select {
  width: 100%; background: var(--papier); color: var(--tinte);
  border: 1px solid var(--rand-stark); border-radius: 10px;
  padding: .7rem .85rem; font-size: 1rem; font-family: var(--body);
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: 2px solid var(--rot); outline-offset: 1px; border-color: transparent;
}
.feld textarea { min-height: 130px; resize: vertical; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 640px) { .feld-paar { grid-template-columns: 1fr; } }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bogen-fuss { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.bogen-fuss .hinweis { font-size: .86rem; color: var(--tinte-zart); max-width: 42ch; }

.kontakt-direkt { margin-top: 2rem; text-align: center; color: var(--tinte-weich); }
.kontakt-direkt a { font-weight: 600; }

/* --- Fußzeile ------------------------------------------------------------ */
.foot { border-top: 1px solid var(--rand); background: var(--papier-tief); padding: 2.2rem 0; margin-top: 0; }
.foot .shell { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; font-size: .93rem; }
.foot a { text-decoration: none; color: var(--tinte-weich); font-weight: 600; }
.foot a:hover { color: var(--tinte); }
.foot .rechts { margin-left: auto; color: var(--tinte-zart); }
@media (max-width: 700px) { .foot .rechts { margin-left: 0; width: 100%; } }

/* --- Entwurfsleiste ------------------------------------------------------ */
.entwurfsleiste { background: var(--tinte); color: var(--papier); font-size: .85rem; }
.entwurfsleiste .shell { display: flex; flex-wrap: wrap; gap: .3rem .8rem; padding: .5rem 0; align-items: baseline; }
.entwurfsleiste strong { color: var(--gelb); }

/* --- Nach-oben-Knopf ----------------------------------------------------- */
.nach-oben {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--karte); border: 1px solid var(--rand-stark); color: var(--tinte);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--schatten);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.nach-oben.sichtbar { opacity: 1; pointer-events: auto; }
.nach-oben svg { width: 20px; height: 20px; }

/* ==========================================================================
   Werkzeug-Seiten (Elternbrief, Zeugnis)
   ========================================================================== */
.wz-kopf { padding: clamp(2.4rem, 5vw, 3.6rem) 0 1.6rem; }
.wz-kopf h1 { margin-bottom: .9rem; }
.wz-zurueck { display: inline-block; margin-bottom: 1.2rem; font-size: .93rem; color: var(--tinte-weich); text-decoration: none; font-weight: 600; }
.wz-zurueck:hover { color: var(--rot); }

.wz-buehne { display: grid; grid-template-columns: 420px 1fr; gap: 2rem; align-items: start; padding-bottom: 4rem; }
@media (max-width: 1000px) { .wz-buehne { grid-template-columns: 1fr; } }

.wz-panel {
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--schatten); position: sticky; top: 88px;
}
@media (max-width: 1000px) { .wz-panel { position: static; } }
.wz-panel h2 { font-size: 1.2rem; margin-bottom: 1.1rem; }

.wahl { display: grid; gap: .5rem; }
.wahl label {
  display: flex; gap: .7rem; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--rand); border-radius: 10px; padding: .6rem .75rem;
  font-size: .95rem; transition: border-color .15s ease, background .15s ease;
}
.wahl label:hover { border-color: var(--rand-stark); background: var(--papier); }
.wahl input { margin: .28rem 0 0; accent-color: var(--rot); flex: none; }
.wahl label:has(input:checked) {
  border-color: var(--rot); background: color-mix(in srgb, var(--rot) 8%, var(--karte));
}
.wahl-gruppe { margin-bottom: 1.3rem; }
.wahl-gruppe > h3 {
  font-family: var(--body); font-weight: 700; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tinte-zart); margin-bottom: .6rem;
}
.wz-aktionen { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

/* Ausgabe-Papier */
.papierblatt {
  background: var(--karte); border: 1px solid var(--rand); border-radius: 6px;
  box-shadow: var(--schatten-tief); padding: clamp(1.6rem, 4vw, 3rem);
  font-size: 1rem; line-height: 1.75; position: relative; overflow: hidden;
}
.papierblatt::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--rot), var(--gelb));
}
.brief-kopf {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; border-bottom: 2px solid var(--tinte); padding-bottom: .8rem; margin-bottom: 1.6rem;
}
.brief-kopf .bk-marke { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.brief-kopf .bk-datum { font-size: .88rem; color: var(--tinte-weich); text-align: right; white-space: nowrap; }
.papierblatt h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.papierblatt p + p { margin-top: .95em; }
.brief-gruss { margin-top: 1.6rem; }
.brief-unterschrift { font-family: var(--hand); font-size: 1.8rem; color: var(--blau); margin-top: .3rem; }

.abschnitt {
  margin-top: 2.2rem; border-top: 2px dashed var(--rand-stark); padding-top: 1.4rem;
}
.abschnitt .schere { font-size: .8rem; color: var(--tinte-zart); letter-spacing: .3em; margin-bottom: 1rem; }
.abschnitt h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.abschnitt ul { display: grid; gap: .55rem; }
.abschnitt li { display: flex; gap: .7rem; align-items: baseline; font-size: .97rem; }
.abschnitt li::before { content: "☐"; font-size: 1.15rem; color: var(--tinte-weich); flex: none; }
.abschnitt .linie { margin-top: 1.3rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.abschnitt .linie span {
  flex: 1 1 180px; border-top: 1px solid var(--tinte-weich);
  padding-top: .3rem; font-size: .82rem; color: var(--tinte-zart);
}

.leer-hinweis { color: var(--tinte-zart); font-style: italic; }

.umschalter { display: inline-flex; border: 1px solid var(--rand-stark); border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; }
.umschalter button {
  background: transparent; border: none; padding: .5rem 1rem; cursor: pointer;
  font-weight: 600; font-size: .92rem; color: var(--tinte-weich);
}
.umschalter button[aria-selected="true"] { background: var(--rot); color: #FFFDF8; }

/* Zeugnis-Tabelle */
.zeugnis-tabelle { width: 100%; border-collapse: collapse; margin-top: 1.2rem; }
.zeugnis-tabelle th, .zeugnis-tabelle td {
  text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--rand); vertical-align: top;
}
.zeugnis-tabelle th { font-family: var(--body); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-zart); font-weight: 700; }
.zeugnis-tabelle .bewertung { white-space: nowrap; color: var(--gelb); font-size: 1.05rem; letter-spacing: .1em; }
.zeugnis-abschluss {
  margin-top: 1.8rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--papier); border: 1px dashed var(--rand-stark);
}
.zeugnis-abschluss b { font-family: var(--display); }

/* --- Rechtsseiten -------------------------------------------------------- */
.legal { padding: clamp(2.4rem, 5vw, 4rem) 0 4rem; }
.legal .shell { max-width: 800px; }
.legal h1 { margin-bottom: 2rem; }
.legal h2 {
  font-size: 1.2rem; margin-top: 2.4rem; margin-bottom: .7rem;
  padding-bottom: .35rem; border-bottom: 1px solid var(--rand);
}
.legal p, .legal address, .legal li { color: var(--tinte-weich); }
.legal address { font-style: normal; line-height: 1.8; }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .4rem; margin-top: .6rem; }

/* --- Druck --------------------------------------------------------------- */
@media print {
  :root { --papier: #fff; --karte: #fff; --tinte: #000; --tinte-weich: #333; --tinte-zart: #555; --rand: #bbb; --rand-stark: #888; }
  body { background: #fff; font-size: 11.5pt; }
  .masthead, .foot, .wz-panel, .wz-kopf, .nach-oben, .umschalter, .entwurfsleiste, .wz-zurueck { display: none !important; }
  .wz-buehne { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .shell { width: 100%; }
  .papierblatt { border: none; box-shadow: none; padding: 0; }
  .papierblatt::before { display: none; }
  .abschnitt { break-inside: avoid; }
  a { text-decoration: none; }
}

/* ==========================================================================
   Detti aus der IT — Bausteine für Fälle, Porträt und Zuständigkeitsfinder
   ========================================================================== */

/* --- Porträt mit NEIN-Stempel -------------------------------------------- */
.portraet { position: relative; max-width: 460px; margin-inline: auto; }
.portraet img {
  width: 100%; border-radius: var(--radius-gross);
  border: 1px solid var(--rand); box-shadow: var(--schatten-tief);
}
.portraet figcaption {
  font-family: var(--hand); font-size: 1.35rem; color: var(--tinte-weich);
  text-align: center; padding-top: .7rem;
}
.stempel {
  position: absolute; right: -20px; bottom: 38px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: .12em; color: var(--rot);
  border: 5px solid var(--rot); border-radius: 12px;
  padding: .22rem 1.15rem; transform: rotate(-11deg);
  background: color-mix(in srgb, var(--karte) 80%, transparent);
  text-transform: uppercase; pointer-events: none;
}
.stempel.klein { font-size: 1rem; border-width: 3px; padding: .15rem .6rem; letter-spacing: .09em; }

/* --- Dienstanweisung (Grundsatz-Leiste) ---------------------------------- */
.grundsaetze { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rand); }
@media (max-width: 900px) { .grundsaetze { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grundsaetze { grid-template-columns: 1fr; } }
.grundsaetze li { background: var(--papier); padding: 1.4rem 1.2rem; }
.grundsaetze b {
  display: block; font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  margin-bottom: .25rem;
}
.grundsaetze span { font-size: .92rem; color: var(--tinte-weich); }

/* --- Fälle / Gesprächsprotokolle ----------------------------------------- */
.faelle { display: grid; gap: 1.4rem; margin-top: 2.4rem; align-items: start; }
@media (min-width: 900px) { .faelle { grid-template-columns: 1fr 1fr; } }

.fall {
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 1.5rem 1.5rem 1.4rem;
  display: flex; flex-direction: column;
}
.fall-kopf { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.fall-nr {
  font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rot);
  border: 1px solid color-mix(in srgb, var(--rot) 40%, transparent);
  border-radius: 999px; padding: .12rem .6rem; white-space: nowrap;
}
.fall-kopf h3 { font-size: 1.25rem; }

.protokoll { display: grid; gap: .75rem; }
.protokoll li {
  display: grid; grid-template-columns: 86px 1fr; gap: .9rem; align-items: start;
}
.protokoll .wer {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tinte-zart); padding-top: .35rem; text-align: right;
}
.protokoll p {
  background: var(--papier); border: 1px solid var(--rand);
  border-radius: 12px 12px 12px 4px; padding: .6rem .85rem; font-size: .98rem;
}
.protokoll .detti .wer { color: var(--rot); }
.protokoll .detti p {
  background: color-mix(in srgb, var(--rot) 8%, var(--karte));
  border-color: color-mix(in srgb, var(--rot) 28%, transparent);
  border-radius: 12px 12px 4px 12px;
}
@media (max-width: 560px) {
  .protokoll li { grid-template-columns: 1fr; gap: .25rem; }
  .protokoll .wer { text-align: left; padding-top: 0; }
}

.fall-fuss {
  margin-top: auto; padding-top: 1.2rem; border-top: 1px dashed var(--rand);
  font-size: .95rem; color: var(--tinte-weich);
}
.fall-fuss b { color: var(--tinte); font-weight: 600; }

/* --- Zuständigkeitsfinder ------------------------------------------------ */
.zf-buehne { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; margin-top: 2.4rem; }
@media (max-width: 900px) { .zf-buehne { grid-template-columns: 1fr; } }

.zf-form {
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--schatten);
}
.zf-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.zf-form textarea {
  width: 100%; min-height: 120px; resize: vertical;
  background: var(--papier); color: var(--tinte);
  border: 1px solid var(--rand-stark); border-radius: 10px;
  padding: .7rem .85rem; font-size: 1rem; font-family: var(--body);
}
.zf-form textarea:focus { outline: 2px solid var(--rot); outline-offset: 1px; border-color: transparent; }
.zf-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.bescheid {
  background: var(--karte); border: 1px solid var(--rand-stark); border-radius: var(--radius);
  box-shadow: var(--schatten-tief); padding: 1.6rem 1.6rem 1.5rem; position: relative; overflow: hidden;
}
.bescheid::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--rot), var(--gelb));
}
.bescheid-kopf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border-bottom: 2px solid var(--tinte); padding-bottom: .7rem; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.bescheid-kopf .bk-titel { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.bescheid-kopf .bk-nr { font-size: .82rem; color: var(--tinte-weich); font-variant-numeric: tabular-nums; }
.bescheid dl { display: grid; grid-template-columns: 150px 1fr; gap: .55rem 1rem; margin: 0; }
.bescheid dt {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tinte-zart); padding-top: .2rem;
}
.bescheid dd { margin: 0; font-size: 1rem; }
.bescheid dd.zustaendig { font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
@media (max-width: 520px) { .bescheid dl { grid-template-columns: 1fr; gap: .1rem .5rem; } .bescheid dt { margin-top: .7rem; } }
.bescheid-detti {
  margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px dashed var(--rand);
}
.bescheid-detti .wer {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rot);
}
.bescheid-detti p { font-family: var(--hand); font-size: 1.5rem; line-height: 1.3; margin-top: .2rem; }
.bescheid .stempel { position: static; display: inline-block; margin-top: 1.2rem; }

/* --- Über Detti ---------------------------------------------------------- */
.detti-bild {
  border: 1px solid var(--rand); border-radius: var(--radius-gross); overflow: hidden;
  box-shadow: var(--schatten-tief);
}
.detti-bild img { width: 100%; display: block; }

.zitat-gross {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25; margin: 1.6rem 0; padding-left: 1.2rem;
  border-left: 4px solid var(--rot);
}

/* --- Einsendekasten ------------------------------------------------------ */
.einsenden { max-width: 720px; margin: 2.4rem auto 0; }

/* Vorbemerkung über einem Gesprächsprotokoll */
.fall-lead {
  font-size: .95rem; color: var(--tinte-weich); font-style: italic;
  border-left: 3px solid var(--rand-stark); padding-left: .9rem;
  margin-bottom: 1.2rem;
}

/* Hinweis unter dem Porträt, dass das Bild KI-generiert ist */
.ki-vermerk {
  display: block; font-family: var(--body); font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--tinte-zart); margin-top: .25rem;
}

/* ==========================================================================
   Aktenlage: Zahlen und Renten-Countdown
   ========================================================================== */
.bilanz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; margin-top: 2.4rem; }
@media (max-width: 800px) { .bilanz { grid-template-columns: 1fr; } }

.zahl-kachel {
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--schatten);
}
.zahl-kachel .zahl {
  font-family: var(--display); font-weight: 800; line-height: 1;
  font-size: clamp(2.2rem, 5vw, 3rem); color: var(--rot);
  font-variant-numeric: tabular-nums;
}
.zahl-kachel .einheit {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--tinte); margin-top: .35rem;
}
.zahl-kachel .dazu {
  font-size: .93rem; color: var(--tinte-weich);
  margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--rand);
}

.countdown {
  margin-top: 1.15rem; background: var(--karte);
  border: 1px solid var(--rand-stark); border-radius: var(--radius);
  box-shadow: var(--schatten-tief); padding: 1.7rem 1.6rem 1.5rem;
  position: relative; overflow: hidden;
}
.countdown::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--rot), var(--gelb));
}
.countdown h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.countdown .cd-ziel { font-size: .92rem; color: var(--tinte-weich); }

.cd-uhr {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .6rem; margin: 1.4rem 0 1.1rem;
}
@media (max-width: 560px) { .cd-uhr { grid-template-columns: repeat(3, 1fr); } }
.cd-feld {
  background: var(--papier); border: 1px solid var(--rand);
  border-radius: 10px; padding: .8rem .4rem .6rem; text-align: center;
}
.cd-feld b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-feld span {
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tinte-zart); margin-top: .4rem;
}
.countdown .cd-fuss {
  font-size: .93rem; color: var(--tinte-weich);
  border-top: 1px dashed var(--rand); padding-top: .9rem;
}

/* Aufzählung „Was beide Berufe gemeinsam haben" */
.gemeinsam { display: grid; gap: .7rem; margin-top: 1.6rem; max-width: 68ch; }
.gemeinsam li {
  position: relative; padding-left: 1.9rem; color: var(--tinte-weich);
}
.gemeinsam li::before {
  content: "–"; position: absolute; left: .4rem; color: var(--rot); font-weight: 700;
}
.gemeinsam li:last-child { color: var(--tinte); font-weight: 600; }

/* ==========================================================================
   Ausbaustufe 2 — Ticketoptik, Motive, Dialogfenster, Terminal,
   Nein-Register, Aushang, Bingo
   ========================================================================== */

/* --- Fälle als Tickets ---------------------------------------------------- */
.fall { overflow: hidden; }
.fall-kopf {
  position: relative; display: block; margin-bottom: 1.3rem;
  padding-bottom: 1.1rem; padding-right: 68px;
  border-bottom: 2px dashed var(--rand-stark);
}
.fall-kopf::before, .fall-kopf::after {
  content: ""; position: absolute; bottom: -10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--papier-tief); border: 1px solid var(--rand);
}
.fall-kopf::before { left: calc(-1.5rem - 10px); }
.fall-kopf::after  { right: calc(-1.5rem - 10px); }

.fall-marke { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.fall-prio {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tinte-zart);
}
.fall-motiv {
  position: absolute; top: -4px; right: 0; width: 60px; height: 60px;
  color: var(--rot); opacity: .9;
}
.fall-motiv svg { width: 100%; height: 100%; }

/* --- Stempel in verschiedenen Größen und Winkeln -------------------------- */
.stempel-frei {
  display: inline-block; font-family: var(--display); font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--rot);
  border: 3px solid var(--rot); border-radius: 8px; padding: .18rem .8rem;
  font-size: 1rem; transform: rotate(-6deg);
  background: color-mix(in srgb, var(--karte) 70%, transparent);
}
.stempel-frei.dreh-rechts { transform: rotate(5deg); }
.stempel-frei.blass { opacity: .55; }

/* --- Telefon hinter dem Porträt ------------------------------------------ */
.hero-bild { position: relative; }
.hero-telefon {
  position: absolute; left: -46px; top: -34px; width: 150px; height: 150px;
  color: var(--rot); opacity: .16; pointer-events: none; z-index: 0;
}
.hero-bild .portraet { position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-telefon { display: none; } }

/* --- Aushang: Sprechstundenzeiten ---------------------------------------- */
.aushang {
  background: var(--karte); border: 1px solid var(--rand);
  box-shadow: var(--schatten-tief); padding: 2rem 2rem 1.6rem;
  max-width: 560px; transform: rotate(-.35deg); position: relative;
  margin-top: 2.4rem;
}
.aushang::before {
  content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--rot); box-shadow: 0 3px 6px rgba(0,0,0,.3);
}
.aushang h3 {
  text-align: center; font-size: 1.35rem; margin-bottom: .3rem;
}
.aushang .aushang-unter {
  text-align: center; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tinte-zart);
  padding-bottom: 1.2rem; margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--tinte);
}
.aushang dl { display: grid; gap: .6rem; margin: 0; }
.aushang .zeile { display: flex; align-items: center; gap: .6rem; }
.aushang dt { font-weight: 600; white-space: nowrap; }
.aushang .punkte { flex: 1; align-self: center; border-bottom: 1px dotted var(--rand-stark); }
.aushang dd { margin: 0; white-space: nowrap; color: var(--tinte-weich); font-variant-numeric: tabular-nums; }
.aushang .aushang-fuss {
  margin-top: 1.4rem; padding-top: 1rem; border-top: 1px dashed var(--rand);
  font-size: .92rem; color: var(--tinte-weich); text-align: center;
}

/* --- Nein-Register -------------------------------------------------------- */
.register { margin-top: 2.2rem; border-top: 2px solid var(--tinte); }
.register-kopf {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding: .8rem 0; border-bottom: 1px solid var(--rand);
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tinte-zart);
}
.register li {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding: .9rem 0; border-bottom: 1px solid var(--rand);
}
.register .sagt { font-weight: 600; }
.register .meint { color: var(--tinte-weich); position: relative; padding-left: 1.7rem; }
.register .meint::before {
  content: "→"; position: absolute; left: 0; color: var(--rot); font-weight: 700;
}
@media (max-width: 700px) {
  .register-kopf { display: none; }
  .register li { grid-template-columns: 1fr; gap: .3rem; padding: 1rem 0; }
}

/* --- Dialogfenster „Computer sagt Nein" ---------------------------------- */
.dialog-buehne {
  position: relative; min-height: 300px; display: grid; place-items: center;
  padding: 1.5rem 0;
}
.dialog {
  width: min(100%, 470px); background: var(--karte);
  border: 1px solid var(--rand-stark); border-radius: 10px;
  box-shadow: var(--schatten-tief); overflow: hidden;
}
.dialog-titel {
  display: flex; align-items: center; gap: .6rem;
  background: var(--papier-tief); border-bottom: 1px solid var(--rand);
  padding: .6rem .9rem; font-size: .88rem; font-weight: 600;
}
.dialog-titel .ampeln { display: flex; gap: .35rem; margin-left: auto; }
.dialog-titel .ampeln i {
  width: 11px; height: 11px; border-radius: 50%; background: var(--rand-stark);
  display: block;
}
.dialog-titel .ampeln i:last-child { background: var(--rot); }
.dialog-koerper { display: flex; gap: 1rem; padding: 1.4rem 1.2rem 1.2rem; }
.dialog-koerper .zeichen {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800;
  font-size: 1.6rem; color: var(--auf-rot); background: var(--rot);
}
.dialog-koerper p { font-size: .98rem; }
.dialog-koerper .klein { font-size: .86rem; color: var(--tinte-zart); margin-top: .4rem; }
.dialog-knoepfe {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end;
  padding: .9rem 1.2rem 1.2rem; border-top: 1px solid var(--rand);
  position: relative;
}
.dialog-knopf {
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  padding: .5rem 1.2rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--rand-stark); background: var(--papier); color: var(--tinte);
}
.dialog-knopf:hover { background: var(--papier-tief); }
.dialog-knopf.haupt { background: var(--rot); border-color: var(--rot); color: var(--auf-rot); }
.dialog-knopf.fluechtig { transition: transform .16s ease; will-change: transform; }
.dialog-quittung {
  margin-top: 1rem; text-align: center; min-height: 2rem;
  font-family: var(--hand); font-size: 1.45rem; color: var(--rot);
}

/* --- Terminal ------------------------------------------------------------- */
.terminal {
  background: #101319; color: #7CE38B; border-radius: 12px;
  border: 1px solid rgba(124,227,139,.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(.82rem, 1.15vw, 1.02rem); line-height: 1.75;
  padding: 1.5rem 1.6rem 1.6rem;
  box-shadow: var(--schatten-tief); overflow-x: auto;
  min-height: 560px;
}
@media (max-width: 700px) { .terminal { min-height: 520px; padding: 1.1rem 1rem; } }
.terminal p { white-space: pre; }
.terminal .dim { color: rgba(124,227,139,.62); }
.terminal .ok { color: #EFC14E; font-weight: 700; }
.terminal .tl-kopf {
  display: flex; align-items: center; gap: .45rem;
  padding-bottom: .9rem; margin-bottom: 1rem;
  border-bottom: 1px solid rgba(124,227,139,.18);
}
.terminal .tl-kopf b {
  margin-left: .7rem; font-weight: 500; font-size: .82rem;
  color: rgba(124,227,139,.55); letter-spacing: .04em;
}
.terminal .tl-kopf i { width: 10px; height: 10px; border-radius: 50%; background: rgba(124,227,139,.35); display: block; }
.terminal p { margin: 0; }
.terminal .prompt { color: #55C57A; }
.terminal .antwort { color: #F0705F; font-weight: 700; letter-spacing: .12em; font-size: 1.15em; }
.terminal .cursor {
  display: inline-block; width: .55em; height: 1.05em; vertical-align: -.16em;
  background: #7CE38B; animation: blinken 1.05s steps(1) infinite;
}
@keyframes blinken { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .terminal .cursor { animation: none; } }

/* --- Detti-Bingo ---------------------------------------------------------- */
.bingo-huelle { position: relative; max-width: 620px; margin-inline: auto; margin-top: 2.2rem; }
.bingo-blatt {
  background: var(--karte); border: 1px solid var(--rand-stark);
  border-radius: var(--radius); box-shadow: var(--schatten-tief);
  padding: 1.4rem 1.4rem 1.2rem;
}
.bingo-kopf {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; border-bottom: 2px solid var(--tinte);
  padding-bottom: .7rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.bingo-kopf .bk-titel { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.bingo-kopf .bk-stand { font-size: .84rem; color: var(--tinte-weich); }
.bingo-karte { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.bingo-feld {
  aspect-ratio: 1; border: 1px solid var(--rand); border-radius: 8px;
  background: var(--papier); color: var(--tinte);
  padding: .35rem .25rem; cursor: pointer;
  display: grid; place-items: center; text-align: center;
  font-size: clamp(.5rem, 1.55vw, .76rem); line-height: 1.2;
  font-family: var(--body); font-weight: 600;
  transition: background .14s ease, border-color .14s ease;
}
.bingo-feld:hover { border-color: var(--rand-stark); }
.bingo-feld.markiert {
  background: color-mix(in srgb, var(--rot) 16%, var(--karte));
  border-color: var(--rot); color: var(--rot);
}
.bingo-feld.frei {
  background: color-mix(in srgb, var(--gelb) 20%, var(--karte));
  border-color: var(--gelb); font-family: var(--display); font-weight: 800;
  font-size: clamp(.6rem, 1.9vw, .9rem);
}
.bingo-feld.frei.markiert { color: var(--tinte); }
.bingo-stempel {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none; opacity: 0; transition: opacity .25s ease;
}
.bingo-stempel.an { opacity: 1; }
.bingo-stempel b {
  font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 12vw, 6rem);
  letter-spacing: .12em; color: var(--rot);
  border: 8px solid var(--rot); border-radius: 16px; padding: .1em .3em;
  transform: rotate(-9deg);
  background: color-mix(in srgb, var(--karte) 72%, transparent);
}
.bingo-fuss { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; align-items: center; }

/* ==========================================================================
   Rentenband — der wichtigste Termin bekommt die größte Bühne
   ========================================================================== */
.rentenband {
  background: var(--band-grund); color: var(--band-text);
  border-block: 1px solid var(--band-linie);
  padding: clamp(2.6rem, 6vw, 4.2rem) 0;
  position: relative; overflow: hidden;
}
.rentenband::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(239,174,42,.16), transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(200,68,60,.20), transparent 50%);
  pointer-events: none;
}
.rentenband .shell { position: relative; z-index: 1; }
.rb-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gelb); margin-bottom: .8rem;
}
.rb-tag::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.rentenband h2 { color: var(--band-text); margin-bottom: .5rem; }
.rb-ziel { color: var(--band-weich); font-size: 1.05rem; }
.rb-ziel strong { color: var(--gelb); }

.rb-uhr {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .8rem; margin: 2rem 0 1.6rem;
}
@media (max-width: 620px) { .rb-uhr { grid-template-columns: repeat(3, 1fr); gap: .6rem; } }
.rb-feld {
  background: var(--band-flaeche);
  border: 1px solid var(--band-linie);
  border-radius: 14px; padding: 1.1rem .4rem .8rem; text-align: center;
}
.rb-feld b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 6.4vw, 4.2rem); line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--band-text);
}
.rb-feld span {
  display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--band-zart); margin-top: .6rem;
}
.rb-feld:last-child b { color: var(--gelb); }

.rb-balken-kopf {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .86rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--band-zart); margin-bottom: .5rem;
}
.rb-balken {
  height: 12px; border-radius: 999px; overflow: hidden;
  background: var(--band-flaeche); border: 1px solid var(--band-linie);
}
.rb-balken i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gelb), var(--rot-hell));
  transition: width .8s ease;
}
.rb-fuss {
  margin-top: 1.4rem; font-size: .95rem; color: var(--band-weich);
  max-width: 70ch;
}

/* Kleingedrucktes über der Fußzeile */
.kleingedruckt {
  border-top: 1px solid var(--rand); background: var(--papier);
  padding: 1.4rem 0;
}
.kleingedruckt p {
  font-size: .86rem; line-height: 1.6; color: var(--tinte-zart);
  max-width: 78ch; margin-inline: auto; text-align: center;
}
.kleingedruckt a { color: var(--tinte-weich); font-weight: 600; }
.kleingedruckt a:hover { color: var(--rot); }

/* ==========================================================================
   Die Spielecke — Nerdkram mit trockenen Bildunterschriften
   ========================================================================== */
.spielecke { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; margin-top: 2.4rem; }
@media (max-width: 1000px) { .spielecke { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .spielecke { grid-template-columns: 1fr; } }

.spielzeug {
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.2rem; box-shadow: var(--schatten);
  transition: transform .16s ease, box-shadow .16s ease;
}
.spielzeug:hover { transform: translateY(-3px); box-shadow: var(--schatten-tief); }
.spielzeug .sz-bild {
  width: 62px; height: 62px; color: var(--rot); margin-bottom: .9rem;
}
.spielzeug .sz-bild svg { width: 100%; height: 100%; }
.spielzeug h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.spielzeug p { font-size: .93rem; color: var(--tinte-weich); }

/* --- Kleine Symbole neben den Abschnittsüberschriften -------------------- */
.h2-mit-bild { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.h2-bild { width: 44px; height: 44px; color: var(--rot); flex: none; }
.h2-bild svg { width: 100%; height: 100%; }

/* --- Der Tonknopf im Hero ------------------------------------------------ */
.btn-ton { gap: .55rem; }
.btn-ton svg { width: 19px; height: 19px; flex: none; }
.btn-ton.laeuft { background: var(--papier-tief); }

/* --- Die Ente meldet sich ------------------------------------------------ */
.ente {
  position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 45;
  width: min(320px, calc(100vw - 2.4rem));
  background: var(--karte); border: 1px solid var(--rand-stark);
  border-radius: 16px; box-shadow: var(--schatten-tief);
  padding: 1rem 1rem .85rem; display: flex; gap: .8rem;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.ente.da { opacity: 1; transform: none; pointer-events: auto; }
.ente .ente-bild { width: 46px; height: 46px; flex: none; color: var(--gelb); }
.ente .ente-bild svg { width: 100%; height: 100%; }
.ente p { font-size: .93rem; line-height: 1.5; }
.ente .ente-fuss { margin-top: .6rem; display: flex; gap: .6rem; align-items: center; }
.ente button {
  background: none; border: 1px solid var(--rand-stark); border-radius: 8px;
  padding: .28rem .7rem; font-size: .84rem; font-weight: 600; cursor: pointer;
  color: var(--tinte-weich);
}
.ente button:hover { background: var(--papier); color: var(--tinte); }
.ente .ente-zu {
  position: absolute; top: .45rem; right: .55rem; border: none; padding: .1rem .35rem;
  font-size: 1.1rem; line-height: 1; color: var(--tinte-zart);
}
@media (max-width: 700px) { .ente { left: .8rem; right: .8rem; bottom: .8rem; width: auto; } }

/* Mailadresse gegen Adresssammler: die Störteile sind nur im Quelltext da */
.mail-weg { display: none; }
a.mail { font-weight: 600; }

/* ==========================================================================
   Ausbaustufe 3 — Symbole überall, Dienstausweis, zweispaltiger Namensteil
   ========================================================================== */

/* Symbole in der Dienstanweisung */
.grundsaetze .gs-bild { width: 32px; height: 32px; color: var(--rot); margin-bottom: .7rem; }
.grundsaetze .gs-bild svg { width: 100%; height: 100%; }

/* Symbole auf den Zahlen-Kacheln */
.zahl-kachel .zk-bild {
  width: 36px; height: 36px; color: var(--rot); margin-bottom: .8rem; opacity: .9;
}
.zahl-kachel .zk-bild svg { width: 100%; height: 100%; }

/* Namensteil: Text links, Aushang rechts */
.namen-raster {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 4vw, 3.4rem); align-items: start; margin-top: 2rem;
}
@media (max-width: 950px) { .namen-raster { grid-template-columns: 1fr; } }
.namen-raster .aushang { margin-top: 0; max-width: none; }
.namen-raster .gemeinsam { margin-top: 0; }

/* Über-Detti: Text links, Dienstausweis rechts */
.ueber-raster {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 3.6rem); align-items: start;
}
@media (max-width: 950px) { .ueber-raster { grid-template-columns: 1fr; } }

.ausweis {
  background: var(--karte); border: 1px solid var(--rand-stark);
  border-radius: 16px; box-shadow: var(--schatten-tief);
  overflow: hidden; position: relative; max-width: 400px;
  transform: rotate(1.2deg);
}
.ausweis::before {
  content: ""; display: block; height: 8px;
  background: linear-gradient(90deg, var(--rot), var(--gelb), var(--gruen));
}
.ausweis-loch {
  width: 54px; height: 10px; border-radius: 999px;
  background: var(--papier-tief); border: 1px solid var(--rand-stark);
  margin: .9rem auto .2rem;
}
.ausweis-kopf {
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1.2rem 1rem; border-bottom: 2px solid var(--tinte);
}
.ausweis-kopf .aw-mark { width: 42px; height: 42px; flex: none; border-radius: 9px; }
.ausweis-kopf .aw-titel {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tinte-zart);
}
.ausweis-kopf .aw-name { font-family: var(--display); font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.ausweis dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem .9rem; padding: 1.1rem 1.2rem 1.2rem; margin: 0; }
.ausweis dt {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tinte-zart); padding-top: .18rem; white-space: nowrap;
}
.ausweis dd { margin: 0; font-size: .96rem; font-weight: 600; }
.ausweis dd.zart { font-weight: 400; color: var(--tinte-weich); }
.ausweis .aw-stempel {
  position: absolute; right: 14px; bottom: 52px;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--rot);
  border: 4px solid var(--rot); border-radius: 9px; padding: .18rem .85rem;
  transform: rotate(-12deg); background: color-mix(in srgb, var(--karte) 78%, transparent);
  pointer-events: none;
}
.ausweis-fuss {
  border-top: 1px dashed var(--rand); padding: .75rem 1.2rem .95rem;
  font-size: .8rem; color: var(--tinte-zart);
}

/* Fußnote unter dem Zuständigkeitsbescheid */
.bescheid-fuss {
  margin-top: 1.1rem; padding-top: .9rem; border-top: 1px dashed var(--rand);
  font-size: .86rem; color: var(--tinte-zart); max-width: 46ch;
}

/* Der Tonknopf macht auf sich aufmerksam, wenn der Browser die
   automatische Wiedergabe verweigert hat */
@keyframes pochen {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rot) 55%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in srgb, var(--rot) 0%, transparent); }
}
.btn-ton.pocht {
  border-color: var(--rot); color: var(--rot);
  animation: pochen 1.6s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .btn-ton.pocht { animation: none; } }

/* ==========================================================================
   Der Mauszeiger — auf Zeigergeräten sagt schon der Cursor Nein
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("zeiger-nein.png") 2 2, auto; }

  a, button, summary, label, select,
  .bingo-feld, .wahl label, [role="tab"], .nach-oben {
    cursor: url("zeiger-nagut.png") 2 2, pointer;
  }

  input, textarea { cursor: text; }
}
