/* ==========================================================
   SEORCH Kontrast – Basis: Tokens, Navigation, Drawer, Dock, Panels,
   Komponenten, Footer. Wird von allen Seiten geladen.
   ========================================================== */

:root {
  --bg: #f7f7f7;
  --bg-2: #ececec;
  --glass: rgba(255, 255, 255, .72);
  --glass-2: rgba(255, 255, 255, .94);
  --stroke: rgba(0, 0, 0, .1);
  --stroke-2: rgba(0, 0, 0, .22);
  --text: #0a0a0a;
  --text-2: #3b3b3b;
  --muted: #7c7c7c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px -14px rgba(0, 0, 0, .22);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .05), 0 24px 60px -24px rgba(0, 0, 0, .35);

  --red: #de1212;
  --red-dark: #a30d0d;
  --c1: #de1212; /* Technik / Fehler */
  --c2: #111111; /* Content / Akzent */
  --c3: #2f6bd6; /* Hinweis (gedämpftes Blau) */
  --gray: #8c8c8c; /* neutrale Kategorie- und Dekorfarbe */
  --c4: #16a34a; /* OK / bestanden / Erfolg (grün) */
  --c5: #a30d0d; /* KI & GEO */
  --grad: linear-gradient(120deg, #de1212, #a30d0d);

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r: 8px;
  --r-lg: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--font); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .5s, color .5s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code { font-family: var(--mono); font-size: .85em; background: var(--bg-2); padding: .1em .4em; border-radius: 6px; }
.hidden { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--c2); color: #fff; }
:focus-visible { outline: 3px solid var(--c2); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; } /* per Skript fokussierte Überschriften (Screenreader) – kein Rahmen, per Tab ohnehin nicht erreichbar */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: fixed; left: 16px; top: -100px; z-index: 300; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 16px; }

/* ---------- Background: dot grid + faint red glow ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35) 70%); -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35) 70%); }
.aurora i { display: none; }
.aurora::after { content: ""; position: absolute; right: -15vmax; top: -20vmax; width: 50vmax; height: 50vmax; border-radius: 50%; background: var(--red); opacity: .08; filter: blur(90px); }

/* ---------- Floating nav ---------- */
.nav {
  position: sticky; top: 14px; z-index: 100;
  width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 14px auto 0;
  display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 8px 0 20px; border-radius: 8px;
  background: var(--glass); border: 1px solid var(--stroke);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: var(--shadow);
}
.logo { display: inline-flex; align-items: center; font-weight: 800; letter-spacing: .04em; text-decoration: none; font-size: 18px; }
@keyframes rot { to { transform: rotate(360deg); } }

.nav__links { display: flex; gap: 2px; margin-left: 12px; }
.nav__links a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-2);
  padding: 8px 14px; border-radius: 8px; transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--glass-2); color: var(--text); }
.nav__links a[aria-current] { color: var(--text); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--stroke); }
.nav__actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--stroke); background: var(--glass-2); font-size: 22px; line-height: 1;
  transition: transform .3s var(--spring);
}
.iconbtn:hover { transform: rotate(-12deg) scale(1.06); }
.pillbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 8px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px;
  transition: transform .3s var(--spring);
}
.pillbtn:hover { transform: scale(1.04); }

/* ---------- Login button in nav ---------- */
.loginbtn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--stroke-2); background: var(--glass-2); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .2s, color .2s; }
.loginbtn:hover { border-color: var(--red); color: var(--red); }
.loginbtn svg { width: 18px; height: 18px; }
/* Konto-Bereich vorerst ausgeblendet: Login-Button der Website (nicht der des Keyword Monitors) */
.loginbtn[href$="anmelden.html"] { display: none !important; }

