/* ============================================================
   Inkognito Quest — öffentliche Landing Page (ADR 0040)
   Baut auf tokens.css (--ld-* Variablen, Geist-Schrift) auf.
   Premium-dark, Gold-Akzent, asymmetrisch, mit gestaffeltem Reveal.
   ============================================================ */

.iq-public {
  font-family: var(--font-ui);
  color: var(--ld-text);
  background: var(--ld-bg);
  /* Sticky-Footer: kurze Seiten (Impressum/Datenschutz, leere Zustände, leerer
     Kalender) füllen den Viewport; der Footer sitzt am unteren Rand statt mittig
     zu schweben. Bei langen Seiten unverändert. */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.iq-public a { text-decoration: none; }
.iq-main { position: relative; z-index: 1; flex: 1 0 auto; }

:root { --iq-max: 1080px; }

/* ---------- Top nav ---------- */
.iq-nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  /* S12/iris-Entscheid 2026-08-14: backdrop-filter NICHT animieren — ein
     animierter Weichzeichner rechnet den Unschaerfe-Radius ueber die ganze
     Uebergangsdauer neu. Farbe und Rand blenden weiter weich, der
     Weichzeichner schaltet hart (er springt beim Scroll-Wechsel ohnehin
     nur zwischen aus und an). */
  transition: background .25s, border-color .25s;
}
.iq-nav.is-scrolled {
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--ld-border);
}
.iq-nav-inner {
  max-width: var(--iq-max); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
}
.iq-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ld-text); }
.iq-brand-logo {
  width: 28px; height: 28px; flex: 0 0 28px;
  background-image: var(--brand-logo-url);
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.iq-brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.iq-nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.iq-nav-links > a {
  color: var(--ld-text-dim); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.iq-nav-links > a:hover { color: var(--ld-text); background: var(--ld-surface-2); }
.iq-nav-lang { display: inline-flex; align-items: center; gap: 5px; }
/* Aufklapper „Karten & Decks" (2026-07-30): Toggle sieht aus wie ein Nav-Link,
   Menü als Panel darunter; Mobile-Variante beim 680px-Breakpoint. */
.iq-nav-drop { position: relative; }
.iq-nav-drop-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-ui);
  color: var(--ld-text-dim); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.iq-nav-drop-toggle:hover { color: var(--ld-text); background: var(--ld-surface-2); }
.iq-nav-drop-toggle .bi { font-size: 11px; transition: transform .15s; }
.iq-nav-drop.is-open .iq-nav-drop-toggle .bi { transform: rotate(180deg); }
.iq-nav-drop-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 180px; padding: 6px; z-index: 30;
  background: var(--ld-surface-1); border: 1px solid var(--ld-border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.35));
}
.iq-nav-drop.is-open .iq-nav-drop-menu { display: flex; flex-direction: column; gap: 2px; }
.iq-nav-drop-menu a {
  color: var(--ld-text-dim); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.iq-nav-drop-menu a:hover { color: var(--ld-text); background: var(--ld-surface-2); }
.iq-nav-cta {
  color: var(--ld-accent) !important;
  border: 1px solid var(--ld-border-strong);
}
.iq-nav-cta:hover { border-color: var(--ld-accent); background: var(--ld-accent-soft) !important; }
.iq-nav-login { color: var(--ld-text-mute) !important; font-size: 16px !important; }
.iq-nav-toggle {
  display: none; margin-left: auto;
  /* Zentrierung gehört in die Basis, nicht in die Media-Query: mobil wird nur
     auf inline-flex geschaltet, und ohne align/justify greift der Flex-Default
     `stretch` — das Glyph saß dann ~9 px zu hoch (Feedback 2026-08-11).
     Vorbild im selben Stylesheet: .iq-social und .iq-btn. */
  align-items: center; justify-content: center;
  padding: 0; line-height: 1;
  background: transparent; border: 1px solid var(--ld-border-strong);
  color: var(--ld-text); border-radius: var(--r-sm);
  width: 38px; height: 38px; font-size: 20px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.iq-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.iq-btn--primary {
  background: var(--ld-accent); color: #1a1410; border-color: var(--ld-accent);
}
.iq-btn--primary:hover {
  background: var(--ld-accent-hover); border-color: var(--ld-accent-hover);
  color: #1a1410; transform: translateY(-1px); box-shadow: var(--shadow-glow);
}
.iq-btn--ghost { background: transparent; color: var(--ld-text); border-color: var(--ld-border-strong); }
.iq-btn--ghost:hover { border-color: var(--ld-accent); color: var(--ld-accent); transform: translateY(-1px); }
.iq-btn--lg { padding: 14px 28px; font-size: 16px; }
.iq-btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- Shared section ---------- */
.iq-section { max-width: var(--iq-max); margin: 0 auto; padding: 64px 24px; }
.iq-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.iq-h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 600; letter-spacing: -0.02em; color: var(--ld-text); margin: 0; }
.iq-section-sub { color: var(--ld-text-mute); font-size: 14px; }
.iq-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ld-accent); margin: 0 0 14px;
}

