/* ============================================================
   Partner-Check
   Look wie health.tomdroste.com: v3 „Editorial Clean“ × helles
   Liquid Glass (Regeln: websites/beyourbest/DESIGN.md). Neutral für
   die Teampartner: kein Name, kein Foto, keine Navigation.
   Neue Werte als Token hier anlegen, nie hartkodiert ins HTML.
   ============================================================ */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/playfair-display-400-italic.woff2") format("woff2"); }

:root {
  --paper: #F3F1EC;
  --paper-deep: #ECE9E2;
  --ink: #141513;
  --ink-body: #3A3C37;
  --ink-muted: #666761;
  --night: #111412;
  --snow: #F5F4EF;
  --white: #FFFFFF;
  --hairline: rgba(20, 21, 19, 0.12);
  --field-border: rgba(20, 21, 19, 0.16);

  --vital-green: #16A34A;
  --vital-green-bright: #34D75D;
  --vital-green-deep: #15803D;
  --green-tint: rgba(22, 163, 74, 0.08);
  --accent-text: var(--vital-green-deep);
  --error: #B4502F;

  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-editorial: cubic-bezier(0.2, 0.7, 0.2, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1180px;
  --section-pad: clamp(48px, 7vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  overflow-x: hidden;
  accent-color: var(--vital-green-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: rgba(22, 163, 74, 0.22); }
:focus-visible { outline: 2px solid var(--vital-green-deep); outline-offset: 3px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }

.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* Honeypot gegen Bots: für Menschen unsichtbar */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Grüne Wolken hinter dem Glas ---------- */

.mesh-blob {
  position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(100px); pointer-events: none; opacity: 0.3;
  background: radial-gradient(circle at 30% 30%, var(--vital-green-bright), var(--vital-green) 55%, transparent 75%);
  will-change: transform;
}
.mesh-blob.drift { animation: drift 24s ease-in-out infinite; }
.mesh-blob.drift-slow { animation: drift 36s ease-in-out infinite reverse; }
.blob-tr { width: min(520px, 90vw); height: min(520px, 90vw); top: -180px; right: -180px; }
.blob-sec {
  --bs: min(460px, 80vw);
  width: var(--bs); height: var(--bs);
  left: var(--bx, 50%); top: var(--by, 50%);
  margin: calc(var(--bs) / -2) 0 0 calc(var(--bs) / -2);
}
.blob-field {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 5%) scale(1.06); }
  66% { transform: translate(-3%, -4%) scale(0.96); }
}

/* ---------- Glas: nur auf Objekten, nie auf Fließtext ---------- */

.glass {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 21, 19, 0.07);
  border-top-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
          backdrop-filter: blur(24px) saturate(170%);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 40px -18px rgba(20, 21, 19, 0.18);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--white); }
}

/* ---------- Typografie ---------- */

h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.12; }
h3 { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.25; }
p { color: var(--ink-body); text-wrap: pretty; }
strong { font-weight: 600; }

/* Themen-Label: kleine Versalien mit Laufweite, gedämpft */
.eyebrow {
  display: block; margin-bottom: 16px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase;
  color: var(--ink-muted);
}

/* Die Pointe einer Überschrift in Playfair Display kursiv */
.serif-word {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.08em; letter-spacing: -0.005em;
}

