/* ==========================================================================
   wiki.css – VolleyFit Wiki
   Baut auf base/components/site.css der Webseite auf (Tokens, Buttons,
   Footer) und macht daraus ein ruhiges Doku-Layout im Stil moderner
   Help-Center: Header über volle Breite, flache Flächen, feine Linien,
   Markenschrift (Barlow) nur im Artikeltitel.
   ========================================================================== */

/* ── Farbpalette ──────────────────────────────────────────────────────────
   Die App-Mockups (mockups.css) behalten bewusst die echten App-Farben. */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0B0C10;
  --bg-mid:    #121419;
  --bg-light:  #1A1D24;
  --bg-elev:   #15171C;
  --primary:   #0A84FF;
  --primary-l: #5AA9FF;
  --text:      #ECEEF3;
  --muted:     #9BA1AE;
  --dim:       #7A808E;
  --divider:   rgba(255,255,255,.08);
  --success:   #30D158;
  --warning:   #FFD60A;
  --accent:    #FF6B2C;

  --surface-soft:   rgba(255,255,255,.04);
  --surface-soft-2: rgba(255,255,255,.065);
  --surface-soft-3: rgba(255,255,255,.1);
  --nav-bg:         rgba(11,12,16,.82);
  --menu-bg:        #0E1014;
  --noise-opacity:  0;
  --icon-filter:    brightness(0) invert(1);
  --glass-border:   rgba(255,255,255,.08);
}
[data-theme="light"] {
  color-scheme: light;
  --bg:        #FFFFFF;
  --bg-mid:    #FFFFFF;
  --bg-light:  #F3F4F6;
  --bg-elev:   #F7F8FA;
  --primary:   #0071E3;
  --primary-l: #0062C4;
  --text:      #0D1017;
  --muted:     #596070;
  --dim:       #6B7180;
  --divider:   rgba(13,16,23,.09);
  --success:   #1FA84A;
  --warning:   #B98D00;
  --accent:    #E8590C;

  --surface-soft:   rgba(13,16,23,.035);
  --surface-soft-2: rgba(13,16,23,.06);
  --surface-soft-3: rgba(13,16,23,.1);
  --nav-bg:         rgba(255,255,255,.85);
  --menu-bg:        #FFFFFF;
  --noise-opacity:  0;
  --icon-filter:    brightness(0) invert(.4);
  --glass-border:   rgba(13,16,23,.08);
}

:root {
  --nav-h: 60px;
  --side-w: 272px;
  --toc-w: 216px;
  --wk-max: 1440px;
}

body { background: var(--bg); }

/* ── Header über volle Breite ─────────────────────────────────────────── */
.nav-wrap {
  top: 0;
  padding: 0;
  pointer-events: auto;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--divider);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav,
.nav.nav--scrolled {
  max-width: var(--wk-max);
  height: var(--nav-h);
  padding: 0 var(--page-padding);
  gap: 1.5rem;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme="light"] .nav { box-shadow: none; }
.nav__logo { font-size: 1.3rem; }
.wk-logo-tag {
  font-style: normal;
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .16rem .42rem;
  margin-left: .4rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary-l);
  text-transform: uppercase;
}
.nav__links a { padding: .45rem .75rem; font-size: .86rem; }
.nav .btn--small { padding: .5rem .95rem; border-radius: 9px; font-size: .84rem; }
.nav .lang-toggle, .nav .theme-toggle { width: 36px; height: 36px; }

.wk-searchbtn {
  flex: 1;
  max-width: 440px;
  height: 38px;
  margin: 0 auto;
  display: flex; align-items: center; gap: .6rem;
  padding: 0 .55rem 0 .8rem;
  border-radius: 10px;
  border: 1px solid var(--divider);
  background: var(--surface-soft);
  color: var(--dim);
  font: 400 .875rem var(--font-body);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.wk-searchbtn:hover { border-color: color-mix(in srgb, var(--primary) 60%, var(--divider)); color: var(--muted); }
.wk-searchbtn svg { width: 16px; height: 16px; }
.wk-searchbtn span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd, .wk-searchbtn kbd {
  font: 600 .7rem var(--font-body);
  padding: .12rem .4rem;
  border-radius: 6px;
  border: 1px solid var(--divider);
  border-bottom-width: 2px;
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
}
.wk-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid transparent; border-radius: 9px;
  background: none; color: var(--muted); cursor: pointer;
}
.wk-iconbtn:hover { color: var(--text); border-color: var(--divider); }
.wk-iconbtn svg { width: 18px; height: 18px; }
.wk-searchbtn--mobile { display: none; }
.btn svg { width: 15px; height: 15px; }