/* ---------- Hero (asymmetrisch, Gold-Balken) ---------- */
.iq-hero { position: relative; overflow: hidden; }
.iq-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(820px 460px at 22% 0%, rgba(230, 201, 138, 0.10), transparent 60%);
}
.iq-hero-grid {
  position: relative; z-index: 1;
  max-width: var(--iq-max); margin: 0 auto;
  display: flex; gap: 26px; align-items: stretch;
  padding: clamp(64px, 13vh, 132px) 24px clamp(48px, 9vh, 96px);
}
.iq-hero-bar {
  width: 4px; flex: 0 0 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--ld-accent), rgba(230, 201, 138, 0.05));
}
.iq-hero-body { max-width: 660px; }
.iq-hero-logo { display: block; width: 84px; height: 84px; margin-bottom: 22px; }
.iq-hero-title {
  font-size: clamp(40px, 7.5vw, 74px); line-height: 1.02; font-weight: 600;
  letter-spacing: -0.035em; margin: 0; color: var(--ld-text);
}
.iq-hero-claim {
  font-size: clamp(16px, 2.2vw, 19px); line-height: 1.6; color: var(--ld-text-dim);
  margin: 20px 0 0; max-width: 46ch;
}
.iq-hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Tools ---------- */
.iq-tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
/* Zwischenueberschrift je Welt-Block (S7b, Grill Q14): Competitive / Coconut /
   Fuer alle. Erbt Schriftgroesse und Farbe von .iq-h3; hier nur die Abstaende,
   damit die Bloecke sichtbar voneinander abgesetzt sind. Die ERSTE Ueberschrift
   sitzt direkt unter dem Abschnittskopf und braucht weniger Luft nach oben —
   .iq-h3 bringt fuer den Fliesstext-Kontext 28px mit. */
.iq-tools-welt { margin: 30px 0 14px; }
.iq-tools-welt:first-of-type { margin-top: 4px; }
.iq-tool {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  background: linear-gradient(180deg, var(--ld-surface-1), rgba(22, 22, 28, 0.55));
  border: 1px solid var(--ld-border); border-radius: var(--r-lg);
  padding: 22px; color: var(--ld-text); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.iq-tool::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ld-accent-glow), transparent);
  opacity: .7;
}
a.iq-tool:hover {
  transform: translateY(-3px); border-color: var(--ld-border-strong);
  box-shadow: var(--shadow-hover);
}
.iq-tool.is-static { cursor: default; }
.iq-tool-icon {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ld-surface-3); border: 1px solid var(--ld-border-strong);
  border-radius: var(--r-md); color: var(--ld-accent); font-size: 21px; margin-bottom: 16px;
}
.iq-tool-name { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: var(--ld-text); }
.iq-tool-desc { font-size: 14px; line-height: 1.55; color: var(--ld-text-dim); margin: 0 0 16px; flex: 1; }
.iq-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--ld-border-strong);
}
.iq-badge--soon { color: var(--ld-accent); border-color: var(--ld-accent-ring); background: var(--ld-accent-soft); }
.iq-badge--internal { color: var(--ld-text-mute); }
.iq-badge--login { color: var(--ld-accent); border-color: var(--ld-accent-ring); background: var(--ld-accent-soft); }
.iq-badge--live { color: var(--ld-pos); border-color: rgba(62, 207, 142, 0.3); background: rgba(62, 207, 142, 0.08); }

