/* VAIRIFY.ME public site — Brand und Design Guide 0.2 (W-260918004). Tokens come from brand.css.
   Surface hierarchy (slide 9): Dark-Slate base, Verify Green as the one accent, text white on dark.
   Status colours only with a word or an icon (slide 10). No neon, no decoration (slide 21). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--vm-dark-slate);
  color: var(--vm-white);
  font-family: var(--vm-font-text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vm-verify-green); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--vm-verify-green);
  outline-offset: 3px;
}
h1, h2, h3 {
  font-family: var(--vm-font-display);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-weight: 700; font-size: 1.15rem; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem;
  padding: 0.5rem 0.9rem; background: var(--vm-verify-green); color: var(--vm-dark-slate);
  border-radius: 6px; font-weight: 600; z-index: 20;
}
.skip-link:focus { left: 0.5rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── header ──────────────────────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--vm-line);
  position: relative; z-index: 4;
}
.site-logo { display: flex; align-items: center; gap: 0.7rem; }
.brand-v { height: 34px; width: auto; }        /* the mark alone: ≥ 32 px digital (slide 17) */
.brand-typo { height: 17px; width: auto; }     /* the word mark, the delivered master file */
.header-koop { height: 26px; width: auto; margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: 0.35rem; font-family: var(--vm-font-text); }
.lang-switch button, .lang-switch a {
  appearance: none; background: none; border: 1px solid transparent; border-radius: 6px;
  color: var(--vm-soft); font: inherit; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em;
  padding: 0.3rem 0.55rem; cursor: pointer; text-decoration: none;
}
.lang-switch button[aria-pressed="true"], .lang-switch a[aria-current="true"] { color: var(--vm-dark-slate); background: var(--vm-verify-green); }
.lang-switch-sep { color: var(--vm-muted); }

/* ── layout ──────────────────────────────────────────────────────────────── */
.site-main { position: relative; z-index: 4; max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--vm-line); }
section:last-of-type { border-bottom: 0; }
.section-lead { color: var(--vm-soft); font-size: 1.1rem; margin-top: 0.6rem; max-width: 60ch; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(3rem, 8vw, 6rem); }
.eyebrow {
  font-family: var(--vm-font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--vm-verify-green); margin-bottom: 1rem;
}
.hero h1 { max-width: 14ch; }
.lead { font-family: var(--vm-font-text); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.45rem); margin-top: 1.2rem; max-width: 40ch; }
.summary { color: var(--vm-soft); margin-top: 1rem; max-width: 62ch; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 8px;
  font-family: var(--vm-font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  border: 1px solid transparent; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--vm-verify-green); color: var(--vm-dark-slate); }
