/* =====================================================================
   Coinessenz Prüfstelle - Designsystem
   Schriften liegen lokal (kein Abruf bei Google = kein DSGVO-Thema).
   Farben: Tinte (dunkles Petrol aus deinen Fotos) + Coinessenz-Orange.
   ===================================================================== */

@font-face { font-family: "Inter"; src: url("schrift/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("schrift/inter-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("schrift/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("schrift/instrument-serif.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  --ink: #081013;
  --ink-2: #0c171b;
  --panel: #111f25;
  --panel-2: #16272e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #eef3f5;
  --soft: #c8d5da;
  --muted: #9bafb7;
  --dim: #6c8189;
  --orange: #ff7a1a;
  --orange-2: #ff9a4a;
  --gold: #e8a012;
  --green: #3ecf8e;
  --yellow: #f5c043;
  --red: #ff5d5d;
  --radius: 20px;
  --max: 1180px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* feines Korn über allem - nimmt dem Dunkel das "Flache" */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--orange); color: #1a0d03; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- Navigation: schwebende Pille ---------- */
.kopf { position: sticky; top: 14px; z-index: 50; padding: 14px 14px 0; pointer-events: none; }
.kopf.schwebend { position: fixed; left: 0; right: 0; top: 0; }
.kopf .wrap {
  pointer-events: auto;
  max-width: 1080px; height: 62px; padding: 0 8px 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(10, 20, 24, 0.55);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid var(--line-2); border-radius: 999px;
  box-shadow: 0 20px 50px -25px rgba(0,0,0,.8);
  transition: background .3s;
}
.kopf.voll .wrap { background: rgba(10, 20, 24, 0.85); }
.marke { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.marke img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--orange); }
.marke b { font-weight: 800; letter-spacing: 0.16em; font-size: 13px; display: block; }
.marke span { color: var(--orange); font-family: var(--serif); font-style: italic; font-size: 16px; display: block; line-height: 1; margin-top: 1px; }
.marke .txt { line-height: 1.15; }
.kopf nav { display: flex; gap: 6px; align-items: center; }
.kopf nav a.l { color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.kopf nav a.l:hover { color: var(--text); background: rgba(255,255,255,.07); }
@media (max-width: 900px) { .kopf nav a.l { display: none; } }
@media (max-width: 420px) { .marke .txt { display: none; } }

/* ---------- Knöpfe ---------- */
.knopf {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--orange); color: #190c02; font-weight: 750; font-size: 16px; font-family: inherit;
  padding: 17px 28px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 14px 34px -12px rgba(255, 122, 26, 0.75), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.knopf::after { /* Lichtkante, die beim Überfahren durchläuft */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.knopf:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(255, 122, 26, 0.9), inset 0 1px 0 rgba(255,255,255,0.35); }
.knopf:hover::after { left: 130%; }
.knopf .pfeil { transition: transform .2s; }
.knopf:hover .pfeil { transform: translateX(3px); }
.knopf.klein { padding: 11px 18px; font-size: 14px; }
.knopf.leise { background: rgba(255,255,255,.04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.knopf.leise::after { display: none; }
.knopf.leise:hover { box-shadow: inset 0 0 0 1px var(--orange); background: rgba(255,122,26,.06); }
.knopf svg { width: 18px; height: 18px; }
.knopf:disabled { opacity: .7; cursor: wait; }

/* ---------- Typo ---------- */
.augenbraue {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange);
}
.augenbraue::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
h1, h2, h3 { line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
h2 { text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(34px, 4.8vw, 60px); }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; }
.ser { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 .ser, h2 .ser { font-size: 1.08em; }
.orange { color: var(--orange); }
.gedaempft { color: var(--muted); }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--soft); line-height: 1.55; }

section { padding: 130px 0; position: relative; }
@media (max-width: 700px) { section { padding: 84px 0; } }
.abschnitt-kopf { max-width: 760px; margin-bottom: 60px; }
.abschnitt-kopf h2 { margin: 18px 0 18px; }

/* ---------- Karten ---------- */
.karte {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

/* ---------- KI-Kennzeichnung (AI Act Art. 50) ---------- */
.ki {
  position: absolute; z-index: 3; left: 10px; bottom: 10px; top: auto;
  font-size: 9px; font-weight: 600; letter-spacing: .04em; line-height: 1;
  color: rgba(255,255,255,.62); background: rgba(0,0,0,.22);
  padding: 3px 6px; border-radius: 4px; pointer-events: none;
}

/* ---------- Ampel ---------- */
.ampel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.ampel i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 12px currentColor; }
.ampel.gruen { color: var(--green); } .ampel.gruen i { background: var(--green); }
.ampel.gelb { color: var(--yellow); } .ampel.gelb i { background: var(--yellow); }
.ampel.rot { color: var(--red); } .ampel.rot i { background: var(--red); }

/* ---------- Formular ---------- */
.feld {
  width: 100%; padding: 17px 22px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-2);
  color: var(--text); font-size: 16px; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.feld::placeholder { color: var(--dim); }
.feld:focus { outline: none; border-color: var(--orange); background: rgba(255,122,26,0.06); }
.haken { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer; text-align: left; }
.haken input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--orange); flex: 0 0 auto; }
.haken a { color: var(--text); }
.hinweis { font-size: 13px; color: var(--dim); }
.fehler { color: var(--red); font-size: 14px; display: none; margin-top: 4px; }

/* ---------- Fußzeile ---------- */
.fuss { border-top: 1px solid var(--line); padding: 50px 0 60px; color: var(--dim); font-size: 14px; }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.fuss nav { display: flex; gap: 22px; flex-wrap: wrap; }
.fuss a { color: var(--muted); text-decoration: none; }
.fuss a:hover { color: var(--text); }
.fuss .disclaimer { flex-basis: 100%; font-size: 12.5px; line-height: 1.6; max-width: 900px; }

/* ---------- Einblenden (Fallback ohne GSAP) ---------- */
.js .rein { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rein.da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rein { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Rechtstexte ---------- */
.recht { padding: 60px 0 100px; }
.recht .wrap { max-width: 780px; }
.recht h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 30px; }
.recht h2 { font-size: 22px; margin: 38px 0 10px; letter-spacing: -0.01em; }
.recht p, .recht li { color: var(--soft); margin-bottom: 12px; font-size: 16px; }
.recht ul { padding-left: 20px; }
.platzhalter { background: rgba(245,192,67,0.18); color: var(--yellow); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