/* ---------- Content / video ---------- */
.iq-content-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center; }
.iq-video-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  background: var(--ld-surface-1); border: 1px solid var(--ld-border);
  border-radius: var(--r-lg); overflow: hidden;
}
.iq-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.iq-video-frame--placeholder { display: flex; align-items: center; justify-content: center; }
.iq-video-frame--placeholder::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 240px at 50% 50%, rgba(230, 201, 138, 0.08), transparent 70%);
}
.iq-video-play {
  position: relative; z-index: 1;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ld-accent); color: #1a1410;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  transition: transform .2s, box-shadow .2s;
}
.iq-video-frame--placeholder:hover .iq-video-play { transform: scale(1.06); box-shadow: var(--shadow-glow); }
.iq-content-vtitle { font-size: 15px; font-weight: 600; color: var(--ld-text); margin: 4px 0 0; }
.iq-content-sub { font-size: 15px; line-height: 1.6; color: var(--ld-text-dim); margin: 10px 0 20px; }

/* ---------- Support banner ---------- */
.iq-support {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--ld-surface-1), rgba(22, 22, 28, 0.4));
  border: 1px solid var(--ld-border-strong); border-radius: var(--r-xl);
  padding: 30px 32px; position: relative; overflow: hidden;
}
.iq-support::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 300px at 100% 0%, rgba(230, 201, 138, 0.08), transparent 60%);
}
.iq-support-text { position: relative; z-index: 1; }
.iq-support-sub { font-size: 15px; color: var(--ld-text-dim); margin: 8px 0 12px; }
.iq-support-metafy { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ld-accent); }
.iq-support-metafy.is-muted { color: var(--ld-text-mute); }
.iq-support .iq-btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ---------- Coaching (Kilzin / Metafy) — prominente Kachel ---------- */
.iq-coaching {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--ld-surface-1), rgba(22, 22, 28, 0.4));
  border: 1px solid var(--ld-accent-ring); border-radius: var(--r-xl);
  padding: 28px 32px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.iq-coaching::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 280px at 0% 0%, rgba(230, 201, 138, 0.10), transparent 60%);
}
.iq-coaching-icon {
  position: relative; z-index: 1; flex: 0 0 auto;
  width: 60px; height: 60px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  background: var(--ld-accent-soft); border: 1px solid var(--ld-accent-ring);
  color: var(--ld-accent); font-size: 28px;
}
.iq-coaching-body { position: relative; z-index: 1; flex: 1; min-width: 240px; }
.iq-coaching-sub { font-size: 15px; line-height: 1.6; color: var(--ld-text-dim); margin: 8px 0 0; max-width: 62ch; }
.iq-coaching .iq-btn { position: relative; z-index: 1; flex-shrink: 0; }
/* Coaching schließt eng an die Tools an (kein großer Abstand). */
.iq-section--tight { padding-top: 0; }

/* ---------- Flash ---------- */
.iq-flash-wrap { max-width: var(--iq-max); margin: 16px auto -8px; padding: 0 24px; }
.iq-flash {
  border-radius: var(--r-md); padding: 12px 16px; font-size: 14px;
  border: 1px solid var(--ld-border-strong); margin-bottom: 8px;
}
.iq-flash--success { color: var(--ld-pos); background: rgba(62, 207, 142, 0.08); border-color: rgba(62, 207, 142, 0.25); }
.iq-flash--danger { color: var(--ld-neg); background: rgba(240, 104, 112, 0.08); border-color: rgba(240, 104, 112, 0.25); }