/* ── Seitenwechsel: sanft überblenden, Navigation + Seitenleiste bleiben stehen ── */
@view-transition { navigation: auto; }
.nav-wrap { view-transition-name: wk-nav; }
.wk-side { view-transition-name: wk-side; }
::view-transition-group(root) { animation-duration: .18s; }
::view-transition-group(wk-nav), ::view-transition-group(wk-side) { animation: none; }
::view-transition-old(wk-nav), ::view-transition-old(wk-side) { display: none; }
::view-transition-new(wk-nav), ::view-transition-new(wk-side) { animation: none; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ── Artikel-Layout ───────────────────────────────────────────────────── */
.wk-shell {
  max-width: var(--wk-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr) var(--toc-w);
  gap: 3.5rem;
  padding: var(--nav-h) var(--page-padding) 5rem;
  align-items: start;
}
.wk-shell--news { grid-template-columns: var(--side-w) minmax(0, 1fr); }
.wk-main { min-width: 0; padding-top: 2.75rem; }

/* ── Seitenleiste ─────────────────────────────────────────────────────── */
.wk-side {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 1.75rem 1rem 2.5rem 0;
  border-right: 1px solid var(--divider);
  font-size: .875rem;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-soft-3) transparent;
}
.wk-side__home { display: flex; align-items: center; gap: .6rem; padding: .45rem .65rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; }
.wk-side__home:hover { color: var(--text); background: var(--surface-soft); }
.wk-side__home svg, .wk-side__group summary svg { width: 16px; height: 16px; flex-shrink: 0; }
.wk-side__group { margin-top: 1.1rem; }
.wk-side__group summary {
  list-style: none;
  display: flex; align-items: center; gap: .6rem;
  padding: .4rem .65rem;
  font-weight: 600; font-size: .84rem;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  user-select: none;
}
.wk-side__group summary svg { color: var(--dim); }
.wk-side__group summary::-webkit-details-marker { display: none; }
.wk-side__group summary::after { content: ''; margin-left: auto; width: 5px; height: 5px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(-45deg); transition: transform .2s; }
.wk-side__group[open] summary::after { transform: rotate(45deg); }
.wk-side__group summary:hover { background: var(--surface-soft); }
.wk-side__group ul { list-style: none; margin: .25rem 0 0 1.05rem; padding-left: .7rem; border-left: 1px solid var(--divider); display: flex; flex-direction: column; gap: 1px; }
/* Klickfläche reicht bis an den linken Rand (über die Einrückung der Liste) */
.wk-side__group li { position: relative; }
.wk-side__group li > a::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1.75rem; width: 1.75rem; }
.wk-side__group a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .38rem .65rem; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.4; transition: color .15s, background .15s; }
.wk-side__group a:hover { color: var(--text); background: var(--surface-soft); }
.wk-side__group a.is-current, .wk-side__home.is-current { color: #fff; background: var(--primary); font-weight: 500; }
.wk-side__group a.is-current:hover, .wk-side__home.is-current:hover { color: #fff; background: var(--primary); }
.wk-side__home.is-current svg { color: #fff; }
.wk-side__group a.is-soon { color: var(--dim); }
.wk-side__group a.is-current.is-soon { color: #fff; }
.wk-side__group a.is-current .wk-soon { background: rgba(255,255,255,.2); color: #fff; }
.wk-soon { flex-shrink: 0; font-size: .6rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: .08rem .38rem; border-radius: 5px; background: var(--surface-soft-2); color: var(--dim); }

.wk-sidetoggle { display: none; }
.wk-crumbs { display: none; }

/* ── Artikelkopf ──────────────────────────────────────────────────────── */
.wk-article { max-width: 740px; }
.wk-article__head { padding-bottom: 1.75rem; margin-bottom: 2rem; border-bottom: 1px solid var(--divider); }
.wk-article__cat { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .85rem; color: var(--primary-l); }
.wk-article__cat svg { width: 15px; height: 15px; }
.wk-article h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.1rem, 3.6vw, 2.9rem); line-height: 1.02; letter-spacing: .005em; margin: .6rem 0 .9rem; color: var(--text); }
.wk-article__lead { color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.wk-article__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: 1.25rem; font-size: .8rem; color: var(--dim); }
.wk-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.wk-meta b { font-weight: 600; color: var(--muted); margin-right: .1rem; }
.wk-meta svg { width: 14px; height: 14px; }
.wk-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; border: 1px solid var(--divider); color: var(--muted); font-size: .74rem; font-weight: 500; }
.wk-pill svg { width: 12px; height: 12px; }
.wk-pill--dashboard { border-color: color-mix(in srgb, var(--primary) 35%, transparent); color: var(--primary-l); }
.wk-pill--app { border-color: color-mix(in srgb, var(--success) 35%, transparent); color: var(--success); }

/* ── Artikel-Typografie ───────────────────────────────────────────────── */
.wk-prose { font-size: 1rem; line-height: 1.75; color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.wk-prose > * + * { margin-top: 1.1rem; }
.wk-prose h2, .wk-prose h3 { position: relative; scroll-margin-top: calc(var(--nav-h) + 1.5rem); color: var(--text); font-family: var(--font-body); }
.wk-prose h2 { font-weight: 600; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.01em; margin-top: 2.75rem; }
.wk-prose h3 { font-weight: 600; font-size: 1.15rem; line-height: 1.4; margin-top: 2rem; }
.wk-anchor { position: absolute; left: -1.1em; color: var(--dim); text-decoration: none; opacity: 0; transition: opacity .15s; font-weight: 400; }
.wk-prose h2:hover .wk-anchor, .wk-prose h3:hover .wk-anchor { opacity: 1; }
.wk-prose a { color: var(--primary-l); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); text-underline-offset: 3px; }
.wk-prose a:hover { text-decoration-color: currentColor; }
.wk-prose strong { color: var(--text); font-weight: 600; }
.wk-prose ul { padding-left: 1.3rem; }
.wk-prose ul li { margin-top: .35rem; }
.wk-prose ul li::marker { color: var(--dim); }
.wk-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; padding: .12em .38em; border-radius: 6px; border: 1px solid var(--divider); background: var(--surface-soft); color: var(--text); }
.wk-prose pre { padding: 1rem 1.2rem; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--divider); overflow-x: auto; }
.wk-prose pre code { padding: 0; border: 0; background: none; }
.wk-prose blockquote { padding: .2rem 0 .2rem 1.1rem; border-left: 2px solid var(--divider); color: var(--muted); }