/* ---------- App drawer ---------- */
.drawer {
  padding: 0; border: 0; background: transparent; color: var(--text);
  width: min(760px, calc(100vw - 24px)); max-width: none; max-height: none; margin: clamp(12px, 4vh, 40px) auto auto;
}
.drawer::backdrop { background: rgba(10, 10, 10, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.drawer__panel {
  background: var(--glass-2); border: 1px solid var(--stroke); border-radius: var(--r-lg);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: var(--shadow-lg);
  padding: 20px 24px 22px;
}
.drawer[open] .drawer__panel { animation: drop .5s var(--spring); }
@keyframes drop { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer__title { margin: 0; font-weight: 700; font-size: 22px; }
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.apps a {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 16px 8px; border-radius: var(--r); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.2;
  transition: background .2s;
}
.apps a:hover { background: var(--glass); }
.apps__ico {
  width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c));
  box-shadow: 0 10px 20px -8px var(--c), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .4s var(--spring);
}
.apps__ico svg { width: 26px; height: 26px; }
.apps a:hover .apps__ico { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.drawer[open] .apps li { animation: appIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
@keyframes appIn { from { opacity: 0; transform: translateY(8px); } }
/* Dialoge selbst nie scrollen lassen – sonst blitzen beim Öffnen (Feder-Animation) Scrollbalken auf */
dialog { overflow: visible; }
.drawer__panel { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.drawer__panel::-webkit-scrollbar { display: none; }
.apps a { padding-block: 12px; }
/* niedrige Fenster: Menü kompakter, damit es ohne Scrollen passt */
@media (min-width: 681px) and (max-height: 820px) {
  .drawer__panel { padding-top: 16px; padding-bottom: 16px; }
  .drawer__head { margin-bottom: 4px; }
  .apps a { padding-block: 8px; gap: 7px; font-size: 13.5px; }
  .apps__ico { width: 48px; height: 48px; }
  .apps__ico svg { width: 22px; height: 22px; }
  .drawer__foot { margin-top: 10px; padding-top: 12px; }
}
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.drawer__foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--stroke); font-size: 13px; }
.drawer__foot a { text-decoration: none; color: var(--muted); }
.drawer__foot a:hover { color: var(--text); }

/* ---------- Shared: badge, CTA, eyebrow, link-arrow ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 6px 16px 6px 6px;
  border-radius: 8px; background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow);
}
.badge span { background: var(--grad); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 8px; letter-spacing: .04em; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 30px; border: 0; border-radius: 8px;
  background: var(--grad); background-size: 200% 100%; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .06em;
  box-shadow: 0 12px 30px -10px rgba(222, 18, 18, .7), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .35s var(--spring), background-position .6s var(--ease);
}
.cta:hover { transform: scale(1.05); background-position: 100% 0; }
.cta:hover svg { transform: translateX(3px); }
.cta svg { transition: transform .3s var(--spring); }
.cta:active { transform: scale(.96); }
.cta.is-loading svg { animation: rot .8s linear infinite; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.eyebrow { margin: 0 0 12px; display: inline-block; font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .14em; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid var(--c2); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow svg { transition: transform .3s var(--spring); }
.cta--big { height: 68px; padding: 0 36px; font-size: 18px; letter-spacing: .02em; }

/* ---------- Content panels ---------- */
.content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 64px; } /* Spalte nie breiter als der Platz (sonst bestimmt der breiteste Inhalt die Seitenbreite) */
.panel {
  padding: clamp(24px, 4vw, 56px); border-radius: 14px;
  background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 28px; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; max-width: 18em; }
.panel p { margin: 0 0 18px; color: var(--text-2); }
.panel strong { color: var(--text); }
.measure { max-width: 52em; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.split--rev > figure { order: -1; }
.shots { display: grid; gap: 20px; }
.shot { margin: 0; perspective: 900px; }
.shot a, .shot img { display: block; border-radius: var(--r); }
.shot img {
  box-shadow: var(--shadow-lg); border: 1px solid var(--stroke);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease);
}
.shot figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.shot figcaption::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
/* Screenshots zwischen den Textabsätzen: volle Breite; kleine Altbilder (.shot--natural) in Originalgröße */
.shot--flow { margin: clamp(18px, 3vw, 28px) 0; position: static !important; }
.shot--flow img { width: 100%; height: auto; }
.shot.shot--flow.shot--natural img { width: auto; max-width: 100%; }

.minihead { margin: 32px 0 14px !important; font-weight: 700; color: var(--text) !important; font-size: 18px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 8px;
  background: var(--glass-2); border: 1px solid var(--stroke); font-size: 15px; font-weight: 500;
  transition: transform .3s var(--spring), box-shadow .3s;
}
.pills li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.pills li:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: var(--shadow); }
.note {
  margin: 32px 0 0; padding: 24px 28px; border-radius: var(--r-lg); position: relative;
  background: linear-gradient(var(--glass-2), var(--glass-2)) padding-box, var(--grad) border-box; border: 2px solid transparent;
  font-size: clamp(18px, 2vw, 22px); line-height: 1.45; font-weight: 500;
}

