/* ==========================================================================
   Falz — Design-System „Einsteckbuch"
   Tag = Albumkarton (kühles Grau-Violett) + Druckschwarz · Nacht = Albumschwarz
   Akzent Karmin (die klassische Markenfarbe), Gummi-Gelb nur für Richtwerte.
   Signature: Pergamin-Klemmstreifen — Marken stecken in halbtransparenten Streifen.
   ========================================================================== */

@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+2013-2014, U+2212; } /* Haarlinien-Striche der Bodoni sind kaum sichtbar → Striche aus der Grotesk */
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* metrik-angepasste Fallbacks: kein Sprung beim Font-Swap */
@font-face { font-family: "Falz Display Fallback"; src: local("Georgia"), local("Times New Roman"), local("Liberation Serif"); size-adjust: 97%; ascent-override: 98%; descent-override: 24%; }
@font-face { font-family: "Falz Body Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 99%; ascent-override: 96%; descent-override: 25%; }

:root {
  color-scheme: light;
  /* Tag — Albumkarton */
  --grund: #eceaf0;          /* Seitengrund */
  --blatt: #fbfafd;          /* Karten / Flächen */
  --blatt-2: #f3f1f6;        /* eingelassene Flächen */
  --tinte: #1b1820;          /* Druckschwarz */
  --tinte-2: #3b3742;
  --grau: #5a5563;           /* gedämpfter Text */
  --linie: rgba(27, 24, 32, .13);
  --linie-stark: rgba(27, 24, 32, .3);
  --karmin: #a3173a;         /* Akzent, Links, Fokus */
  --karmin-hauch: rgba(163, 23, 58, .085);
  --knopf: #a3173a; --knopf-hover: #8a1131; --knopf-text: #fff;
  --gummi: #ebbd4e;          /* Gummierung — Richtwert-Hinterlegung */
  --gummi-hauch: rgba(235, 189, 78, .22);
  --gummi-text: #714a00;
  /* Status (nur Bedeutung, immer mit Form + Wort) */
  --ok: #1d6b44; --keins: #5a5563; --laeuft: #714a00; --fehler: #a2290e;
  --schatten: 0 1px 2px rgba(27, 24, 32, .06), 0 8px 24px -12px rgba(27, 24, 32, .18);
  --schatten-hoch: 0 2px 4px rgba(27, 24, 32, .08), 0 18px 36px -14px rgba(27, 24, 32, .32);

  /* Album — Einsteckbuch-Schwarz (Seitenleiste, Hero, Einsteckfelder) in beiden Modi dunkel */
  --schwarz: #131216;
  --schwarz-2: #1c1b20;
  --schwarz-3: #27252c;
  --album-ink: #efedf3;
  --album-grau: #aba7b6;
  --album-linie: rgba(239, 237, 243, .11);
  --album-karmin: #ff8ba3;
  --pergamin: rgba(246, 241, 230, .085);
  --pergamin-dicht: rgba(246, 241, 230, .16);
  --pergamin-kante: rgba(255, 251, 242, .44);

  --ff-display: "Bodoni Moda", "Falz Display Fallback", Georgia, serif;
  --ff-body: "Schibsted Grotesk", "Falz Body Fallback", Arial, sans-serif;
  --ff-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-s: 4px; --r: 8px; --r-l: 14px;
  --maxw: 1200px;
  --ease: cubic-bezier(.3, .9, .25, 1);       /* Haus-Kurve: Einstecken — rasch, dann satt */
  --ease-zug: cubic-bezier(.5, 0, .2, 1);     /* Herausziehen mit der Pinzette */
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --grund: #121115; --blatt: #1b1a1f; --blatt-2: #17161b;
  --tinte: #efedf3; --tinte-2: #d2cedb; --grau: #a9a4b4;
  --linie: rgba(239, 237, 243, .12); --linie-stark: rgba(239, 237, 243, .28);
  --karmin: #ff8ba3; --karmin-hauch: rgba(255, 139, 163, .1);
  --knopf: #b81d45; --knopf-hover: #cc2a53; --knopf-text: #fff;
  --gummi: #ebbd4e; --gummi-hauch: rgba(235, 189, 78, .14); --gummi-text: #f0c766;
  --ok: #72d29f; --keins: #a9a4b4; --laeuft: #f0c766; --fehler: #ff9479;
  --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px -14px rgba(0, 0, 0, .7);
  --schatten-hoch: 0 2px 6px rgba(0, 0, 0, .5), 0 20px 40px -16px rgba(0, 0, 0, .85);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --grund: #121115; --blatt: #1b1a1f; --blatt-2: #17161b;
    --tinte: #efedf3; --tinte-2: #d2cedb; --grau: #a9a4b4;
    --linie: rgba(239, 237, 243, .12); --linie-stark: rgba(239, 237, 243, .28);
    --karmin: #ff8ba3; --karmin-hauch: rgba(255, 139, 163, .1);
    --knopf: #b81d45; --knopf-hover: #cc2a53; --knopf-text: #fff;
    --gummi: #ebbd4e; --gummi-hauch: rgba(235, 189, 78, .14); --gummi-text: #f0c766;
    --ok: #72d29f; --keins: #a9a4b4; --laeuft: #f0c766; --fehler: #ff9479;
    --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px -14px rgba(0, 0, 0, .7);
    --schatten-hoch: 0 2px 6px rgba(0, 0, 0, .5), 0 20px 40px -16px rgba(0, 0, 0, .85);
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-padding-top: 84px; }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 1rem/1.6 var(--ff-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: manual; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.h-klein { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--karmin); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
small, .small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.muted { color: var(--grau); }
.mono, code, kbd { font-family: var(--ff-mono); font-size: .92em; }
code { overflow-wrap: anywhere; }
.num { font-family: var(--ff-display); font-variant-numeric: lining-nums tabular-nums; }
.lead { font-size: 1.1rem; color: var(--tinte-2); max-width: 62ch; }
.eyebrow { display: inline-block; font: 500 .74rem/1.3 var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); margin-bottom: .55rem; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 1.5rem 0; }
::selection { background: var(--karmin); color: #fff; }

.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.row > * { min-width: 0; }
.zentriert { justify-content: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* Fokus: Karmin-Ring, immer sichtbar */
:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--karmin); outline-offset: 2.5px; border-radius: 3px; }
.album :focus-visible, .buehne :focus-visible, .auth-album :focus-visible { outline-color: var(--album-karmin); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--knopf); color: var(--knopf-text); padding: .65rem 1rem; border-radius: var(--r); font-weight: 600; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

/* ---------- Logo / Wortmarke ---------- */
.wortmarke { display: inline-flex; align-items: center; gap: .5rem; font: 600 1.55rem/1 var(--ff-display); letter-spacing: -.01em; color: inherit; text-decoration: none; min-height: 44px; }
.wortmarke .logo { width: 32px; height: 32px; flex: none; }
.logo-marke { fill: var(--knopf); }
.logo-f { fill: #fff; }
.logo-falz { fill: rgba(255, 255, 255, .55); }

/* ---------- Knöpfe ---------- */
.btn { --b: var(--blatt); --t: var(--tinte); --k: var(--linie-stark);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.1rem; max-width: 100%;
  font: 600 .97rem/1.2 var(--ff-body); color: var(--t); background: var(--b); border: 1px solid var(--k); border-radius: var(--r);
  text-decoration: none; cursor: pointer; text-align: center; white-space: normal; overflow-wrap: anywhere;
  transition: transform .14s var(--ease), background-color .16s ease, border-color .16s ease, box-shadow .2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--schatten); }
.btn:active { transform: translateY(1px) scale(.97); box-shadow: none; transition-duration: .06s; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn--karmin { --b: var(--knopf); --t: var(--knopf-text); --k: transparent; }
.btn--karmin:hover { --b: var(--knopf-hover); }
.btn--rahmen { --b: transparent; }
.btn--rahmen:hover { --b: var(--blatt); }
.btn--geist { --b: transparent; --k: transparent; }
.btn--geist:hover { --b: var(--karmin-hauch); box-shadow: none; }
.btn--gefahr { --b: transparent; --t: var(--fehler); --k: currentColor; }
.btn--gefahr:hover { --b: var(--fehler); --t: var(--blatt); --k: var(--fehler); }
.btn--klein { min-height: 38px; padding: .4rem .8rem; font-size: .9rem; }
.btn--icon { padding: .4rem; min-width: 44px; }
.btn--block { width: 100%; }
@media (pointer: coarse) { .btn--klein { min-height: 44px; } }
.spin { width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: drehen .7s linear infinite; flex: none; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ---------- Formulare ---------- */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: .93rem; }
.input { width: 100%; min-width: 0; min-height: 46px; padding: .6rem .8rem; font: 400 1rem/1.4 var(--ff-body); color: var(--tinte); background: var(--blatt); border: 1px solid var(--linie-stark); border-radius: var(--r); transition: border-color .15s ease, box-shadow .15s ease; }
.input:hover { border-color: var(--tinte-2); }
.input:focus-visible { outline: none; border-color: var(--karmin); box-shadow: 0 0 0 3px var(--karmin-hauch), 0 0 0 1px var(--karmin); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; padding-right: 2.4rem; background-image: linear-gradient(45deg, transparent 50%, var(--grau) 50%), linear-gradient(135deg, var(--grau) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.input[aria-invalid="true"] { border-color: var(--fehler); }
.input.mono { font-family: var(--ff-mono); font-size: .95rem; }
.hint { font-size: .86rem; color: var(--grau); }
.err { font-size: .9rem; color: var(--fehler); font-weight: 600; }
.form-fehler { padding: .7rem .9rem; border-radius: var(--r); border: 1px solid var(--fehler); color: var(--fehler); background: var(--karmin-hauch); font-weight: 600; overflow-wrap: anywhere; }
.pw-zeile { display: flex; gap: .5rem; }
.pw-zeile .input { flex: 1 1 auto; }
.pw-zeile .btn { flex: none; overflow-wrap: normal; white-space: nowrap; }
.pw-meter { height: 4px; border-radius: 4px; background: var(--linie); overflow: hidden; margin-top: .2rem; }
.pw-meter::before { content: ""; display: block; height: 100%; width: 100%; background: var(--karmin); transform-origin: left; transform: scaleX(0); transition: transform .25s var(--ease), background-color .2s; }
.pw-meter[data-stufe="1"]::before { transform: scaleX(.25); background: var(--fehler); }
.pw-meter[data-stufe="2"]::before { transform: scaleX(.5); background: var(--laeuft); }
.pw-meter[data-stufe="3"]::before { transform: scaleX(.75); background: var(--ok); }
.pw-meter[data-stufe="4"]::before { transform: scaleX(1); background: var(--ok); }
.check { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; font-size: .95rem; min-height: 44px; padding-top: .55rem; }
.check input { width: 20px; height: 20px; margin: .12rem 0 0; accent-color: var(--knopf); flex: none; }
.check small { display: block; color: var(--grau); }
.kopierzeile { display: flex; gap: .5rem; min-width: 0; }
.kopierzeile .input { flex: 1 1 auto; }
.kopierzeile .btn { flex: none; white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 480px) { .kopierzeile { flex-direction: column; } }

/* Schalter */
.schalter { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; min-height: 44px; position: relative; }
.schalter-input { position: absolute; opacity: 0; width: 46px; height: 28px; margin: 0; cursor: pointer; }
.schalter-bahn { width: 46px; height: 28px; border-radius: 99px; background: var(--linie-stark); position: relative; flex: none; transition: background-color .2s ease; }
.schalter-bahn::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blatt); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .22s var(--ease); }
.schalter-input:checked + .schalter-bahn { background: var(--knopf); }
.schalter-input:checked + .schalter-bahn::after { transform: translateX(18px); }
.schalter-input:focus-visible + .schalter-bahn { outline: 2.5px solid var(--karmin); outline-offset: 2px; }
.schalter-text small { display: block; color: var(--grau); font-size: .85rem; }

/* ---------- Karten, Hinweise ---------- */
.card { background: var(--blatt); border: 1px solid var(--linie); border-radius: var(--r-l); padding: clamp(1rem, .8rem + 1vw, 1.5rem); min-width: 0; }
.notiz { padding: .85rem 1rem; border-radius: var(--r); border: 1px solid var(--linie); background: var(--blatt-2); overflow-wrap: anywhere; }
.notiz p:last-child { margin-bottom: 0; }
.notiz--warn { border-color: color-mix(in srgb, var(--laeuft) 45%, transparent); background: var(--gummi-hauch); }
.notiz--fehler { border-color: color-mix(in srgb, var(--fehler) 50%, transparent); background: var(--karmin-hauch); }
.lade { padding: 2rem 0; color: var(--grau); display: flex; align-items: center; gap: .6rem; }
.lade::before { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: drehen .7s linear infinite; }
.leer { text-align: center; padding: 2.5rem 1.25rem; }
.leer .muted { max-width: 52ch; margin-inline: auto; }

/* Status-Chips: Form + Wort */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .55rem .18rem .45rem; border-radius: 99px; font: 500 .78rem/1.35 var(--ff-mono); letter-spacing: .02em; border: 1px solid currentColor; color: var(--grau); max-width: 100%; }
.chip-text { min-width: 0; overflow-wrap: anywhere; }
.chip-form { width: 8px; height: 8px; flex: none; background: currentColor; }
.chip--ok { color: var(--ok); }
.chip--ok .chip-form { border-radius: 1px; transform: rotate(45deg); }
.chip--keins { color: var(--keins); }
.chip--keins .chip-form { background: transparent; border: 1.5px solid currentColor; }
.chip--laeuft { color: var(--laeuft); }
.chip--laeuft .chip-form { border-radius: 50%; background: transparent; border: 2px solid currentColor; border-right-color: transparent; animation: drehen 1s linear infinite; }
.chip--fehler { color: var(--fehler); }
.chip--fehler .chip-form { background: none; position: relative; }
.chip--fehler .chip-form::before, .chip--fehler .chip-form::after { content: ""; position: absolute; left: 3px; top: -1px; width: 2px; height: 10px; background: currentColor; transform: rotate(45deg); }
.chip--fehler .chip-form::after { transform: rotate(-45deg); }
.chip--neutral .chip-form { border-radius: 50%; }
.chip--klein { font-size: .72rem; padding: .1rem .45rem .1rem .38rem; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; z-index: 90; left: 50%; bottom: 84px; transform: translateX(-50%); display: grid; gap: .5rem; width: min(100% - 32px, 440px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; border-radius: var(--r); background: var(--schwarz-2); color: var(--album-ink); box-shadow: var(--schatten-hoch); border-top: 1px solid var(--pergamin-kante); font-size: .95rem; animation: toast-rein .32s var(--ease); pointer-events: auto; overflow-wrap: anywhere; }
.toast .chip-form { width: 9px; height: 9px; background: #72d29f; transform: rotate(45deg); }
.toast--fehler .chip-form { background: #ff9479; transform: none; border-radius: 50%; }
.toast--hinweis .chip-form { background: #f0c766; border-radius: 50%; }
.toast.weg { opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
@keyframes toast-rein { from { opacity: 0; transform: translateY(-10px); } }
@media (min-width: 981px) { .toast-host { bottom: 24px; } }

/* ---------- Dialog ---------- */
.dialog-back { position: fixed; inset: 0; z-index: 80; background: rgba(12, 11, 14, .62); display: grid; place-items: center; padding: 16px; animation: einblenden .18s ease; overflow-y: auto; }
.dialog-offen, .dialog-offen body { overflow: hidden; }
.dialog { width: min(100%, 520px); max-height: calc(100svh - 32px); display: flex; flex-direction: column; background: var(--blatt); border-radius: var(--r-l); box-shadow: var(--schatten-hoch); border: 1px solid var(--linie); animation: dialog-rein .28s var(--ease); min-width: 0; }
.dialog--breit { width: min(100%, 860px); }
.dialog--voll { width: min(100%, 1100px); height: calc(100svh - 32px); }
.dialog-kopf { display: flex; align-items: center; gap: .75rem; padding: .8rem .8rem .8rem 1.25rem; border-bottom: 1px solid var(--linie); }
.dialog-kopf h2 { flex: 1; margin: 0; font-size: 1.3rem; min-width: 0; }
.dialog-inhalt { padding: 1.1rem 1.25rem; overflow: auto; flex: 1 1 auto; min-height: 0; overflow-wrap: anywhere; }
.dialog-fuss { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; padding: .9rem 1.25rem; border-top: 1px solid var(--linie); }
@media (max-width: 560px) { .dialog-back { padding: 8px; } .dialog--voll { height: calc(100svh - 16px); } .dialog-fuss .btn { flex: 1 1 auto; } }
@keyframes einblenden { from { opacity: 0; } }
@keyframes dialog-rein { from { opacity: 0; transform: translateY(-14px); } }

/* ---------- Farbmodus-Knopf ---------- */
.thema { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r); border: 1px solid var(--linie-stark); background: transparent; color: inherit; cursor: pointer; transition: transform .14s var(--ease), background-color .15s; }
.thema:hover { background: var(--karmin-hauch); }
.thema:active { transform: scale(.94); }
.thema svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: transform .35s var(--ease), opacity .25s; }
.thema .mond { opacity: 0; transform: rotate(-40deg) scale(.6); }
:root[data-theme="dark"] .thema .sonne { opacity: 0; transform: rotate(40deg) scale(.6); }
:root[data-theme="dark"] .thema .mond { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thema .sonne { opacity: 0; transform: rotate(40deg) scale(.6); }
  :root:not([data-theme="light"]) .thema .mond { opacity: 1; transform: none; }
}

/* ==========================================================================
   Signature: Einsteckblatt + Pergamin-Streifen
   ========================================================================== */
.einsteckblatt { --zeile: 132px; background-color: var(--schwarz);
  background-image: repeating-linear-gradient(to bottom,
    transparent 0 calc(var(--zeile) * .44),
    var(--pergamin-kante) calc(var(--zeile) * .44) calc(var(--zeile) * .44 + 1px),
    var(--pergamin-dicht) calc(var(--zeile) * .44 + 1px) calc(var(--zeile) * .44 + 4px),
    var(--pergamin) calc(var(--zeile) * .44 + 4px) calc(var(--zeile) - 8px),
    transparent calc(var(--zeile) - 8px) var(--zeile)); }
.pergamin { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 251, 242, .2), rgba(246, 241, 230, .1) 10%, rgba(246, 241, 230, .07) 70%, rgba(246, 241, 230, .11));
  border-top: 1px solid var(--pergamin-kante); -webkit-backdrop-filter: saturate(.8) brightness(1.04); backdrop-filter: saturate(.8) brightness(1.04); }

/* Einstecken: von oben in den Streifen gleiten (einmal) */
.steckt-ein { animation: einstecken .62s var(--ease) both; }
@keyframes einstecken { 0% { transform: translateY(-22px) rotate(-2.5deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }

/* Erfolgszustand: Marke gleitet in ein leeres Feld */
.eingesteckt { text-align: center; padding-block: 1.75rem; }
.eingesteckt .lead { margin-inline: auto; }
.eingesteckt-feld { position: relative; width: 120px; height: 104px; margin: 0 auto 1.1rem; border-radius: var(--r); background: var(--schwarz); overflow: hidden; }
.eingesteckt-marke { position: absolute; left: 34px; top: 14px; width: 52px; height: 62px; color: var(--knopf); animation: einstecken .7s var(--ease) .1s both; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.eingesteckt-streifen { position: absolute; left: 0; right: 0; bottom: 8px; height: 50px; border-top: 1px solid var(--pergamin-kante); background: var(--pergamin-dicht); }

/* Reveal: von oben einstecken, nur unterhalb des ersten Viewports.
   Als Animation (fill backwards), damit Hover-Transitions der Karten unberührt bleiben. */
.auf-an .auf:not(.da) { opacity: 0; }
.auf.da:not(.sofort) { animation: auf-rein .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes auf-rein { from { opacity: 0; transform: translateY(-12px); } }

/* ==========================================================================
   Auth-Seiten: links Albumblatt mit These, rechts Formular
   ========================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100svh; }
.auth-album { --zeile: 150px; position: relative; color: var(--album-ink); padding: 28px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; overflow: hidden; }
.auth-album .wortmarke { color: var(--album-ink); }
.auth-these { font: 500 clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem)/1.02 var(--ff-display); letter-spacing: -.02em; margin: 0 0 .75rem; }
.auth-these em { font-style: italic; color: var(--album-karmin); }
.auth-album p { color: var(--album-grau); max-width: 36ch; }
.auth-album .tiny { font-family: var(--ff-mono); letter-spacing: .04em; margin: 0; }
.auth-marken { display: flex; gap: 14px; align-items: flex-end; }
.auth-marken svg { width: 64px; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.auth-marken svg:nth-child(2) { transform: rotate(3deg); }
.auth-marken svg:nth-child(3) { transform: rotate(-2deg); }
.auth-seite { display: flex; flex-direction: column; min-width: 0; }
.auth-oben { display: flex; justify-content: flex-end; padding: 16px 20px 0; }
.auth-mitte { flex: 1; display: grid; place-items: center; padding: 24px 16px 40px; }
.auth-karte { width: min(100%, 440px); }
.auth-karte h1 { margin-bottom: .3rem; }
.auth-karte .lead { margin-bottom: 1.5rem; }
.auth-alt { margin-top: 1.25rem; font-size: .95rem; color: var(--grau); }
.auth-fuss { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; justify-content: center; padding: 0 16px 20px; font-size: .9rem; }
.auth-fuss a { color: var(--grau); min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-album { --zeile: 96px; padding: 18px 16px 22px; gap: 1rem; }
  .auth-album .auth-these { font-size: clamp(1.9rem, 1.4rem + 3vw, 2.6rem); }
  .auth-marken, .auth-album .tiny { display: none; }
}

/* ==========================================================================
   Schlichte Seiten (Recht, 404)
   ========================================================================== */
.schlicht-kopf { border-bottom: 1px solid var(--linie); background: var(--blatt); }
.schlicht-kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.recht { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem); max-width: 760px; }
.recht h1 { margin-bottom: 1rem; }
.recht h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.recht h3 { margin-top: 1.4rem; font-size: 1.1rem; font-family: var(--ff-body); font-weight: 700; letter-spacing: 0; }
.recht p, .recht li { overflow-wrap: anywhere; color: var(--tinte-2); }
.recht ul { padding-left: 1.2rem; }
.recht li + li { margin-top: .35rem; }
.recht address { font-style: normal; }
.schlicht-fuss { border-top: 1px solid var(--linie); padding: 1.25rem 0 2rem; font-size: .9rem; color: var(--grau); }
.schlicht-fuss nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.schlicht-fuss a { color: var(--grau); min-height: 44px; display: inline-flex; align-items: center; }
.fehlerseite { min-height: 70svh; display: grid; align-content: center; justify-items: start; gap: .5rem; }
.fehlerseite .eingesteckt-feld { margin: 0 0 1rem; }

/* ---------- Bewegung reduzieren (Pflicht) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .auf-an .auf:not(.da) { opacity: 1; }
  .steckt-ein, .eingesteckt-marke, .rahmen { animation-delay: 0s !important; }
}

/* ---------- Erfundene Beispiel-Marken (SVG, Startseite + Auth) ---------- */
.marke { display: block; height: auto; overflow: visible; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
.marke .m-wert { font: 600 22px/1 var(--ff-display); fill: #fff; }
.marke .m-land { font: 500 7.5px/1 var(--ff-mono); letter-spacing: .14em; fill: rgba(255, 255, 255, .85); }

/* Bodoni-Haarlinien: In der App kräftigere optische Größe (Gedankenstriche in Titeln/Spannen bleiben sichtbar). */
h1, h2, h3, h4, .wortmarke { font-optical-sizing: none; font-variation-settings: "opsz" 26; }
.num, .preis-gross, .richtwert, .bilanz-wert, .kz-wert, .ergebnis-preis, .posten-preis, .angebot-summe, .auswahlleiste-text strong { font-optical-sizing: none; font-variation-settings: "opsz" 11; }