.text-link {
  color: var(--accent-text); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.text-link:hover { text-decoration-thickness: 2px; }

.fineprint { margin-top: 18px; font-size: 0.875rem; line-height: 1.55; color: var(--ink-body); }

/* ---------- Buttons: Pill mit Pfeil-Kreis ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25;
  text-align: left; cursor: pointer;
  transition: transform 0.16s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn:disabled { opacity: 0.55; cursor: progress; }

.btn-primary, .btn-cta {
  justify-content: space-between; gap: 16px;
  padding: 7px 7px 7px 26px;
  background: var(--ink); color: var(--white);
}
.btn-primary::after, .btn-cta::after {
  content: ''; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23141513' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11H17M12 6l5 5-5 5'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  transition: transform 0.25s var(--ease-out);
}
.btn-primary:hover, .btn-cta:hover { transform: translateY(-1px); }
.btn-primary:hover::after, .btn-cta:hover::after { transform: translateX(3px); }
.btn-primary:active, .btn-cta:active { transform: scale(0.96); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.5); color: var(--ink);
  border-color: rgba(20, 21, 19, 0.14); border-top-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
          backdrop-filter: blur(12px) saturate(170%);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.85); transform: translateY(-1px); }
.btn-ghost:active { transform: scale(0.96); }

.btn-small { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-primary.btn-small { padding: 5px 5px 5px 18px; gap: 12px; }
.btn-primary.btn-small::after { width: 34px; height: 34px; background-size: 16px 16px; }

/* Textknopf, z. B. „+ Antwort hinzufügen“ */
.btn-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  background: none; border: 0; cursor: pointer;
  font-size: 0.9375rem; font-weight: 500; color: var(--accent-text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.btn-link:hover { text-decoration-thickness: 2px; }

@media (max-width: 520px) {
  .btn { font-size: 0.9375rem; }
  .btn-primary, .btn-cta { padding-left: 20px; gap: 10px; }
  .btn-primary::after, .btn-cta::after { width: 34px; height: 34px; background-size: 16px 16px; }
}

/* ---------- Seitenkopf und Abschnitte ---------- */

.page-hero {
  position: relative; overflow: hidden; padding: 64px 0 48px;
  background: radial-gradient(760px 560px at calc(100% + 80px) -120px, rgba(22, 163, 74, 0.11), rgba(22, 163, 74, 0));
}
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 150px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 16em; }
.page-hero p { margin-top: 18px; max-width: 36em; font-size: clamp(1.0625rem, 1.2vw + 0.7rem, 1.2rem); line-height: 1.55; }
.page-hero--kompakt { padding: 48px 0 32px; }
.page-hero--kompakt h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }

.section { position: relative; padding: var(--section-pad) 0; }
.section > .wrap { position: relative; z-index: 1; }
.section--check, .section--anmelden, .section--bereich { padding-top: 0; }

.schon-da { padding: 14px 18px; border-left: 3px solid var(--vital-green); background: rgba(255, 255, 255, 0.6); border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* ---------- Footer ---------- */

.site-footer { padding: 32px 0 40px; border-top: 1px solid rgba(20, 21, 19, 0.08); }
.footer-legal { font-size: 0.8125rem; line-height: 1.8; color: var(--ink-body); }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20, 21, 19, 0.3); }
.footer-legal a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Formulare ---------- */

fieldset { border: 0; min-width: 0; }
fieldset + fieldset { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--hairline); }
/* float: die Legende sitzt sonst auf der Trennlinie des Fieldsets */
legend { float: left; width: 100%; margin-bottom: 14px; padding: 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
legend + * { clear: both; }
legend .optional { letter-spacing: 0.04em; text-transform: none; }
.fieldset-intro { margin: -4px 0 18px; font-size: 0.9375rem; line-height: 1.55; }

.field { margin-bottom: 18px; }
.field label, .field-label { display: block; margin-bottom: 7px; font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-muted); }
.field-row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea, .hc-input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--field-border);
  font-size: 1rem; color: var(--ink);
  transition: border-color 0.2s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus, .hc-input:focus { outline: none; border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .hc-input:focus-visible { box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.25); }
.field select, .hc-country {
  appearance: none; cursor: pointer; padding-right: 34px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%23666761' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px;
}
input.is-error, select.is-error, textarea.is-error { border-color: var(--error) !important; }

.field-msg { margin-top: 7px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-muted); }
.field-msg.is-error, .hc-field-msg.is-error { color: var(--error); }

.check-row { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-body); cursor: pointer; }
.check-row input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--field-border);
  font-size: 0.875rem; color: var(--ink); cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.chip:hover { border-color: rgba(20, 21, 19, 0.4); }
.chip:active { transform: scale(0.96); }
.chip.active { border-color: var(--vital-green-deep); background: var(--green-tint); font-weight: 500; }

.slug-row { display: flex; align-items: stretch; border: 1px solid var(--field-border); border-radius: var(--radius-md); background: var(--white); overflow: hidden; }
.slug-row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.25); }
.slug-prefix { display: flex; align-items: center; padding: 0 2px 0 14px; font-size: 0.9375rem; color: var(--ink-muted); white-space: nowrap; }
.field .slug-row input { min-width: 0; border: 0; border-radius: 0; padding-left: 2px; box-shadow: none; }
/* Schmal: Adresse als kleine Zeile über dem Eingabefeld, damit nichts abgeschnitten wird */
@media (max-width: 520px) {
  .slug-row { flex-direction: column; }
  .slug-prefix { padding: 10px 16px 0; font-size: 0.8125rem; }
  .field .slug-row input { min-height: 40px; padding: 2px 16px 10px; }
}
.slug-row:has(input.is-error) { border-color: var(--error); }

