/* Sternwart (sternwart.ch) – Seitenschicht über zukunft.css (Tokens --zk-*). Kein Inline-Stil (CSP). */
.sw { background: var(--zk-bg-deep); color: var(--zk-text); font-family: var(--zk-font); margin: 0; line-height: 1.65; }
.sw *, .sw *::before, .sw *::after { box-sizing: border-box; }
.sw-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sw-schmal { width: min(860px, 100% - 32px); }
.sw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sw-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--zk-surface); color: var(--zk-text); padding: 8px 14px; border-radius: 8px; }
.sw-skip:focus { left: 8px; }
.sw a { color: var(--zk-cyan-text); text-underline-offset: 3px; }
.sw a:hover { color: var(--zk-text); }
.sw :focus-visible { outline: 2px solid var(--zk-focus); outline-offset: 3px; border-radius: 6px; }
.sw h1, .sw h2, .sw h3 { font-family: var(--zk-title); line-height: 1.15; letter-spacing: .01em; color: var(--zk-text); }
.sw h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: .2em 0 .35em; }
.sw h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 1.6em 0 .5em; }
.sw h3 { font-size: 1.25rem; margin: 1.3em 0 .4em; }
.sw-lead { color: var(--zk-lead); font-size: 1.12rem; max-width: 62ch; }
.sw-kicker { font-family: var(--zk-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--zk-cyan-text); margin: 0; }
.sw-kicker a { text-decoration: none; }
.sw-verlauf { background: var(--zk-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Kopf */
.sw-kopf { position: sticky; top: 0; z-index: 50; background: var(--zk-glass-strong); backdrop-filter: blur(14px); border-bottom: 1px solid var(--zk-line); }
.sw-kopf-zeile { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.sw-logo { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; color: var(--zk-text) !important; text-decoration: none; font-family: var(--zk-title); font-size: 1.35rem; white-space: nowrap; }
.sw-logo b { color: var(--zk-cyan-text); font-weight: 700; }
.sw-logo small { font-family: var(--zk-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zk-muted); margin-left: 4px; }
.sw-logo-ico { width: 30px; height: 30px; }
.sw-logo-stern { fill: var(--zk-mint); }
.sw-logo-rohr { fill: var(--zk-cyan); }
.sw-logo-bein { fill: none; stroke: var(--zk-violet); stroke-width: 2; stroke-linecap: round; }
.sw-nav { display: flex; gap: 2px; margin-left: auto; }
.sw-nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; color: var(--zk-lead); text-decoration: none; padding: 0 10px; border-radius: 8px; font-size: .95rem; }
.sw-nav a:hover { background: var(--zk-glass-soft); color: var(--zk-text); }
.sw-suche-kopf { display: flex; }
.sw-suche-kopf input { width: 170px; min-height: 44px; background: var(--zk-field); border: 1px solid var(--zk-field-border); color: var(--zk-text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 1rem; }
.sw-suche-kopf input::placeholder, .sw-suche-gross input::placeholder { color: var(--zk-muted); opacity: 1; }
.sw-suche-kopf input:focus { border-color: var(--zk-focus); box-shadow: 0 0 0 4px var(--zk-focus-ring); outline: none; }
.sw-motion { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: transparent; border: 1px solid var(--zk-line-strong); color: var(--zk-muted); border-radius: 10px; padding: 0; cursor: pointer; font-size: .75rem; }
.sw-motion[hidden] { display: none; }
.sw-motion:hover { color: var(--zk-text); border-color: var(--zk-cyan); }
/* Breite Kopfzeile nur, wenn alles in eine Zeile passt; sonst Navigation als eigene, waagrecht scrollbare Zeile */
@media (max-width: 1360px) {
  .sw-kopf-zeile { flex-wrap: wrap; gap: 4px 12px; padding: 8px 0 0; min-height: 0; }
  .sw-suche-kopf { margin-left: auto; }
  .sw-nav { order: 5; flex: 1 0 100%; margin: 0 -10px; padding: 0 0 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .sw-nav::-webkit-scrollbar { display: none; }
  .sw-nav a:last-child { margin-right: 24px; }
}
@media (max-width: 1100px) { .sw-logo small { display: none; } }
/* Handy: Zeile 1 Logo + Sprachen, Zeile 2 Suche + Navigation (scrollbar) + Pause */
@media (max-width: 640px) {
  .sw-kopf { position: relative; }
  .sw-kopf-zeile { gap: 6px 8px; padding-top: 6px; }
  .sw-kopf-zeile::before { content: ""; order: 3; flex: 0 0 100%; height: 0; } /* fester Zeilenumbruch nach den Sprachen */
  .sw-logo { order: 1; min-height: 44px; font-size: 1.25rem; gap: 8px; }
  .sw-logo-ico { width: 26px; height: 26px; }
  .sw-sprachen { order: 2; margin-left: auto; flex-shrink: 0; }
  /* Suche als Lupe (44 px), klappt beim Antippen auf volle Breite auf */
  .sw-suche-kopf { order: 4; margin-left: 0; flex: 0 0 44px; min-width: 0; }
  .sw-suche-kopf input { width: 100%; padding: 8px 0 8px 42px; color: transparent; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369e1f5' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 11px center; background-size: 20px; }
  .sw-suche-kopf input::placeholder { color: transparent; }
  .sw-suche-kopf:focus-within, .sw-suche-kopf:has(input:not(:placeholder-shown)) { flex-basis: 100%; }
  .sw-suche-kopf:focus-within input, .sw-suche-kopf:has(input:not(:placeholder-shown)) input { color: var(--zk-text); cursor: text; padding-right: 12px; }
  .sw-suche-kopf:focus-within input::placeholder { color: var(--zk-muted); }
  /* aktuelle Seite in den Brotkrumen nur fuer Screenreader (steht als Titel darunter) */
  .sw-krumen li:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sw-nav { order: 5; flex: 1 1 0; min-width: 0; margin: 0; padding: 0 0 2px; scrollbar-width: thin; }
  .sw-motion { order: 6; }
}

/* Himmel-Kopf (zukunft.js zeichnet das Punktenetz in .zk-kopf-himmel) */
.sw-hero, .sw-seitenkopf { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(1200px 500px at 70% -10%, var(--zk-nebula-a), transparent 60%), radial-gradient(800px 400px at 10% 110%, var(--zk-nebula-b), transparent 60%), var(--zk-sky-base); border-bottom: 1px solid var(--zk-line); }
.sw-hero > .sw-wrap, .sw-seitenkopf > .sw-wrap { position: relative; z-index: 2; }
.sw-hero { padding: 40px 0 52px; }
.sw-seitenkopf { padding: 28px 0 34px; }
.sw-hero-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "text bild" "text legende"; gap: 8px 40px; align-items: center; }
.sw-hero-text { grid-area: text; }
.sw-hero-bild { grid-area: bild; min-width: 0; }
.sw-hero-legende { grid-area: legende; align-self: start; }
.sw-hero h1 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
.sw-sternwart { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 24px 70px rgba(101, 80, 219, .28), 0 0 0 1px rgba(164, 146, 255, .28); }
@media (max-width: 860px) {
  .sw-hero { padding: 16px 0 32px; }
  .sw-hero-raster { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bild" "text" "legende"; gap: 14px; }
  .sw-hero-bild { width: min(100%, 360px); margin: 0 auto; }
  .sw-sternwart { border-radius: 20px; }
}
@media (max-width: 640px) {
  .sw-hero-bild { width: min(100%, 300px); }
  .sw-kicker { letter-spacing: .08em; }
  .sw-seitenkopf { padding: 20px 0 26px; }
  .sw-suche-gross .sw-knopf { min-height: 50px; }
}
/* Legende unter dem Bild: erklärt Farben und Begriffe, führt zu den Bereichen */
.sw-hero-legende { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: .88rem; }
.sw-hero-legende a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--zk-lead); text-decoration: none; }
.sw-hero-legende a:hover { background: var(--zk-glass-soft); color: var(--zk-text); }
.sw-legende-punkt { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px var(--a); }
.sw-l-v { --a: #a492ff; } .sw-l-c { --a: #69e1f5; } .sw-l-m { --a: #9af5d4; } .sw-l-b { --a: #8aa7ff; } .sw-l-g { --a: #ffc94d; }
.sw-zahlen { color: var(--zk-muted); font-family: var(--zk-mono); font-size: .85rem; }
.sw-zahlen strong { color: var(--zk-mint-text); }

/* Sternwart-Motiv: eigene dunkle Fläche, in jedem Farbschema gleich (Farben nur über Klassen, wegen CSP) */
.sw-s-raum1 { stop-color: #0b1030; } .sw-s-raum2 { stop-color: #05070f; }
.sw-s-kern0 { stop-color: #ffffff; stop-opacity: .95; } .sw-s-kern1 { stop-color: #dfe9ff; stop-opacity: .75; } .sw-s-kern2 { stop-color: #8aa7ff; stop-opacity: .25; } .sw-s-kern3 { stop-color: #8aa7ff; stop-opacity: 0; }
.sw-s-sonne0 { stop-color: #fffbe6; } .sw-s-sonne1 { stop-color: #ffd36a; stop-opacity: .75; } .sw-s-sonne2 { stop-color: #ff9a3d; stop-opacity: 0; }
.sw-s-nv0 { stop-color: #6550db; stop-opacity: .42; } .sw-s-nv1 { stop-color: #6550db; stop-opacity: 0; }
.sw-s-nc0 { stop-color: #69e1f5; stop-opacity: .16; } .sw-s-nc1 { stop-color: #69e1f5; stop-opacity: 0; }
.sw-s-rohr0 { stop-color: #f3f8ff; } .sw-s-rohr1 { stop-color: #b8c8e0; } .sw-s-rohr2 { stop-color: #4f5f80; }
.sw-s-mantel0 { stop-color: #3a2f94; } .sw-s-mantel1 { stop-color: #5a4bd1; }
.sw-s-blick0 { stop-color: #69e1f5; stop-opacity: .5; } .sw-s-blick1 { stop-color: #69e1f5; stop-opacity: 0; }
.sw-s-boden0 { stop-color: #141a3a; } .sw-s-boden1 { stop-color: #070a18; }
.sw-s-v { --a: #a492ff; } .sw-s-c { --a: #69e1f5; } .sw-s-m { --a: #9af5d4; } .sw-s-b { --a: #8aa7ff; }
.sw-s-stern circle { fill: #dfe8ff; opacity: .75; }
.sw-s-funkel path { fill: #ffffff; opacity: .85; }
.sw-s-glanz { fill: none; stroke: var(--a); stroke-width: 34; stroke-linecap: round; opacity: .3; }
.sw-s-linie { fill: none; stroke: var(--a); stroke-width: 4.5; stroke-linecap: round; opacity: .34; }
.sw-s-punkte { fill: var(--a); opacity: .9; }
.sw-s-kernpunkt { fill: #ffffff; }
.sw-s-sternbild path { fill: none; stroke: var(--a); stroke-width: 1.1; opacity: .9; }
.sw-s-sternbild circle { fill: #ffffff; stroke: var(--a); stroke-width: 1.2; }
.sw-s-strahl { stroke: #ffe9a6; stroke-width: 1; stroke-linecap: round; opacity: .8; fill: none; }
.sw-s-sonnenkern { fill: #fffbe6; }
.sw-s-blick { opacity: .8; }
.sw-s-kuppel-k { fill: #10173a; stroke: #3b3f8f; stroke-width: 1.5; }
.sw-s-kuppel-spalt { fill: #ffc94d; opacity: .85; }
.sw-s-kuppel-rand { fill: none; stroke: #a492ff; stroke-width: 2; opacity: .6; }
.sw-s-boden { stroke: none; }
.sw-s-bodenrand { fill: none; stroke: #9af5d4; stroke-width: 1.5; opacity: .5; }
.sw-s-stativ path { fill: none; stroke: #5d6f92; stroke-width: 7; stroke-linecap: round; }
.sw-s-stativ .sw-s-stativ-duenn { stroke-width: 3; }
.sw-s-kopf-mont { fill: #6d7fa3; stroke: #b8c8e0; stroke-width: 2; }
.sw-s-okular, .sw-s-fokus { fill: #2a3358; stroke: #8aa7ff; stroke-width: 1.5; }
.sw-s-tubus, .sw-s-tauschutz { stroke: #3a4670; stroke-width: 1.5; }
.sw-s-linse { fill: #69e1f5; opacity: .95; }
.sw-s-band { fill: none; stroke: #6550db; stroke-width: 4; }
.sw-s-sucher { fill: #8aa7ff; stroke: #3a4670; stroke-width: 1.2; }
.sw-s-halter { stroke: #8aa7ff; stroke-width: 3; fill: none; }
.sw-s-mantel-rand { fill: none; stroke: #69e1f5; stroke-width: 2; stroke-linecap: round; opacity: .75; }
.sw-s-schal { fill: #69e1f5; }
.sw-s-haut { fill: #efd2bc; }
.sw-s-haar { fill: #4b3f86; stroke: #a492ff; stroke-width: 1; }
.sw-s-schuh { fill: #0a0e22; }
.sw-s-arm, .sw-s-arm-hinten { fill: none; stroke-linecap: round; }
.sw-s-arm { stroke: #5a4bd1; stroke-width: 15; }
.sw-s-arm-hinten { stroke: #2c2478; stroke-width: 13; }
@media (prefers-reduced-motion: no-preference) {
  .sw-s-sonne { animation: sw-atmen 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .sw-s-sonne:nth-child(2n) { animation-duration: 7s; animation-delay: -2s; }
  .sw-s-sonne:nth-child(3n) { animation-delay: -4s; }
  .sw-s-funkel path { animation: sw-funkeln 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .sw-s-funkel path:nth-child(2n) { animation-delay: -1.8s; }
  .sw-s-funkel path:nth-child(3n) { animation-delay: -3.2s; }
  .sw-s-blick { animation: sw-blick 6s ease-in-out infinite; }
  .sw-s-sternbild g { animation: sw-blink 8s ease-in-out infinite; }
  .sw-s-sternbild g:nth-child(2n) { animation-delay: -3s; }
}
@keyframes sw-atmen { 50% { transform: scale(1.14); opacity: .82; } }
@keyframes sw-funkeln { 50% { transform: scale(1.5) rotate(20deg); opacity: .35; } }
@keyframes sw-blick { 50% { opacity: .45; } }
@keyframes sw-blink { 50% { opacity: .55; } }

/* Suche */
.sw-suche-gross { display: flex; gap: 10px; margin: 22px 0 12px; max-width: 640px; }
.sw-suche-gross input { flex: 1; min-width: 0; background: var(--zk-field); border: 1px solid var(--zk-field-border); color: var(--zk-text); border-radius: 12px; padding: 13px 16px; font: inherit; font-size: 1.02rem; }
.sw-suche-gross input:focus { border-color: var(--zk-focus); box-shadow: 0 0 0 4px var(--zk-focus-ring); outline: none; }
.sw-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--zk-line-strong); background: transparent; color: var(--zk-text); border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.sw-knopf-voll { background: var(--zk-grad-btn); color: var(--zk-btn-ink) !important; border: 0; }
.sw-knopf:hover { filter: brightness(1.08); }

/* Abschnitte, Karten */
.sw-abschnitt { padding: 40px 0; }
.sw-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.sw-karte, .sw-glas { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--zk-glass); border: 1px solid var(--zk-line); border-radius: 16px; padding: 20px; text-decoration: none; color: var(--zk-lead) !important; box-shadow: var(--zk-card-shadow); transition: transform .2s, border-color .2s; }
.sw-karte strong, .sw-karte h3, .sw-glas h3 { color: var(--zk-text); font-family: var(--zk-title); font-size: 1.3rem; line-height: 1.25; margin: 0; }
.sw-karte:hover { transform: translateY(-3px); border-color: var(--zk-cyan); }
.sw-karte-code { font-family: var(--zk-mono); font-size: .72rem; color: var(--zk-cyan-text); letter-spacing: .12em; }
.sw-karte-zahl { margin-top: auto; font-family: var(--zk-mono); font-size: .78rem; color: var(--zk-mint-text); }
.sw-raster-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sw-glas p { margin: 0; }

/* Listen */
.sw-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sw-liste a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--zk-line); border-radius: 12px; background: var(--zk-glass-soft); text-decoration: none; }
.sw-liste a strong { color: var(--zk-text); }
.sw-liste a span { color: var(--zk-muted); font-size: .93rem; }
.sw-liste a:hover { border-color: var(--zk-cyan); }
.sw-abc { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 20px; }
.sw-abc a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; border: 1px solid var(--zk-line); border-radius: 8px; text-decoration: none; font-family: var(--zk-mono); }
.sw-glossar-liste { columns: 3 220px; padding-left: 18px; }
.sw-glossar-liste li { margin-bottom: 6px; break-inside: avoid; }

/* Brotkrumen */
.sw-krumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 12px; font-size: .85rem; color: var(--zk-muted); }
.sw-krumen li + li::before { content: "›"; margin-right: 6px; color: var(--zk-faint); }
.sw-krumen a { color: var(--zk-muted); }

/* Artikel */
.sw-meta { font-family: var(--zk-mono); font-size: .8rem; color: var(--zk-muted); margin: 0; }
.sw-artikel-raster { padding: 26px 0 40px; }
.sw-kurz { border: 1px solid var(--zk-cyan); background: linear-gradient(135deg, rgba(105,225,245,.08), rgba(164,146,255,.06)); border-radius: 14px; padding: 16px 20px; margin-bottom: 22px; }
.sw-kurz-titel { font-family: var(--zk-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--zk-cyan-text); margin: 0 0 4px; }
.sw-kurz p:last-child { margin: 0; font-size: 1.06rem; color: var(--zk-text); }
.sw-toc { border-left: 2px solid var(--zk-violet); padding: 4px 0 4px 16px; margin: 0 0 26px; }
.sw-toc-titel { font-weight: 600; margin: 0 0 4px; }
.sw-toc ol { margin: 0; padding-left: 18px; color: var(--zk-muted); }
.sw-text { font-size: 1.05rem; color: var(--zk-lead); }
.sw-text p, .sw-text li { max-width: 72ch; }
.sw-text strong { color: var(--zk-text); }
.sw-text code { font-family: var(--zk-mono); font-size: .9em; background: var(--zk-surface-2); padding: 2px 6px; border-radius: 6px; }
.sw-text pre { max-width: 100%; background: var(--zk-surface); border: 1px solid var(--zk-line); border-radius: 12px; padding: 16px; margin: 18px 0; overflow-x: auto; font-size: .92rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.sw-text pre code { background: none; padding: 0; font-size: inherit; white-space: inherit; }
.sw-text code { overflow-wrap: anywhere; }
.sw-merke { border: 1px solid var(--zk-mint); background: rgba(154,245,212,.06); border-radius: 12px; padding: 12px 18px; margin: 18px 0; }
.sw-merke p { margin: .3em 0; }
.sw-tabelle { max-width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid var(--zk-line); border-radius: 12px; -webkit-overflow-scrolling: touch;
  /* Schatten am Rand zeigen, dass die Tabelle seitlich weitergeht */
  background: linear-gradient(90deg, var(--zk-surface) 30%, transparent) left / 32px 100% no-repeat local, linear-gradient(270deg, var(--zk-surface) 30%, transparent) right / 32px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(105,225,245,.28), transparent) left / 12px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(105,225,245,.28), transparent) right / 12px 100% no-repeat scroll, var(--zk-surface); }
.sw-tabelle table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: .95rem; }
.sw-tabelle tr:last-child td { border-bottom: 0; }
.sw-text > table { display: block; max-width: 100%; overflow-x: auto; }
.sw-tabelle th, .sw-tabelle td { border-bottom: 1px solid var(--zk-line); padding: 9px 10px; text-align: left; vertical-align: top; }
.sw-tabelle th { white-space: nowrap; color: var(--zk-text); font-family: var(--zk-title); font-size: 1.02rem; }
.sw-hinweis, .sw-redaktion { font-size: .88rem; color: var(--zk-muted); border-top: 1px solid var(--zk-line); padding-top: 12px; margin-top: 28px; }
.sw-hinweis + .sw-redaktion, .sw-redaktion + .sw-hinweis { border-top: 0; margin-top: 4px; padding-top: 0; }
.sw-quellen ul { padding-left: 18px; font-size: .92rem; }
.sw-quellen a { word-break: break-word; }

/* Werbung (gekennzeichnet) */
.sw-werbung { margin: 32px 0; }
.sw-werbung-karte { display: grid; gap: 6px; padding: 20px 22px; border-radius: 16px; text-decoration: none; color: var(--zk-lead) !important; border: 1px solid transparent; background: linear-gradient(var(--zk-surface), var(--zk-surface)) padding-box, var(--zk-grad) border-box; }
.sw-werbung-karte strong { color: var(--zk-text); font-family: var(--zk-title); font-size: 1.3rem; line-height: 1.25; }
.sw-werbung-label { font-family: var(--zk-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zk-muted); }
.sw-werbung-karte .sw-knopf { justify-self: start; background: var(--zk-grad-btn); color: var(--zk-btn-ink); border: 0; margin-top: 6px; }

/* Admin */
.sw-admin-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.sw-admin-nav form { margin-left: auto; }
.sw-fehler { color: #ffb4b4; }

/* Fuss */
.sw-fuss { border-top: 1px solid var(--zk-line); background: var(--zk-surface); margin-top: 40px; padding: 36px 0 18px; font-size: .94rem; color: var(--zk-muted); }
.sw-fuss-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.sw-fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sw-fuss-titel { color: var(--zk-text); font-weight: 600; margin: 0 0 8px; }
.sw-fuss-logo { display: flex; align-items: center; gap: 8px; color: var(--zk-text); font-family: var(--zk-title); font-size: 1.3rem; margin: 0 0 8px; }
.sw-fuss-klein { font-size: .8rem; color: var(--zk-faint); margin-top: 22px; }
@media print { .sw-kopf, .sw-fuss, .sw-werbung, .sw-motion { display: none; } .sw { background: #fff; color: #000; } }

/* Sprachwahl */
.sw-sprachen { display: flex; gap: 2px; }
.sw-sprachen a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--zk-lead); text-decoration: none; padding: 0 6px; border-radius: 8px; }
.sw-sprachen a:hover { background: var(--zk-glass-soft); color: var(--zk-text); }
.sw-sprachen a[aria-current] { color: var(--zk-text); background: var(--zk-glass-soft); box-shadow: inset 0 0 0 1px var(--zk-line); }

/* Sonnen (Leistungen) */
.sw-sonne { position: relative; }
.sw-sonne-punkt { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6c8, #ffc94d 45%, #ff8a3d 80%); box-shadow: 0 0 18px 4px rgba(255, 190, 80, .45); margin-bottom: 4px; }

/* Bedienbarkeit: grosse Klickflächen, Sprungziele unter dem Kopf, lange Wörter (Codex/WCAG 2.5.5) */
.sw :is(main, section, h2, h3, h4, form)[id] { scroll-margin-top: 8.5rem; }
@media (min-width: 1361px) { .sw :is(main, section, h2, h3, h4, form)[id] { scroll-margin-top: 6rem; } }
@media (max-width: 640px) { .sw :is(main, section, h2, h3, h4, form)[id] { scroll-margin-top: 16px; } }
.sw-text { overflow-wrap: break-word; }
.sw-text h2, .sw-text h3, .sw h1 { overflow-wrap: break-word; hyphens: auto; }
.sw-krumen a, .sw-krumen [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
.sw-krumen ol { margin-bottom: 4px; }
.sw-toc a { display: block; padding: 10px 0; }
.sw-toc li { margin: 0; }
.sw-glossar-liste a { display: inline-block; min-width: 44px; padding: 12px 0; }
.sw-glossar-liste li { margin-bottom: 0; }
.sw-kicker a { display: inline-flex; align-items: center; min-height: 44px; }
.sw-fuss ul { gap: 0; }
.sw-fuss li a { display: inline-block; padding: 11px 0; }
.sw-fuss li a + a { margin-left: 4px; }
.sw-seitenkopf .sw-schmal > p > a:only-child:not(.sw-knopf) { display: inline-flex; align-items: center; min-height: 44px; }
.sw-knopf { min-height: 44px; }
.sw-abschnitt h3 > a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) {
  .sw-text { font-size: 1.06rem; }
  .sw-text pre { padding: 14px; font-size: .9rem; }
  .sw-kurz { padding: 14px 16px; }
  .sw-werbung-karte { padding: 18px; }
  .sw-werbung-karte .sw-knopf { justify-self: stretch; }
  .sw-fuss-raster { gap: 18px; }
}
@media (max-width: 359px) {
  .sw-wrap, .sw-schmal { width: calc(100% - 24px); }
  .sw-logo { font-size: 1.12rem; gap: 6px; }
  .sw-logo-ico { width: 22px; height: 22px; }
  .sw-logo small { display: none; }
}
/* Fokusring in der scrollbaren Navigation nicht abschneiden */
.sw-nav a:focus-visible, .sw-sprachen a:focus-visible { outline-offset: -2px; }
html.zk-motion-paused :is(.sw-s-sonne, .sw-s-funkel path, .sw-s-blick, .sw-s-sternbild g) { animation-play-state: paused; }
@media (forced-colors: active) {
  .sw-suche-kopf input { color: CanvasText !important; background-image: none; padding-left: 12px !important; }
}
@media (forced-colors: active) and (max-width: 640px) {
  .sw-suche-kopf { flex-basis: 100%; }
  .sw-nav { -webkit-mask-image: none; mask-image: none; }
}
@media print {
  html { background: #fff; }
  .sw, .sw * { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
  .sw-verlauf { -webkit-background-clip: border-box; background-clip: border-box; }
  .sw-tabelle, .sw-text pre { overflow: visible; border-color: #999; }
  .sw-tabelle table, .sw-text > table { display: table; min-width: 0; }
  .sw-tabelle th { white-space: normal; }
  .zk-kopf-himmel, .sw-hero-bild { display: none; }
}
@media (max-width: 359px) { .sw-sprachen a { min-width: 38px; padding: 0 4px; } }

/* Kopierknopf in Prompt-Vorlagen */
.sw-text pre.sw-hat-kopieren { position: relative; padding-top: 52px; }
.sw-kopieren { position: absolute; top: 6px; right: 6px; min-height: 44px; min-width: 44px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--zk-line); background: var(--zk-glass-soft); color: var(--zk-text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.sw-kopieren:hover { background: var(--zk-glass-strong); }
.sw-kopieren:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media print { .sw-kopieren { display: none; } }

/* Milchstrasse (grosser Themenbereich) */
.sw-milchstrasse { display: grid; gap: 8px; padding: 28px; border-radius: 20px; text-decoration: none; color: var(--zk-text); border: 1px solid var(--zk-line); background: radial-gradient(600px 220px at 85% 20%, rgba(255, 220, 140, .18), transparent 70%), radial-gradient(500px 260px at 10% 90%, var(--zk-nebula-a), transparent 70%), var(--zk-glass-soft); }
.sw-milchstrasse strong, .sw-milchstrasse h3 { font-size: clamp(1.4rem, 3vw, 1.7rem); line-height: 1.2; margin: 0; font-family: var(--zk-title); }
.sw-milchstrasse:hover { border-color: var(--zk-text); }
.sw-milchstrasse:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Startseite: Zielgruppen, Themenbereiche, Vertrauensblock */
.sw-ziel { --a: #69e1f5; border-top: 3px solid var(--a); }
.sw-ziel-v { --a: #a492ff; } .sw-ziel-c { --a: #69e1f5; } .sw-ziel-m { --a: #9af5d4; } .sw-ziel-b { --a: #8aa7ff; }
:root[data-theme="light"] .sw-ziel-v { --a: #5540ad; } :root[data-theme="light"] .sw-ziel-c { --a: #00758b; } :root[data-theme="light"] .sw-ziel-m { --a: #176344; } :root[data-theme="light"] .sw-ziel-b { --a: #3b55b8; }
.sw-themenbereiche { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.sw-themenbereiche .sw-milchstrasse { padding: 24px; align-content: start; border-top: 3px solid var(--a); }
.sw-themenbereiche .sw-milchstrasse .sw-karte-zahl { margin-top: 6px; }
.sw-zielgruppen h3 { overflow-wrap: break-word; }
.sw-sonne h3 { font-size: 1.15rem; }
.sw-alle { margin: 22px 0 0; }
.sw-vertrauen { max-width: 860px; }
.sw-vertrauen p { color: var(--zk-lead); }
.sw-vertrauen-links { display: flex; flex-wrap: wrap; gap: 10px; }
.sw-vertrauen-links .sw-knopf { text-decoration: none; }
@media print { .sw-hero-legende { display: none; } }
.sw a.sw-milchstrasse { color: var(--zk-lead); }
.sw a.sw-milchstrasse h3 { color: var(--zk-text); }
.sw a.sw-milchstrasse:hover { color: var(--zk-lead); }
.sw-suche-gross { flex-wrap: wrap; }
.sw-such-label { flex: 0 0 100%; font-weight: 600; color: var(--zk-text); font-size: .95rem; }