/* factors */
.segmented {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 12px 0 24px; padding: 5px;
  border-radius: 8px; background: var(--bg-2); border: 1px solid var(--stroke);
}
.segmented button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--text-2); white-space: nowrap; transition: color .3s; }
.segmented button i { font: normal 500 11px var(--mono); opacity: .6; margin-left: 4px; }
.segmented button[aria-checked="true"] { color: var(--text); }
.segmented__thumb {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 8px;
  background: var(--glass-2); box-shadow: var(--shadow); transition: transform .45s var(--spring), width .45s var(--spring);
}
.factors, .factors tbody { display: block; }
.factors tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.factors tr {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 18px 22px; border-radius: var(--r); position: relative; overflow: hidden;
  background: var(--glass-2); border: 1px solid var(--stroke);
  transition: transform .35s var(--spring), box-shadow .3s;
}
.factors tr[hidden] { display: none; }
.factors tr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--pc, var(--muted)); }
.factors tr:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.factors td { display: block; padding: 0; }
.factors td:nth-child(1) { font-weight: 700; font-size: 18px; letter-spacing: -.01em; line-height: 1.2; padding-right: 72px; }
.factors td:nth-child(2) { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.factors td:nth-child(3) { position: absolute; right: 14px; top: 16px; }
.factors tr[data-prio="high"] { --pc: var(--c1); }
.factors tr[data-prio="medium"] { --pc: var(--c3); }
.factors tr[data-prio="low"] { --pc: var(--c4); }
.tag { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 8px; color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); }
.factors tr.is-pop { animation: pop .45s var(--spring) both; }

/* kits */
.kits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.kit { padding: 24px; border-radius: var(--r-lg); background: var(--glass-2); border: 1px solid var(--stroke); }
.kit__t { margin: 0 0 12px !important; font-weight: 700; font-size: 18px; color: var(--text) !important; }
.kit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kit li { display: flex; gap: 10px; align-items: center; }
.kit li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--stroke-2); flex: none; }
.kit--must { background: var(--text); color: var(--bg); border-color: transparent; }
.kit--must .kit__t { color: var(--bg) !important; }
.kit--must li::before { border: 0; background: var(--grad); box-shadow: inset 0 0 0 5px var(--text); }

/* FAQ */
/* FAQs sind standardmäßig offen: Spaltenlayout statt Raster, damit keine Zeilenlücken entstehen */
.faq { columns: 2; column-gap: 12px; }
.faq details { break-inside: avoid; margin-bottom: 12px; }
.faq details { border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--stroke); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--stroke-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 18px 18px 22px; }
.faq summary > * { min-width: 0; overflow-wrap: break-word; hyphens: auto; } /* lange Wörter (Suchmaschinenoptimierung) auf schmalen Handys trennen */
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; flex: 1; font-size: 17px; line-height: 1.35; font-weight: 600; }
.faq summary::after {
  content: "+"; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--bg-2); font-size: 20px; transition: transform .45s var(--spring), background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--grad); color: #fff; }
.faq details > div { padding: 0 22px 6px; }
.faq details[open] > div { animation: drop .45s var(--spring); }

/* ---------- TOC orb ---------- */
.orb { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: opacity .4s, transform .5s var(--spring); }
.orb.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.orb__btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 56px; max-width: min(360px, calc(100vw - 40px));
  padding: 0 20px 0 6px; border-radius: 8px; border: 1px solid var(--stroke);
  background: var(--glass-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: 14px;
}
.orb__ring { width: 44px; height: 44px; transform: rotate(-90deg); flex: none; }
.orb__ring circle { fill: none; stroke: var(--stroke-2); stroke-width: 3; }
.orb__ring .orb__val { stroke: var(--c2); stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .2s; }
.orb__ico { position: absolute; left: 18px; width: 20px; height: 20px; }
.orb__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orb__pop {
  width: min(380px, calc(100vw - 40px)); max-height: 60vh; overflow-y: auto; padding: 18px; border-radius: var(--r-lg);
  background: var(--glass-2); border: 1px solid var(--stroke); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: var(--shadow-lg);
  transform-origin: 100% 100%; animation: drop .45s var(--spring);
}
.orb__pop[hidden] { display: none; }
.orb__title { margin: 0 0 8px; font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.orb__pop ol, .orb__pop ul { list-style: none; margin: 0; padding: 0; }
.orb__pop a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; line-height: 1.35; font-weight: 500; }
.orb__pop ul a { padding-left: 24px; font-size: 13px; color: var(--text-2); font-weight: 400; }
.orb__pop a:hover { background: var(--bg-2); }
.orb__pop a.is-active { background: var(--text); color: var(--bg); }

