:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --ink: #111827;
  --muted: #5d6675;
  --line: #dfe5ee;
  --blue: #155eef;
  --blue-2: #0d3fad;
  --navy: #0d1830;
  --success: #147d55;
  --danger: #b42318;
  --shadow: 0 18px 60px rgba(22, 38, 76, .09);
  --radius: 18px;
}

[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #111a2e;
  --surface-2: #17223a;
  --ink: #f4f7fc;
  --muted: #a7b1c2;
  --line: #283650;
  --blue: #6ea0ff;
  --blue-2: #9dbdff;
  --navy: #070b15;
  --success: #52d49a;
  --danger: #ff8f86;
  --shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 40; min-height: 68px; display: flex; align-items: center; gap: 28px; padding: 10px max(20px, calc((100vw - 1160px) / 2)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -.03em; font-size: 1.1rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: white; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav a { color: var(--muted); font-size: .92rem; font-weight: 650; text-decoration: none; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .nav-toggle { min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); cursor: pointer; }
.nav-toggle { display: none; padding-inline: 13px; margin-left: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue); color: white; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 26px color-mix(in srgb, var(--blue) 24%, transparent); }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.button-small { min-height: 40px; padding-inline: 15px; font-size: .9rem; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--blue); font-weight: 700; cursor: pointer; }
.intro { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); align-items: end; gap: 48px; padding-block: 90px 70px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(3.2rem, 7vw, 6.7rem); line-height: .92; letter-spacing: -.07em; }
h1 span { color: var(--blue); }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.05; letter-spacing: -.055em; }
h3 { line-height: 1.2; letter-spacing: -.025em; }
.lead { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.lead.compact { max-width: 520px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.progress-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.progress-top, .quiz-meta { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.progress-top strong { font-size: 1.35rem; }
.progress-track { overflow: hidden; height: 8px; margin: 16px 0; border-radius: 999px; background: var(--surface-2); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .35s ease; }
.progress-card p { color: var(--muted); }
.section { padding-block: 82px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 34px; }
.section-heading > p { max-width: 380px; margin-bottom: 4px; color: var(--muted); }
.section-tint { background: var(--surface-2); }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.type-card { position: relative; min-height: 205px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.type-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.type-card.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.type-card .number { color: var(--accent); font-weight: 850; font-size: .8rem; letter-spacing: .08em; }
.type-card h3 { margin: auto 0 8px; font-size: 1.35rem; }
.type-card p { margin-bottom: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.type-card .learned-dot { position: absolute; top: 18px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--success); opacity: 0; }
.type-card.learned .learned-dot { opacity: 1; }
.detail-section { border-top: 1px solid var(--line); }
.detail-head { display: flex; justify-content: space-between; gap: 28px; align-items: center; margin-bottom: 22px; }
.detail-definition { max-width: 900px; margin-bottom: 40px; color: var(--muted); font-size: 1.15rem; }
.detail-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.detail-bottom { margin-top: 42px; }
.structure-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.structure-tab { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 700; cursor: pointer; }
.structure-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.structure-panel { min-height: 120px; margin-top: 14px; padding: 22px; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: var(--surface-2); }
.structure-panel strong { display: block; margin-bottom: 6px; }
.checklist { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; }
.tag { position: relative; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; cursor: help; }
.tag .tooltip { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 4; width: 250px; padding: 12px; border-radius: 10px; background: var(--navy); color: white; font-size: .85rem; font-weight: 500; line-height: 1.45; box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(5px); transition: .15s ease; }
.tag:hover .tooltip, .tag:focus .tooltip { visibility: visible; opacity: 1; transform: none; }
.avoid-card { padding: 22px; border: 1px solid color-mix(in srgb, var(--danger) 25%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.avoid-card h3 { color: var(--danger); }
.avoid-card p { margin-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; min-width: 900px; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
td:first-child { font-weight: 800; }
tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--success); font-weight: 800; }
.no { color: var(--muted); }
.analysis-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; margin-top: 28px; }
.analysis-compare article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.analysis-compare blockquote { margin: 18px 0; padding-left: 16px; border-left: 3px solid var(--blue); color: var(--ink); font-weight: 700; }
.analysis-compare article > p:last-child { margin-bottom: 0; color: var(--muted); }
.versus { align-self: center; color: var(--blue); font-size: 2rem; font-weight: 900; }
.argument-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.argument-step { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); text-align: left; cursor: pointer; }
.argument-step span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--surface-2); }
.argument-step.active { border-color: var(--blue); color: var(--ink); }
.argument-step.active span { background: var(--blue); color: white; }
.argument-example { margin-top: 14px; padding: 26px; border-radius: var(--radius); background: var(--navy); color: white; font-size: 1.12rem; }
.argument-example p { margin-bottom: 0; }
.argument-example strong { color: #8fb2ff; }
.subheading { margin: 40px 0 18px; }
.accordion-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.accordion { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.accordion button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 16px; border: 0; background: transparent; color: var(--ink); font-weight: 800; text-align: left; cursor: pointer; }
.accordion .accordion-content { padding: 0 16px 16px; color: var(--muted); }
.accordion .accordion-content p:last-child { margin-bottom: 0; color: var(--ink); font-size: .92rem; }
.section-dark { background: var(--navy); color: white; }
.section-heading.light > p { color: #aebbd2; }
.section-dark .eyebrow { color: #8fb2ff; }
.training-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.training-tab { padding: 10px 16px; border: 1px solid #33415f; border-radius: 999px; background: transparent; color: #b8c3d8; font-weight: 700; cursor: pointer; }
.training-tab.active { background: white; border-color: white; color: var(--navy); }
.training-card { min-height: 330px; padding: clamp(24px, 5vw, 48px); border-radius: 22px; background: white; color: #111827; }
.training-card .prompt { max-width: 780px; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.32; font-weight: 750; letter-spacing: -.03em; }
.training-options, .quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0 18px; }
.choice { min-height: 52px; padding: 12px 15px; border: 1px solid #dfe5ee; border-radius: 12px; background: white; color: #111827; text-align: left; font-weight: 700; cursor: pointer; }
.choice:hover:not(:disabled) { border-color: #155eef; }
.choice.correct { border-color: #147d55; background: #ecfdf3; color: #08683f; }
.choice.wrong { border-color: #d92d20; background: #fff1f0; color: #a0160c; }
.feedback { min-height: 28px; margin: 10px 0; font-weight: 700; }
.feedback.success { color: #08683f; }
.feedback.error { color: #a0160c; }
.challenge-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.highscore { display: inline-block; margin-top: 18px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 700; }
.quiz-card { min-height: 380px; padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.quiz-card h3 { margin: 18px 0 10px; font-size: clamp(1.45rem, 3vw, 2rem); }
.quiz-badge { display: inline-block; padding: 7px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .82rem; font-weight: 750; }
.quiz-meta { color: var(--muted); font-size: .9rem; font-weight: 750; }
.result-score { color: var(--blue); font-size: 4rem; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.cheat-section { background: var(--surface); }
.cheat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cheat-card { padding: 19px; border: 1px solid var(--line); border-radius: 14px; }
.cheat-card h3 { display: flex; gap: 10px; margin-bottom: 8px; }
.cheat-card h3 span { color: var(--accent); }
[data-theme="dark"] .type-card .number,
[data-theme="dark"] .cheat-card h3 span { color: color-mix(in srgb, var(--accent) 55%, white); }
.cheat-card p { margin-bottom: 0; color: var(--muted); }
.source-note { margin: 26px 0 0; color: var(--muted); font-size: .9rem; }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--blue); font-weight: 700; }
.presentation { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: #081126; color: white; }
.presentation[hidden] { display: none; }
.presentation-top, .presentation-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 28px; color: #abb9d3; }
.presentation-top button, .presentation-controls button { padding: 10px 14px; border: 1px solid #354564; border-radius: 10px; background: transparent; color: white; cursor: pointer; }
.slide-content { width: min(1180px, calc(100% - 64px)); margin: auto; }
.slide-content .eyebrow { color: #8fb2ff; }
.slide-content h2 { max-width: 1020px; color: white; font-size: clamp(3rem, 7vw, 6rem); }
.slide-content > p { max-width: 900px; color: #bcc7da; font-size: clamp(1.25rem, 2.4vw, 2rem); }
.slide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.slide-list li { padding: 18px; border: 1px solid #354564; border-radius: 14px; font-size: clamp(1rem, 2vw, 1.4rem); }

@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .button { display: none; }
  .intro { grid-template-columns: 1fr; align-items: start; padding-block: 64px 50px; }
  .progress-card { max-width: 520px; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout, .challenge-layout { grid-template-columns: 1fr; gap: 30px; }
  .argument-flow { grid-template-columns: repeat(2, 1fr); }
  .accordion-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1160px); }
  .site-header { padding-inline: 14px; }
  .section { padding-block: 62px; }
  .section-heading, .detail-head, .footer-inner { align-items: flex-start; flex-direction: column; }
  h1 { font-size: clamp(2.85rem, 15vw, 4.4rem); }
  .type-grid, .training-options, .quiz-options, .cheat-grid, .analysis-compare, .accordion-list { grid-template-columns: 1fr; }
  .analysis-compare .versus { justify-self: center; }
  .type-card { min-height: 175px; }
  .argument-flow { grid-template-columns: 1fr; }
  .detail-head .button { width: 100%; }
  .presentation-controls span { display: none; }
  .slide-content { width: calc(100% - 36px); }
  .slide-list { grid-template-columns: 1fr; }
}

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

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: white; color: #111; font-size: 10pt; }
  .site-header, main > section:not(#spickzettel), .site-footer, #print-button { display: none !important; }
  #spickzettel { display: block !important; padding: 0; }
  #spickzettel .shell { width: 100%; }
  #spickzettel .section-heading { margin-bottom: 14px; }
  #spickzettel h2 { font-size: 24pt; }
  .cheat-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .cheat-card { break-inside: avoid; padding: 10px; }
  .cheat-card h3 { margin-bottom: 3px; font-size: 12pt; }
  .cheat-card p { color: #333; line-height: 1.35; }
  .source-note { font-size: 8pt; }
}
