:root{ --cn-fs-xs:12px; --cn-fs-s:15px; --cn-fs-m:16px; --cn-fs-l:24px; --cn-hover:#FFF5C2; --cn-line:rgba(21,23,26,0.30); --cn-ring:var(--ink); --quiz-green:#17A551; --gold:#FFE66D; --bg-deep:#D5E2EC; }
header.site > .wrap{ max-width:1180px; margin-left:auto; margin-right:auto; padding-left:24px; padding-right:24px; }
header.site { padding: 22px 0px 0px; position: sticky; top: 0px; z-index: 50; background: rgba(229, 238, 245, 0.85); backdrop-filter: saturate(160%) blur(10px); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(20, 23, 26, 0.08); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: Fraunces, serif; font-weight: 900; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; color: inherit; }
.brand .dot { width: 34px; height: 34px; flex: 0 0 auto; background: url("favicon-192.png") center center / contain no-repeat; }
.menu { display: flex; gap: 26px; align-items: center; }
.menu a { font-size: 14px; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--ink); }
.menu a.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.hashtag { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-soft); padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid rgba(20, 23, 26, 0.08); }
@media (max-width: 760px){header.site { padding-top: 12px; }
.nav { padding-bottom: 12px; gap: 10px; }
.brand { font-size: 19px; gap: 8px; }
.brand .dot { width: 28px; height: 28px; }
.menu { gap: 12px; }
.menu a.back { white-space: nowrap; font-size: 13px; }}
@media (max-width: 374px){header.site .wrap { padding-left: 16px; padding-right: 16px; }
.brand { font-size: 17px; gap: 6px; }
.menu { gap: 8px; }
.menu a.back { font-size: 12px; }}
@media (max-width: 339px){.menu a.back { display: none; }}
@media (max-width: 880px){.hashtag { display: none; }}
.lg-headbtn { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 4px; border-radius: 999px; cursor: pointer; background: var(--paper); border: 1px solid rgba(20, 23, 26, 0.1); font: 700 12px / 1 Inter, sans-serif; color: var(--ink); }
.lg-headbtn canvas, .lg-headbtn .gh-globe { width: 26px; height: 26px; display: block; border-radius: 50%; border: 1.5px solid var(--ink); }
.lg-headbtn:focus-visible { outline: 3px solid var(--jet); outline-offset: 2px; }
@media (max-width: 420px){.lg-headbtn { padding: 3px 8px 3px 3px; gap: 5px; font-size: 11.5px; }
.lg-headbtn canvas, .lg-headbtn .gh-globe { width: 22px; height: 22px; }}
.cn-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; width: 320px; max-width: 100%; padding: 5px 14px 5px 5px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font: 700 var(--cn-fs-s)/1.2 "Inter", system-ui, sans-serif; cursor: pointer; text-align: left; transition: transform 0.12s, box-shadow 0.12s; }
.cn-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cn-btn:focus-visible { outline: 3px solid var(--cn-ring); outline-offset: 3px; }
.cn-badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cn-c, var(--gold)); color: var(--cn-fg, var(--ink)); border: 2px solid var(--ink); font: 900 var(--cn-fs-s)/1 "Fraunces", Georgia, serif; }
.cn-btn .cn-badge { transition: background-color 0.25s; }
.cn-btn .cn-badge-book { display: none; background: var(--gold); }
.cn-btn-text { flex: 1 1 0%; min-width: 0px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-btn-short { display: none; }
.cn-caret { flex: 0 0 auto; width: 14px; height: 14px; transition: transform 0.2s; }
.cn-btn[aria-expanded="true"] .cn-caret { transform: rotate(180deg); }
.cn-btn.cn-bump .cn-badge { animation: 0.45s ease 0s 1 normal none running cn-bump; }
@keyframes cn-bump { 
  0% { transform: scale(1); }
  40% { transform: scale(1.25) rotate(-8deg); }
  100% { transform: scale(1); }
}
.cn-backdrop { position: fixed; inset: 0px; z-index: 119; background: rgba(21, 23, 26, 0.28); touch-action: none; animation: 0.18s ease 0s 1 normal none running cn-fade; }
.cn-panel { position: fixed; z-index: 120; top: 96px; left: 24px; width: min(720px, -32px + 100vw); max-height: calc(-120px + 100vh); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border: 2px solid var(--ink); border-radius: 26px; box-shadow: 7px 7px 0 var(--ink); padding: 0px 20px 18px; animation: 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0s 1 normal none running cn-drop; transform-origin: left top; }
.cn-backdrop[hidden], .cn-panel[hidden] { display: none; }
@keyframes cn-fade { 
  0% { opacity: 0; }
}
@keyframes cn-drop { 
  0% { opacity: 0; transform: translateY(-8px) scale(0.97); }
}
@keyframes cn-rise { 
  0% { transform: translateY(100%); }
}
.cn-top { position: sticky; top: 0px; z-index: 2; margin: 0px -20px; padding: 18px 20px 12px; background: var(--paper); }
.cn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cn-grab { display: none; }
.cn-h { margin: 0px; font: 900 var(--cn-fs-l)/1.15 "Fraunces", Georgia, serif; letter-spacing: -0.01em; }
.cn-x { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); cursor: pointer; font-size: 20px; line-height: 1; }
.cn-x:focus-visible { outline: 3px solid var(--cn-ring); outline-offset: 2px; }
.cn-progress { display: flex; align-items: center; gap: 12px; margin: 8px 0px 0px; }
.cn-bar { flex: 0 0 110px; height: 12px; border-radius: 999px; background: var(--bg-deep); border: 2px solid var(--ink); overflow: hidden; }
.cn-fill { display: block; height: 100%; width: 0px; background: var(--coral); transition: width 0.4s; }
.cn-fill.is-full { background: var(--quiz-green); }
.cn-count { margin: 0px; font-size: var(--cn-fs-s); color: var(--ink-soft); }
.cn-next { display: flex; align-items: center; gap: 12px; margin: 2px 0px 12px; padding: 10px 14px 10px 10px; border: 2px solid var(--ink); border-radius: 18px; background: var(--bg-deep); color: var(--ink); text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.cn-next[hidden] { display: none; }
.cn-next-txt { flex: 1 1 0%; min-width: 0px; display: flex; flex-direction: column; gap: 2px; }
.cn-next-k { font-size: var(--cn-fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.cn-next-t { font-size: var(--cn-fs-m); font-weight: 700; line-height: 1.25; }
.cn-next-go { flex: 0 0 auto; font-size: 22px; font-weight: 900; }
.cn-next:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cn-next:focus-visible { outline: 3px solid var(--cn-ring); outline-offset: 3px; }
.cn-list { list-style: none; margin: 0px; padding: 0px; }
.cn-chapters { columns: 2; column-gap: 12px; }
.cn-chapters li { break-inside: avoid; margin-bottom: 2px; }
.cn-extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; }
.cn-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px 6px 6px; border: 2px solid transparent; border-radius: 16px; color: var(--ink); text-decoration: none; font-size: var(--cn-fs-m); font-weight: 600; line-height: 1.25; }
.cn-item:focus-visible { outline: 3px solid var(--cn-ring); outline-offset: 2px; }
.cn-item .cn-badge { width: 36px; height: 36px; }
.cn-txt { flex: 1 1 0%; min-width: 0px; display: flex; flex-direction: column; gap: 3px; }
.cn-here { display: none; align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: var(--cn-fs-xs); font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.cn-tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: none; align-items: center; justify-content: center; background: var(--quiz-green); color: var(--paper); font-size: 14px; font-weight: 900; line-height: 1; transform: rotate(-8deg); }
.cn-item.is-seen .cn-tick { display: inline-flex; }
.cn-item[aria-current] { background: var(--gold); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.cn-item[aria-current] .cn-here { display: inline-block; }
.cn-item[aria-current] .cn-badge.is-gold { background: var(--paper); }
.cn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; }
.cn-group { margin: 12px 0px 8px; padding-top: 12px; border-top: 2px dashed var(--cn-line); font-size: var(--cn-fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.cn-about { display: none; }
.cn-by-pointer .cn-item:focus:not(:focus-visible), .cn-by-pointer .cn-item:focus { outline: none; }
@media (hover: hover){.cn-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.cn-x:hover { background: var(--gold); }
.cn-item:hover { background: var(--cn-hover); border-color: var(--cn-line); }
.cn-item[aria-current]:hover { background: var(--gold); border-color: var(--ink); }
.cn-next:hover { background: var(--cn-hover); }}
@media (min-width: 761px){.cn-top { display: flex; align-items: center; gap: 18px; padding: 16px 20px 12px; }
.cn-head { display: contents; }
.cn-h { order: 1; }
.cn-progress { order: 2; flex: 1 1 0%; margin: 0px; }
.cn-x { order: 3; }
.cn-item { min-height: 44px; padding: 4px 10px 4px 5px; }
.cn-item .cn-badge { width: 34px; height: 34px; }
.cn-next { padding: 7px 14px 7px 8px; margin-bottom: 10px; }
.cn-group { margin-top: 8px; padding-top: 10px; margin-bottom: 4px; }}
@media (max-width: 760px){.cn-ready .menu a.back { display: none; }
.cn-btn { width: auto; gap: 8px; min-height: 44px; padding: 4px 12px 4px 4px; box-shadow: 2px 2px 0 var(--ink); }
.cn-btn .cn-badge { width: 32px; height: 32px; }
.cn-btn .cn-badge-num { display: none; }
.cn-btn .cn-badge-book { display: inline-flex; }
.cn-btn-long { display: none; }
.cn-btn-short { display: inline; }}
@media (max-width: 339px){.cn-btn { gap: 6px; padding-right: 8px; }
.cn-btn .cn-badge { width: 28px; height: 28px; }}
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px){.cn-panel { right: 0px; bottom: 0px; width: auto; border-radius: 26px 26px 0px 0px; border-bottom: 0px; box-shadow: 0 -6px 0 var(--ink); padding: 0 16px calc(18px + env(safe-area-inset-bottom)); animation: 0.26s cubic-bezier(0.2, 0.8, 0.3, 1) 0s 1 normal none running cn-rise; top: auto !important; left: 0px !important; max-height: 88dvh !important; }
.cn-top { margin: 0px -16px; padding: 6px 16px 10px; touch-action: none; cursor: grab; }
.cn-head { flex-wrap: wrap; }
.cn-grab { display: flex; justify-content: center; flex: 0 0 100%; padding: 4px 0px 6px; }
.cn-grab::before { content: ""; width: 48px; height: 5px; border-radius: 999px; background: var(--cn-line); }
.cn-h { font-size: 22px; }
.cn-x { width: 48px; height: 48px; }
.cn-bar { flex-basis: 72px; }
.cn-chapters { columns: 1; }
.cn-extras { grid-template-columns: 1fr; gap: 2px; }
.cn-item { min-height: 54px; }
.cn-panel.is-dragging { transition: none; animation: auto ease 0s 1 normal none running none; }
.cn-about { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0px 0px; min-height: 48px; border-radius: 999px; border: 2px solid var(--ink); background: var(--bg-deep); color: var(--ink); font-weight: 700; font-size: var(--cn-fs-m); text-decoration: none; }}
.cn-lock { overflow: hidden !important; }
@media (prefers-reduced-motion: reduce){.cn-panel, .cn-backdrop, .cn-btn.cn-bump .cn-badge { animation: auto ease 0s 1 normal none running none !important; }
.cn-btn, .cn-caret, .cn-fill { transition: none; }}
header.site { padding: 0px; background: rgba(247, 255, 247, 0.94); border-bottom: 1.5px solid rgba(20, 23, 26, 0.12); }
.nav { padding-top: 12px; padding-bottom: 12px; border-bottom: 0px; gap: 16px; }
.brand .dot { width: 38px; height: 38px; }
.hashtag { display: none; }
.menu { gap: 12px; margin-left: auto; }
.cn-ready .menu a.back { order: -1; margin-right: 6px; padding-right: 18px; border-right: 1.5px solid rgba(20, 23, 26, 0.14); font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.menu a.back:hover { color: var(--ink); text-decoration: underline 1.5px; text-underline-offset: 4px; }
.cn-btn { min-height: 46px; box-shadow: 3px 3px 0 var(--ink); }
@media (min-width: 761px){.cn-btn { width: 272px; }}
.lg-headbtn { min-height: 46px; gap: 8px; padding: 5px 14px 5px 5px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-size: 14px; letter-spacing: 0.05em; transition: transform 0.12s, box-shadow 0.12s; }
.lg-headbtn canvas, .lg-headbtn .gh-globe { width: 32px; height: 32px; border-width: 2px; }
.lg-headbtn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
@media (hover: hover){.cn-btn:hover, .lg-headbtn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }}
@media (max-width: 760px){header.site { padding: 0px; }
.nav { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
.brand .dot { width: 30px; height: 30px; }
.menu { gap: 8px; }
.cn-btn, .lg-headbtn { min-height: 44px; }
.lg-headbtn { padding: 4px 12px 4px 4px; gap: 7px; font-size: 13px; }
.lg-headbtn canvas, .lg-headbtn .gh-globe { width: 32px; height: 32px; }}
@media (max-width: 374px){.lg-headbtn { padding: 4px 9px 4px 4px; gap: 5px; font-size: 12px; }
.lg-headbtn canvas, .lg-headbtn .gh-globe { width: 28px; height: 28px; }}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-sub { margin-top: 4px; font: 600 12px / 1.1 Inter, system-ui, sans-serif; letter-spacing: 0.01em; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 760px){.brand-sub { display: none; }}
.lg-headbtn::after { content: ""; flex: 0 0 auto; width: 14px; height: 14px; margin-left: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5 7 9.5 11.5 5' fill='none' stroke='%2315171A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center center / contain no-repeat; }
@media (max-width: 400px){.lg-headbtn::after { display: none; }}
@media (max-width: 359px){.brand-text { display: none; }}
@media (max-width: 400px){.nav { gap: 8px; }
.menu { gap: 6px; }
.brand { gap: 6px; font-size: 18px; }
.lg-headbtn { padding: 4px 9px 4px 4px; gap: 5px; }}
@media (max-width: 760px){header.site .nav { flex-wrap: nowrap; }
header.site .brand { flex: 0 0 auto; }
header.site .menu { min-width: 0px; flex: 1 1 auto; justify-content: flex-end; }
header.site .cn-btn { min-width: 0px; flex: 0 1 auto; }
header.site .lg-headbtn { flex: 0 0 auto; }}
@media (max-width: 430px){header.site .brand-text { display: none; }}
/* Seiten ohne Guide-Code: Globus als SVG, Sprachliste, aktueller Menüpunkt */
.lg-headbtn{ font-family: Inter, system-ui, sans-serif; color: var(--ink); }
.lg-headbtn .gh-globe{ flex: 0 0 auto; display:block; overflow:hidden; border:2px solid var(--ink); border-radius:50%; background:#DDEEF5; }
.gh-langs{ position:fixed; z-index:120; min-width:230px; padding:8px; background:var(--paper); border:2px solid var(--ink); border-radius:20px; box-shadow:5px 5px 0 var(--ink); animation: cn-drop .18s ease; }
.gh-langs[hidden]{ display:none; }
.gh-langs .cn-item{ min-height:46px; }
.gh-langs .cn-badge{ font-size:13px; }
.gh-langs .cn-item[aria-current]{ background:var(--gold); }
.menu a.back[aria-current="page"]{ color:var(--ink); text-decoration:underline 1.5px; text-underline-offset:4px; }
.lg-headbtn[aria-expanded="true"]::after{ transform: rotate(180deg); }
/* Über- und Lehrerseiten (30.10.2026): statt der Kapitel-Auswahl ein Knopf „Zum Guide“.
   Gleiche Form wie der Kapitel-Knopf, aber so breit wie sein Text, mit Pfeil statt Häkchen. */
.cn-btn.gh-guide { width: auto; padding-right: 16px; text-decoration: none; }
.cn-btn.gh-guide .cn-badge-num { display: none; }
.cn-btn.gh-guide .cn-badge-book { display: inline-flex; }
.gh-go { font-weight: 800; margin-left: 2px; }