/* ---------- Footer ---------- */
.footer { padding-block: 24px calc(40px + env(safe-area-inset-bottom)); }
.footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--stroke); }
.footer__tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; }
.footer a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.footer a:hover { color: var(--text); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--stroke); }
.footer__legal a { font-size: 13px; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 10, 10, .7); backdrop-filter: blur(12px); }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: var(--r); }
.lightbox[open] img { animation: drop .45s var(--spring); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev > figure { order: 0; }
  .faq { columns: 1; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 90px; }
  body { font-size: 16px; }
  .nav { height: 54px; top: 10px; margin-top: 10px; padding-left: 16px; }
  .nav .pillbtn { width: 44px; height: 40px; padding: 0; justify-content: center; }
  .nav .pillbtn span { display: none; }
  .loginbtn { width: 44px; height: 40px; padding: 0; justify-content: center; }
  .loginbtn span { display: none; }
  .iconbtn { width: 40px; height: 40px; }


  .drawer { margin: auto auto 0; width: 100vw; }
  /* Bottom-Sheet fährt fast bis ganz oben */
  .drawer__panel { height: calc(100dvh - 16px); max-height: none; display: flex; flex-direction: column; border-radius: 14px 14px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .drawer__head { margin-bottom: 20px; }
  .apps { grid-template-columns: repeat(4, 1fr); gap: 10px 4px; align-content: start; }
  .apps a { padding: 10px 2px; font-size: 12.5px; gap: 8px; hyphens: auto; }
  .drawer__foot { margin-top: auto; padding-top: 18px; }
  .drawer[open] .drawer__panel { animation: up .5s var(--spring); }
  @keyframes up { from { transform: translateY(100%); } }
  .apps__ico { width: 48px; height: 48px; }
  .apps__ico svg { width: 22px; height: 22px; }


  .panel { border-radius: 14px; }
  .segmented { display: grid; width: 100%; }
  .segmented button { padding: 10px 4px; font-size: 14px; }
  .segmented button i { display: none; }
  .factors tbody { grid-template-columns: 1fr; }
  .kits { grid-template-columns: 1fr; }

  .orb { right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .orb__btn { height: 50px; }
  .orb__label { display: none; }
  .orb__btn { padding: 0 3px; }
  .orb__ring { width: 42px; height: 42px; }
  .orb__ico { left: 15px; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__tools { grid-template-columns: 1fr 1fr; }
}

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

/* ---------- Inhaltsverzeichnis als Seitenleiste (Desktop), Orb nur auf kleineren Screens ---------- */
.toc-side { display: none; }
.toc-main { display: contents; } /* unter 1100 px gilt das ursprüngliche Layout des Containers */
@media (min-width: 1100px) {
  .has-toc-side { display: grid !important; grid-template-columns: 250px minmax(0, 1fr) !important; gap: 28px; align-items: start; }
  .toc-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0; }
  .toc-side {
    display: block; position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    padding: 18px; border-radius: var(--r-lg); background: var(--glass-2); border: 1px solid var(--stroke); box-shadow: var(--shadow);
  }
  .toc-side__t { margin: 0 0 8px; font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .toc-side ol, .toc-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .toc-side ul { margin: 2px 0 4px 12px; padding-left: 8px; border-left: 1px solid var(--stroke); }
  .toc-side a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 14px; line-height: 1.35; font-weight: 500; text-decoration: none; color: var(--text-2); transition: background .2s, color .2s; }
  .toc-side ul a { padding: 5px 10px; font-size: 13px; color: var(--muted); }
  .toc-side a:hover { background: var(--bg-2); color: var(--text); }
  .toc-side a.is-active { background: var(--text); color: var(--bg); }
  .has-toc-side-page .orb { display: none; }
}