.btn-primary:hover { background: #1fb454; }
.btn-ghost { border-color: var(--vm-line); color: var(--vm-white); }
.btn-ghost:hover { border-color: var(--vm-verify-green); }

/* ── signal flow ─────────────────────────────────────────────────────────── */
.flow-steps {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.flow-step {
  background: var(--vm-slate-2); border: 1px solid var(--vm-line); border-radius: 12px;
  padding: 1.4rem 1.2rem; display: grid; gap: 0.6rem; align-content: start;
}
.flow-step img { width: 64px; height: 64px; }
.flow-kicker { font-family: var(--vm-font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vm-verify-green); }
.flow-step h3 { font-size: 1.05rem; }
.flow-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.2rem; }
.flow-columns p { color: var(--vm-soft); margin-top: 0.5rem; }
.mini-title { font-family: var(--vm-font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vm-white); }

/* ── audiences ───────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.card { background: var(--vm-light-gray); color: var(--vm-dark-slate); border-radius: 12px; padding: 1.5rem 1.3rem; }
.card-kicker { font-family: var(--vm-font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vm-deep-green); margin-bottom: 0.6rem; }
.card h3 { font-size: 1.35rem; font-weight: 800; }
.card dl { margin: 1.1rem 0 0; }
.card dt { font-weight: 600; margin-top: 0.8rem; }
.card dd { margin: 0.15rem 0 0; color: #374151; font-size: 0.95rem; }

/* ── demo (ids and classes are the contract with demo.js) ───────────────── */
.demo { max-width: 720px; }
.demo-intro { color: var(--vm-soft); margin-top: 0.8rem; }
.demo-step { margin-top: 1.5rem; }
.demo-step label { display: block; font-weight: 600; margin-bottom: 0.45rem; }
.demo-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.demo-row input {
  flex: 1 1 220px; min-width: 0; padding: 0.8rem 0.9rem; border-radius: 8px;
  border: 1px solid var(--vm-slate-3); background: var(--vm-slate-2); color: var(--vm-white);
  font: inherit; font-size: 1.05rem;
}
.demo-row input::placeholder { color: var(--vm-muted); }
.demo-row button, #demo-call-btn {
  appearance: none; border: 0; border-radius: 8px; padding: 0.8rem 1.3rem; cursor: pointer;
  background: var(--vm-verify-green); color: var(--vm-dark-slate);
  font-family: var(--vm-font-display); font-weight: 700; font-size: 0.95rem;
}
.demo-row button:hover, #demo-call-btn:hover { background: #1fb454; }
.demo-row button:disabled, #demo-call-btn:disabled { opacity: 0.55; cursor: default; }
.demo-privacy, .demo-hint { color: var(--vm-muted); font-size: 0.88rem; margin-top: 0.7rem; line-height: 1.5; }
.demo-link {
  appearance: none; background: none; border: 0; padding: 0; margin-top: 0.7rem; cursor: pointer;
  color: var(--vm-verify-green); font: inherit; font-size: 0.9rem; text-decoration: underline;
}
.demo-link--kontakt { display: inline-block; margin-top: 0.5rem; font-weight: 600; }
.demo-caller-note {
  margin: 0 0 0.9rem; padding: 0.6rem 0.8rem; font-size: 0.9rem; line-height: 1.45;
  background: var(--vm-green-soft); border: 1px solid var(--vm-line); border-radius: 8px;
}
.demo-caller-note strong { color: var(--vm-verify-green); letter-spacing: 0.04em; }
.demo-codeword-label { font-weight: 600; margin-top: 0.8rem; }
.demo-codeword {
  font-family: var(--vm-font-display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--vm-verify-green); letter-spacing: 0.04em; margin: 0.3rem 0 0.6rem;
}
.demo-duress { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px dashed var(--vm-line); }
.demo-codeword-duress { color: var(--vm-warning); }
.demo-optout { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.9rem 0; font-size: 0.88rem; color: var(--vm-soft); }
.demo-optout input { margin-top: 0.25rem; accent-color: var(--vm-verify-green); }
.demo-status { margin-top: 1rem; min-height: 1.4em; font-weight: 500; color: var(--vm-soft); }
.demo-status.demo-error { color: var(--vm-critical); }
.demo-kontakt { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 10px; background: var(--vm-slate-2); border: 1px solid var(--vm-line); }

