/* ==========================================================================
   Kartenset-Landingpage – Styles nach Screendesign (Design-System „Organic“)
   Tokens 1:1 aus _ds/organic/styles.css übernommen, Google-Fonts-Import
   ersetzt durch selbst gehostete Schriften. Keine Inline-Styles (CSP).
   ========================================================================== */

/* --- Schriften (selbst gehostet, Lizenz: SIL OFL, siehe /assets/fonts) --- */
@font-face {
  font-family: "Caprasimo";
  src: url("/assets/fonts/caprasimo-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-variable.woff2") format("woff2-variations"),
       url("/assets/fonts/figtree-latin-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens ------------------------------------------------------------------ */
:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: calc(var(--radius-lg) * 1.15);

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  --error-on-light: #a3261a;
  --error-on-dark: var(--color-accent-300);
}

/* --- Basis ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--color-accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; }
.skip-link:focus { left: 12px; background: var(--color-surface); padding: 8px 14px; border-radius: 999px; }

.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); }

/* --- Layout -------------------------------------------------------------------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.band { padding: clamp(64px, 10vw, 120px) 20px; }
.band--dark { background: var(--color-neutral-900); color: var(--color-bg); }
.band--sage { background: var(--color-accent-2-900); color: var(--color-bg); }

.text-large { font-size: clamp(19px, 2.6vw, 26px); line-height: 1.45; }
.text-muted { color: var(--color-neutral-700); }
.kicker { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-700); }

/* --- Buttons & Inputs (aus dem Design-System) ----------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: 999px;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }

.input {
  width: 100%; min-height: 36px; padding: 6px 14px;
  font: inherit; font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 999px;
}
.input::placeholder { color: var(--color-neutral-600); }
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

/* Ladezustand */
.btn__loading { display: none; }
.btn.is-loading { opacity: 1; cursor: progress; }
.btn.is-loading .btn__label { display: none; }
.btn.is-loading .btn__loading { display: inline-flex; align-items: center; gap: 10px; }
.btn.is-loading .btn__loading::before {
  content: ""; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Anmeldeformular (Hero + unten) ---------------------------------------------- */
.signup { max-width: 480px; }
.signup__form { display: flex; flex-direction: column; gap: 10px; }
.signup__row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup__row .input { flex: 1 1 200px; min-height: 52px; font-size: 16px; }
.signup__button { flex: 0 0 auto; min-height: 52px; padding-inline: 22px; font-size: 16px; }
.signup__note { font-size: 12px; color: var(--color-neutral-700); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.5; color: var(--color-neutral-800); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--color-accent); cursor: pointer; }
.check label { cursor: pointer; }
.check a { text-decoration: underline; }

.field-error { font-size: 13.5px; color: var(--error-on-light); padding-left: 14px; }
.form-error {
  font-size: 14px; line-height: 1.5; padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--color-accent-100); color: var(--color-accent-800);
}
.input[aria-invalid="true"] { border-color: var(--error-on-light); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.signup__success { padding: 20px 22px; border-radius: var(--radius-xl); background: var(--color-accent-2-100); outline: none; }
.signup__success-title { margin: 0 0 6px; font-family: var(--font-heading); font-size: 20px; line-height: 1.2; }
.signup__success p:last-child { font-size: 14.5px; line-height: 1.55; color: var(--color-accent-2-800); }

/* Variante auf dunklem Salbei-Hintergrund */
.signup--on-dark { max-width: none; }
.signup--on-dark .signup__form { gap: 12px; }
.signup--on-dark .input { background: var(--color-bg); border-color: transparent; }
.signup--on-dark .check { color: var(--color-accent-2-100); }
.signup--on-dark .check a,
.signup--on-dark .signup__note a { color: var(--color-accent-2-100); text-decoration: underline; }
.signup--on-dark .signup__note { font-size: 12.5px; line-height: 1.6; color: var(--color-accent-2-200); }
.signup--on-dark .field-error { color: var(--error-on-dark); }
.signup--on-dark .input[aria-invalid="true"] { border-color: var(--error-on-dark); }
.signup--on-dark .form-error { background: rgb(245 234 216 / 0.12); color: var(--color-bg); }
.signup--on-dark .signup__success { padding: 24px 26px; background: rgb(245 234 216 / 0.1); }
.signup--on-dark .signup__success-title { margin-bottom: 8px; font-size: 24px; }
.signup--on-dark .signup__success p:last-child { font-size: 15.5px; line-height: 1.6; color: var(--color-accent-2-100); }

.noscript-note { font-size: 14px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--color-accent-100); color: var(--color-accent-800); }

/* --- 1. Hero ----------------------------------------------------------------------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 28px 0 34px;
}
.hero__inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero__text { flex: 1 1 380px; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
.hero__title { font-size: clamp(34px, 6.4vw, 64px); line-height: 1.04; letter-spacing: -0.02em; max-width: 15ch; }
.hero__lead { font-size: clamp(16px, 2.2vw, 20px); line-height: 1.5; max-width: 44ch; color: var(--color-neutral-800); }
.hero__media { flex: 1 1 300px; min-width: 240px; max-width: 520px; }

.photo { border-radius: var(--radius-xl); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--landscape img { aspect-ratio: 4 / 3; max-height: 44svh; }
.photo--portrait img { aspect-ratio: 4 / 5; }

/* --- 2. Einstieg ----------------------------------------------------------------------- */
.intro { padding: clamp(56px, 9vw, 104px) 0; max-width: 660px; }
.intro p + p { margin-top: 18px; }