/* ---------- Footer ---------- */
.iq-footer { position: relative; z-index: 1; max-width: var(--iq-max); margin: 40px auto 0; padding: 32px 24px 48px; }
.iq-footer::before {
  content: ""; display: block; height: 1px; margin-bottom: 28px;
  background: linear-gradient(90deg, transparent, var(--ld-border-strong) 30%, var(--ld-border-strong) 70%, transparent);
}
.iq-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.iq-footer-brand { display: flex; align-items: center; gap: 12px; }
.iq-footer-brand .iq-brand-logo { width: 34px; height: 34px; flex: 0 0 34px; }
.iq-footer-name { font-size: 15px; font-weight: 600; }
.iq-footer-tagline { font-size: 13px; color: var(--ld-text-mute); }
.iq-footer-socials { display: flex; gap: 10px; }
.iq-social {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
  color: var(--ld-text-dim); border: 1px solid var(--ld-border-strong);
  transition: color .15s, border-color .15s, transform .15s;
}
.iq-social:hover { color: var(--ld-accent); border-color: var(--ld-accent); transform: translateY(-2px); }
.iq-social.is-disabled { opacity: .4; pointer-events: none; }
/* flex-wrap: der Elternteil .iq-footer-inner hat es, das vererbt sich aber
   nicht in den verschachtelten Flex-Container. Ohne Umbruch erzwingen sechs
   Links ~430 px Mindestbreite gegen 327 px verfügbare — die öffentliche Seite
   ließ sich dadurch auf dem Handy seitwärts schieben (Feedback 2026-08-11). */
.iq-footer-links { display: flex; flex-wrap: wrap; gap: 18px; row-gap: 10px; }
.iq-footer-links a { font-size: 13px; color: var(--ld-text-mute); }
.iq-footer-links a:hover { color: var(--ld-accent); }
/* overflow-wrap: der Pflichttext enthält zwei ausgeschriebene URLs als
   Linktext, die sonst auf schmalen Geräten nicht umbrechen. */
.iq-footer-disclaimer { font-size: 11px; line-height: 1.55; color: var(--ld-text-faint); max-width: 760px; margin: 22px 0 0; overflow-wrap: anywhere; }

/* ---------- Reveal animation ---------- */
.iq-js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; transition-delay: calc(var(--d, 0) * 80ms); }
.iq-js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .iq-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sub-pages (Kontakt, Recht) ---------- */
.iq-page { max-width: 760px; }
.iq-page-head { margin-bottom: 26px; }
.iq-page-sub { color: var(--ld-text-dim); font-size: 16px; line-height: 1.6; margin: 12px 0 0; }
.iq-form-heading { font-size: 20px; font-weight: 600; color: var(--ld-text); margin: 34px 0 18px; }
.iq-form { display: flex; flex-direction: column; gap: 18px; }
/* Select erbt das iq-input-Aussehen; eigener Pfeil, damit es im dunklen Reskin
   konsistent zu den Inputs aussieht (kein heller Browser-Default). */