/* Schritt-für-Schritt-Anleitungen */
.wk-steps { list-style: none; counter-reset: step; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.wk-steps li { position: relative; counter-increment: step; padding: .45rem 0 .45rem 2.75rem; min-height: 2rem; }
.wk-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .5rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--divider);
  background: var(--bg-elev); color: var(--text);
  font: 600 .8rem var(--font-body);
}
.wk-steps li:not(:last-child)::after { content: ''; position: absolute; left: calc(.875rem - .5px); top: 2.4rem; bottom: -.5rem; width: 1px; background: var(--divider); }

/* Hinweisboxen */
.wk-callout { --cc: var(--primary); display: flex; gap: .8rem; padding: .95rem 1.1rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--cc) 28%, transparent); background: color-mix(in srgb, var(--cc) 6%, transparent); font-size: .94rem; line-height: 1.6; }
.wk-callout > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .2rem; color: var(--cc); }
.wk-callout strong { color: var(--text); }
/* Nur der Titel steht in einer eigenen Zeile – Fettes im Text bleibt im Fluss */
.wk-callout > div > strong:first-child { display: block; margin-bottom: .1rem; }
.wk-callout p { margin: 0; }
.wk-callout--tip     { --cc: var(--success); }
.wk-callout--note    { --cc: var(--primary); }
.wk-callout--warn    { --cc: var(--warning); }
.wk-callout--premium { --cc: #E0A800; }

/* Tabellen */
.wk-table { overflow-x: auto; border-radius: 12px; border: 1px solid var(--divider); }
.wk-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wk-table th, .wk-table td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--divider); vertical-align: top; }
.wk-table th { font-weight: 600; font-size: .8rem; color: var(--muted); background: var(--bg-elev); }
.wk-table tr:last-child td { border-bottom: none; }