/* Telefon: Vorwahl + Nummer nebeneinander */
.hc-phone-row { display: flex; gap: 10px; }
.hc-country { flex: 0 0 108px; width: 108px; min-height: 50px; padding: 12px 34px 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--field-border); font-size: 1rem; }
.hc-phone-number { flex: 1; min-width: 0; }
.hc-custom-code { display: none; margin-top: 10px; }
.hc-custom-code.is-visible { display: block; }
.field .hc-custom-code { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--field-border); background: var(--white); }
.field .hc-custom-code:not(.is-visible) { display: none; }

/* ---------- Health-Check-Wizard (wie auf health.tomdroste.com) ---------- */

.hc-wizard { position: relative; max-width: 620px; margin: 0 auto; padding: 40px 36px; min-height: 380px; }
@media (max-width: 640px) { .hc-wizard { padding: 28px 20px; } }

.hc-progress { height: 4px; margin-bottom: 10px; border-radius: 999px; overflow: hidden; background: rgba(20, 21, 19, 0.08); }
/* scaleX statt width: animiert ohne Layout-Neuberechnung */
.hc-progress-bar { width: 100%; height: 100%; background: var(--vital-green); transform: scaleX(0); transform-origin: left center; transition: transform 0.4s var(--ease-out); }
/* Schrittzähler und Zurück in einer Zeile unter dem Balken */
.hc-meta { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-bottom: 12px; }
.hc-step-count { font-size: 0.76rem; font-variant-numeric: tabular-nums; color: var(--ink-body); }

