/* Funkkurs – warmes Papier, Marine-Tinte, Signalrot. Schrift wie gedruckt: Plakat-Slab für große Titel, Buchschrift für alles andere. */
@font-face { font-family: "Alfa Slab One"; src: url("/fonts/alfa-slab-one.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("/fonts/vollkorn-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("/fonts/vollkorn-italic-var.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
:root {
  --paper: #fbf7ef;
  --paper-2: #f3ead9;
  --card: #fffdf8;
  --ink: #1b2b3c;
  --ink-2: #44546a;
  --ink-3: #6b7889;
  --line: #e2d8c5;
  --red: #c8372d;
  --red-ink: #b02d24;
  --sea: #1f5f8b;
  --sea-soft: #e3eef6;
  --sun: #f2c14e;
  --ok: #2f7d4f;
  --ok-soft: #e2f1e7;
  --warn-soft: #fbecd0;
  --danger-soft: #f8e1de;
  --shadow: 0 1px 2px rgba(27, 43, 60, .06), 0 8px 24px rgba(27, 43, 60, .08);
  --radius: 14px;
  --display: "Alfa Slab One", Rockwell, Georgia, serif;
  --serif: "Vollkorn", Georgia, serif;
  --sans: "Vollkorn", Georgia, "Times New Roman", serif;
  --hand: "Vollkorn", Georgia, serif; /* früher Handschrift, jetzt schlicht kursiv (siehe unten) */
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1923; --paper-2: #16232f; --card: #182633; --ink: #ece4d6; --ink-2: #c3bbad; --ink-3: #8f9aa6;
    --line: #2a3a49; --red: #ef6b5f; --red-ink: #ff8a7f; --sea: #7ab8e3; --sea-soft: #17303f; --sun: #f2c14e;
    --ok: #6fcf97; --ok-soft: #173327; --warn-soft: #3a2f17; --danger-soft: #3d1f1d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1923; --paper-2: #16232f; --card: #182633; --ink: #ece4d6; --ink-2: #c3bbad; --ink-3: #8f9aa6;
  --line: #2a3a49; --red: #ef6b5f; --red-ink: #ff8a7f; --sea: #7ab8e3; --sea-soft: #17303f; --sun: #f2c14e;
  --ok: #6fcf97; --ok-soft: #173327; --warn-soft: #3a2f17; --danger-soft: #3d1f1d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
b, strong { font-weight: 700; }
.hand { font-family: var(--hand); font-weight: 700; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
/* .btn, .btn-big, .btn-ghost, .btn-small stehen in look.css (zusammen mit .knopf) */
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--haar); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1400px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.1rem; }
.brand b { font-family: var(--display); font-weight: 400; }
.brand-by { font-family: var(--hand); font-weight: 700; font-size: 1.35rem; color: var(--red); }
.brand-mark { font-size: 1.3rem; }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem; }
.topnav a:hover { color: var(--red); }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.topbar-course .topnav { margin-left: auto; }
.menu-btn { display: none; }
.topbar-course .menu-btn { display: inline-grid; margin-left: -8px; }
.progress-line { height: 3px; background: transparent; }
.progress-line span { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }
@media (max-width: 860px) {
  .topnav { display: none; }
  .topbar-actions { margin-left: auto; }
  .topbar-course .menu-btn { display: inline-grid; margin-left: -8px; }
}

/* ---------- Landing ---------- */
.section { max-width: 1320px; margin: 0 auto; padding: 88px 20px; }
.section-tint { max-width: none; background: var(--paper-2); }
.section-tint > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section-head { max-width: 880px; margin-bottom: 36px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--red); margin: 0 0 .6em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }

.hero { max-width: 1320px; margin: 0 auto; padding: 64px 20px 72px; display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; }
.hello { font-size: 1.9rem; color: var(--red); margin: 0 0 .2em; transform: rotate(-2deg); display: inline-block; }
.underline { background: linear-gradient(transparent 68%, color-mix(in srgb, var(--sun) 70%, transparent) 68%, color-mix(in srgb, var(--sun) 70%, transparent) 92%, transparent 92%); padding: 0 .08em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { color: var(--ink-3); font-size: .95rem; }
.polaroid { margin: 0; background: #fff; padding: 12px 12px 6px; box-shadow: var(--shadow); border-radius: 4px; }
.polaroid img { display: block; width: 100%; border-radius: 2px; }
.polaroid figcaption { color: #2a3a4a; font-size: 1.45rem; text-align: center; padding: 6px 0 4px; }
.polaroid-hero { transform: rotate(2.5deg); max-width: 380px; justify-self: center; position: relative; }
.polaroid-hero::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-4deg); background: color-mix(in srgb, var(--sun) 55%, transparent); opacity: .85; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 40px; }
  .polaroid-hero { max-width: 300px; }
}

.quote-band { background: var(--ink); color: var(--paper); padding: 56px 20px; }
.quote-band blockquote { max-width: 980px; margin: 0 auto; text-align: center; }
.quote-band .hand { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.2; margin: 0 0 .6em; color: var(--sun); }
.quote-rule { font-size: 1.15rem; margin: 0; opacity: .92; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cert { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.cert-tag { position: absolute; top: -14px; right: 22px; font: 400 1rem/1 var(--display); padding: 8px 14px; border-radius: 8px; color: #fff; transform: rotate(3deg); }
.cert-src .cert-tag { background: var(--sea); }
.cert-ubi .cert-tag { background: var(--ok); }
.cert p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 1.7em; position: relative; margin: .45em 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .95em; height: .55em; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.center-note { text-align: center; margin-top: 28px; color: var(--ink-2); }
.center-note .hand { font-size: 1.6rem; color: var(--red); margin-right: .2em; }
@media (max-width: 720px) { .cards-2 { grid-template-columns: 1fr; gap: 32px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.stat b { display: block; font: 400 2.6rem/1 var(--display); color: var(--red); margin-bottom: 6px; }
.stat span { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

.curriculum { display: grid; gap: 12px; }
.module { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.module summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 20px 24px; flex-wrap: wrap; }
.module summary::-webkit-details-marker { display: none; }
.module summary::after { content: "+"; margin-left: auto; font: 600 1.5rem/1 var(--sans); color: var(--ink-3); transition: transform .2s; }
.module[open] summary::after { transform: rotate(45deg); }
.module-n { font-family: var(--hand); font-size: 1.4rem; color: var(--red); font-weight: 700; }
.module-title { font: 700 1.25rem/1.2 var(--serif); }
.module-count { color: var(--ink-3); font-size: .92rem; }
.module-lessons { list-style: none; margin: 0; padding: 0 12px 14px; }
.module-lessons a { display: flex; gap: 14px; padding: 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.module-lessons a:hover { background: var(--paper-2); color: var(--ink); }
.ln-n { font: 700 .9rem/1.6 var(--mono); color: var(--ink-3); }
.module-lessons small, .room-module small { display: block; color: var(--ink-2); font-size: .95rem; margin-top: 2px; }

.sample { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.sample-note { background: #fff8d9; color: #2b2a22; padding: 28px 28px 20px; border-radius: 4px; box-shadow: var(--shadow); transform: rotate(-1.2deg); font-size: 1.08rem; }
.sample-note p { margin: 0 0 .8em; }
.sample-from { font-size: 1.35rem; color: #8a5a1f; text-align: right; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; padding: 0; list-style: none; margin: 40px 0 0; }
.features li { padding-left: 18px; border-left: 3px solid var(--red); color: var(--ink-2); }
.features b { color: var(--ink); }
@media (max-width: 820px) { .sample, .features { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.polaroid-trip { transform: rotate(-2deg); }
.about-text p { color: var(--ink-2); }
.signature { font-size: 3rem; color: var(--red); margin: 0; transform: rotate(-4deg); display: inline-block; }
.about-head { display: flex; align-items: center; gap: 18px; }
.about-head h2 { margin: 0; }
.about-portrait { width: 96px; height: 96px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 3px solid #fff; box-shadow: var(--shadow); }
.logbook { margin: 22px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); overflow: hidden; transform: rotate(-.4deg); }
.logbook div { padding: 12px 16px; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.logbook div:nth-child(odd) { border-right: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.logbook div:nth-last-child(-n+2) { border-bottom: 0; }
.logbook dt { font-family: var(--hand); font-size: 1.6rem; line-height: 1.1; color: var(--red); }
.logbook dd { margin: 2px 0 0; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 520px) { .logbook { grid-template-columns: 1fr; } .logbook div { border-right: 0 !important; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent) !important; } .logbook div:last-child { border-bottom: 0 !important; } }
.about-text .about-more { margin-top: 18px; font-size: .98rem; }
.about-strip { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 26px; align-items: center; margin-top: 8px; }
.about-strip .polaroid img, .about-strip video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: #000; }
.about-strip .polaroid:nth-child(1) { transform: rotate(1.5deg); }
.about-strip .polaroid:nth-child(2) { transform: rotate(-1deg); }
.about-strip .polaroid:nth-child(3) { transform: rotate(1deg); }
.about-strip .polaroid:nth-child(3) img { aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .polaroid-trip { max-width: 520px; } .about-strip { grid-template-columns: 1fr 1fr; } .about-strip .polaroid:nth-child(3) { grid-column: 1 / -1; } .about-portrait { width: 72px; height: 72px; } }

.price-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 44px; box-shadow: 8px 8px 0 var(--ink); max-width: 1120px !important; }
.price { font: 400 3rem/1 var(--display); margin: 0 0 6px; }
.price-ask { font-family: var(--hand); color: var(--red); font-size: 3.2rem; }
.price-note { color: var(--ink-2); margin: 0 0 22px; }
.price-right { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; }
.price-try { color: var(--ink-3); margin: 12px 0 0 6px; }
.price-doodle { display: flex; align-items: flex-end; gap: 4px; color: var(--ink-3); font-size: 1.35rem; margin-top: 10px; transform: rotate(-3deg); }
.doodle { width: 64px; height: 38px; transform: scaleY(-1) rotate(180deg); color: var(--ink-3); }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; padding: 28px; box-shadow: 5px 5px 0 var(--ink); } }

.faq-list { max-width: 980px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font: 700 1.2rem/1.3 var(--serif); padding: 20px 0; list-style: none; display: flex; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "?"; font-family: var(--hand); color: var(--red); font-size: 1.6rem; line-height: 1; }
.faq-list p { color: var(--ink-2); margin: 0 0 22px 28px; }

.notfound { text-align: left; max-width: 760px; }

/* ---------- Footer ---------- */
/* Fußzeile: siehe Abschnitt "Fußzeile wie auf maximilianherrmann.com" am Ende */

/* ---------- Kurs-Layout ---------- */
.course-layout { --side: var(--side-w, 280px); display: grid; grid-template-columns: var(--side) minmax(0, 1fr); max-width: 1720px; margin: 0 auto; }
.sidebar { border-right: 1px solid var(--line); position: relative; min-width: 0; }
.side-resize { position: absolute; top: 0; right: -5px; width: 10px; height: 100%; cursor: col-resize; z-index: 5; }
.side-resize::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: transparent; transition: background .15s; }
.side-resize:hover::after, .side-resize:focus-visible::after, body.resizing .side-resize::after { background: var(--red); }
body.resizing { cursor: col-resize; user-select: none; }
@media (min-width: 861px) {
  html.side-hidden .course-layout { grid-template-columns: 0 minmax(0, 1fr); }
  html.side-hidden .sidebar { visibility: hidden; overflow: hidden; border: 0; }
  html.side-hidden article.lesson { max-width: 1100px; }
}
.sidebar-inner { position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 22px 14px 40px 20px; }
.side-home { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; background: var(--paper-2); margin-bottom: 18px; }
.side-home.active { outline: 2px solid var(--ink); }
.side-progress { font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.side-module { margin-bottom: 18px; }
.side-module-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; margin: 0 0 6px 12px; }
.side-module ol { list-style: none; margin: 0; padding: 0; }
.side-module a { display: grid; grid-template-columns: 20px 24px 1fr; align-items: start; gap: 4px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .95rem; line-height: 1.35; }
.side-module a:hover { background: var(--paper-2); color: var(--ink); }
.side-module a.active { background: var(--ink); color: var(--paper); }
.side-module a.active .side-n { color: inherit; opacity: .7; }
.side-n { font: 600 .8rem/1.6 var(--mono); color: var(--ink-3); }
.side-check { width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.8px solid var(--line); display: grid; place-items: center; color: transparent; }
.side-check svg { width: 11px; height: 11px; }
.is-done .side-check { background: var(--ok); border-color: var(--ok); color: #fff; }
.side-extra { display: flex; gap: 8px; align-items: center; padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.sidebar-scrim { display: none; }
@media (max-width: 860px) {
  .course-layout { grid-template-columns: 1fr; }
  .side-resize { display: none; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 330px); background: var(--paper); z-index: 60; transform: translateX(-102%); transition: transform .25s; border-right: 1px solid var(--line); box-shadow: var(--shadow); }
  .sidebar-inner { top: 0; max-height: 100vh; padding-top: 20px; }
  body.nav-open .sidebar { transform: none; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(10, 18, 26, .45); z-index: 55; }
  .sidebar-scrim[hidden] { display: none; }
}

.lesson-main { padding: 36px 40px 40px; min-width: 0; }
@media (max-width: 860px) { .lesson-main { padding: 24px 16px 32px; } }
article.lesson { max-width: 960px; margin: 0 auto; }
.crumbs { font-size: .92rem; color: var(--ink-3); margin: 0 0 10px; }
.crumbs a { color: var(--ink-3); }
.crumbs span { margin: 0 4px; }
.lesson-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.lesson-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--ink-3); font-size: .95rem; margin: 0 0 22px; }
.done-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--ok-soft); color: var(--ok); padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.done-badge[hidden] { display: none; }
.toc { background: var(--paper-2); border-radius: 12px; padding: 12px 18px; margin-bottom: 28px; }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: 10px 0 4px; padding-left: 1.3em; columns: 2; column-gap: 32px; font-size: .95rem; }
.toc li { break-inside: avoid; margin: 3px 0; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ---------- Prose (Lektionsinhalt) ---------- */
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.4rem; margin-top: 2em; padding-top: .2em; }
.prose h4 { font-size: 1.12rem; margin-top: 1.6em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--red); }
.prose blockquote { margin: 1.4em 0; padding: .2em 1.2em; border-left: 3px solid var(--line); color: var(--ink-2); }
.prose code { font: .9em var(--mono); background: var(--paper-2); padding: .1em .35em; border-radius: 5px; }
.prose img.embed { border-radius: 10px; margin: .6em .4em .6em 0; vertical-align: top; box-shadow: var(--shadow); max-width: 100%; height: auto; cursor: zoom-in; background: #fff; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.prose table { border-collapse: collapse; width: 100%; font-size: .96rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper-2); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.callout { position: relative; margin: 1.8em 0; padding: 18px 20px 6px; border-radius: 12px; background: var(--sea-soft); border-left: 4px solid var(--sea); }
.callout .c-label { position: absolute; top: -13px; left: 14px; font: 700 1.25rem/1 var(--hand); background: var(--sea); color: #fff; padding: 4px 10px 5px; border-radius: 6px; transform: rotate(-2deg); }
.callout .c-title { font-weight: 700; margin: .3em 0 .2em; }
.callout .c-body > :first-child { margin-top: .4em; }
.callout .c-body p { margin: .4em 0 .8em; }
.c-tip { background: #fff6d6; border-color: #e0a92a; color: #2b2a22; } .c-tip .c-label { background: #d99a12; }
.c-tip a { color: #7a4d00; }
.c-important { background: var(--warn-soft); border-color: #d9822b; } .c-important .c-label { background: #c96f17; }
.c-danger, .c-warning { background: var(--danger-soft); border-color: var(--red); } .c-danger .c-label, .c-warning .c-label { background: var(--red); }
.c-question { background: var(--ok-soft); border-color: var(--ok); } .c-question .c-label { background: var(--ok); }
:root[data-theme="dark"] .c-tip { background: #33291a; color: var(--ink); } :root[data-theme="dark"] .c-tip a { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-tip { background: #33291a; color: var(--ink); } :root:not([data-theme="light"]) .c-tip a { color: var(--sun); } }
/* Exkurs: kleine wahre Geschichte – wirkt wie ein Logbuch-Eintrag */
.c-exkurs { background: var(--card); border: 1.5px dashed var(--ink-3); padding-top: 22px; }
.c-exkurs .c-label { background: var(--ink); color: var(--paper, #fff); }
.c-exkurs .c-label::before { content: "⚓ "; }
.c-exkurs .c-title { font-family: var(--serif, Georgia, serif); font-size: 1.12em; }
.c-exkurs .c-body p:last-child em, .c-exkurs .c-src { font-size: .88em; color: var(--ink-3); }
details.callout { padding-bottom: 14px; }
details.callout summary { cursor: pointer; font-weight: 700; padding-top: 4px; }

.radio, .codeblock { margin: 1.5em 0; border-radius: 12px; overflow: hidden; background: #14212d; color: #e9e3d6; box-shadow: var(--shadow); }
.radio figcaption { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #9fb0c0; border-bottom: 1px solid #23344a; }
.radio .dot { width: 8px; height: 8px; border-radius: 50%; background: #ef6b5f; box-shadow: 0 0 0 3px rgba(239, 107, 95, .25); }
.radio pre, .codeblock pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.radio code, .codeblock code { font: .92rem/1.6 var(--mono); background: none; padding: 0; white-space: pre; display: block; }
.ln { display: block; }
.ln.tx { color: #ffd88a; }
.ln.rx { color: #9fd3ff; }
.ln.note { color: #8796a6; font-style: italic; }
.diagram { margin: 1.8em 0; padding: 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; text-align: center; box-shadow: var(--shadow); }
.diagram svg { max-width: 100%; height: auto; }
.diagram pre.mermaid { margin: 0; font-size: .9rem; color: transparent; min-height: 60px; }
.diagram pre.mermaid[data-processed] { color: inherit; }

/* Quiz-Antworten */
.prose details:not(.callout):not(.toc) { margin: .5em 0 1.4em; border: 1px dashed var(--line); border-radius: 10px; background: var(--card); padding: 0; }
.prose details:not(.callout):not(.toc) > summary { cursor: pointer; padding: 8px 14px; font-weight: 700; color: var(--sea); font-size: .95rem; }
.prose details:not(.callout):not(.toc)[open] { padding-bottom: 12px; }
.prose details:not(.callout):not(.toc)[open] > summary { color: var(--ink-3); }
.prose details:not(.callout):not(.toc) { line-height: 1.55; }
.prose details:not(.callout):not(.toc) > :not(summary) { margin: 0 14px; }
.is-quiz .prose details:not(.callout):not(.toc) { padding-bottom: 0; }
.qa-body { padding: 0 14px 4px; }
.qa-rate { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px 12px; }
.prose .qa-rate button { display: inline-flex; align-items: center; gap: .35em; min-height: 40px; padding: .5em 1em; border-radius: 999px; font: 700 .9rem/1 var(--sans); } /* Farben: look.css (.wert) */
.quiz-q { border-radius: 12px; transition: opacity .2s; }
.quiz-q.rated-1 > details { border-color: var(--ok); border-style: solid; }
.quiz-q.rated-0 > details { border-color: var(--red); border-style: solid; }
.only-wrong .quiz-q:not(.rated-0) { display: none; }
.quiz-panel { position: sticky; top: 70px; z-index: 5; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 18px; margin-bottom: 24px; box-shadow: 4px 4px 0 var(--ink); }
.quiz-panel p { margin: 0 0 6px; font-size: .95rem; color: var(--ink-2); }
.quiz-score { font-weight: 700; margin-bottom: 8px; }
.qs-right { color: var(--ok); } .qs-wrong { color: var(--red); }
.quiz-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) { .quiz-panel { top: 62px; } .quiz-panel p:first-child { display: none; } }

.lesson-foot { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; }
.btn-done.on, .btn-done.on:hover { background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ok); }
.btn-done.on svg { color: var(--ok); }
.ask { color: var(--ink-3); margin: 16px 0 28px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--card); }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager small { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-weight: 600; }
.pager-next { text-align: right; align-items: flex-end; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } }

/* ---------- Kursraum ---------- */
.room-hero { display: flex; justify-content: space-between; align-items: center; gap: 32px; max-width: 1160px; margin: 0 auto 24px; }
.room-hero h1 { margin-bottom: .3em; }
.room-hero .lead { margin-bottom: 1.4em; }
.ring { position: relative; width: 170px; height: 170px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--paper-2); }
.ring-fg { stroke: var(--red); stroke-linecap: round; transition: stroke-dasharray .6s; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font: 400 2.2rem/1 var(--display); }
.ring-label span { color: var(--ink-3); font-size: .9rem; }
@media (max-width: 700px) { .room-hero { flex-direction: column-reverse; align-items: flex-start; } .ring { width: 130px; height: 130px; } }
.room-block { max-width: 1160px; margin: 0 auto; padding: 32px 0; border-top: 1px solid var(--line); }
.path { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.path li { display: flex; gap: 16px; align-items: flex-start; }
.path-n { font-size: 2.1rem; color: var(--red); line-height: 1; width: 28px; flex: none; }
.path p { margin: 0; }
.path-links { font-size: .97rem; margin-top: 2px !important; }
.path-links span { color: var(--ink-3); }
.room-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.room-module { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 12px; }
.room-module ol { list-style: none; padding: 0; margin: 0; }
.room-module a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 9px 6px; border-radius: 8px; text-decoration: none; color: var(--ink); line-height: 1.35; }
.room-module a:hover { background: var(--paper-2); color: var(--ink); }
.room-module small { font-size: .88rem; }
.room-practice p { color: var(--ink-2); }
.links-block h3 { font-size: 1.15rem; margin-top: 1.4em; }
.links-block { font-size: 1rem; }
.links-block p { margin: .8em 0 .2em; }
.room-hero-plain { display: block; }

.handouts { max-width: 1160px; margin: 0 auto; display: grid; gap: 14px; }
.handout { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.handout:hover { border-color: var(--ink); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.handout-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--danger-soft); color: var(--red); border-radius: 12px; }
.handout-body b { font: 700 1.15rem/1.2 var(--serif); margin-right: 8px; }
.handout-pages { color: var(--ink-3); font-weight: 600; }
.handout-body span { display: block; color: var(--ink-2); font-size: .97rem; margin-top: 4px; }
.handout-dl { display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--red); }
@media (max-width: 600px) { .handout { grid-template-columns: 40px 1fr; } .handout-dl { grid-column: 2; } }

/* ---------- Suche ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 18, 26, .5); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-overlay[hidden] { display: none; }
.search-box { width: 100%; max-width: 640px; background: var(--card); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.3); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.search-field input { flex: 1; border: 0; background: transparent; font: 1.1rem var(--sans); color: var(--ink); outline: none; min-width: 0; }
.search-field kbd { font: .75rem var(--mono); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.search-results { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow-y: auto; }
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a.sel { background: var(--paper-2); }
.search-results b { display: block; }
.search-results small { color: var(--ink-2); font-size: .9rem; }
.search-results mark { background: color-mix(in srgb, var(--sun) 55%, transparent); color: inherit; border-radius: 3px; }
.search-empty { padding: 16px 18px; margin: 0; color: var(--ink-2); }

/* Bild-Zoom */
.zoom { position: fixed; inset: 0; z-index: 95; background: rgba(10, 18, 26, .88); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }

@media print {
  .topbar, .sidebar, .site-foot, .lesson-foot, .quiz-panel { display: none !important; }
  .course-layout { display: block; }
  body { background: #fff; color: #000; font-size: 12pt; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.topbar-course .topbar-inner { max-width: 1720px; }

/* ---------- Kurz-Check ---------- */
.lesson-meta .meta-check { color: var(--red); font-weight: 700; text-decoration: none; }
.lesson-meta .meta-check:hover { text-decoration: underline; }
.mini-quiz { background: var(--paper-2); border: 2px solid var(--ink); border-radius: 18px; padding: 6px 22px 18px; margin: 2.2em 0 1em; box-shadow: 5px 5px 0 var(--ink); scroll-margin-top: 80px; }
.mini-quiz > h3 { margin-top: .9em; }
.mini-quiz details { background: var(--card); }
.mini-score { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .98rem; color: var(--ink-2); }
.mini-score .qs-right { color: var(--ok); } .mini-score .qs-wrong { color: var(--red); }
.mini-score a { font-weight: 700; color: var(--ink); }
.mini-score.all-done span::after { content: "  ✓ fertig"; color: var(--ok); font-weight: 700; }

/* ---------- Karteikarten ---------- */
.trainer { max-width: 960px; margin: 0 auto; }
.box-shelf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 30px; }
.box { --fill: 0; position: relative; overflow: hidden; background: var(--card); border: 2px solid var(--ink); border-radius: 12px 12px 6px 6px; padding: 12px 8px 10px; text-align: center; box-shadow: 3px 3px 0 var(--ink); }
.box::before { content: ""; position: absolute; inset: auto 0 0 0; height: calc(var(--fill) * 100%); min-height: 0; background: var(--sea-soft, #e3eef6); transition: height .4s; z-index: 0; }
.box > * { position: relative; z-index: 1; display: block; }
.box b { font: 400 1.6rem/1 var(--display); }
.box span { font-weight: 700; font-size: .9rem; margin-top: 4px; }
.box small { color: var(--ink-2); font-size: .74rem; line-height: 1.2; margin-top: 2px; }
.box[data-box="1"] b { color: var(--red); } .box[data-box="5"] b { color: var(--ok); }
.box-new { border-style: dashed; box-shadow: none; }
@media (max-width: 640px) { .box-shelf { grid-template-columns: repeat(3, 1fr); } }
.trainer-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.trainer-form legend { font: 700 1.05rem var(--sans); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips + .chips { margin-top: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; gap: 6px; align-items: center; padding: .5em .95em; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--ink-2); background: var(--card); transition: all .15s; }
.chips span b { font-size: .8rem; background: var(--paper-2); border-radius: 999px; padding: 1px 7px; }
.chips label:hover span { border-color: var(--ink-2); }
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chips input:checked + span b { background: var(--red); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--sea); outline-offset: 2px; }
.more-stacks { margin-top: 12px; }
.more-stacks summary { cursor: pointer; color: var(--ink-2); font-weight: 600; margin-bottom: 10px; }
.type-toggle { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; color: var(--ink-2); cursor: pointer; }
.type-toggle input { margin-top: .3em; accent-color: var(--red); width: 18px; height: 18px; }
.trainer-hint { color: var(--ink-2); margin-top: 10px; font-size: .95rem; }
.trainer-form button[disabled] { opacity: .45; cursor: not-allowed; }
.tc-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.tc-count { font-weight: 700; }
.tc-src { color: var(--ink-2); }
.tc-bar { height: 6px; background: var(--paper-2); border-radius: 99px; margin: 10px 0 22px; overflow: hidden; }
.tc-bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }
.flashcard { perspective: 1600px; outline: none; cursor: pointer; }
.fc-inner { display: grid; transition: transform .55s cubic-bezier(.3,.7,.3,1); transform-style: preserve-3d; }
.flashcard.is-flipped .fc-inner { transform: rotateY(180deg); }
.fc-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; min-height: 300px; background: var(--card); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 26px 30px 24px; display: flex; flex-direction: column; gap: 14px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, color-mix(in srgb, var(--sea) 18%, transparent) 33px 34px); background-position: 0 70px; }
.fc-front::before, .fc-back::before { content: ""; position: absolute; } 
.fc-face { position: relative; }
.fc-face::after { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; border-left: 2px solid color-mix(in srgb, var(--red) 35%, transparent); }
.fc-back { transform: rotateY(180deg); }
.flashcard:focus-visible .fc-face { outline: 3px solid var(--sea); outline-offset: 3px; }
.fc-tag { font-size: 1.5rem; color: var(--red); line-height: 1; padding-left: 14px; }
.fc-q { font: 700 1.5rem/1.3 var(--serif); margin: 0; padding-left: 14px; }
.fc-q-small { font-size: 1.05rem; color: var(--ink-2); font-weight: 500; }
.fc-a { font-size: 1.15rem; line-height: 1.55; padding-left: 14px; }
.fc-a b { color: var(--ink); background: linear-gradient(transparent 60%, color-mix(in srgb, var(--sun) 55%, transparent) 60%); }
.fc-mine { margin-left: 14px; padding: 10px 14px; background: var(--paper-2); border-radius: 10px; font-size: .98rem; }
.fc-mine small { color: var(--ink-2); font-weight: 700; }
.fc-input { margin-left: 14px; width: calc(100% - 14px); font: 1.05rem/1.4 var(--sans); padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); resize: vertical; cursor: text; }
.fc-input:focus { outline: none; border-color: var(--ink); }
.fc-flip { align-self: flex-start; margin: auto 0 0 14px; }
.fc-rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.fc-rate p { grid-column: 1 / -1; margin: 0; font-weight: 700; color: var(--ink-2); }
/* .fc-rate button: look.css (.wert) */
.trainer kbd { font: .72rem var(--mono, monospace); border: 1px solid currentColor; border-radius: 5px; padding: 1px 5px; opacity: .55; }
.tc-quit { display: block; margin: 18px 0 0 auto; background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.trainer-result { text-align: center; background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 30px 24px; box-shadow: 6px 6px 0 var(--ink); }
.tr-msg { font-size: 2rem; margin: 0; }
.tr-score { font-size: 1.3rem; margin: 6px 0 4px; } .tr-score .tr-right { color: var(--ok); font-size: 2.2rem; }
.tr-next { color: var(--ink-2); margin: 0 0 20px; }
.tr-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) { .fc-face { padding: 20px 18px; min-height: 260px; } .fc-q { font-size: 1.2rem; } .trainer kbd { display: none; } .fc-rate { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fc-inner { transition: none; } }

/* ---------- Wissensstand & Trainer im Kursraum ---------- */
.room-trainer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.room-trainer p { color: var(--ink-2); max-width: 36em; margin: 0; }
.room-trainer h2 { margin-bottom: 6px; }
.room-trainer .btn { display: inline-flex; gap: 8px; align-items: center; }
.knowledge { display: grid; gap: 12px; margin-top: 18px; width: 100%; }
.kn-row { display: grid; grid-template-columns: minmax(0, 15em) 1fr auto; gap: 12px; align-items: center; font-size: .95rem; }
.kn-row > span:first-child { color: var(--ink-2); font-weight: 600; }
.kn-bar { display: flex; height: 12px; border-radius: 99px; background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
.kn-bar i { display: block; height: 100%; }
.kn-bar .k1 { background: var(--ok); } .kn-bar .k0 { background: var(--red); }
.kn-row small { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kn-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); margin-top: 4px; }
.kn-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.kn-wobbly { font-weight: 700; color: var(--red); }
@media (max-width: 600px) { .kn-row { grid-template-columns: 1fr auto; } .kn-bar { grid-column: 1 / -1; grid-row: 2; } }
@media print { .qa-rate, .mini-score { display: none !important; } }

/* lange URLs dürfen auf dem Handy umbrechen */
.prose a, .room-block a, .lesson a, .site-foot a { overflow-wrap: anywhere; }

/* ---------- Interaktive Aufgaben (Kurz-Check) ---------- */
.ix { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px 14px; margin: 14px 0; transition: border-color .2s, box-shadow .2s; }
.ix.is-ok { border-color: var(--ok); }
.ix.is-no { border-color: color-mix(in srgb, var(--red) 70%, var(--line)); }
.ix-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ix-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 .85rem/1 var(--sans); flex: none; }
.ix.is-ok .ix-num { background: var(--ok); } .ix.is-no .ix-num { background: var(--red); }
.ix-type { color: var(--red); font-size: 1.25rem; line-height: 1; }
.ix-q { font-weight: 650; font-size: 1.08rem; margin: .4em 0 .8em; }
.ix-hint { font-weight: 400; color: var(--ink-2); }
.ix-opts { display: grid; gap: 8px; }
.ix-opt, .ix-chip { font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; min-height: 44px; }
.ix-opt:hover:not(:disabled), .ix-chip:hover:not(:disabled) { border-color: var(--ink); }
.ix-opt:active:not(:disabled), .ix-chip:active:not(:disabled) { transform: scale(.98); }
.ix-opt[aria-pressed="true"] { border-color: var(--sea); background: var(--sea-soft); }
.ix-opt:disabled, .ix-chip:disabled { cursor: default; }
.ix-opt.right, .ix-slots li.right .ix-chip { border-color: var(--ok); background: var(--ok-soft); }
.ix-opt.right::after { content: " ✓"; color: var(--ok); font-weight: 700; }
.ix-opt.wrong, .ix-slots li.wrong .ix-chip { border-color: var(--red); background: var(--danger-soft); }
.ix-opt.wrong::after { content: " ✗"; color: var(--red); font-weight: 700; }
.ix-opt.dim { opacity: .55; }
.ix-slots { list-style: none; counter-reset: s; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.ix-slots li { counter-increment: s; display: flex; align-items: center; gap: 8px; }
.ix-slots li::before { content: counter(s); flex: none; width: 22px; text-align: right; font-weight: 700; color: var(--ink-2); }
.ix-slots li .ix-chip { flex: 1; }
.ix-slots li.empty span { flex: 1; height: 44px; border: 2px dashed var(--line); border-radius: 12px; }
.ix-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.ix-tip { font-size: .9rem; color: var(--ink-2); margin: 0 0 8px; }
.ix-funkspruch .ix-chip, .ix-funkspruch .ix-solution li { font-family: var(--mono); font-size: .9rem; letter-spacing: .02em; }
.ix-funkspruch .ix-slots { background: #14212d; border-radius: 12px; padding: 10px; }
.ix-funkspruch .ix-slots li::before { color: #9fb0c0; }
.ix-funkspruch .ix-slots .ix-chip { background: #1d2e3e; color: #e9e3d6; border-color: #2c4258; }
.ix-funkspruch .ix-slots li.empty span { border-color: #2c4258; }
.ix-funkspruch .ix-slots li.right .ix-chip { border-color: #6fcf97; background: #173327; }
.ix-funkspruch .ix-slots li.wrong .ix-chip { border-color: #ef6b5f; background: #3d1f1d; }
.ix-cloze { line-height: 2.3; margin: 0; }
.ix-gap { display: inline-flex; align-items: baseline; gap: 6px; }
.ix-gap input { font: inherit; color: var(--ink); background: var(--paper); border: none; border-bottom: 2px solid var(--ink-3, var(--line)); padding: 2px 6px; max-width: 100%; border-radius: 6px 6px 0 0; }
.ix-gap input:focus { outline: none; border-bottom-color: var(--sea); background: var(--sea-soft); }
.ix-gap.right input { border-bottom-color: var(--ok); background: var(--ok-soft); }
.ix-gap.wrong input { border-bottom-color: var(--red); background: var(--danger-soft); text-decoration: line-through; }
.ix-sol { font-weight: 700; color: var(--ok); }
.ix-fb { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); animation: ix-in .25s ease-out; }
.ix.is-ok .ix-fb { background: var(--ok-soft); } .ix.is-no .ix-fb { background: var(--warn-soft); }
.ix-verdict { font-weight: 700; margin: 0 0 .2em; }
.ix.is-ok .ix-verdict { color: var(--ok); }
.ix-expl > :last-child { margin-bottom: 0; } .ix-expl p { margin: .3em 0; }
.ix-sol-h { font-weight: 700; margin: .4em 0 .2em; }
.ix-solution { margin: 0 0 .5em; padding-left: 1.4em; }
.ix-actions { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.ix-actions:not(:has(:not([hidden]))) { display: none; }
.ix-again { background: none; border: none; padding: 0; font: inherit; color: var(--sea); text-decoration: underline; cursor: pointer; }
@keyframes ix-in { from { opacity: 0; transform: translateY(-4px); } }
.ix-score { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line); font-weight: 600; }
.ix-score a { margin-left: auto; }
.ix-dots { display: flex; gap: 5px; }
.ix-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.ix-dots i.ok { background: var(--ok); border-color: var(--ok); }
.ix-dots i.no { background: var(--red); border-color: var(--red); }
.ix-streak { color: var(--red-ink); animation: ix-in .25s ease-out; }
.ix-confetti { position: absolute; left: 50%; top: 0; pointer-events: none; }
.ix-confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; animation: ix-pop 1.3s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes ix-pop { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 200px)) rotate(var(--r)); opacity: 0; } }
/* Karteikarten-Rückseite für interaktive Aufgaben */
.fc-cloze { font-size: 1.1rem; margin: 0; }
.fc-ol { margin: 0; padding-left: 1.4em; }
.fc-ol.fc-radio { font-family: var(--mono); font-size: .92rem; }
.fc-expl { margin-top: .6em; font-size: .98rem; color: var(--ink-2); }
@media (max-width: 600px) {
  .ix { padding: 14px 12px 12px; }
  .ix-score a { margin-left: 0; }
  .ix-pool .ix-chip { flex: 1 1 100%; }
}
.ix [hidden], .ix-score [hidden] { display: none !important; }
@media (max-width: 600px) { .mini-quiz { padding: 4px 12px 14px; box-shadow: 3px 3px 0 var(--ink); } }
/* Foto mit Bildunterschrift (aus Obsidian: Bild + <sub>) */
.prose .photo { display: inline-flex; flex-direction: column; vertical-align: top; max-width: 100%; margin: .8em 1em .6em 0; }
.prose li > .photo, .prose p > .photo:only-child { display: flex; width: fit-content; }
.prose .photo img.embed { margin: 0; }
.prose .photo-cap { font-size: .88rem; line-height: 1.4; color: var(--ink-2); margin-top: 6px; max-width: 100%; }

/* ==========================================================================
   Look: flache, matte, leicht durchsichtige Flächen mit feiner Haarlinie.
   Variablen (--glas, --haar, --schatten …) und die gemeinsamen Klassen stehen
   in look.css. Dieser Abschnitt bringt die bestehenden Seiten auf den Stil.
   ========================================================================== */

/* ---------- Hintergrund: zartes Farblicht und Kompassrose ---------- */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(60vmax 50vmax at 4% 10%, color-mix(in srgb, var(--sea) 12%, transparent), transparent 62%), radial-gradient(55vmax 50vmax at 100% 64%, color-mix(in srgb, var(--sun) 9%, transparent), transparent 62%); }
/* Kompassrose: Mitte hängt an der Inhaltsspalte, Höhe in px (nicht an der Fensterhöhe) */
body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; top: 150px; left: calc(50% + min(250px, 23vw)); width: min(860px, 125vw); aspect-ratio: 1; transform: translateX(-50%);
  background: var(--ink); opacity: .085; -webkit-mask: var(--rose) center / contain no-repeat; mask: var(--rose) center / contain no-repeat; }
:root[data-theme="dark"] body::after { opacity: .11; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::after { opacity: .11; } }
@media (min-width: 861px) {
  body.course::after { left: calc(50% + var(--side-w, 280px) / 2 + min(250px, 18vw)); }
  html.side-hidden body.course::after { left: calc(50% + min(250px, 23vw)); }
}
/* Startseite: Rose nur oben hinter dem Foto, sie scrollt mit weg */
body.landing { position: relative; }
body.landing::after { position: absolute; top: 30px; left: calc(50% + min(340px, 27vw)); width: min(800px, 120vw); }
@media (max-width: 860px) { body.landing::after { top: 380px; left: 62%; } }
@media print { body::before, body::after { display: none; } }
/* clip statt hidden: nichts ragt seitlich heraus, die klebende Kopfleiste bleibt trotzdem kleben */
html, body { overflow-x: clip; }

/* ---------- Kopfleiste ---------- */
.topbar { background: color-mix(in srgb, var(--paper) 74%, transparent); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--haar); }
.brand-mark { font-size: 0; width: 26px; height: 26px; flex: none; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='9' width='10' height='12' rx='2.2'/%3E%3Cpath d='M8 9V3M8.5 13h3M8.5 17h3M17.6 5.4c.9 1.1.9 2.7 0 3.8M20.2 3.4c1.9 2.3 1.9 5.5 0 7.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='9' width='10' height='12' rx='2.2'/%3E%3Cpath d='M8 9V3M8.5 13h3M8.5 17h3M17.6 5.4c.9 1.1.9 2.7 0 3.8M20.2 3.4c1.9 2.3 1.9 5.5 0 7.8'/%3E%3C/svg%3E") center / contain no-repeat; }
.brand { border-radius: 10px; }
.topnav a { position: relative; padding: .3em 0; transition: color .15s; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after, .topnav a:focus-visible::after { transform: scaleX(1); }
.icon-btn { border-radius: 12px; transition: background-color .15s, box-shadow .15s, transform .2s var(--feder); }
.icon-btn:hover { box-shadow: inset 0 0 0 1px var(--haar-2); }
.icon-btn:active { transform: scale(.94); }
.brand { white-space: nowrap; min-width: 0; }
@media (max-width: 520px) {
  .topbar-inner { gap: 8px; padding-inline: 12px; }
  .brand { gap: 7px; font-size: 1rem; }
  .brand-by { font-size: 1.2rem; }
  .topbar-course .brand-by { display: none; }
  /* neben dem Anmelden-Knopf ist am Handy kein Platz für einen zweiten Knopf */
  .topbar-actions:has([data-konto-knopf]) > a.btn-small { display: none; }
}

/* ---------- ruhende Karten ---------- */
.cert, .stat, .module, .price-card, .logbook, .toc, .diagram, .room-module, .box, .trainer-result, .lesson .prose {
  border: 0; background: var(--glas-karte);
  -webkit-backdrop-filter: blur(3px) saturate(160%); backdrop-filter: blur(3px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--haar), var(--schatten);
}
.cert, .stat, .module, .room-module { border-radius: var(--r-kachel); }

/* ---------- klickbare Kacheln ---------- */
.handout, .pager a, .side-home {
  position: relative; isolation: isolate; overflow: hidden; border: 0; background: var(--glas);
  -webkit-backdrop-filter: blur(1.5px) saturate(170%); backdrop-filter: blur(1.5px) saturate(170%);
  box-shadow: inset 0 0 0 1px var(--haar), var(--schatten);
  transition: transform .22s var(--feder), box-shadow .22s;
}
.handout, .pager a { border-radius: var(--r-kachel); }
.handout::after, .pager a::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), var(--glanz), transparent 70%); }
.handout:active, .pager a:active { transform: scale(.985); }
@media (hover: hover) {
  .handout:hover, .pager a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--haar-stark), var(--schatten-hoch); }
  .handout:hover::after, .pager a:hover::after { opacity: 1; }
  .side-home:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--haar-stark), var(--schatten); }
}

/* ---------- Startseite ---------- */
.section-tint { background: color-mix(in srgb, var(--paper-2) 55%, transparent); box-shadow: inset 0 1px 0 var(--haar), inset 0 -1px 0 var(--haar); }
.quote-band { margin: 0 clamp(.5rem, 1.6vw, 1.4rem); border-radius: clamp(26px, 4vw, 48px); background: #16263d; color: #e4eaee; }
:root[data-theme="dark"] .quote-band { background: #0a1522; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quote-band { background: #0a1522; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); } }
.cert { padding: 28px; }
.cert-tag { top: 24px; right: 22px; transform: none; font: 700 .82rem/1 var(--sans); letter-spacing: .1em; padding: .45em .85em; border-radius: 999px; color: var(--ink); }
.cert-src .cert-tag { background: color-mix(in srgb, var(--sea) 16%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sea) 62%, transparent); }
.cert-ubi .cert-tag { background: color-mix(in srgb, var(--ok) 16%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 62%, transparent); }
.module summary { transition: background-color .15s; }
.module summary:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.module summary:hover::after { color: var(--ink); }
.module summary:focus-visible { outline-offset: -3px; border-radius: var(--r-kachel); }
.module-lessons a, .room-module a, .side-module a, .side-extra, .search-results a { transition: background-color .15s, color .15s; }
.module-lessons a:hover, .room-module a:hover { background: var(--haar); }
.features li { border-left-width: 2px; }
.logbook { border-radius: 18px; transform: none; }
.logbook div { border-bottom: 1px solid var(--haar); }
.logbook div:nth-child(odd) { border-right: 1px solid var(--haar); }
@media (max-width: 520px) { .logbook div { border-bottom: 1px solid var(--haar) !important; } }
.price-card { border-radius: 28px; box-shadow: inset 0 0 0 1.5px var(--haar-2), var(--schatten-hoch); }
@media (max-width: 760px) { .price-card { box-shadow: inset 0 0 0 1.5px var(--haar-2), var(--schatten-hoch); border-radius: 24px; } }
.faq-list details { border-bottom-color: var(--haar-2); }
.faq-list summary { transition: color .15s; border-radius: 8px; }
.faq-list summary:hover { color: var(--red-ink); }
.polaroid { transition: transform .3s var(--feder); }

/* ---------- Kurs-Layout ---------- */
.sidebar { border-right-color: var(--haar); }
.side-home { border-radius: 14px; }
.side-home.active { outline: 0; box-shadow: inset 0 0 0 1.5px var(--haar-stark), var(--schatten); }
.side-module a { border-radius: 10px; }
.side-module a:hover, .side-extra:hover { background: var(--haar); color: var(--ink); }
.side-module a.active { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--haar-stark); }
.side-check { border-color: var(--haar-2); }
.side-extra { border-radius: 10px; }
.side-extra.active { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--haar-stark); }
@media (max-width: 860px) {
  .sidebar { background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-right-color: var(--haar-2); }
}

/* ---------- Lektion: Lesetext als Karte, die den Hintergrund leicht weichzeichnet ---------- */
.toc { border-radius: 16px; }
.lesson .prose { border-radius: var(--r-karte); padding: 1.5rem 2rem 1.8rem; }
.lesson .prose > :first-child { margin-top: 0; }
.lesson .prose > :last-child { margin-bottom: 0; }
@media (max-width: 860px) { .lesson .prose { padding: 1.2rem 1.2rem 1.4rem; } }
@media (max-width: 600px) {
  .lesson-main { padding: 20px 10px 28px; }
  .lesson .prose { padding: 1rem .8rem 1.2rem; border-radius: 20px; }
  .lesson-head, .lesson-foot, .room-hero, .room-block, .trainer, .handouts { padding-inline: 6px; }
}
.prose hr { background: var(--haar-2); }
.table-wrap { border: 0; border-radius: 16px; background: color-mix(in srgb, var(--card) 55%, transparent); box-shadow: inset 0 0 0 1px var(--haar-2); }
.prose th { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.prose th, .prose td { border-bottom-color: var(--haar); }
.callout { --cc: var(--sea); border-left: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 42%, transparent); }
.c-tip { --cc: #d99a12; } .c-important { --cc: #c96f17; } .c-danger, .c-warning { --cc: var(--red); } .c-question { --cc: var(--ok); }
.c-exkurs { --cc: var(--ink-3); border: 0; background: color-mix(in srgb, var(--card) 70%, transparent); }
.radio, .codeblock { border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), var(--schatten); }
.diagram { border-radius: 18px; background: color-mix(in srgb, var(--card) 72%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
.prose details:not(.callout):not(.toc) { border: 0; border-radius: 14px; background: color-mix(in srgb, var(--card) 55%, transparent); box-shadow: inset 0 0 0 1px var(--haar-2); transition: box-shadow .2s; }
.prose details:not(.callout):not(.toc) > summary { border-radius: 14px; }
.prose details:not(.callout):not(.toc):not([open]):hover { box-shadow: inset 0 0 0 1.5px var(--haar-stark); }
.quiz-q.rated-1 > details { box-shadow: inset 0 0 0 1.5px var(--ok) !important; }
.quiz-q.rated-0 > details { box-shadow: inset 0 0 0 1.5px var(--red) !important; }
.quiz-panel { border: 0; border-radius: 18px; background: var(--glas-dicht); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 0 0 1px var(--haar-2), var(--schatten-hoch); }
.lesson-foot { border-top-color: var(--haar-2); }

/* ---------- Kursraum ---------- */
.room-block { border-top-color: var(--haar-2); }
.ring-bg { stroke: var(--haar-2); }
.kn-bar { background: var(--haar); border: 0; }
.handout-icon { width: 40px; height: 40px; background: none; color: var(--ink); opacity: .62; border-radius: 0; transition: opacity .2s, transform .25s var(--feder); }
.handout-icon svg { width: 28px; height: 28px; }
.handout:hover { box-shadow: inset 0 0 0 1.5px var(--haar-stark), var(--schatten-hoch); }
.handout:hover .handout-icon { opacity: 1; transform: scale(1.08); }

/* ---------- Suche ---------- */
.search-overlay { background: rgba(10, 18, 26, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.search-box { border-radius: 22px; background: var(--glas-dicht); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 0 0 1px var(--haar-2), 0 24px 60px rgba(0, 0, 0, .3); }
.search-field { border-bottom-color: var(--haar-2); }
.search-results a:hover, .search-results a.sel { background: var(--haar); }
.search-results a.sel { box-shadow: inset 0 0 0 1.5px var(--haar-2); }

/* ---------- Kurz-Check ---------- */
.mini-quiz { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
@media (max-width: 600px) { .mini-quiz { padding: 0; box-shadow: none; } }
.mini-quiz details { background: color-mix(in srgb, var(--card) 55%, transparent); }
.mini-score { border-top: 1px solid var(--haar-2); }
.ix { border: 0; border-radius: 20px; background: color-mix(in srgb, var(--card) 58%, transparent); box-shadow: inset 0 0 0 1px var(--haar-2); }
.ix.is-ok { box-shadow: inset 0 0 0 1.5px var(--ok); }
.ix.is-no { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--red) 75%, transparent); }
.ix-opt, .ix-chip { border: 0; border-radius: 14px; background: color-mix(in srgb, var(--paper) 55%, transparent); box-shadow: inset 0 0 0 1.5px var(--haar-2); transition: box-shadow .15s, background-color .15s, transform .2s var(--feder); }
@media (hover: hover) { .ix-opt:hover:not(:disabled), .ix-chip:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--haar-stark); transform: translateY(-1px); } }
.ix-opt[aria-pressed="true"] { background: color-mix(in srgb, var(--sea) 16%, transparent); box-shadow: inset 0 0 0 2px var(--sea); }
.ix-opt.right, .ix-slots li.right .ix-chip { background: rgba(var(--gruen-rgb), .16); box-shadow: inset 0 0 0 1.5px var(--ok); }
.ix-opt.wrong, .ix-slots li.wrong .ix-chip { background: rgba(var(--rot-rgb), .15); box-shadow: inset 0 0 0 1.5px var(--red); }
.ix-slots li.empty span { border: 1.5px dashed var(--haar-2); border-radius: 14px; }
.ix-funkspruch .ix-slots { border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.ix-funkspruch .ix-slots .ix-chip { box-shadow: inset 0 0 0 1.5px #2c4258; }
.ix-funkspruch .ix-slots li.empty span { border-color: #2c4258; }
.ix-funkspruch .ix-slots li.right .ix-chip { box-shadow: inset 0 0 0 1.5px #6fcf97; background: #173327; }
.ix-funkspruch .ix-slots li.wrong .ix-chip { box-shadow: inset 0 0 0 1.5px #ef6b5f; background: #3d1f1d; }
.ix-fb { border-radius: 14px; }
.ix-score { border-top: 1px solid var(--haar-2); }
.ix-dots i { border: 0; box-shadow: inset 0 0 0 1.5px var(--haar-2); }
.ix-dots i.ok, .ix-dots i.no { box-shadow: none; }

/* ---------- Karteikarten ---------- */
.box { border-radius: 18px; }
.box::before { background: color-mix(in srgb, var(--sea) 18%, transparent); }
.box-new { background: transparent; box-shadow: none; outline: 1.5px dashed var(--haar-2); outline-offset: -1.5px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.chips span { border: 0; background: var(--glas-karte); box-shadow: inset 0 0 0 1.5px var(--haar-2); transition: transform .2s var(--feder), box-shadow .2s, background-color .2s, color .2s; }
.chips span b { background: var(--haar); }
@media (hover: hover) { .chips label:hover span { box-shadow: inset 0 0 0 1.5px var(--haar-stark); transform: translateY(-1px); } }
.chips input:checked + span { color: var(--ink); background: color-mix(in srgb, var(--akzent) 20%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--akzent) 70%, transparent); }
.chips input:focus-visible + span { outline-color: var(--fokus); }
.more-stacks summary { border-radius: 8px; }
.more-stacks summary:hover { color: var(--ink); }
.tc-bar { background: var(--haar); }
.fc-face { border: 0; border-radius: var(--r-karte); background: color-mix(in srgb, var(--card) 90%, transparent); background-image: none; box-shadow: inset 0 0 0 1px var(--haar-2), var(--schatten-hoch); }
.fc-face::after { display: none; }
.flashcard:focus-visible .fc-face { outline-color: var(--fokus); }
.fc-input { border: 0; border-radius: 14px; background: color-mix(in srgb, var(--paper) 62%, transparent); box-shadow: inset 0 0 0 1.5px var(--haar-2); transition: box-shadow .15s; }
.fc-input:focus { box-shadow: inset 0 0 0 2px var(--akzent), 0 0 0 4px color-mix(in srgb, var(--akzent) 22%, transparent); }
.fc-mine { background: var(--haar); border-radius: 14px; }
.tc-quit { border-radius: 8px; transition: color .15s; }
.tc-quit:hover, .ix-again:hover { color: var(--ink); }
.trainer-result { border-radius: var(--r-karte); }

/* ---------- Fußzeile wie auf maximilianherrmann.com ---------- */
.site-foot { --ft-bg: #16263d; --ft-ink: #e4eaee; --ft-akz: #f2c14e; --ft-rule: rgba(228, 234, 238, .16); display: block; position: relative; overflow: clip; background: var(--ft-bg); color: var(--ft-ink);
  margin: 3.5rem clamp(.5rem, 1.6vw, 1.4rem) clamp(.5rem, 1.6vw, 1.4rem); border-radius: clamp(26px, 4vw, 48px); padding: clamp(2.4rem, 5vw, 4rem) 0 1.8rem; font-size: 16px; line-height: 1.5; }
:root[data-theme="dark"] .site-foot { --ft-bg: #0a1522; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-foot { --ft-bg: #0a1522; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); } }
.site-foot .fuss-rose { position: absolute; right: -22%; top: -40%; width: min(900px, 120vw); aspect-ratio: 1; background: var(--ft-ink); opacity: .08; pointer-events: none; -webkit-mask: var(--rose) center / contain no-repeat; mask: var(--rose) center / contain no-repeat; }
.site-foot .foot-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
.site-foot .foot-top { display: flex; flex-wrap: wrap; gap: 1.6rem 2rem; justify-content: space-between; align-items: flex-end; padding-bottom: 2rem; border-bottom: 1px solid var(--ft-rule); }
.site-foot .foot-pos p { margin: 0; font: .8rem/1.9 var(--mono); letter-spacing: .06em; }
.site-foot .foot-pos .foot-gruss { font: 700 1.75rem/1.2 var(--hand); letter-spacing: 0; color: var(--ft-akz); margin-bottom: .6rem; }
.site-foot a { color: inherit; text-decoration: none; border-radius: 4px; transition: color .15s; }
.site-foot a:hover { color: var(--ft-akz); }
.site-foot a:focus-visible { outline-color: var(--ft-akz); }
.site-foot .foot-home { display: flex; flex-direction: column; gap: .1rem; text-align: right; margin-left: auto; }
.site-foot .foot-home small { font: .72rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.site-foot .foot-home b { font: 700 clamp(1.15rem, 3vw, 1.45rem)/1.1 var(--serif); letter-spacing: .01em; }
.site-foot .foot-home span { font: .8rem/1.5 var(--mono); letter-spacing: .04em; opacity: .8; }
.site-foot .foot-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; padding-top: 1.3rem; font: .78rem/1.6 var(--mono); letter-spacing: .02em; color: color-mix(in srgb, var(--ft-ink) 78%, transparent); }
.site-foot .foot-legal { margin: 1.1rem 0 0; max-width: 62em; font-size: .78rem; line-height: 1.5; color: color-mix(in srgb, var(--ft-ink) 62%, transparent); }
@media (max-width: 640px) { .site-foot .foot-home { text-align: left; margin-left: 0; } body.mit-leiste .site-foot { margin-bottom: .4rem; } }

/* ---------- ohne backdrop-filter: deckender, damit Text sicher lesbar bleibt ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: color-mix(in srgb, var(--paper) 96%, transparent); }
  .sidebar { background: var(--paper); }
  .search-box, .quiz-panel { background: var(--card); }
}
@media (prefers-reduced-motion: reduce) {
  .handout:hover, .pager a:hover, .chips label:hover span, .ix-opt:hover, .ix-chip:hover, .handout:hover .handout-icon, .icon-btn:active { transform: none !important; }
  .handout::after, .pager a::after { display: none; }
}

/* Ehemalige Handschrift-Akzente: kursive Buchschrift in Signalrot, kleiner als vorher (Caveat lief klein) */
.hand, .brand-by, .module-n, .logbook dt, .price-ask, .faq-list summary::before, .callout .c-label, .site-foot .foot-pos .foot-gruss { font-style: italic; }
.hand { font-weight: 600; }
.brand-by { font-size: 1.05rem; font-weight: 500; }
.module-n { font-size: 1.05rem; font-weight: 600; }
.logbook dt { font-size: 1.2rem; font-weight: 600; }
.price-ask { font-size: 2.2rem; font-weight: 600; }
.faq-list summary::before { font-size: 1.25rem; font-weight: 700; }
.callout .c-label { font: italic 600 .95rem/1 var(--sans); transform: none; }
.site-foot .foot-pos .foot-gruss { font: italic 600 1.3rem/1.25 var(--sans); }
.hello { font-size: 1.25rem; transform: none; letter-spacing: .01em; }
.polaroid figcaption { font-size: 1.02rem; }
.quote-band .hand { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.3; }
.center-note .hand { font-size: 1.1rem; font-weight: 700; }
.sample-from { font-size: 1rem; }
.signature { font-size: 1.8rem; transform: none; }
.price-doodle { font-size: 1rem; transform: none; }
.path-n { font-family: var(--display); font-style: normal; font-weight: 400; font-size: 1.7rem; }