select.iq-input {
  cursor: pointer; appearance: none; -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%23e6c98a' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.iq-field { display: flex; flex-direction: column; gap: 7px; }
.iq-field label { font-size: 13px; font-weight: 500; color: var(--ld-text-dim); }
.iq-input {
  width: 100%; background: var(--ld-surface-3); border: 1px solid var(--ld-border-strong);
  color: var(--ld-text); border-radius: var(--r-md); font-family: var(--font-ui);
  font-size: 15px; padding: 11px 14px; transition: border-color .12s, box-shadow .12s;
}
.iq-input::placeholder { color: var(--ld-text-faint); }
.iq-input:focus { outline: none; border-color: var(--ld-accent); box-shadow: 0 0 0 3px var(--ld-accent-ring); }
textarea.iq-input { resize: vertical; min-height: 130px; line-height: 1.55; }
.iq-form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 4px; flex-wrap: wrap; }
.iq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.iq-legal { color: var(--ld-text-dim); line-height: 1.7; font-size: 15px; }
.iq-legal p { margin: 0 0 16px; }
.iq-legal code { font-family: var(--font-mono); font-size: 13px; color: var(--ld-accent); }
.iq-legal h2, .iq-legal h3, .iq-h3 {
  font-family: var(--font-ui); color: var(--ld-text); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.3; margin: 28px 0 10px;
}
.iq-legal h2, .iq-h3 { font-size: 19px; }
.iq-legal h3 { font-size: 16px; }
.iq-legal ul, .iq-legal ol { margin: 0 0 16px; padding-left: 22px; }
.iq-legal li { margin: 0 0 6px; }
.iq-legal strong { color: var(--ld-text); font-weight: 600; }
.iq-legal a { color: var(--ld-accent); text-decoration: none; }
.iq-legal a:hover { text-decoration: underline; }
.iq-legal-todo {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5;
  color: var(--ld-mid); background: rgba(232, 179, 57, 0.08);
  border: 1px solid rgba(232, 179, 57, 0.3); border-radius: var(--r-md);
  padding: 12px 14px; margin-bottom: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .iq-tools-grid { grid-template-columns: 1fr; }
  .iq-content-grid { grid-template-columns: 1fr; }
  .iq-content-text { order: -1; }
}
@media (max-width: 680px) {
  .iq-nav-toggle { display: inline-flex; }
  .iq-nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ld-surface-1); border-bottom: 1px solid var(--ld-border);
    padding: 10px 16px 16px; display: none;
  }
  .iq-nav-links.is-open { display: flex; }
  .iq-nav-cta, .iq-nav-login { text-align: left; }
  /* Aufklapper im Mobile-Menü: kein schwebendes Panel, sondern eingerückte
     Liste unter dem Toggle. */
  .iq-nav-drop-toggle { width: 100%; justify-content: flex-start; }
  .iq-nav-drop-menu {
    position: static; min-width: 0; margin-left: 12px; padding: 0;
    border: 0; box-shadow: none; background: transparent;
  }
  .iq-section { padding: 48px 20px; }
  .iq-hero-grid { padding-left: 20px; padding-right: 20px; }
  .iq-support { padding: 24px; }
}

/* ============================================================
   Auth-Seiten im öffentlichen Look (ADR 0079)
   Eigene schlanke Hülle (auth/base_iq.html), unabhängig von der public-Schicht,
   damit die Login-Seite auch bei abgeschaltetem PUBLIC_LANDING_ENABLED rendert.
   Reuse der iq-form/iq-field/iq-input/iq-btn/iq-flash-Bausteine — hier nur das
   zentrierte Karten-Layout (Kopf, Karte, Fuß) + ergänzende Flash-Kategorien.
   ============================================================ */

/* ---------- Kopfzeile ---------- */
.iq-auth-head { border-bottom: 1px solid var(--ld-border); }
.iq-auth-head-inner {
  max-width: var(--iq-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
}
.iq-auth-lang {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ld-text-mute); font-size: 13px; font-weight: 600;
  padding: 8px 12px; border: 1px solid var(--ld-border-strong); border-radius: var(--r-sm);
  transition: color .15s, border-color .15s;
}
.iq-auth-lang:hover { color: var(--ld-accent); border-color: var(--ld-accent); }

/* ---------- Zentrierte Anmeldekarte ---------- */
.iq-auth-main {
  flex: 1 0 auto; display: flex; justify-content: center; align-items: flex-start;
  padding: clamp(40px, 9vh, 96px) 20px 64px;
}
.iq-auth-col { width: 100%; max-width: 420px; }
.iq-auth-flash { margin-bottom: 18px; }
.iq-auth-card {
  background: var(--ld-surface-1); border: 1px solid var(--ld-border);
  border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-2);
}
.iq-auth-logo { width: 48px; height: 48px; display: block; margin-bottom: 18px; }
.iq-auth-title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--ld-text); margin: 0 0 6px;
}
.iq-auth-sub { font-size: 14px; line-height: 1.55; color: var(--ld-text-mute); margin: 0 0 24px; }
.iq-auth-card .iq-form { margin-top: 4px; }
.iq-field-hint { font-size: 12px; color: var(--ld-text-faint); margin-top: 2px; }

/* Schritt-Label + QR/Secret (2FA-Setup) */
.iq-auth-step { font-size: 13px; font-weight: 600; color: var(--ld-text-dim); margin: 18px 0 10px; }
.iq-auth-qr { display: block; margin: 0 auto 12px; max-width: 220px; width: 100%; border-radius: var(--r-md); }
.iq-auth-secret {
  display: block; text-align: center; font-family: var(--font-mono);
  font-size: 14px; color: var(--ld-accent); word-break: break-all;
  background: var(--ld-surface-2); border: 1px solid var(--ld-border);
  border-radius: var(--r-sm); padding: 8px 10px;
}