.hc-step { display: none; }
.hc-step.hc-step-visible { display: block; animation: hc-fade-in 0.4s var(--ease-out); }
@keyframes hc-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hc-step h2 { margin-bottom: 6px; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.hc-hint { margin-bottom: 16px; font-size: 0.86rem; color: var(--ink-body); }
.hc-step > .hc-input { margin: 16px 0 20px; }
textarea.hc-input { min-height: 90px; resize: vertical; }

.hc-options { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px; border-radius: var(--radius-md); }
.hc-option {
  min-height: 50px; padding: 13px 18px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid rgba(20, 21, 19, 0.14);
  font-size: 0.98rem; text-align: left; color: var(--ink); cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.hc-option:hover { border-color: rgba(20, 21, 19, 0.4); transform: translateY(-1px); }
.hc-option:active { transform: scale(0.98); }
.hc-option.active { border-color: var(--vital-green-deep); background: var(--green-tint); font-weight: 500; }
.is-flash { outline: 2px solid var(--error); outline-offset: 3px; }

.hc-label { display: block; margin: 18px 0 7px; font-size: 0.84rem; color: var(--ink-body); }
.hc-input--flush { margin-bottom: 0; }
.hc-field-msg { margin: 8px 0 0; font-size: 0.86rem; color: var(--ink-body); }
.hc-suggest { padding: 0; background: none; border: 0; font-weight: 600; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
.hc-no-wa-note { margin: 14px 0 0; }
.hc-no-wa-link {
  display: block; margin: 16px auto 0; padding: 6px 8px; background: none; border: 0;
  font-size: 0.86rem; color: var(--ink-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.hc-submit { margin-top: 24px; }
.hc-consent { margin-top: 18px; font-size: 0.8125rem; line-height: 1.55; color: var(--ink-muted); }
.hc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hc-back {
  display: none; min-height: 44px; padding: 0 2px 0 12px; background: none; border: 0;
  font-size: 0.84rem; color: var(--ink-body); cursor: pointer;
}
.hc-back:hover { color: var(--ink); }

.hc-result h2 { margin: 0 0 14px; }
.hc-disclaimer { margin-top: 14px; padding-left: 12px; border-left: 2px solid rgba(20, 21, 19, 0.14); font-size: 0.86rem; line-height: 1.55; color: var(--ink-body); }
.hc-disclaimer.hc-confirm { margin: 0 0 22px; color: var(--ink); }
.hc-vorschau-ende { margin-top: 20px; }

.vorschau-banner { max-width: 620px; margin: 0 auto 16px; padding: 12px 16px; border-left: 3px solid var(--vital-green); background: rgba(255, 255, 255, 0.6); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 0.9rem; color: var(--ink); }
.hc-inaktiv { min-height: 0; }
.hc-inaktiv h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-bottom: 10px; }

/* ---------- Anmeldung ---------- */

.ablauf { display: grid; gap: 16px; margin: 0 0 32px; list-style: none; }
@media (min-width: 820px) { .ablauf { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.ablauf li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.ablauf strong { display: block; padding-top: 9px; font-size: 1rem; letter-spacing: -0.01em; }
.ablauf p { margin-top: 2px; font-size: 0.9375rem; line-height: 1.5; }
.ablauf-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(20, 21, 19, 0.07); border-top-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px -10px rgba(20, 21, 19, 0.22);
  font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; line-height: 1; color: var(--vital-green-deep);
}

.anm-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 980px) { .anm-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; } }
.anm-form { padding: 32px 28px; }
@media (min-width: 640px) { .anm-form { padding: 40px 40px; } }
.anm-form h2 { margin-bottom: 28px; }
.anm-submit { margin-top: 18px; width: 100%; }
@media (min-width: 640px) { .anm-submit { width: auto; min-width: 260px; } }

/* Editor für die eigene Frage */
.field textarea#feText { min-height: 0; resize: none; line-height: 1.45; }
.fe-label { margin-bottom: 0; font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.fe-label-hint { font-weight: 400; color: var(--ink-muted); }
.fe-vorlagen { margin: 10px 0 20px; }
.fe-optionen { display: grid; gap: 8px; }
.fe-option { display: flex; gap: 8px; align-items: center; }
.field .fe-option input { flex: 1; min-width: 0; }
.fe-del {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: none; border: 1px solid transparent; color: var(--ink-muted); cursor: pointer;
}
.fe-del:hover { color: var(--ink); border-color: var(--hairline); background: rgba(255, 255, 255, 0.7); }
.fe-plus { margin-top: 4px; }
.fe-leeren { margin-top: 2px; color: var(--ink-body); font-weight: 400; }
.fe-msg { margin: 4px 0 6px; }

/* Vorschau neben dem Formular */
.anm-vorschau { padding: 28px 24px; }
@media (min-width: 980px) { .anm-vorschau { position: sticky; top: 24px; } }
.vorschau-label { margin-bottom: 18px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.vorschau-kopf { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.vorschau-kopf .eyebrow { margin-bottom: 8px; color: var(--vital-green-deep); }
.vorschau-h { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.vorschau-intro { margin-top: 8px; font-size: 0.875rem; line-height: 1.5; }
.vorschau-link { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.vorschau-liste { display: grid; gap: 6px; list-style: none; }
.vorschau-liste li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 4px 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-body); }
.v-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(20, 21, 19, 0.06); font-size: 0.75rem; font-weight: 500; color: var(--ink); }
.v-text { padding-top: 3px; }
.vorschau-liste .v-eigene { margin: 6px 0; padding: 12px; border-radius: var(--radius-md); background: var(--white); border: 1.5px solid var(--vital-green-deep); }
.v-eigene .v-num { background: var(--vital-green-deep); color: var(--white); }
.v-eigene.is-leer { border: 1.5px dashed var(--field-border); background: rgba(255, 255, 255, 0.5); color: var(--ink-muted); }
.v-eigene.is-leer .v-num { background: rgba(20, 21, 19, 0.06); color: var(--ink-muted); }
.v-tag { display: block; margin-bottom: 2px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vital-green-deep); }
.v-eigene strong { display: block; color: var(--ink); font-weight: 600; }
.v-optionen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.v-optionen span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--hairline); font-size: 0.75rem; color: var(--ink-body); }
.vorschau-btn { width: 100%; margin-top: 20px; }
.vorschau-hinweis { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-muted); text-align: center; }

/* Fertig */
.fertig-card { max-width: 680px; margin: 0 auto; padding: 36px 28px; }
@media (min-width: 640px) { .fertig-card { padding: 44px 44px; } }
.fertig-card:focus { outline: none; }
.fertig-card h2 { margin-bottom: 26px; }
.fertig-label { margin: 22px 0 8px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.fertig-card > p:not(.fertig-label) { margin-bottom: 10px; }
.fertig-mail, .fertig-tipp { margin-top: 22px; font-size: 0.9375rem; }
.fertig-tipp { padding: 14px 16px; border-left: 3px solid var(--vital-green); background: rgba(255, 255, 255, 0.6); border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--ink); }

.link-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 10px 10px 16px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--field-border); }
.link-box-url { flex: 1 1 200px; min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: rgba(20, 21, 19, 0.25); text-underline-offset: 3px; }
.link-box-url:hover { text-decoration-color: currentColor; }