/* Gezeichnete Screens */
.wk-screen { margin: 2rem 0; padding: 2rem 1rem 1.25rem; border-radius: 16px; border: 1px solid var(--divider); background: var(--bg-elev); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.wk-screen--phone .appm { zoom: .82; }
.wk-screen--desk { width: 100%; padding: 1.25rem; }
.wk-screen--desk .bmock { width: 100%; }
.wk-screen figcaption { color: var(--dim); font-size: .82rem; text-align: center; max-width: 440px; line-height: 1.5; }
/* Markierung: „hier tippen“ */
@keyframes wkPulse { 0%, 100% { box-shadow: 0 0 0 3px var(--warning), 0 0 0 7px rgba(255,204,0,.25); } 50% { box-shadow: 0 0 0 3px var(--warning), 0 0 0 12px rgba(255,204,0,0); } }
.wk-screen[data-hl="accept"] .appm__evcard:nth-child(5) .is-primary,
.wk-screen[data-hl="ward"] .appm__evcard:nth-child(4) .appm__rsvp--who:nth-child(3) .is-primary,
.wk-screen[data-hl="rpe"] .appm__rpe .is-active,
.wk-screen[data-hl="daily"] .appm__screen--home > .appm__card:nth-child(3),
.wk-screen[data-hl="load"] .appm__row2 > .appm__card:first-child,
.wk-screen[data-hl="zones"] .appm__zones,
.wk-screen[data-hl="teams"] .appm__screen > small:first-of-type + .appm__team,
.wk-screen[data-hl="nav"] .bmock__side {
  position: relative;
  border-radius: 10px;
  animation: wkPulse 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .wk-screen [class] { animation: none !important; }
}

/* Blättern */
.wk-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--divider); }
.wk-pager__link { display: flex; flex-direction: column; gap: .25rem; padding: .95rem 1.1rem; border-radius: 12px; border: 1px solid var(--divider); text-decoration: none; color: var(--text); font-size: .95rem; font-weight: 600; transition: border-color .15s, background .15s; }
.wk-pager__link:hover { border-color: color-mix(in srgb, var(--primary) 60%, var(--divider)); background: var(--surface-soft); }
.wk-pager__link small { display: inline-flex; align-items: center; gap: .3rem; color: var(--dim); font-size: .76rem; font-weight: 500; }
.wk-pager__link small svg { width: 13px; height: 13px; }
.wk-pager__link--next { text-align: right; align-items: flex-end; grid-column: 2; }

