@font-face { font-family: "LZ Poppins"; font-weight: 400; font-display: swap; src: url(assets/Poppins-Regular.woff) format("woff"); }
@font-face { font-family: "LZ Poppins"; font-weight: 500; font-display: swap; src: url(assets/Poppins-Medium.woff) format("woff"); }
@font-face { font-family: "LZ Poppins"; font-weight: 700; font-display: swap; src: url(assets/Poppins-Bold.woff) format("woff"); }

:root {
  --bg: #F2F6F9; --surface: #FFFFFF; --surface-2: #F7FAFC; --sunken: #EDF2F6;
  --ink: #0E1A2B; --ink-2: #475467; --ink-3: #5B6778; --line: #E2E8EF; --line-2: #D2DBE5;
  --teal: #08806A; --teal-hover: #066B58; --teal-bright: #12B08B; --teal-soft: #E2F5EF; --teal-ink: #07705C; --on-teal: #FFFFFF;
  --yellow: #FBA60A; --yellow-soft: #FFF3D6; --yellow-ink: #875600;
  --blue: #0B76E8; --blue-soft: #E6F0FD; --blue-ink: #0A58B0;
  --coral: #F2604F; --coral-soft: #FDEBE8; --coral-ink: #B1382A;
  --navy: #0B1A2C; --focus: #0B76E8;
  --shadow-1: 0 1px 2px rgba(14, 26, 43, .05), 0 1px 3px rgba(14, 26, 43, .05);
  --shadow-2: 0 18px 40px -20px rgba(14, 26, 43, .28), 0 4px 10px -4px rgba(14, 26, 43, .08);
  --shadow-btn: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 2px 0 #055646;
  --r-lg: 22px; --r: 16px; --r-sm: 11px;
  --font: "LZ Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09111C; --surface: #101A28; --surface-2: #142033; --sunken: #0C1520;
    --ink: #E9EEF5; --ink-2: #B0BBCA; --ink-3: #8C98AA; --line: #1E2A3C; --line-2: #2A394F;
    --teal: #1FB892; --teal-hover: #33C9A3; --teal-bright: #2BD3A6; --teal-soft: #0E2C26; --teal-ink: #5FE0BD; --on-teal: #04150F;
    --yellow-soft: #33270B; --yellow-ink: #FFC95A; --blue-soft: #0E2340; --blue-ink: #7DB5FF;
    --coral-soft: #3A1815; --coral-ink: #FF998B; --navy: #050B14;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 20px 44px -20px rgba(0, 0, 0, .7);
    --shadow-btn: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 2px 0 #0B7A60;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; }
main:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--on-teal); padding: 10px 16px; border-radius: 10px; font-weight: 500; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }
.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; }
.nowrap { white-space: nowrap; }
.optional { font-weight: 400; color: var(--ink-3); }
::placeholder { color: var(--ink-3); opacity: 1; }