/* Trenner („oder") + Alternativ-/Hilfslinks */
.iq-auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.iq-auth-divider > span { flex: 1; height: 1px; background: var(--ld-border); }
.iq-auth-divider > em { font-size: 12px; font-style: normal; color: var(--ld-text-faint); }
.iq-auth-alt { font-size: 13px; color: var(--ld-text-mute); text-align: center; margin: 14px 0 0; }
.iq-auth-alt a { color: var(--ld-accent); }
.iq-auth-alt a:hover { color: var(--ld-accent-hover); }

/* Voll-breite Buttons (Submit + Block-Links wie Discord) */
.iq-btn--block { width: 100%; justify-content: center; }

/* ---------- Fußzeile ---------- */
.iq-auth-foot {
  flex-shrink: 0; text-align: center;
  padding: 24px; border-top: 1px solid var(--ld-border);
}
.iq-auth-foot-links { display: flex; flex-wrap: wrap; gap: 18px; row-gap: 10px; justify-content: center; margin-bottom: 10px; }
.iq-auth-foot-links a { font-size: 13px; color: var(--ld-text-mute); }
.iq-auth-foot-links a:hover { color: var(--ld-accent); }
.iq-auth-foot-brand { font-size: 13px; font-weight: 600; color: var(--ld-text-mute); margin-bottom: 8px; }
.iq-auth-foot .iq-footer-disclaimer { margin: 0 auto; }

/* Flash: fehlende Kategorien ergänzt (warning/info) — additiv, auch fürs
   öffentliche Layout nützlich (bisher nur success/danger definiert). */
.iq-flash--warning { color: var(--ld-mid); background: rgba(232, 179, 57, 0.08); border-color: rgba(232, 179, 57, 0.28); }
.iq-flash--info { color: var(--ld-text-dim); background: var(--ld-surface-2); border-color: var(--ld-border-strong); }

@media (max-width: 480px) {
  .iq-auth-card { padding: 24px 20px; }
  .iq-auth-main { padding-top: 32px; }
  .iq-auth-head-inner { padding: 12px 16px; }
}

/* --- Embed-Overlay (Consent, DSGVO) -------------------------------------- */
/* Der globale Einwilligungs-Banner (.iq-consent, .iq-consent-text,
   .iq-consent-actions) ist am 2026-07-29 entfallen (Felix-Entscheid) — die
   Einwilligung läuft ausschließlich über dieses Overlay am Embed. Die
   zugehörigen Regeln wurden mit dem Markup entfernt. */
.iq-btn--sm { padding: 8px 16px; font-size: 14px; }

.iq-consent-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px; text-align: center;
  background: var(--ld-surface-1); border-radius: inherit;
}
.iq-consent-overlay p { margin: 0; color: var(--ld-text); font-size: 14px; max-width: 32ch; }
.iq-consent-overlay-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.iq-video-frame.is-consented .iq-consent-overlay { display: none; }
.iq-consent-overlay-more { font-size: 13px; }
.iq-consent-overlay-more a { color: var(--ld-accent); }

/* Fassade (2026-07-30): liegt ein server-gecachtes Vorschaubild vor, füllt es
   den Rahmen (z-index 1: über dem leeren iframe, unter dem Overlay). Das
   Overlay wird dann durchsichtig mit Verlauf nach unten — Play-Button mittig,
   Einwilligungs-Hinweis kompakt am unteren Rand. */