/* Inhaltsverzeichnis */
.wk-toc { position: sticky; top: var(--nav-h); padding-top: 2.75rem; font-size: .82rem; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.wk-toc__title { display: block; font-weight: 600; font-size: .8rem; color: var(--text); margin-bottom: .7rem; }
.wk-toc ul { list-style: none; border-left: 1px solid var(--divider); }
.wk-toc a { display: block; padding: .3rem 0 .3rem .9rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; transition: color .15s, border-color .15s; }
.wk-toc .lvl-3 a { padding-left: 1.7rem; font-size: .78rem; }
.wk-toc a:hover { color: var(--text); }
.wk-toc a.is-active { color: var(--primary-l); border-left-color: var(--primary); }

/* „Folgt bald“ */
.wk-soonpage h1 { margin-bottom: 1.5rem; }
.wk-subhead { font-weight: 600; font-size: 1.25rem; margin: 2.5rem 0 1rem; }
.wk-linklist { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.wk-linklist a { display: flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; }
.wk-linklist a:hover { color: var(--primary-l); }
.wk-linklist svg { width: 17px; height: 17px; color: var(--dim); flex-shrink: 0; }

/* Neuigkeiten als Zeitstrahl */
.wk-timeline h2 { margin-top: 2.75rem; padding-left: 1.5rem; font-size: 1.25rem; }
.wk-timeline h2::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.wk-timeline h2:first-child { margin-top: 0; }
.wk-timeline > :not(h2) { padding-left: 1.5rem; }

/* 404 */
.wk-404 { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: calc(var(--nav-h) + 4rem) var(--page-padding) 4rem; }
.wk-404__code { font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 16vw, 9rem); line-height: .9; color: var(--primary); }
.wk-404 h1 { font-weight: 600; font-size: 1.6rem; }
.wk-404 p { color: var(--muted); margin-bottom: 1rem; }

/* ── Footer: kompakt ──────────────────────────────────────────────────── */
.footer { padding: 3rem var(--page-padding) 1.75rem; }
.footer__inner, .footer__bottom { max-width: var(--wk-max); }
.footer__inner { gap: 2rem; }
.footer__brand .nav__logo { font-size: 1.2rem; }
.footer__brand p { font-size: .85rem; margin: .75rem 0 0; }
.footer__col h3 { font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: 0; text-transform: none; color: var(--text); margin-bottom: .8rem; }
.footer__col ul { gap: .5rem; }
.footer__col a { font-size: .85rem; }
.footer__bottom { margin-top: 2.25rem; padding-top: 1.25rem; font-size: .78rem; }

/* ── Suche ────────────────────────────────────────────────────────────── */
.wk-search { position: fixed; inset: 0; z-index: 300; }
.wk-search[hidden] { display: none; }
.wk-search__backdrop { position: absolute; inset: 0; background: rgba(5,8,15,.55); backdrop-filter: blur(4px); }
[data-theme="light"] .wk-search__backdrop { background: rgba(20,33,61,.25); }
.wk-search__panel {
  position: relative;
  width: min(640px, calc(100% - 2rem));
  margin: 12vh auto 0;
  border-radius: 16px;
  border: 1px solid var(--divider);
  background: var(--bg-mid);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  overflow: hidden;
  animation: wkIn .16s ease-out;
}
[data-theme="light"] .wk-search__panel { box-shadow: 0 30px 80px rgba(13,16,23,.18); }
@keyframes wkIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.wk-search__field { display: flex; align-items: center; gap: .7rem; padding: .7rem .7rem .7rem 1.1rem; border-bottom: 1px solid var(--divider); }
.wk-search__field > svg { width: 18px; height: 18px; color: var(--dim); }
.wk-search__field input { flex: 1; border: none; outline: none; background: none; color: var(--text); font: 400 1rem var(--font-body); }
.wk-search__field input::-webkit-search-cancel-button { display: none; }
.wk-search__results { list-style: none; max-height: min(56vh, 480px); overflow-y: auto; padding: .4rem; }
.wk-search__results:empty { display: none; }
.wk-search__results a { display: flex; gap: .8rem; padding: .7rem .75rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.wk-search__results li.is-active a, .wk-search__results a:hover { background: var(--surface-soft-2); }
.wk-search__results .wk-r-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--divider); color: var(--primary-l); }
.wk-search__results .wk-r-icon svg { width: 16px; height: 16px; }
.wk-search__results .wk-r-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.wk-search__results small { color: var(--dim); font-size: .74rem; }
.wk-search__results .wk-r-snip { color: var(--muted); font-size: .84rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wk-search__results mark { background: rgba(255,204,0,.28); color: inherit; border-radius: 3px; padding: 0 .1em; }
.wk-search__hint { padding: 1.4rem 1.2rem; color: var(--dim); font-size: .9rem; }
.wk-search__keys { padding: .6rem 1.2rem; border-top: 1px solid var(--divider); color: var(--dim); font-size: .74rem; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .wk-shell { grid-template-columns: var(--side-w) minmax(0, 1fr); gap: 3rem; }
  .wk-toc { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .nav-wrap { top: 0; padding: 0; }
  .nav, .nav.nav--scrolled { height: var(--nav-h); padding: 0 .5rem 0 1rem; justify-content: space-between; }
  .wk-searchbtn { display: none; }
  .wk-searchbtn--mobile { display: inline-flex; }
  .nav__right .lang-toggle, .nav__right .theme-toggle { display: inline-flex; }
  .nav__burger { display: none !important; }

  .wk-shell, .wk-shell--news { grid-template-columns: 1fr; gap: 0; }
  .wk-main { padding-top: 0; }
  .wk-side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 250;
    width: min(86vw, 320px); height: auto;
    padding: 1.25rem 1rem 2rem;
    background: var(--menu-bg);
    border-right: 1px solid var(--divider);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.32,.72,0,1), visibility 0s .3s;
  }
  body.side-open .wk-side { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.32,.72,0,1); box-shadow: 16px 0 48px rgba(0,0,0,.35); }
  body.side-open::after { content: ''; position: fixed; inset: 0; z-index: 240; background: rgba(0,0,0,.45); }
  /* Leiste unter dem Header: öffnet die Artikelliste */
  .wk-sidetoggle {
    position: sticky; top: var(--nav-h); z-index: 50;
    display: flex; align-items: center; gap: .5rem;
    width: calc(100% + 2 * var(--page-padding));
    margin: 0 calc(-1 * var(--page-padding)) 2rem;
    padding: .7rem var(--page-padding);
    border: 0; border-bottom: 1px solid var(--divider);
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--muted); font: 500 .85rem var(--font-body); text-align: left;
    cursor: pointer;
  }
  .wk-sidetoggle svg { width: 16px; height: 16px; }
  .wk-anchor { display: none; }
}
@media (max-width: 560px) {
  .wk-pager { grid-template-columns: 1fr; }
  .wk-pager__link--next { grid-column: auto; }
  .wk-screen--phone .appm { zoom: .74; }
  .wk-searchbtn kbd { display: none; }
}