/* --- 3. Drei Punkte --------------------------------------------------------------------- */
.features { padding: 0 0 clamp(56px, 9vw, 104px); display: flex; flex-wrap: wrap; gap: 22px; }
.feature { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { font-size: 22px; line-height: 1.15; }
.feature p { font-size: 15.5px; line-height: 1.6; color: var(--color-neutral-800); }

/* --- 4. Beispielkarten ------------------------------------------------------------------ */
.samples { padding: 0 0 clamp(72px, 12vw, 140px); }
.samples .kicker { margin-bottom: 24px; }
.samples__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -20px; padding: 0 20px 14px; list-style: none;
}
.sample {
  scroll-snap-align: start; flex: 0 0 clamp(250px, 78vw, 272px); min-height: 360px;
  display: flex; flex-direction: column; gap: 18px; padding: 26px 24px;
  border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-sm);
}
.sample__stage { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-700); }
.sample__prompt { font-family: var(--font-heading); font-size: 23px; line-height: 1.24; }
.sample__cue { font-size: 16px; line-height: 1.55; color: var(--color-neutral-800); }
.samples__divider { flex: 0 0 auto; align-self: center; max-width: 11ch; padding-inline: 4px; }

/* --- 5. Zitatband ------------------------------------------------------------------------ */
.statement { margin: 0 auto; max-width: 760px; font-family: var(--font-heading); font-size: clamp(24px, 3.6vw, 40px); line-height: 1.3; text-wrap: pretty; }

/* --- 6. Über mich ------------------------------------------------------------------------- */
.about { padding: clamp(64px, 10vw, 120px) 0; display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); align-items: flex-start; }
.about__media { flex: 1 1 260px; max-width: 360px; }
.about__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.about__text h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.1; }
.about__text p { font-size: clamp(16px, 2vw, 18.5px); line-height: 1.6; }
.about__text p.text-soft { color: var(--color-neutral-800); }
.about__text p.about__claim { font-family: var(--font-heading); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.25; }

/* --- 7. Abschluss-Satz ---------------------------------------------------------------------- */
.closing { padding: 0 0 clamp(64px, 10vw, 110px); max-width: 680px; }

/* --- 8. Formular-Band ------------------------------------------------------------------------ */
.cta { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.cta h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; }

/* --- 9. FAQ ------------------------------------------------------------------------------------ */
.faq { padding: clamp(56px, 9vw, 100px) 0; max-width: 680px; display: flex; flex-direction: column; gap: 14px; }
.faq details { border-radius: var(--radius-xl); background: var(--color-surface); padding: 18px 22px; }
.faq summary { list-style: none; cursor: pointer; font-family: var(--font-heading); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--color-neutral-800); }

/* --- Footer ----------------------------------------------------------------------------------- */
.site-footer {
  padding: 0 0 calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--color-neutral-700);
}
.site-footer a { color: var(--color-accent-700); }
.link-button { font: inherit; color: var(--color-accent-700); background: none; border: 0; padding: 0; cursor: pointer; }
.link-button:hover { color: var(--color-accent-600); text-decoration: underline; }

/* --- Sticky-Leiste (nur mobil) ------------------------------------------------------------------ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--color-neutral-900); display: flex; align-items: center; gap: 12px;
}
.sticky-cta[hidden] { display: none; }
.sticky-cta span { flex: 1; font-size: 13.5px; line-height: 1.35; color: var(--color-bg); }
.sticky-cta .btn { flex: 0 0 auto; min-height: 44px; padding-inline: 18px; font-size: 14.5px; }
body.has-sticky-cta { padding-bottom: 72px; }

/* --- Consent-Banner --------------------------------------------------------------------------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
.consent[hidden] { display: none; }
.consent__inner {
  max-width: 640px; margin: 0 auto; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  max-height: 80vh; overflow-y: auto; font-size: 14px; line-height: 1.55;
}
.consent__title { font-size: 20px; line-height: 1.2; }
.consent__status { font-weight: 600; }
.consent__status:empty { display: none; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Beide Buttons absichtlich identisch – keine Wahl ist hervorgehoben. */
.btn-consent { flex: 1 1 140px; min-height: 46px; font-size: 15px; border-color: var(--color-text); color: var(--color-text); }
.btn-consent:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-consent:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

/* --- Rechtstexte ------------------------------------------------------------------------------ */
.legal { padding: clamp(40px, 7vw, 80px) 0; max-width: 720px; }
.legal__back { display: inline-block; margin-bottom: 28px; font-size: 14px; }
.legal h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; margin-bottom: 24px; }
.legal h2 { font-size: 21px; line-height: 1.2; margin: 32px 0 10px; }
.legal p { font-size: 16px; line-height: 1.65; margin-bottom: 12px; }
.legal .placeholder-note { padding: 14px 18px; border-radius: var(--radius-md); background: var(--color-accent-100); color: var(--color-accent-800); font-size: 14.5px; }
.legal .btn-consent { flex: 0 0 auto; padding-inline: 22px; }