.iq-video-thumb {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
.iq-video-frame.is-consented .iq-video-thumb { display: none; }
.iq-consent-overlay--thumb {
  justify-content: flex-end; gap: 6px; padding: 14px;
  background: linear-gradient(to top,
    rgba(8, 9, 12, 0.88) 0%, rgba(8, 9, 12, 0.45) 38%, rgba(8, 9, 12, 0.12) 70%);
}
.iq-consent-overlay--thumb .iq-video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -62%);
}
.iq-consent-overlay--thumb:hover .iq-video-play {
  transform: translate(-50%, -62%) scale(1.06); box-shadow: var(--shadow-glow);
}
.iq-consent-overlay--thumb p { color: #fff; font-size: 13px; max-width: 46ch; }
.iq-consent-overlay--thumb .iq-consent-overlay-more,
.iq-consent-overlay--thumb .iq-consent-overlay-more a { color: rgba(255, 255, 255, 0.75); }

/* --------------------------------------------------------------------------
   Blog (ADR 0195, Etappe E2)

   E1 hat die Templates mit diesen Klassen gebaut, das Stylesheet aber nicht
   ergaenzt — die Leseansicht fiel damit auf Browser-Standard zurueck. Hier
   nachgezogen, bewusst knapp und ausschliesslich ueber bestehende Tokens:
   Der Artikelrumpf traegt zusaetzlich `iq-legal` und erbt von dort Absaetze,
   Zwischentitel, Listen und Links. Ergaenzt wird nur, was `iq-legal` nicht
   kennt (Zitat, Codeblock, Bild, Trenner) sowie die Blog-eigenen Bausteine.
   -------------------------------------------------------------------------- */

/* Uebersichts-Liste: Kacheln im `iq-tool`-Muster statt blosser Trennlinien.
   Die frueheren Teaser trugen nur eine untere 1px-Linie — auf dem fast
   schwarzen Seitenhintergrund war ein Eintrag dadurch nicht als eigenes,
   klickbares Objekt erkennbar (Felix-Meldung 2026-08-09). Flaeche + Rahmen +
   Hover-Anhebung geben ihm eine Kante; der Titel-Link spannt sich per
   ::after ueber die ganze Kachel, damit der gesamte Block klickbar ist. */
.iq-blog-list { display: flex; flex-direction: column; gap: 18px; }
.iq-blog-teaser {
  position: relative;
  background: linear-gradient(180deg, var(--ld-surface-1), rgba(22, 22, 28, 0.55));
  border: 1px solid var(--ld-border); border-radius: var(--r-lg);
  padding: 22px 24px; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.iq-blog-teaser::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ld-accent-glow), transparent);
  opacity: .7;
}
.iq-blog-teaser:hover,
.iq-blog-teaser:focus-within {
  transform: translateY(-3px); border-color: var(--ld-border-strong);
  box-shadow: var(--shadow-hover);
}
.iq-blog-teaser h2 { margin: 0 0 6px; }
.iq-blog-teaser a { color: var(--ld-text); text-decoration: none; }
.iq-blog-teaser:hover a,
.iq-blog-teaser a:hover,
.iq-blog-teaser a:focus-visible { color: var(--ld-accent); }
/* Klickflaeche auf die ganze Kachel ausdehnen (Anker bleibt der Titel-Link,
   damit Screenreader und Linkliste weiterhin den Titel vorlesen). */
.iq-blog-teaser h2 a::after { content: ""; position: absolute; inset: 0; }
.iq-blog-teaser p { color: var(--ld-text-dim); line-height: 1.65; margin: 0; }

/* Sichtbarer Weiterlesen-Hinweis — kein eigener Link, sonst zweite
   Klickflaeche ueber der gestreckten Titel-Verlinkung. */
.iq-blog-teaser-more {
  display: inline-block; margin-top: 14px;
  color: var(--ld-accent); font-size: 14px; font-weight: 600;
}

.iq-blog-meta {
  color: var(--ld-text-dim); font-family: var(--font-mono);
  font-size: 13px; margin: 0 0 10px;
}

/* Entwurfs-Banner: muss auf einen Blick als „nicht live" lesbar sein — es ist
   die einzige Warnung davor, einen unfertigen Text fuer veroeffentlicht zu
   halten. Deshalb Akzentrahmen statt dezenter Hinweiszeile. */
.iq-blog-draft {
  border: 1px solid var(--ld-accent); border-radius: var(--r-md);
  padding: 10px 14px; margin: 0 0 22px;
  color: var(--ld-accent); font-size: 14px; font-weight: 600;
}

.iq-blog-langnote {
  color: var(--ld-text-dim); font-size: 14px; font-style: italic;
  margin: 0 0 18px;
}