/* ---------- Kopfzeile ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo-img { display: block; flex: none; background: url(assets/icon192.webp) center / contain no-repeat; }
.brand-icon { width: 40px; height: 40px; }
.wordmark { display: block; width: 116px; height: 25px; background: var(--ink); -webkit-mask: url(assets/wordmark.png) no-repeat left center / contain; mask: url(assets/wordmark.png) no-repeat left center / contain; }
.brand-divider { width: 1.5px; height: 22px; background: var(--line-2); margin: 0 4px; }
.tool-name { font-weight: 500; font-size: 17px; color: var(--teal-ink); letter-spacing: -.01em; }
.top-nav { display: flex; gap: 4px; }
.nav-link { background: none; border: 0; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-link:hover { background: var(--sunken); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 30px; max-width: 800px; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; margin: 0 0 18px; }
.marker { position: relative; white-space: nowrap; color: var(--teal-ink); }
.marker::after { content: ""; position: absolute; left: -2%; right: -3%; bottom: .06em; height: .26em; z-index: -1; background: var(--yellow); opacity: .55; border-radius: .2em .5em .3em .6em; transform: rotate(-1.2deg); }
.hero-sub { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; margin: 0 0 24px; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; }
.badges li { display: flex; align-items: center; gap: 9px; font-weight: 500; padding: 0 18px; border-left: 1.5px solid var(--line-2); }
.badges li:first-child { padding-left: 0; border-left: 0; }
.badge-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--teal-soft); color: var(--teal-ink); }
.badges li:nth-child(2) .badge-ico { background: var(--blue-soft); color: var(--blue-ink); }
.badges li:nth-child(3) .badge-ico { background: var(--yellow-soft); color: var(--yellow-ink); }

/* ---------- Karten, Knöpfe ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r-sm); border: 1.5px solid transparent; padding: 10px 16px; font-weight: 500; font-size: 15px; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background-color .15s, border-color .15s, transform .1s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--teal); color: var(--on-teal); box-shadow: var(--shadow-btn); }
.btn-primary:hover:not(:disabled) { background: var(--teal-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--sunken); color: var(--ink); }
.btn-danger:hover:not(:disabled) { border-color: var(--coral); color: var(--coral-ink); }
.btn-lg { padding: 14px 26px; font-size: 16.5px; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 10px; gap: 6px; }
.inline-link { background: none; border: 0; padding: 0; color: var(--teal-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--sunken); color: var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }

/* ---------- Formular ---------- */
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { display: block; font-weight: 500; font-size: 14px; }
.hint { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.5; margin: 0; }
.input, select, textarea {
  width: 100%; background: var(--surface-2); border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 16px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 15%, transparent); }
.input.is-bad { border-color: var(--coral); }
select { appearance: none; padding-right: 40px; font-weight: 500; }
.select-wrap { position: relative; display: block; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
textarea { resize: vertical; min-height: 80px; }
.field-error { color: var(--coral-ink); font-size: 13.5px; font-weight: 500; margin: 0; }
.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Ersteller (Herzstück) ---------- */
.composer { padding: 28px; display: grid; gap: 22px; position: relative; }
.preview {
  border-radius: 18px; padding: 22px 24px 20px; background: var(--navy); color: #fff;
  box-shadow: 0 18px 40px -22px rgba(5, 16, 30, .7); position: relative; overflow: hidden;
}
.preview::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 160px at 85% -20%, rgba(43, 211, 166, .28), transparent 70%); pointer-events: none; }
.preview-label { position: relative; font-size: 13px; color: rgba(255, 255, 255, .62); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.preview-url { position: relative; margin: 0; font-size: clamp(1.35rem, 3.6vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.preview-url .dom { color: rgba(255, 255, 255, .55); font-weight: 500; }
.preview-url .slug { color: #2BD3A6; }
.preview-url .slug.is-empty { color: rgba(255, 255, 255, .5); font-style: italic; font-weight: 500; }
.preview-url .caret { display: inline-block; width: 3px; height: .95em; margin-left: 2px; vertical-align: -.1em; background: #FBA60A; border-radius: 2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.preview-target { position: relative; margin: 10px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .62); display: flex; gap: 8px; align-items: center; min-width: 0; }
.preview-target span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.slug-row { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.slug-row:focus-within { border-color: var(--teal); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 15%, transparent); }
.slug-row.is-bad { border-color: var(--coral); }
.slug-row.is-good { border-color: var(--teal); }
.slug-prefix { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--ink-3); font-weight: 500; white-space: nowrap; user-select: none; }
.slug-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 6px; font-size: 16px; font-weight: 500; outline: none; }
.slug-row .icon-btn { margin: 4px; width: auto; padding: 0 12px; gap: 6px; display: flex; font-size: 14px; font-weight: 500; }
.slug-state { display: flex; align-items: center; gap: 8px; min-height: 22px; font-size: 13.5px; font-weight: 500; margin: 0; color: var(--ink-3); }
.slug-state.is-good { color: var(--teal-ink); }
.slug-state.is-bad { color: var(--coral-ink); }
.slug-state .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.slug-state.is-checking .dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 13px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.seg input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); box-shadow: inset 0 0 0 1px var(--teal); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); flex: none; cursor: pointer; }
.check label { cursor: pointer; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding-top: 6px; border-top: 1px solid var(--line); }
.submit-row .check { flex: 1 1 320px; padding-top: 16px; }
.submit-row .btn { margin-top: 16px; }

