/* ==========================================================================
   Gemeinsame Grundlage der Vetta-Demos.
   Jede Demo setzt nur ihre Farben und Schriften als Variablen auf <body>.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/inter-latin.woff2") format("woff2"); }

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --text: #1F1F1F;
  --muted: #6A6A6A;
  --line: #E6E2DA;
  --accent: #333;
  --accent-ink: #FFFFFF;
  --soft: #F1EEE8;
  --ok: #2F9E67;
  --radius: 16px;
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --head-weight: 600;
  --head-spacing: -.02em;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* ausgeblendet bleibt ausgeblendet, auch bei Knöpfen */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-spacing); line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Hinweisband: macht klar, dass es eine Demo ist ---------- */
.demo-band { background: #1F3D2E; color: #F4F6F2; font-family: "Inter", system-ui, sans-serif; font-size: 13px; }
.demo-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-block: 9px; }
.demo-band a { color: #fff; font-weight: 500; text-decoration: none; }
.demo-band a:hover { text-decoration: underline; }
.demo-band b { font-weight: 600; }

/* ---------- Kopf ---------- */
.d-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.d-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.d-nav { display: flex; gap: 24px; font-size: 15px; color: var(--muted); }
.d-nav a { text-decoration: none; }
.d-nav a:hover { color: var(--text); }
@media (max-width: 720px) { .d-nav { display: none; } }

/* ---------- Bausteine ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), filter .2s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 19px; max-width: 54ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.d-hero__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Ausprobieren: Werkzeug links, Hintergrund-Protokoll rechts ---------- */
.try { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .try { grid-template-columns: minmax(0, 1fr); } }
.try__tool { padding: clamp(20px, 3vw, 32px); }
.try__tool h3 { font-size: 22px; margin-bottom: 6px; }
.try__hint { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

.log { position: sticky; top: 20px; background: #16201B; color: #E9F0EB; border-radius: var(--radius); padding: 22px; font-family: "Inter", system-ui, sans-serif; }
.log__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.log__title { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.log__live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #9CC9AE; }
.log__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3FBF7F; box-shadow: 0 0 0 0 rgba(63,191,127,.6); animation: livepulse 2s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 7px rgba(63,191,127,0); } 100% { box-shadow: 0 0 0 0 rgba(63,191,127,0); } }
.log__empty { color: #8FA597; font-size: 14px; }
.log__list { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 10px; max-height: 460px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3A4A41 transparent; }
.log__item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; animation: logIn .45s var(--ease) both; }
.log__icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #2F9E67; color: #fff; }
.log__icon--wait { background: transparent; border: 1.5px solid #5E7A69; color: #9CC9AE; }
.log__icon--mail { background: #3B6EA8; }
.log__time { display: block; font-size: 12px; color: #8FA597; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.log__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: #8FA597; }

/* ---------- Formular ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.demo-hint { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin: -4px 0 14px; }
.field { align-content: start; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; transition: background-color .2s, color .2s, border-color .2s; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip:disabled { opacity: .4; cursor: default; text-decoration: line-through; }

/* ---------- Erfolgs-Karte und Status-Verlauf ---------- */
.done { padding: 22px; border-radius: 14px; background: var(--soft); animation: logIn .45s var(--ease) both; }
.done h4 { margin: 0 0 6px; font-size: 18px; font-family: var(--font-head); }
.done p { color: var(--muted); font-size: 15px; }
.status { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.status li { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding-bottom: 16px; font-size: 15px; }
.status li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.status__dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 12px; color: transparent; transition: all .3s var(--ease); }
.status li.is-done .status__dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.status li.is-now .status__dot { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.status small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- E-Mail-Vorschau ---------- */
.mail-wrap { margin-top: 18px; animation: logIn .45s var(--ease) both; }
.mail-wrap__label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-family: "Inter", system-ui, sans-serif; }
.mail { border-radius: 14px; border: 1px solid var(--line); background: #fff; overflow: hidden; font-family: "Inter", system-ui, sans-serif; box-shadow: 0 20px 40px -30px rgba(0,0,0,.35); }
.mail__head { padding: 12px 16px; background: #F6F6F4; border-bottom: 1px solid var(--line); display: grid; gap: 4px; font-size: 13px; }
.mail__row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
.mail__row > span:first-child { color: var(--muted); }
.mail__row b, .mail__row span { overflow-wrap: anywhere; }
.mail__row--subject b { font-size: 14px; }
.mail__body { padding: 22px 22px 18px; font-size: 14px; line-height: 1.6; color: #333; }
.mail__body > svg, .mail__body > .mail__logo { margin-bottom: 16px; }
.mail__body p { margin: 0 0 10px; }
.mail__hello { font-weight: 600; color: #222; }
.mail__table { margin: 14px 0; padding: 12px 14px; border-radius: 10px; background: var(--soft); display: grid; gap: 6px; }
.mail__table div { display: flex; justify-content: space-between; gap: 12px; }
.mail__table span { color: var(--muted); }
.mail__btn { display: inline-block; margin: 6px 0 12px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.mail__small { font-size: 12.5px; color: var(--muted); }
.mail__att { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.mail__att span { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; background: #FAFAF8; }
.mail__sign { color: var(--muted); margin-top: 6px !important; }

/* ---------- Mitteilung oben rechts (wie eine Benachrichtigung am Handy) ---------- */
.toast { position: fixed; right: 16px; top: 16px; z-index: 50; max-width: 340px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px -18px rgba(0,0,0,.35); border: 1px solid var(--line); font-family: "Inter", system-ui, sans-serif; font-size: 14px; display: grid; grid-template-columns: 32px 1fr; gap: 12px; animation: toastIn .4s var(--ease) both; }
.toast__icon { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.toast b { display: block; font-size: 14px; }
.toast span { color: var(--muted); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .toast { left: 12px; right: 12px; max-width: none; } }

@media (prefers-reduced-motion: reduce) {
  .log__item, .done, .toast, .log__live::before { animation: none; }
}

/* Handy: Tippflächen groß genug, kleine Links mit mehr Fläche */
@media (max-width: 720px) {
  .demo-band a { display: inline-block; padding: 8px 0; }
  .d-foot a, .t-foot a, .e-foot a { display: inline-block; padding: 6px 0; }
}

/* ---------- Fachbegriffe: antippen zeigt eine kurze Erklärung (auch am Handy) ---------- */
.term { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); }
.term:hover, .term[aria-expanded="true"] { text-decoration-style: solid; text-decoration-color: currentColor; }
.term-tip { position: fixed; z-index: 60; width: max-content; max-width: min(320px, calc(100vw - 32px)); padding: 12px 15px; border-radius: 14px; background: var(--text); color: var(--bg); font-family: "Inter", system-ui, sans-serif; font-size: 14px; line-height: 1.5; text-align: left; box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); animation: logIn .25s var(--ease) both; }
.term-tip b { display: block; margin-bottom: 2px; }

/* ---------- „Wusstest du schon?“: ein Fakt nach dem anderen ---------- */
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: start; padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); background: var(--soft); }
.facts__icon { grid-row: span 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 24px; }
.facts__label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.fact p { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; text-wrap: pretty; max-width: 60ch; }
.fact small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.fact small a { color: inherit; }
.fact.is-in { animation: logIn .45s var(--ease) both; }
.facts__nav { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts__icon { grid-row: auto; width: 44px; height: 44px; font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .term-tip, .fact.is-in { animation: none; } }
.nobr { white-space: nowrap; }   /* hält einen Begriff zum Antippen mit dem folgenden Satzzeichen zusammen */