/* ── status strip ────────────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 0; }
.facts dt { font-family: var(--vm-font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vm-verify-green); }
.facts dd { margin: 0.4rem 0 0; color: var(--vm-soft); font-size: 0.95rem; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 4; margin-top: 2rem; padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--vm-line); background: var(--vm-deep-green);
  display: grid; gap: 1rem; justify-items: start;
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.footer-typo { height: 18px; width: auto; }
.footer-koop { height: 27px; width: auto; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.imprint-link { color: var(--vm-white); font-size: 0.9rem; }
.footer-line { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; }

/* ── legal pages (impressum, datenschutz) ────────────────────────────────── */
.legal-body { background: var(--vm-light-gray); color: var(--vm-dark-slate); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); background: var(--vm-dark-slate); }
.legal-home { display: inline-block; }
.legal-home { display: inline-flex; }
.legal-main { max-width: 760px; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.imprint h1 { font-size: 2rem; margin-bottom: 1rem; }
.imprint h2 { font-size: 1.2rem; margin-top: 2rem; }
.imprint p, .imprint li, .imprint address { color: #374151; }
.imprint address { font-style: normal; margin: 0.8rem 0; line-height: 1.6; }
.imprint strong { color: var(--vm-dark-slate); }
.imprint a { color: var(--vm-deep-green); text-decoration: underline; }
.imprint ul { padding-left: 1.2rem; }
.legal-footer { max-width: 760px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem) 2rem; font-size: 0.85rem; color: #6b7280; }
.legal-footer a { color: var(--vm-deep-green); }
.label { font-weight: 600; }

/* ── M11: outcome lighting — the page reacts to the demo verdict ─────────────
   REAL_ALARM: police-style red/blue wash. FALSE_ALARM: calm green breathing.
   UNCLEAR: amber pulse. Overlay only (pointer-events none), content stays
   readable; flash rate < 2 Hz (WCAG 2.3.1); reduced-motion gets a static tint. */
.outcome-lights { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }
.outcome-lights::before, .outcome-lights::after { content: ""; position: absolute; inset: 0; opacity: 0; }
body.outcome-alarm .outcome-lights { opacity: 1; }
body.outcome-alarm .outcome-lights::before {
  background: radial-gradient(ellipse 70% 55% at 12% 18%, rgba(239, 68, 68, 0.5), transparent 65%);
  animation: police-red 1.1s steps(1) infinite;
}
body.outcome-alarm .outcome-lights::after {
  background: radial-gradient(ellipse 70% 55% at 88% 18%, rgba(96, 165, 250, 0.55), transparent 65%);
  animation: police-blue 1.1s steps(1) infinite;
}
@keyframes police-red { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0.12; } }
@keyframes police-blue { 0%, 45% { opacity: 0.12; } 50%, 100% { opacity: 1; } }
body.outcome-clear .outcome-lights { opacity: 1; }
body.outcome-clear .outcome-lights::before {
  background: radial-gradient(ellipse 90% 70% at 50% 85%, rgba(24, 176, 61, 0.4), transparent 70%);
  animation: breathe 3s ease-in-out infinite; opacity: 1;
}
@keyframes breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
body.outcome-unclear .outcome-lights { opacity: 1; }
body.outcome-unclear .outcome-lights::before {
  background: radial-gradient(ellipse 90% 70% at 50% 15%, rgba(245, 158, 11, 0.38), transparent 70%);
  animation: breathe 2s ease-in-out infinite; opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.outcome-alarm .outcome-lights::before, body.outcome-alarm .outcome-lights::after,
  body.outcome-clear .outcome-lights::before, body.outcome-unclear .outcome-lights::before { animation: none; opacity: 0.45; }
}

/* ── small screens ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .flow-columns { grid-template-columns: 1fr; gap: 1.2rem; }
}
/* W-260920001 (founder, from the phone): the cooperation logo ran into the mark. Under 640 px it takes its own
   centred top row; the mark and the language switch share the row beneath. Same for the legal pages' header. */
@media (max-width: 640px) {
  .site-header, .legal-header { flex-wrap: wrap; row-gap: 0.6rem; }
  .site-header .header-koop, .legal-header .header-koop { order: -1; flex: 0 0 100%; height: 20px; margin: 0 auto; }
  .site-header .lang-switch { margin-left: auto; }
}
@media (max-width: 520px) {
  .header-koop { height: 20px; }
  .flow-steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .brand-typo { height: 14px; }
}

/* ── W-260920004: the Impressum names two companies ──── */
.imprint-h2 { font-size: 1rem; margin: 1.4rem 0 0.5rem; letter-spacing: 0.04em; text-transform: uppercase; color: #374151; }
.imprint-lead { margin: 0 0 0.5rem; color: #374151; }
.imprint-note { color: #4b5563; font-size: 0.92rem; line-height: 1.6; }

/* ── W-260902003: /kontakt (rendered by the app, styled here so the site owns the look) ──── */
.kontakt-inner { width: min(100%, 40rem); }
.kontakt-intro { color: #374151; font-size: 1rem; line-height: 1.65; }
.kontakt-error { margin: 0 0 1rem; padding: 0.55rem 0.75rem; color: #991b1b; background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.35); border-radius: 8px; font-size: 0.92rem; }
.kontakt-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.kontakt-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.kontakt-field { display: flex; flex-direction: column; gap: 0.375rem; }
.kontakt-field label { font-size: 0.85rem; font-weight: 600; color: var(--vm-dark-slate); }
.kontakt-field input, .kontakt-field select, .kontakt-field textarea { width: 100%; padding: 0.6rem 0.75rem; font: inherit; font-size: 1rem; color: var(--vm-dark-slate); background: var(--vm-white); border: 1px solid #d1d5db; border-radius: 8px; }
.kontakt-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%), linear-gradient(135deg, #6b7280 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.kontakt-field input:focus-visible, .kontakt-field select:focus-visible, .kontakt-field textarea:focus-visible { outline: 2px solid var(--vm-verify-green); outline-offset: 2px; }
.kontakt-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.kontakt-form details { border: 1px solid #d1d5db; border-radius: 8px; background: var(--vm-white); }
.kontakt-form summary { list-style: none; cursor: pointer; padding: 0.875rem 1rem; font-size: 0.92rem; color: #374151; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.kontakt-form summary::-webkit-details-marker { display: none; }
.kontakt-chev { width: 1rem; height: 1rem; flex: 0 0 auto; color: #6b7280; transition: transform 0.15s; }
.kontakt-form details[open] summary { border-bottom: 1px solid #e5e7eb; }
.kontakt-form details[open] .kontakt-chev { transform: rotate(180deg); }
.kontakt-details { display: flex; flex-direction: column; gap: 1.25rem; padding: 1rem; }
.kontakt-group { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.kontakt-group legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--vm-dark-slate); }
.kontakt-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; }
.kontakt-check { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.92rem; line-height: 1.45; color: #374151; }
.kontakt-check input { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin: 0.12rem 0 0; accent-color: var(--vm-verify-green); }
.kontakt-consent { color: var(--vm-dark-slate); }
.kontakt-btn, .imprint a.kontakt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.6rem 1.1rem; font-family: var(--vm-font-display); font-weight: 700; font-size: 0.95rem; color: var(--vm-dark-slate); background: var(--vm-verify-green); border: 0; border-radius: 8px; cursor: pointer; text-decoration: none; }
.kontakt-btn:hover, .imprint a.kontakt-btn:hover { background: #1fb454; }
.kontakt-link { margin-left: 1rem; color: #374151; font-size: 0.92rem; }
.kontakt-hint { margin: 0; font-size: 0.78rem; line-height: 1.45; color: #6b7280; }
.kontakt-danke { display: flex; flex-direction: column; gap: 0.875rem; }
.kontakt-danke .status { margin: 0; }
.kontakt-actions { display: flex; align-items: center; margin-top: 0.75rem; }
@media (max-width: 700px) { .kontakt-row, .kontakt-checks { grid-template-columns: repeat(1, minmax(0, 1fr)); } }

/* ── /demo: the stand-alone demo page — the previous start page's shape in the brand: the mark centred,
   the map behind, a short introduction, the form; laid out for a phone screen first. ────────── */
.demo-body { min-height: 100vh; }
.demo-main { position: relative; z-index: 4; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 3.2rem 1rem 4rem; }
.world-frame { position: fixed; inset: 0; z-index: -3; }
.world-background { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.background-shade { position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(circle at center, rgba(17, 24, 39, 0.1) 0%, rgba(17, 24, 39, 0.8) 68%), linear-gradient(180deg, rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.92)); }
.lang-switch--pinned { position: fixed; top: 0.7rem; right: 0.8rem; z-index: 6; }
.demo-hero { width: min(100%, 34rem); text-align: center; padding: 0 0 0.5rem; border-bottom: 0; }
.demo-brand { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-decoration: none; }
.demo-brand-v { height: clamp(56px, 14vw, 84px); width: auto; }
.demo-brand-typo { height: clamp(15px, 4vw, 20px); width: auto; }
.demo-brand-koop { height: clamp(22px, 5.5vw, 28px); width: auto; margin: 1rem auto 0; }
.demo-claim { font-size: clamp(1.5rem, 6vw, 2.2rem); margin-top: 1.4rem; }
.demo-lead { color: var(--vm-soft); font-size: clamp(0.98rem, 3.4vw, 1.1rem); margin-top: 0.6rem; }
.demo--page { width: min(100%, 34rem); padding: 1.2rem 0 0; border-bottom: 0; }
.demo--page .demo-intro { text-align: center; font-size: 0.95rem; }
.demo--page .demo-step { margin-top: 1.1rem; }
.demo--page .demo-row input { font-size: 1.05rem; padding: 0.75rem 0.85rem; }
.legal-links--pinned { margin-top: auto; padding-top: 2.2rem; justify-content: center; }