.iq-blog-body blockquote {
  margin: 0 0 16px; padding: 4px 0 4px 16px;
  border-left: 2px solid var(--ld-accent); color: var(--ld-text-dim);
}
.iq-blog-body pre {
  background: var(--ld-surface-2, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--ld-border); border-radius: var(--r-md);
  padding: 14px 16px; margin: 0 0 16px; overflow-x: auto;
}
.iq-blog-body pre code { color: var(--ld-text); font-size: 13px; }
.iq-blog-body img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.iq-blog-body hr { border: 0; border-top: 1px solid var(--ld-border); margin: 28px 0; }

.iq-blog-cta {
  margin: 36px 0 0; padding: 22px 24px;
  border: 1px solid var(--ld-border); border-radius: var(--r-lg);
  text-align: center;
}
.iq-blog-cta p { color: var(--ld-text-dim); margin: 0 0 14px; }

.iq-blog-back { margin: 28px 0 0; }
.iq-blog-back a { color: var(--ld-text-dim); text-decoration: none; font-size: 14px; }
.iq-blog-back a:hover { color: var(--ld-accent); }

/* Landing-Anriss: verlinkt den neuesten Artikel direkt als prominenten Teaser
   (zusätzlich zu Blog-Kachel und Nav-Punkt, die auf /blog führen). */
.iq-blog-latest {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 26px 28px;
  background: linear-gradient(180deg, var(--ld-surface-1), rgba(22, 22, 28, 0.55));
  border: 1px solid var(--ld-border); border-radius: var(--r-lg);
}
.iq-blog-latest h3 { margin: 0; }
.iq-blog-latest a { color: var(--ld-text); text-decoration: none; }
.iq-blog-latest a:hover { color: var(--ld-accent); }
.iq-blog-latest p { color: var(--ld-text-dim); line-height: 1.65; margin: 0; }

/* Redaktions-Kommentare (Blog E3): steht NUR im Admin-HTML — die Route
   liefert den Abschnitt für Gäste gar nicht aus (public/routes.py). */
.iq-blog-comments {
  margin: 36px 0 0; padding: 22px 24px;
  border: 1px dashed var(--ld-border); border-radius: var(--r-lg);
}
.iq-blog-comments-tools { margin: 8px 0 16px; }
.iq-blog-comment-list {
  margin: 0; padding: 0 0 0 20px;
  display: flex; flex-direction: column; gap: 18px;
}
.iq-blog-comment--done { opacity: 0.55; }
.iq-blog-comment-meta { color: var(--ld-text-dim); font-size: 13px; margin: 0 0 6px; }
.iq-blog-comment-flag {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  border: 1px solid var(--ld-accent); border-radius: 999px;
  color: var(--ld-accent); font-size: 12px;
}
.iq-blog-comment-passage {
  margin: 0 0 6px; padding: 6px 12px;
  border-left: 3px solid var(--ld-border);
  color: var(--ld-text-dim); font-style: italic;
}
.iq-blog-comment-text { margin: 0 0 8px; }
.iq-blog-comment-actions { display: flex; gap: 8px; }
.iq-blog-comments-empty { color: var(--ld-text-dim); margin: 0; }

/* Knopf am Absatz (von blog-comments.js eingehängt) und das aufklappende
   Formular. Der Knopf ist bewusst dezent — Redaktionswerkzeug, kein Inhalt. */
.iq-blog-comment-btn {
  margin-left: 8px; padding: 0 8px;
  border: 1px solid var(--ld-border); border-radius: 999px;
  background: transparent; color: var(--ld-text-dim);
  font-size: 12px; cursor: pointer; vertical-align: middle;
}
.iq-blog-comment-btn:hover { color: var(--ld-accent); border-color: var(--ld-accent); }
.iq-blog-comment-form {
  margin: 10px 0 18px; display: flex; flex-direction: column; gap: 8px;
}
.iq-blog-comment-form textarea {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--ld-border); border-radius: var(--r-lg);
  background: transparent; color: var(--ld-text);
}
.iq-blog-comment-form-actions { display: flex; gap: 8px; }