/* ---------- Ergebnis ---------- */
.result { padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: center; margin-top: 20px; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 12%, transparent), var(--shadow-2); animation: pop .4s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.result-kicker { display: flex; align-items: center; gap: 8px; color: var(--teal-ink); font-weight: 500; font-size: 1rem; margin: 0 0 6px; }
.result-url { font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.result-url a { text-decoration: none; }
.result-url a:hover { text-decoration: underline; text-underline-offset: 4px; }
.result-meta { color: var(--ink-3); font-size: 13.5px; margin: 6px 0 0; overflow-wrap: anywhere; }
.result .row { margin-top: 18px; }
.qr-box { display: grid; justify-items: center; gap: 10px; }
.qr { width: 168px; height: 168px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-dl { display: flex; gap: 6px; }

/* ---------- Meine Links ---------- */
.mine { margin-top: 28px; padding: 22px 24px; }
.mine-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.mine-head h2 { font-size: 1.15rem; margin: 0; display: flex; gap: 10px; align-items: center; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--sunken); color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.mine-list { list-style: none; padding: 0; margin: 0; }
.mine-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.mine-item:first-child { border-top: 0; }
.mine-short { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; text-decoration: none; }
.mine-short:hover { color: var(--teal-ink); }
.mine-target { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 1px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--sunken); color: var(--ink-2); }
.chip[data-tone="teal"] { background: var(--teal-soft); color: var(--teal-ink); }
.chip[data-tone="yellow"] { background: var(--yellow-soft); color: var(--yellow-ink); }
.chip[data-tone="coral"] { background: var(--coral-soft); color: var(--coral-ink); }
.chip[data-tone="blue"] { background: var(--blue-soft); color: var(--blue-ink); }
.mine-actions { display: flex; gap: 4px; }
.mine-empty { color: var(--ink-3); margin: 6px 0 0; }

/* ---------- Hinweise ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 16px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.notice p { margin: 0; }
.notice strong { color: var(--ink); font-weight: 500; }
.notice-ico { color: var(--teal-ink); margin-top: 2px; }
.notice.is-error { border-color: var(--coral); background: var(--coral-soft); color: var(--coral-ink); }
.notice.is-error .notice-ico { color: var(--coral-ink); }
code, .mono { font-family: var(--mono); font-size: .92em; background: var(--sunken); padding: 1px 6px; border-radius: 6px; }

.footer { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links .inline-link { color: var(--ink-2); font-size: 13px; text-decoration-color: var(--line-2); }

/* ---------- Meldungen ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; cursor: pointer; display: flex; align-items: flex-start; gap: 10px; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-2); font-size: 14px; animation: pop .3s ease; }
.toast .i { margin-top: 2px; color: var(--teal-ink); }
.toast.is-error .i { color: var(--coral-ink); }
.toast.is-warn .i { color: var(--yellow-ink); }
.toast p { margin: 0; }
.toast small { display: block; color: var(--ink-3); font-size: 12.5px; }

/* ---------- Dialoge ---------- */
.dlg { border: 0; padding: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(5, 16, 30, .6); max-height: calc(100vh - 32px); }
.dlg::backdrop { background: rgba(9, 20, 35, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dlg[open] { animation: pop .3s ease; }
.dlg-legal { width: min(760px, calc(100% - 24px)); height: min(760px, calc(100vh - 32px)); display: none; }
.dlg-legal[open] { display: flex; flex-direction: column; }
.dlg-qr { width: min(420px, calc(100% - 24px)); }
.dlg-qr .dlg-body { padding: 26px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.dlg-qr .qr { width: 280px; height: 280px; }
.legal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 8px 28px; }
.legal-head h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.legal-tabs { display: flex; gap: 6px; padding: 6px 24px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.legal-tabs button { border: 0; background: var(--sunken); color: var(--ink-2); padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.legal-tabs button[aria-selected="true"] { background: var(--teal); color: var(--on-teal); }
.legal-body { overflow-y: auto; padding: 8px 28px 28px; }
.legal-body h3 { font-size: 1.02rem; margin: 22px 0 6px; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.legal-body p { margin: 0 0 10px; }
.legal-body ul { padding-left: 20px; margin: 0 0 10px; }
.fill-missing { color: var(--coral-ink); font-style: normal; font-weight: 500; }

/* ---------- Einfache Seiten (Weiterleitung, Vorschau) ---------- */
body.simple .wrap { max-width: 760px; padding-top: 48px; }
.page-card { padding: 34px; }
.page-card h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 14px; overflow-wrap: anywhere; }
.page-card h2 { font-size: 1.15rem; margin: 0 0 4px; }
.page-card p { color: var(--ink-2); margin: 0 0 10px; }
.page-card .note { font-size: 13.5px; color: var(--ink-3); }
.target { font-family: var(--mono); font-size: 14.5px; background: var(--sunken); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 6px 0 12px; overflow-wrap: anywhere; color: var(--ink); }
.report { display: grid; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.report .btn { justify-self: start; }
.msg { font-weight: 500; color: var(--teal-ink); margin: 0; }

/* ---------- Verwaltung ---------- */
.admin-login { max-width: 440px; margin: 60px auto 0; padding: 30px; display: grid; gap: 16px; }
.admin-login h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 18px; }
.stat { padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 120px; }
.stat b { display: block; font-size: 1.4rem; line-height: 1.2; }
.stat span { font-size: 12.5px; color: var(--ink-3); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.toolbar .input { max-width: 320px; padding: 9px 12px; font-size: 14.5px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 7px 13px; border-radius: 99px; font-size: 13.5px; font-weight: 500; }
.tabs button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.alist { list-style: none; margin: 0; padding: 0; }
.aitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.aitem:first-child { border-top: 0; }
.aitem .reports { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--coral-soft); color: var(--coral-ink); font-size: 13px; }
.aitem .reports li { margin-left: 16px; }
.aactions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: flex-start; }
.block-card { padding: 22px 24px; margin-top: 22px; display: grid; gap: 12px; }
.block-card textarea { font-family: var(--mono); font-size: 13.5px; min-height: 140px; }

@media (max-width: 760px) {
  .wrap { padding: 0 14px 60px; }
  .topbar-inner { padding: 10px 14px; }
  .top-nav { display: none; }
  .wordmark { width: 96px; height: 21px; }
  .brand-icon { width: 34px; height: 34px; }
  .hero { padding: 34px 0 22px; }
  .badges { gap: 10px 16px; }
  .badges li { padding: 0; border-left: 0; font-size: 14px; }
  .composer, .result { padding: 20px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .result { grid-template-columns: minmax(0, 1fr); }
  .qr-box { justify-items: start; }
  .slug-prefix { padding-left: 12px; font-size: 14px; }
  .preview-url .dom { display: block; font-size: .62em; }
  .slug-row .icon-btn span { display: none; }
  .mine-item, .aitem { grid-template-columns: minmax(0, 1fr); }
  .aactions { justify-content: flex-start; }
  .page-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- Rechtsseiten und Verwaltung ---------- */
.legal-page { max-width: 820px; margin: 44px auto 0; padding: 36px 40px 30px; }
.legal-page h1 { font-size: clamp(1.8rem, 4.4vw, 2.5rem); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 18px; }
.legal-page h2 { font-size: 1.08rem; margin: 26px 0 6px; }
.legal-page p, .legal-page li { color: var(--ink-2); line-height: 1.7; }
.legal-page p { margin: 0 0 10px; }
.legal-page ul { padding-left: 22px; margin: 0 0 10px; }
.legal-page .lead { font-size: 1.05rem; color: var(--ink); padding: 14px 18px; border-radius: 14px; background: var(--teal-soft); }
.legal-page .note { margin-top: 26px; font-size: 13.5px; color: var(--ink-3); }
.dlg-title { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; }
.dash-title { margin: 0; font-size: 1.7rem; letter-spacing: -.02em; }
.block-title { margin: 0; font-size: 1.1rem; }
.empty-hint { margin-top: 12px; }
@media (max-width: 760px) { .legal-page { margin-top: 24px; padding: 24px 20px; } }

/* =====================================================================
   Lehrzeug – Startseite
   ===================================================================== */
body.landing .wrap { max-width: 1160px; }
.nav-cta { background: var(--teal); color: var(--on-teal) !important; }
.nav-cta:hover { background: var(--teal-hover) !important; color: var(--on-teal) !important; }
.lz-hero { position: relative; padding: 72px 0 40px; text-align: center; display: grid; justify-items: center; gap: 18px; isolation: isolate; }
.lz-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 0; max-width: 18ch; }
.lz-hero .hero-sub { max-width: 40em; margin: 0; }
.lz-float { position: absolute; inset: -40px -10vw 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lz-float span { position: absolute; border-radius: 30%; opacity: .5; filter: blur(2px); animation: drift 14s ease-in-out infinite alternate; }
.lz-float .f1 { width: 180px; height: 180px; background: var(--teal-soft); left: 4%; top: 10%; }
.lz-float .f2 { width: 120px; height: 120px; background: var(--yellow-soft); right: 8%; top: 4%; border-radius: 50%; animation-duration: 11s; }
.lz-float .f3 { width: 150px; height: 150px; background: var(--blue-soft); right: 14%; bottom: 0; animation-duration: 16s; }
.lz-float .f4 { width: 90px; height: 90px; background: var(--coral-soft); left: 16%; bottom: 6%; border-radius: 50%; animation-duration: 12s; }
@keyframes drift { to { transform: translate(30px, -26px) rotate(18deg); } }
.lz-eq { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.35rem); }
.eq-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: var(--shadow-1); }
.eq-a { color: var(--blue-ink); border-color: var(--blue); }
.eq-b { color: var(--yellow-ink); border-color: var(--yellow); }
.eq-c { color: var(--on-teal); background: var(--teal); border-color: var(--teal); box-shadow: 0 10px 30px -10px rgba(8, 128, 106, .7); }
.eq-logo { width: 24px; height: 24px; border-radius: 6px; background: #FFFFFF url(assets/icon192.webp) center / 86% no-repeat; }
.eq-op { color: var(--ink-3); font-size: 1.3em; }
.lz-eq.is-play .eq-a { animation: eqIn .5s .1s both cubic-bezier(.2, .9, .3, 1.3); }
.lz-eq.is-play .eq-op:nth-child(2) { animation: eqIn .4s .45s both; }
.lz-eq.is-play .eq-b { animation: eqIn .5s .65s both cubic-bezier(.2, .9, .3, 1.3); }
.lz-eq.is-play .eq-op:nth-child(4) { animation: eqIn .4s 1s both; }
.lz-eq.is-play .eq-c { animation: eqPop .7s 1.2s both cubic-bezier(.2, .9, .3, 1.4); }
@keyframes eqIn { from { opacity: 0; transform: translateY(14px) scale(.8); } }
@keyframes eqPop { 0% { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
.lz-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.lz-trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lz-trust li { display: grid; justify-items: center; min-width: 120px; padding: 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.lz-trust b { font-size: 1.9rem; line-height: 1.1; color: var(--teal-ink); }
.lz-trust span { font-size: 13px; color: var(--ink-2); font-weight: 500; }

.lz-sec { margin-top: 72px; }
.lz-h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 10px; text-align: center; }
.lz-lead { text-align: center; color: var(--ink-2); max-width: 44em; margin: 0 auto 28px; }
.lz-teal { color: var(--teal-ink); }
.lz-word { max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; padding: 34px 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.lz-word h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -.02em; margin: 0 0 12px; }
.lz-word p { color: var(--ink-2); margin: 0; font-size: 1.05rem; line-height: 1.7; }

.lz-tool { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 26px; margin-top: 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .25s, box-shadow .25s; }
.lz-tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.lz-tool:nth-of-type(even) .lz-shot { order: 2; }
.lz-tool:nth-of-type(even) .lz-tbody { order: 1; }
.lz-tool:nth-of-type(even) .lz-qr { order: 3; }
.lz-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #EDF2F6; box-shadow: 0 24px 50px -28px rgba(11, 26, 44, .55); transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); transition: transform .35s; }
.lz-tool:nth-of-type(even) .lz-shot { transform: perspective(1200px) rotateY(4deg) rotateX(2deg); }
.lz-tool:hover .lz-shot { transform: none; }
.lz-dots { display: flex; gap: 6px; padding: 9px 12px; background: #DDE5ED; }
.lz-dots i { width: 10px; height: 10px; border-radius: 50%; background: #F2604F; }
.lz-dots i:nth-child(2) { background: #FBA60A; }
.lz-dots i:nth-child(3) { background: #12B08B; }
.lz-shot img { display: block; width: 100%; height: auto; }
.lz-tbody { display: grid; gap: 10px; }
.lz-tag { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-ink); }
.lz-tbody h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; line-height: 1.15; }
.lz-tbody h3 span { display: block; font-size: .62em; color: var(--ink-2); font-weight: 500; letter-spacing: 0; }
.lz-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lz-points li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.55; }
.lz-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px; background: var(--teal); }
.lz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lz-qr { width: 132px; height: 132px; padding: 8px; background: #FFFFFF; border-radius: 14px; border: 1px solid var(--line); flex: none; }
.lz-qr svg { display: block; width: 100%; height: 100%; }

.lz-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.lz-card { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.lz-card h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.lz-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.lz-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--teal-soft); color: var(--teal-ink); }
.lz-why .lz-card:nth-child(2) .lz-ico { background: var(--blue-soft); color: var(--blue-ink); }
.lz-why .lz-card:nth-child(3) .lz-ico { background: var(--yellow-soft); color: var(--yellow-ink); }
.lz-why .lz-card:nth-child(4) .lz-ico { background: var(--coral-soft); color: var(--coral-ink); }
.lz-why .lz-card:nth-child(5) .lz-ico { background: var(--blue-soft); color: var(--blue-ink); }

.lz-steps ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.lz-steps li { counter-increment: st; display: grid; gap: 4px; padding: 22px 22px 22px 78px; position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lz-steps li::before { content: counter(st); position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; background: var(--yellow); color: #0B1A2C; }
.lz-steps b { font-size: 1.15rem; }
.lz-steps span { color: var(--ink-2); font-size: 14.5px; }

.lz-share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 40px; border-radius: 28px; background: #0B1A2C; color: #FFFFFF; position: relative; overflow: hidden; }
.lz-share::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 260px at 90% -10%, rgba(43, 211, 166, .3), transparent 70%), radial-gradient(500px 240px at 0% 110%, rgba(11, 118, 232, .25), transparent 70%); pointer-events: none; }
.lz-share > * { position: relative; }
.lz-share h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.8vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; }
.lz-share p { margin: 0; color: rgba(255, 255, 255, .82); }
.lz-share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.lz-share .btn-secondary { background: rgba(255, 255, 255, .1); color: #FFFFFF; border-color: rgba(255, 255, 255, .35); }
.lz-share .btn-secondary:hover { background: rgba(255, 255, 255, .18); color: #FFFFFF; border-color: #FFFFFF; }
.lz-share .btn-primary { background: #2BD3A6; color: #0B1A2C; box-shadow: 0 2px 0 #12866A; }
.lz-poster-btn { background: #FBA60A; color: #0B1A2C; box-shadow: 0 2px 0 #B87500; }
.lz-poster-btn:hover { background: #FFB733; }
.lz-share-qr { display: grid; justify-items: center; gap: 10px; }
.lz-qr-big { width: 200px; height: 200px; padding: 12px; border: 0; }
.lz-share-qr p { font-weight: 500; }

.lz-faq { max-width: 860px; margin: 18px auto 0; display: grid; gap: 10px; }
.lz-faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 4px 20px; }
.lz-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.lz-faq details[open] summary { color: var(--teal-ink); }
.lz-faq p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.65; }
.lz-idea { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 28px; border-radius: 24px; background: var(--yellow-soft); border: 1px solid var(--line); }
.lz-idea h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.8vw, 1.8rem); }
.lz-idea p { margin: 0; color: var(--ink-2); }
.lz-ico-big { width: 60px; height: 60px; border-radius: 18px; background: #FBA60A; color: #0B1A2C; }
.lz-ico-big .i { width: 30px; height: 30px; }

.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

.lz-poster { display: none; }
@media (max-width: 980px) {
  .lz-tool { grid-template-columns: minmax(0, 1fr); }
  .lz-tool .lz-shot, .lz-tool:nth-of-type(even) .lz-shot { order: 0; transform: none; }
  .lz-tool .lz-tbody, .lz-tool:nth-of-type(even) .lz-tbody { order: 1; }
  .lz-tool .lz-qr, .lz-tool:nth-of-type(even) .lz-qr { order: 2; }
  .lz-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lz-share { grid-template-columns: minmax(0, 1fr); }
  .lz-idea { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .lz-hero { padding-top: 40px; }
  .lz-why, .lz-steps ol { grid-template-columns: minmax(0, 1fr); }
  .lz-share { padding: 26px; }
  .lz-tool { padding: 18px; }
  .lz-trust li { min-width: 0; flex: 1 1 40%; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body.print-poster > *:not(main), body.print-poster main > *:not(.lz-poster) { display: none !important; }
  body.print-poster main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  body.print-poster .lz-poster { display: block !important; color: #0B1A2C; font-family: var(--font); }
  .pz-head { display: flex; align-items: center; gap: 14px; }
  .pz-logo { width: 90px; height: 90px; background: url(assets/icon192.webp) center / contain no-repeat; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pz-brand { margin: 0; font-size: 46pt; font-weight: 700; line-height: 1; }
  .pz-tag { margin: 2pt 0 0; font-size: 15pt; }
  .pz-eq { margin: 22pt 0 6pt; font-size: 30pt; font-weight: 700; color: #08806A; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pz-sub { margin: 0 0 22pt; font-size: 14pt; }
  .pz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16pt; }
  .pz-tool { display: flex; align-items: center; gap: 12pt; border: 1.5pt solid #0B1A2C; border-radius: 12pt; padding: 12pt; break-inside: avoid; }
  .pz-tool p { margin: 0; font-size: 13pt; }
  .pz-tool b { display: block; font-size: 20pt; }
  .pz-qr { width: 42mm; height: 42mm; flex: none; }
  .pz-qr svg { width: 100%; height: 100%; display: block; }
  .pz-foot { display: flex; align-items: center; gap: 18pt; margin-top: 26pt; padding-top: 18pt; border-top: 1.5pt solid #0B1A2C; }
  .pz-qr-main { width: 58mm; height: 58mm; }
  .pz-foot p { margin: 0; font-size: 16pt; }
}
@media (prefers-reduced-motion: reduce) { .lz-float span { animation: none; } }

@media (prefers-reduced-motion: reduce) { .lz-eq.is-play .eq-chip, .lz-eq.is-play .eq-op { animation: none !important; } }
