/* secureIT — Designsystem */

:root {
  --amber: #FCAF3B;
  --amber-deep: #B97605;
  --amber-wash: #FEF6E7;
  --ink: #14171C;
  --charcoal: #2B2B2B;
  --body: #3F434B;
  --muted: #585C63;
  --line: #E3E1DC;
  --line-soft: #EFEDE8;
  --paper: #FFFFFF;
  --paper-alt: #F7F6F3;
  --green: #2F6B45;
  --green-wash: #E8F1EB;
  --red: #B23A22;

  --wrap: 1140px;
  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(20, 23, 28, .06), 0 4px 12px -6px rgba(20, 23, 28, .12);
  --shadow-md: 0 2px 4px rgba(20, 23, 28, .05), 0 18px 40px -20px rgba(20, 23, 28, .28);

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  text-wrap: balance;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; }
h2 { font-size: clamp(27px, 3.6vw, 38px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
h4 { font-size: 17.5px; font-weight: 600; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--amber-deep); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.lede { font-size: 20px; color: var(--muted); line-height: 1.55; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--amber-deep);
  display: block; margin-bottom: 12px;
}

section { padding: 68px 0; }
section.tight { padding: 46px 0; }
section.alt { background: var(--paper-alt); }
section.dark { background: var(--ink); }
section.dark h2, section.dark h3, section.dark h4 { color: #FFF; }
section.dark p { color: #CFD2D7; }
section.dark .eyebrow { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600; font-size: 16px;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: #F5A222; border-color: #F5A222; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-dark { background: transparent; color: #FFF; border-color: #4A4E56; }
.btn-on-dark:hover { border-color: #FFF; }
/* Dunkler Vollton-Button — .btn-primary faerbt die Schrift mit var(--ink),
   ein reines Ueberschreiben des Hintergrunds ergibt schwarz auf schwarz. */
.btn-dark { background: var(--ink); color: #FFF; border-color: var(--ink); }
.btn-dark:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn-lg { font-size: 17.5px; padding: 15px 30px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Das hidden-Attribut bringt nur eine UA-Regel mit und verliert gegen jede
   Klasse mit display — ohne das hier bleiben versteckte Knöpfe sichtbar. */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 2px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 74px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { width: 152px; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.nav-link {
  font-family: var(--font-display);
  font-size: 15.5px; font-weight: 500;
  color: var(--charcoal); text-decoration: none;
  padding: 9px 12px; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display);
}
.nav-link:hover { color: var(--ink); background: var(--paper-alt); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.nav-link .caret { width: 9px; height: 9px; opacity: .5; transition: transform .15s ease; }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 15.5px; color: var(--muted); text-decoration: none; font-family: var(--font-display); font-weight: 500; }
.nav-login:hover { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }
.nav-cta { white-space: nowrap; padding: 0.5rem 0.85rem; font-size: 0.9rem; }
.nav-only-mobile { display: none; } /* Konto-Links nur im aufgeklappten Handy-Menü */

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.mega[hidden] { display: none !important; }
.mega-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 30px 24px 34px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
}
.mega-col h4 {
  font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 12px;
}
.mega-item { display: block; text-decoration: none; padding: 9px 10px; margin: 0 -10px; border-radius: var(--radius); }
.mega-item:hover { background: var(--paper-alt); }
.mega-item b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 600; font-family: var(--font-display); }
.mega-item span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 1px; }
.mega-item .quote { font-style: italic; }
.mega-col.highlight { background: var(--amber-wash); margin: -30px -12px -34px; padding: 30px 22px 34px; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 28px; max-width: 34ch; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 15px; color: var(--muted); margin-top: 16px; }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-alt); }
.trustbar-inner { display: flex; gap: 34px; flex-wrap: wrap; justify-content: center; padding: 18px 0; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--charcoal); font-weight: 500; }
.trust-item svg { flex-shrink: 0; color: var(--green); }

/* ---------- Phishing demo ---------- */
.demo { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.mailframe { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-md); overflow: hidden; }
.mail-chrome { background: var(--paper-alt); border-bottom: 1px solid var(--line); padding: 11px 16px; display: flex; align-items: center; gap: 8px; }
.mail-dot { width: 10px; height: 10px; border-radius: 50%; background: #D6D3CC; }
.mail-chrome span { font-size: 13px; color: var(--muted); margin-left: 6px; }
.mail-head { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.mail-row { display: flex; gap: 10px; margin-bottom: 6px; }
.mail-row:last-child { margin-bottom: 0; }
.mail-row .k { color: var(--muted); width: 62px; flex-shrink: 0; }
.mail-body { padding: 20px; font-size: 15.5px; line-height: 1.6; }
.mail-body p { margin-bottom: 13px; }
.mail-btn { display: inline-block; background: #0F62CE; color: #FFF; padding: 10px 20px; border-radius: 3px; font-size: 15px; text-decoration: none; }

.tell {
  background: none; border: none; padding: 1px 3px; margin: 0 -3px; cursor: pointer;
  font: inherit; color: inherit;
  border-bottom: 2px dashed var(--amber-deep);
  border-radius: 2px;
}
.tell:hover, .tell.on { background: var(--amber-wash); }
.tell.on { border-bottom-style: solid; }
.tell::after {
  content: attr(data-n);
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 4px;
  background: var(--amber-deep); color: #FFF;
  font-size: 10.5px; font-weight: 700; border-radius: 50%;
  vertical-align: 2px; font-family: var(--font-display);
}
.tell-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 22px; }
.tell-panel > h3 { margin-bottom: 6px; }
.tell-panel > .hint { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.tell-list { display: flex; flex-direction: column; gap: 10px; }
.tell-card {
  border: 1px solid var(--line-soft); border-left: 3px solid var(--line);
  padding: 11px 13px; background: var(--paper-alt);
  transition: border-color .15s ease, background-color .15s ease;
}
.tell-card.on { border-left-color: var(--amber); background: var(--amber-wash); border-color: var(--amber); }
.tell-card b { display: block; font-size: 15px; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.tell-card span { display: block; font-size: 14.5px; color: var(--body); line-height: 1.45; margin-top: 3px; }
.tell-score { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--muted); }
.tell-score b { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step-card { background: var(--paper); padding: 26px 22px 28px; }
.step-card .num {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--amber-deep); letter-spacing: .1em; display: block; margin-bottom: 10px;
}
.step-card h3 { font-size: 19px; margin-bottom: 7px; }
.step-card p { font-size: 15.5px; color: var(--muted); }

/* ---------- Price ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; background: var(--paper);
  display: flex; flex-direction: column; gap: 14px; height: 100%;
}
.price-card.feature { border: 2px solid var(--amber); box-shadow: var(--shadow-md); position: relative; }
.price-badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--amber); color: var(--ink);
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; padding: 5px 11px; border-radius: 2px;
}
.price-card h3 { font-size: 20px; }
.price-tag { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.price-tag small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-sub { font-size: 15px; color: var(--muted); margin-top: -6px; }
.price-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.price-list li { font-size: 15.5px; padding-left: 25px; position: relative; line-height: 1.45; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}
.price-list li.no::before { content: "–"; color: var(--muted); }
.price-card .btn { margin-top: auto; }

/* Calculator */
.calc { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--paper-alt); }
.calc-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.calc label { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 16px; }
.calc input[type="range"] { flex: 1; min-width: 200px; accent-color: var(--amber-deep); }
.calc-num {
  font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink);
  min-width: 58px; text-align: right; font-variant-numeric: tabular-nums;
}
.calc-out { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.calc-total { font-family: var(--font-display); font-size: 38px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calc-detail { font-size: 15px; color: var(--muted); }

/* ---------- Generic cards / grid ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }

/* ---------- Result list (homepage outcomes) ---------- */
.result-list { display: flex; flex-direction: column; gap: 20px; }
.result-item { display: flex; gap: 16px; align-items: flex-start; }
.result-icon { flex-shrink: 0; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 18px 44px 18px 0; cursor: pointer; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 17.5px; color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--amber-deep); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 44px 20px 0; font-size: 16px; color: var(--body); }

/* ---------- Forms ---------- */
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber-deep); outline: none; box-shadow: 0 0 0 3px var(--amber-wash); }
.field .help { font-size: 14px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--body); }
.check input { margin-top: 4px; flex-shrink: 0; }
.form-error { color: var(--red); font-size: 14.5px; margin-top: 5px; }
.alert { padding: 15px 18px; border-radius: var(--radius); font-size: 16px; margin-bottom: 22px; }
.alert-ok { background: var(--green-wash); border: 1px solid #BBD6C5; color: var(--green); }
.alert-err { background: #FBEAE6; border: 1px solid #EFC8BE; color: var(--red); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #FFF; padding: 54px 0; }
.cta-band h2 { color: #FFF; margin-bottom: 12px; }
.cta-band p { color: #B9BCC2; margin-bottom: 24px; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9BA0A8; padding: 54px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 38px; }
.site-footer h4 { color: #FFF; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #9BA0A8; text-decoration: none; }
.site-footer a:hover { color: #FFF; text-decoration: underline; }
.footer-brand img { width: 148px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { color: #82868E; font-size: 14.5px; max-width: 30ch; }
.footer-bottom { border-top: 1px solid #2A2E36; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #767A82; }

/* ---------- Cookie-Hinweis ---------- */
.cookie-hinweis { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000; background: var(--ink); color: #CCC; padding: 16px 0; box-shadow: 0 -2px 12px rgba(0,0,0,.25); }
.cookie-hinweis a { color: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .demo, .grid-2 { grid-template-columns: 1fr; }
  .demo { gap: 26px; }
  .steps, .prices, .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega-inner { grid-template-columns: 1fr 1fr; gap: 22px; }
  .mega-col.highlight { margin: 0; padding: 20px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  section { padding: 48px 0; }
  .hero { padding: 44px 0 40px; }
  .nav-menu, .nav-login { display: none; }
  .nav-toggle { display: block; }
  .nav { height: 66px; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; gap: 2px; box-shadow: var(--shadow-md);
  }
  .nav-menu.open .nav-link { padding: 12px 10px; font-size: 17px; }
  .nav-menu.open .nav-only-mobile { display: block; }
  .nav-cta { padding: 0.45rem 0.8rem; font-size: 0.9rem; }
  .nav-menu.open .mega { position: static; box-shadow: none; border: none; }
  .nav-menu.open .mega-inner { grid-template-columns: 1fr; padding: 4px 0 10px 12px; gap: 14px; }
  .steps, .prices, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ---------- Beiträge (Wissen) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.post-thumb { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #6B7078; font-family: var(--font-display); font-size: 22px; letter-spacing: .02em;
}
.post-thumb-empty b { color: var(--amber); }
.post-thumb-video { flex-direction: column; gap: 4px; font-size: 14px; color: rgba(255,255,255,.6); }
.post-thumb-video b { color: rgba(255,255,255,.8); font-size: 13px; }
.play-badge {
  position: absolute; left: 14px; bottom: 12px;
  background: rgba(20,23,28,.82); color: #FFF; font-size: 12px;
  padding: 5px 10px; border-radius: 2px; backdrop-filter: blur(3px);
}
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-card-body h3 { font-size: 19px; line-height: 1.25; }
.post-card-body h3 a { color: var(--ink); text-decoration: none; }
.post-card-body h3 a:hover { color: var(--amber-deep); }
.post-card-body p { font-size: 15px; color: var(--muted); margin: 0; }
.post-more { font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: none; margin-top: auto; }
.post-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius); overflow: hidden; margin: 22px 0; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-consent-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--ink); color: #fff; border: 0; cursor: pointer; width: 100%; font-family: inherit; }
.video-consent-overlay:hover .video-consent-play { opacity: 1; }
.video-consent-play { opacity: .85; transition: opacity .2s; }
.video-consent-label { font-size: 14px; line-height: 1.5; text-align: center; color: rgba(255,255,255,.8); }
.video-consent-label small { font-size: 12px; color: rgba(255,255,255,.55); }

/* ---------- Fließtext eines Beitrags ---------- */
.prose { font-size: 17.5px; line-height: 1.72; }
.prose h2 { font-size: 27px; margin: 38px 0 12px; }
.prose h3 { font-size: 21px; margin: 30px 0 10px; }
.prose h4 { font-size: 18px; margin: 24px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; display: flex; flex-direction: column; gap: 7px; }
.prose li { line-height: 1.6; }
.prose img { border-radius: var(--radius); margin: 14px 0; }
.prose blockquote { margin: 22px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--amber); color: var(--body); font-style: italic; }
.prose code { background: var(--paper-alt); padding: 2px 6px; border-radius: 2px; font-size: .9em; }
.prose pre { background: var(--ink); color: #E6E3DC; padding: 18px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--paper-alt); font-family: var(--font-display); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.admin-table th {
  text-align: left; font-family: var(--font-display); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); padding: 0 12px 10px; border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.admin-table a { text-decoration: none; }
.admin-table b { color: var(--ink); display: block; }
.admin-table .muted { color: var(--muted); font-size: 13.5px; }

/* Einheitliche Zurück-Navigation im Administrationsbereich */
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 16px;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  color: var(--muted); text-decoration: none;
  padding: 8px 14px 8px 11px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.back-link svg { transition: transform .15s ease; }
.back-link:hover {
  color: var(--ink); border-color: var(--ink);
  background: var(--paper-alt); box-shadow: 0 1px 0 var(--line);
}
.back-link:hover svg { transform: translateX(-3px); }
.back-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.tag {
  display: inline-block; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 2px; background: var(--paper-alt); color: var(--body); border: 1px solid var(--line);
}
.tag.ok { background: var(--green-wash); color: var(--green); border-color: #BBD6C5; }
.tag.draft { background: var(--amber-wash); color: var(--amber-deep); border-color: #F0DCB4; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.editor-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--paper); }
.side-card h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side-card .field:last-child { margin-bottom: 0; }
.toastui-editor-defaultUI { border-radius: var(--radius); }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side { position: static; }
}
@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table thead { display: none; }
  .admin-table tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .admin-table td { border: none; padding: 3px 0; }
}

/* ---------- Rechtstexte ---------- */
.prose.legal { font-size: 16px; }
.prose.legal h2 { font-size: 23px; margin: 34px 0 10px; }
.prose.legal h3 { font-size: 18.5px; margin: 24px 0 8px; }
.prose.legal h4 { font-size: 16.5px; margin: 18px 0 6px; }
.prose.legal p, .prose.legal li { font-size: 16px; }

/* ---------- Lernumgebung ---------- */
.lern-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 44px; max-width: 1180px; margin: 0 auto; padding: 0 24px; align-items: start; }
.lern-nav { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-alt); padding: 18px 16px; max-height: calc(100vh - 130px); overflow-y: auto; }
.lern-nav-titel { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lern-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.lern-liste a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 9px; border-radius: var(--radius); text-decoration: none; color: var(--body); font-size: 14.5px; line-height: 1.35; }
.lern-liste a:hover { background: var(--paper); }
.lern-liste .marke { flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%; border: 1px solid var(--line-strong, #D8D4CC); display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-family: var(--font-display); font-weight: 600; color: var(--muted); background: var(--paper); }
.lern-liste .fertig .marke { background: var(--green); border-color: var(--green); color: #FFF; }
.lern-liste .aktiv a { background: var(--paper); box-shadow: inset 3px 0 0 var(--amber); font-weight: 600; color: var(--ink); }

.lern-inhalt { min-width: 0; }
.lern-schritt { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); margin: 0 0 8px; }
.lern-zusammenfassung { border-left: 3px solid var(--amber); background: var(--amber-wash); padding: 15px 18px; margin: 18px 0 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.lern-zusammenfassung .eyebrow { margin-bottom: 5px; }
.lern-zusammenfassung p { margin: 0; font-size: 16px; color: var(--body); }
.lern-fuss { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.lern-status { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; }
.lern-balken { width: 260px; max-width: 100%; height: 7px; background: var(--line-soft); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.lern-balken span { display: block; height: 100%; background: var(--amber); }
.lern-frist { font-size: 15px; color: var(--muted); text-align: right; }
.lern-frist span { display: block; font-size: 13.5px; }

.lern-uebersicht { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lern-uebersicht a { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; background: var(--paper); text-decoration: none; color: var(--body); }
.lern-uebersicht a:hover { background: var(--paper-alt); }
.lern-uebersicht .marke { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #D8D4CC; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--muted); }
.lern-uebersicht .fertig .marke { background: var(--green); border-color: var(--green); color: #FFF; }
.lern-uebersicht .text { flex: 1; min-width: 0; }
.lern-uebersicht .text b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 16.5px; }
.lern-uebersicht .text small { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 3px; }
.video-marke { flex-shrink: 0; font-size: 11.5px; font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-deep); background: var(--amber-wash); padding: 3px 8px; border-radius: 2px; }

@media (max-width: 900px) {
  .lern-layout { grid-template-columns: 1fr; gap: 24px; }
  .lern-nav { position: static; max-height: none; }
}

/* ---------- Kursauswahl im Cockpit ---------- */
.kurs-karte { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; cursor: pointer; background: var(--paper); }
.kurs-karte:has(input:checked) { border-color: var(--amber); border-width: 2px; padding: 17px 19px; background: var(--amber-wash); }
.kurs-karte input { margin-right: 10px; }
.kurs-inhalt b { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.kurs-meta { display: block; font-size: 14px; color: var(--muted); margin: 4px 0 8px; }
.kurs-teaser { display: block; font-size: 15.5px; margin-bottom: 10px; }
.kurs-karte details summary { cursor: pointer; font-size: 14.5px; color: var(--amber-deep); font-weight: 600; }

/* ---------- Phishing-Vorlagen ---------- */
.phish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phish-karte { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--paper); }
.phish-kopf { border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; margin-bottom: 4px; }
.phish-von { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-deep); }
.phish-karte h3 { font-size: 18px; margin-top: 4px; line-height: 1.25; }
.phish-betreff { font-size: 14.5px; color: var(--body); font-style: italic; margin: 0; }
.phish-beschreibung { font-size: 14.5px; color: var(--muted); margin: 0 0 6px; }
@media (max-width: 900px) { .phish-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .phish-grid { grid-template-columns: 1fr; } }

/* ---------- Live-Passwortprüfung ---------- */
.pw-staerke { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.pw-balken { flex: 1; height: 6px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.pw-balken span { display: block; height: 100%; width: 0; transition: width .2s ease, background-color .2s ease; }
.pw-note { font-size: 13.5px; font-weight: 600; font-family: var(--font-display); white-space: nowrap; }
.pw-regeln { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.pw-regeln li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.pw-regeln .pw-mark { flex-shrink: 0; width: 15px; height: 15px; border-radius: 50%; border: 1px solid #CFC5AF; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.pw-regeln li.ok { color: var(--green); }
.pw-regeln li.ok .pw-mark { background: var(--green); border-color: var(--green); }
.pw-regeln li.ok .pw-mark::after { content: "✓"; color: #FFF; font-size: 9px; font-weight: 700; }
.pw-gleich { font-size: 13.5px; margin: 6px 0 0; font-weight: 500; }
.pw-gleich.ok { color: var(--green); }
.pw-gleich.nok { color: var(--red); }
@media (max-width: 520px) { .pw-regeln { grid-template-columns: 1fr; } }

/* ---------- Video-Zusammenfassung in der Lektion ---------- */
.lern-videozusammenfassung { border: 1px solid var(--line); border-left: 3px solid var(--green); background: var(--paper-alt); padding: 15px 18px; margin: -8px 0 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.lern-videozusammenfassung .eyebrow { color: var(--green); margin-bottom: 5px; }
.lern-videozusammenfassung p { margin: 0; font-size: 16px; color: var(--body); }

/* ---------- Spiel-Promo in der Kursübersicht ---------- */
.spiel-promo { display: flex; align-items: center; gap: 22px; background: var(--ink); color: #FFF; border-radius: var(--radius); padding: 24px 26px; margin: 22px 0; }
.spiel-promo-text { flex: 1; }
.spiel-promo-text h3 { color: #FFF; font-size: 21px; margin: 4px 0 8px; }
.spiel-promo-text p { color: #B9BCC2; font-size: 15.5px; margin: 0 0 16px; }
.spiel-promo-icon { font-size: 58px; line-height: 1; flex-shrink: 0; }
@media (max-width: 560px) { .spiel-promo { flex-direction: column-reverse; align-items: flex-start; gap: 12px; } .spiel-promo-icon { font-size: 44px; } }

/* ---------- Hinweis-Boxen in Lektionen ---------- */
.lern-box { border-radius: var(--radius); padding: 16px 18px; margin: 22px 0; border: 1px solid var(--line); border-left-width: 3px; }
.lern-box-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.lern-box-inhalt > :first-child { margin-top: 0; }
.lern-box-inhalt > :last-child { margin-bottom: 0; }
.lern-box-inhalt p { font-size: 15.5px; margin: 0 0 10px; }
.lern-box-inhalt ul, .lern-box-inhalt ol { margin: 0 0 10px; padding-left: 20px; }
.box-tipp { background: var(--green-wash); border-color: #BBD6C5; border-left-color: var(--green); }
.box-tipp .lern-box-label { color: var(--green); }
.box-ergaenzung { background: #E4ECF7; border-color: #C5D6EE; border-left-color: #3C5F8F; }
.box-ergaenzung .lern-box-label { color: #3C5F8F; }
.box-merke { background: var(--amber-wash); border-color: #F0DCB4; border-left-color: var(--amber); }
.box-merke .lern-box-label { color: var(--amber-deep); }
.box-loesung { background: #F3E8F9; border-color: #D8C4E6; border-left-color: #7B3FA0; }
.box-loesung .lern-box-label { color: #7B3FA0; }

/* --- Zwei-Klick-Einbettung (Terminkalender) ------------------------------ */
.embed-consent { border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.embed-consent__box { padding: 48px 24px; text-align: center; }
.embed-consent__frame { display: block; width: 100%; height: 800px; border: 0; background: #fff; }
@media (max-width: 720px) {
    .embed-consent__box { padding: 34px 18px; }
    .embed-consent__frame { height: 640px; }
}

/* ==========================================================================
   Homepage-Redesign — Ergänzungen
   ========================================================================== */

:root {
  --accent-blue: #1B4B7A;
  --threat-red: #C23B22;
  --gradient-dark: linear-gradient(160deg, #14171C 0%, #1E2229 100%);
  --shadow-lift: 0 8px 30px -12px rgba(20, 23, 28, .18);
}

/* ---------- Hero (dunkel) ---------- */
.hero-dark {
  background: var(--gradient-dark);
  padding: 84px 0 72px;
}
.hero-dark h1 { color: #FFF; font-weight: 800; }
.hero-dark .lede { color: #B9BCC2; font-size: 21px; }
.hero-dark .hero-note { color: #A0A4AB; }
.hero-dark .btn-ghost { color: #FFF; border-color: #4A4E56; }
.hero-dark .btn-ghost:hover { border-color: #FFF; }

/* ---------- Trust-Leiste im Hero (dunkel) ---------- */
.trustbar-dark {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  margin-top: 40px;
}
.trustbar-dark .trust-item { color: #9BA0A8; }
.trustbar-dark .trust-item svg { color: var(--amber); }

/* ---------- Scroll-Reveal (progressive enhancement) ---------- */
.reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-hidden.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-hidden.reveal-left {
  transform: translateX(-40px);
}
.reveal-hidden.reveal-left.visible {
  transform: translateX(0);
}
.reveal-hidden.reveal-right {
  transform: translateX(40px);
}
.reveal-hidden.reveal-right.visible {
  transform: translateX(0);
}
.reveal-hidden.reveal-scale {
  transform: scale(0.92);
}
.reveal-hidden.reveal-scale.visible {
  transform: scale(1);
}

/* ---------- Gestaffelte Grid-Kinder ---------- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }
.stagger-children.visible > :nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > :nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > :nth-child(3) { transition-delay: 0.24s; }
.stagger-children.visible > :nth-child(4) { transition-delay: 0.36s; }

/* ---------- Hero-Eingangsanimation ---------- */
.hero-dark .hero-grid > *:first-child {
  animation: hero-enter 0.8s ease both;
}
.hero-dark .hero-grid > *:last-child {
  animation: hero-enter 0.8s 0.25s ease both;
}
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-dark .trustbar-dark {
  animation: hero-enter 0.8s 0.5s ease both;
}

/* ---------- Timeline-Schritte einzeln ---------- */
.timeline .timeline-step {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-hidden.visible .timeline-step,
.timeline.stagger-children.visible .timeline-step {
  opacity: 1;
  transform: translateX(0);
}
.reveal-hidden.visible .timeline-step:nth-child(1),
.timeline.stagger-children.visible .timeline-step:nth-child(1) { transition-delay: 0.1s; }
.reveal-hidden.visible .timeline-step:nth-child(2),
.timeline.stagger-children.visible .timeline-step:nth-child(2) { transition-delay: 0.25s; }
.reveal-hidden.visible .timeline-step:nth-child(3),
.timeline.stagger-children.visible .timeline-step:nth-child(3) { transition-delay: 0.4s; }
.reveal-hidden.visible .timeline-step:nth-child(4),
.timeline.stagger-children.visible .timeline-step:nth-child(4) { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-hidden { opacity: 1; transform: none; transition: none; }
  .reveal-hidden.reveal-left,
  .reveal-hidden.reveal-right,
  .reveal-hidden.reveal-scale { transform: none; }
  .stagger-children > * { opacity: 1; transform: none; transition: none; }
  .hero-dark .hero-grid > *,
  .hero-dark .trustbar-dark { animation: none; }
  .timeline .timeline-step { opacity: 1; transform: none; transition: none; }
  .outcome-card:hover .outcome-icon { animation: none; }
  .timeline-step:hover::before { transform: none; box-shadow: none; }
  details .answer { animation: none; }
  .btn-primary:hover::after { animation: none; }
}

/* ---------- Card-Hover-Lift ---------- */
.card-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
@media (prefers-reduced-motion: reduce) {
  .card-lift:hover { transform: none; }
}

/* ---------- Ergebnis-Cards ---------- */
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.outcome-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--paper);
  text-align: center;
}
.outcome-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  background: var(--amber-wash);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.outcome-card h3 { font-size: 22px; margin-bottom: 10px; }
.outcome-card p { font-size: 16px; color: var(--muted); }

/* ---------- Timeline-Schritte ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 15px; top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-step {
  position: relative;
  padding-bottom: 36px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  left: -40px; top: 0;
  width: 32px; height: 32px;
  background: var(--amber);
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  z-index: 1;
}
.timeline-step h3 { font-size: 20px; margin-bottom: 6px; }
.timeline-step p { font-size: 16px; color: var(--muted); max-width: 50ch; }

/* ---------- Phishing-Demo Puls (noch nicht aufgedeckte Tells) ---------- */
.tell:not(.on) {
  animation: tell-pulse 2s ease-in-out infinite;
}
@keyframes tell-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 175, 59, 0); }
  50% { box-shadow: 0 0 0 4px rgba(252, 175, 59, 0.15); }
}
@media (prefers-reduced-motion: reduce) {
  .tell:not(.on) { animation: none; }
}

/* ---------- Zielgruppen-Cards mit Zitat-Stil ---------- */
.persona-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--paper);
}
.persona-card .quote {
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--amber);
}
.persona-card .role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--amber-deep);
  margin-bottom: 10px;
}

/* ---------- Outcome-Icon sanftes Pulsieren bei Hover ---------- */
.outcome-card:hover .outcome-icon {
  animation: icon-pop 0.4s ease;
}
@keyframes icon-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ---------- Timeline-Kreis Einblendung ---------- */
.timeline-step::before {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-step:hover::before {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(252, 175, 59, 0.2);
}

/* ---------- FAQ-Akkordeon-Animation ---------- */
details summary {
  transition: color 0.2s ease;
}
details[open] summary {
  color: var(--amber-deep);
}
details .answer {
  animation: faq-open 0.3s ease;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- CTA-Button Shine-Effekt ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: none;
}
.btn-primary:hover::after {
  animation: btn-shine 0.6s ease;
}
@keyframes btn-shine {
  from { left: -100%; }
  to { left: 150%; }
}

/* ---------- Personenauswahl (Schulung / Ersttest) ---------- */
.personen-auswahl { display: flex; flex-direction: column; gap: 12px; }
.team-karte { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 16px 18px; }
.team-karte:has(.team-alle:checked),
.team-karte:has(input[name="member_ids[]"]:checked) { border-color: var(--amber); background: var(--amber-wash); }
.team-kopf { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); margin-bottom: 0; }
.team-kopf .team-zahl { font-family: var(--font-body); font-weight: 400; font-size: 14.5px; color: var(--muted); margin-left: 6px; }
.team-kopf .team-hinweis { font-family: var(--font-body); font-weight: 400; font-size: 14.5px; color: var(--muted); }
.team-mitglieder { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 12px; padding-left: 26px; }
.team-mitglieder .check { font-size: 15px; }
.team-mitglieder small { color: var(--muted); }
.team-leer { opacity: .55; }
.auswahl-zaehler { font-size: 15px; color: var(--body); margin: 2px 0 0; }
.auswahl-zaehler strong { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.auswahl-zaehler .auswahl-minimum { color: var(--muted); }

/* ---------- Vorlagenauswahl mit Testversand ---------- */
.tmpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.tmpl-karte { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.tmpl-karte:has(input:checked) { border-color: var(--amber); background: var(--amber-wash); }
.tmpl-karte .check { align-items: flex-start; font-size: 14.5px; }
.tmpl-karte .check small { color: var(--muted); }
.tmpl-karte .tmpl-betreff { font-size: 13.5px; color: var(--muted); margin: 0; padding-left: 26px; }
.tmpl-fuss { display: flex; align-items: center; gap: 10px; padding-left: 26px; }
.tmpl-test { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--amber-deep);
  background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 10px; cursor: pointer; }
.tmpl-test:hover:not(:disabled) { border-color: var(--amber-deep); }
.tmpl-test:disabled { opacity: .6; cursor: default; }
.tmpl-meldung { font-size: 13.5px; color: var(--muted); }
.tmpl-meldung.ok { color: var(--green); }
.tmpl-meldung.nok { color: var(--red); }

/* ---------- Tafel: Klassen-QR und Mitmach-Aktivitäten ---------- */
.tafel-karte {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  border: 2px solid var(--amber); border-radius: var(--radius);
  background: var(--amber-wash); padding: 22px 24px;
}
.tafel-karte-text { flex: 1; min-width: 260px; }
.tafel-qr { flex-shrink: 0; line-height: 0; background: #FFF; padding: 8px; border-radius: var(--radius); }
.tafel-qr svg { display: block; }

.tafel-aktivitaet {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 20px 22px; margin-bottom: 14px;
}
.tafel-aktivitaet-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tafel-zaehler { font-size: 15px; color: var(--muted); white-space: nowrap; }
.tafel-zaehler b { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.tafel-hinweis { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; font-style: italic; }

.tafel-koerper { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin: 16px 0 4px; }
.tafel-qr-klein { flex-shrink: 0; text-align: center; line-height: 0; }
.tafel-qr-klein svg { display: block; border: 8px solid #FFF; background: #FFF; }
.tafel-qr-klein span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 6px; }
.tafel-ergebnis { flex: 1; min-width: 260px; }
.tafel-leer { font-size: 15px; color: var(--muted); margin: 0; }
.tafel-fuss { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

.tafel-balken { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 16px; }
.tafel-balken-text { flex: 0 0 42%; color: var(--ink); }
.tafel-balken-spur { flex: 1; height: 22px; background: var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.tafel-balken-spur i { display: block; height: 100%; background: var(--amber); transition: width .3s ease; }
.tafel-balken-zahl { font-family: var(--font-display); font-weight: 700; min-width: 28px; text-align: right; }
.tafel-balken.richtig .tafel-balken-spur i { background: var(--green); }
.tafel-balken.richtig .tafel-balken-text { color: var(--green); font-weight: 600; }
.tafel-balken.falsch .tafel-balken-spur i { background: #C9CCD1; }

.tafel-wolke { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; line-height: 1.15; }
.tafel-wolke span { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
/* Antworten werden kleingeschrieben gespeichert, damit „Passwort" und
   „passwort" zusammenfallen. Angezeigt wird trotzdem mit großem Anfang. */
.tafel-wolke span::first-letter { text-transform: uppercase; }
.tafel-wolke sup { font-size: .45em; color: var(--amber-deep); font-weight: 600; }
/* Streu-Wolke: Wörter absolut um die Mitte platziert (per tafel.js), überlappungsfrei. */
.tafel-wolke.wolke-cloud { position: relative; display: block; width: 100%; min-height: 320px; }
.tafel-wolke.wolke-cloud .wolke-wort { position: absolute; white-space: nowrap; line-height: 1; }
.tafel-wolke.wolke-cloud sup { color: inherit; opacity: .7; }

.tafel-tabelle { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tafel-tabelle th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 4px 8px 4px 0; }
.tafel-tabelle td { padding: 5px 8px 5px 0; border-top: 1px solid var(--line-soft); }
.tafel-fertig { color: var(--green); font-weight: 600; }
.tafel-hinweisliste { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 15px; }
.tafel-hinweisliste span { background: var(--paper-alt); border-radius: var(--radius); padding: 3px 9px; }

.tafel-knoepfe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.tafel-status { font-size: 14px; color: var(--muted); }

/* ---------- Mitmach-Blöcke außerhalb des Unterrichts ---------- */
.lern-aktivitaeten { margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.lern-aktivitaet { border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--radius); background: var(--paper-alt); padding: 16px 18px; }
.lern-aktivitaet-frage { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); margin: 4px 0 10px; }
.lern-aktivitaet-optionen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 15.5px; }
.lern-aktivitaet-optionen li b { color: var(--muted); margin-right: 6px; }
.lern-aktivitaet-optionen li.richtig { color: var(--green); font-weight: 600; }
.lern-aktivitaet-optionen li.richtig b { color: var(--green); }
.lern-aktivitaet-hinweis { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; font-style: italic; }

/* ---------- Fehlerseiten ---------- */
.error-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 260px); padding: 48px 24px; }
.error-container { text-align: center; max-width: 560px; }
.error-container h1 { font-size: 34px; margin-bottom: 12px; }
.error-message { font-size: 17.5px; color: var(--body); margin-bottom: 28px; }
.error-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.error-hint { background: var(--paper-alt); border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 20px 22px; text-align: left; border-radius: var(--radius); }
.error-hint h3 { margin-top: 0; margin-bottom: 10px; font-size: 17px; }
.error-hint ul { margin: 0; padding-left: 20px; font-size: 15.5px; }
.error-hint li { margin-bottom: 6px; color: var(--body); }
.error-hint li:last-child { margin-bottom: 0; }
.error-hint p { font-size: 15.5px; color: var(--body); margin-bottom: 0; }
.error-hint.ernst { border-left-color: var(--red); }

/* ---------- Responsive Ergänzungen ---------- */
@media (max-width: 980px) {
  .outcome-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .outcome-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 36px; }
  .timeline-step::before { left: -36px; }
  .hero-dark { padding: 56px 0 48px; }
}

/* ---------- Kanal-Symbole (Social Follow) ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Promo-Variante: Symbole mit Beschriftung als Pille */
.social-icon {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.social-icon .social-glyph { width: 22px; height: 22px; flex: none; }
.social-icon:hover { transform: translateY(-2px); color: #FFF; box-shadow: 0 6px 18px rgba(20,23,28,.14); text-decoration: none; }
.social-icon.social-linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.social-icon.social-tiktok:hover   { background: #000000; border-color: #000000; }
.social-icon.social-youtube:hover  { background: #FF0000; border-color: #FF0000; }
.social-icon.social-udemy:hover    { background: #A435F0; border-color: #A435F0; }

/* Promo-Kasten */
.social-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px;
}

/* Kompakte Variante (Footer, dunkler Grund): nur runde Symbole */
.social-row-kompakt .social-icon {
  padding: 0; width: 42px; height: 42px; justify-content: center; border-radius: 50%;
  background: rgba(255,255,255,.06); border-color: #2A2E36; color: #C6CAD1;
}
.social-row-kompakt .social-icon .social-glyph { width: 20px; height: 20px; }
.social-row-kompakt .social-icon:hover { color: #FFF; box-shadow: none; }
.social-label { white-space: nowrap; }

@media (max-width: 620px) {
  .social-promo { padding: 24px; }
  .social-icon { padding: 9px 14px; font-size: 14px; }
}