/* ---------- Partner-Bereich ---------- */

.bereich { max-width: 820px; }
.bereich-status { padding: 24px 0; max-width: 62ch; }
.lead-leer p, .bereich-edit .field-msg { max-width: 62ch; }
.bereich-kopf { padding: 24px; }
.bereich-kopf .fertig-label { margin-top: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 20px; }
.stats > div { display: flex; flex-direction: column; }
.stat-num { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.stat-num--text { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.9; }
.stat-label { font-size: 0.8125rem; color: var(--ink-muted); }
.stats--klein { gap: 8px 28px; margin-top: 14px; }
.stats--klein .stat-num { font-size: 1.4rem; }

.bereich-h { margin: 44px 0 16px; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.lead-liste { display: grid; gap: 12px; }
.lead-leer { padding: 20px 0; }
.lead-leer p + p { margin-top: 8px; }
.lead-card { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--hairline); }
.lead-kopf { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.lead-name { font-size: 1.125rem; }
.lead-zeit { font-size: 0.8125rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.lead-tag { padding: 2px 10px; border-radius: 999px; background: var(--green-tint); font-size: 0.75rem; color: var(--vital-green-deep); }
.lead-ergebnis { margin-top: 4px; font-weight: 500; color: var(--ink); }
.lead-kontakt { margin-top: 2px; font-size: 0.9375rem; overflow-wrap: anywhere; }
.lead-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.lead-aktionen:empty { display: none; }
.lead-details { margin-top: 12px; }
.lead-details summary, .bereich-edit summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 0.9375rem; font-weight: 500; color: var(--accent-text); }
.lead-details dl { display: grid; grid-template-columns: 1fr; gap: 2px 16px; padding: 8px 0 4px; font-size: 0.9rem; }
@media (min-width: 560px) { .lead-details dl { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.lead-details dt { padding-top: 8px; color: var(--ink-muted); }
.lead-details dd { padding-bottom: 8px; color: var(--ink); white-space: pre-line; border-bottom: 1px solid var(--hairline); }
@media (min-width: 560px) { .lead-details dt { border-bottom: 1px solid var(--hairline); padding-bottom: 8px; } .lead-details dd { padding-top: 8px; } }
.lead-loeschen { margin-top: 6px; color: var(--ink-muted); font-weight: 400; font-size: 0.8125rem; }

.bereich-edit { margin-top: 44px; padding: 8px 24px; }
.bereich-edit[open] { padding-bottom: 28px; }
.bereich-edit summary { font-size: 1.05rem; }
.bereich-edit form { padding-top: 16px; }
.bereich-edit fieldset { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.bereich-edit .btn-primary { margin-top: 20px; }

/* ---------- Admin ---------- */

.admin-liste { display: grid; gap: 14px; max-width: 900px; }
.admin-karte { padding: 22px 24px; }
.admin-karte.is-pausiert { opacity: 0.65; }
.admin-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.admin-kopf strong { font-size: 1.1rem; }
.admin-meta { display: inline; font-size: 0.875rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.admin-kopf .admin-meta { display: block; }
.admin-status { align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--green-tint); font-size: 0.8125rem; color: var(--vital-green-deep); }
.is-pausiert .admin-status { background: rgba(20, 21, 19, 0.06); color: var(--ink-muted); }
.admin-check, .admin-frage { margin-top: 10px; font-size: 0.9375rem; overflow-wrap: anywhere; }
.admin-label { display: block; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.admin-aktionen { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 16px; }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 70ch; }
.legal h2 { margin: 32px 0 8px; font-size: 1.125rem; letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 1rem; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 8px 0 0 20px; }
.legal address { font-style: normal; color: var(--ink-body); }

/* ---------- Weniger Bewegung, weniger Transparenz ---------- */

@media (prefers-reduced-motion: reduce) {
  .mesh-blob { animation: none; }
  .hc-step.hc-step-visible { animation: none; }
  .btn, .chip, .hc-option { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .btn-ghost, .ablauf-num { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mesh-blob { display: none; }
}
