/* ==========================================================================
   Sowespoke — internes Wissenszentrum
   Struktur angelehnt an ein ruhiges Editorial-Layout (Icon-Sidebar, Listen,
   Tabs, schlanke Seitenkarte). Marke: Magenta/Petrol/Gelb aus den echten
   Sowespoke-Präsentationen, sparsam dosiert — kein Flächenmuster, keine
   dicken Konturen. Siehe DESIGN.md für die volle Begründung.
   ========================================================================== */

:root {
  /* -- Farbe -------------------------------------------------------- */
  --ink: #171717;
  --ink-soft: #63636b;
  --paper: #f7f5f1;
  --paper-raised: #ffffff;
  --line: #e7e3db;

  --accent: #e4067e;        /* Marken-Magenta — einzige starke Akzentfarbe */
  --accent-tint: #fde6f1;
  --on-accent: #ffffff;

  --yellow: #ffcc00;
  --on-yellow: #171717;

  --teal: #2f8f8a;
  --on-teal: #ffffff;
  --teal-text: #226b67; /* dunklere Variante nur für Fließtext/Links — 6.2:1 auf Weiß, WCAG-AA-sicher; --teal bleibt für Rahmen/Icons (nur 3:1 nötig) */

  --cat-ai: #5b3fb0;
  --cat-bid: #146b3a;
  --cat-target: #a5341a;
  --cat-creative: #8f5c08;
  --cat-tracking: #185f8c;

  --success: #146b3a;
  --success-tint: #dcf1e3;

  /* -- Typografie ----------------------------------------------------- */
  --font-display: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* -- Abstand / Radius / Schatten --------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 4px;
  --shadow: 0 1px 2px rgba(23,23,23,0.04), 0 8px 20px -10px rgba(23,23,23,0.12);
  --shadow-hover: 0 4px 10px rgba(23,23,23,0.06), 0 14px 28px -12px rgba(23,23,23,0.16);
}

/* -- Reset ----------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
mark {
  background: var(--accent-tint);
  color: var(--accent);
  padding: 0.04em 0.32em;
  border-radius: 40% var(--radius-sm) 40% var(--radius-sm) / var(--radius) 40% var(--radius) 40%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.view:focus-visible { outline: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: var(--space-4); }

/* -- Shell / Sidebar --------------------------------------------------- */
.shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}
.rail {
  flex: none;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  background: var(--paper-raised);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
}
.rail__logo img {
  width: 44px;
  height: 58px;
  object-fit: contain;
}
.rail__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.rail__nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}
.rail__nav a svg { width: 22px; height: 22px; }
.rail__nav a:hover { background: var(--paper); color: var(--ink); }
.rail__nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent); }

.shell__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* -- Layout ------------------------------------------------------------ */
.view {
  flex: 1;
  max-width: 68rem;
  width: 100%;
  padding: var(--space-7) var(--space-6) var(--space-6);
}
/* Auf breiten Monitoren blieb sonst viel Fläche rechts ungenutzt liegen —
   Inhalt darf hier mitwachsen statt starr bei 68rem zu kappen. */
@media (min-width: 90rem) {
  .view { max-width: 88rem; }
  .layout-2col { grid-template-columns: minmax(0, 1fr) 23rem; }
}

.site-footer {
  text-align: center;
  padding: var(--space-5);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* -- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
  padding-top: var(--space-2);
}
.hero__illustration {
  position: absolute;
  top: -1.5rem;
  right: -0.5rem;
  width: 150px;
  height: 150px;
  pointer-events: none;
  z-index: 0;
}
.hero--compact { margin-bottom: var(--space-5); }
.hero--compact .hero__illustration { width: 110px; height: 110px; top: -1rem; }
.hero__intro, .hero .search { position: relative; z-index: 1; }
.hero__intro { max-width: 40rem; }
.hero__intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__intro p {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 46ch;
}

/* -- Suche --------------------------------------------------------------- */
.search {
  position: relative;
  flex: 0 1 22rem;
  min-width: 15rem;
}
.search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-7);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.search input::placeholder { color: var(--ink-soft); }
.search svg {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
  pointer-events: none;
}

/* -- Tabs --------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.tabs__item {
  flex: none;
  padding: var(--space-2) var(--space-1);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs__item:hover { color: var(--ink); }
.tabs__item.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* -- Zweispalten-Layout --------------------------------------------------- */
.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 60rem) {
  .layout-2col { grid-template-columns: minmax(0, 1fr); }
}

.feed__title {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.feed__title::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: var(--radius-xs);
  transform: rotate(45deg);
}
.feed__title--icon::before { display: none; }
.feed__title__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: #fff;
  flex: none;
}
.feed__title__icon svg { width: 15px; height: 15px; }

.feed__notice {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.86rem;
  font-weight: 600;
  color: #7a4a00;
  background: #fff3d6;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}
.feed__notice svg { width: 14px; height: 14px; flex: none; }
.feed__divider {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-4) var(--space-1) var(--space-2);
  border-top: 1px solid var(--line);
}

/* -- Artikel-Liste --------------------------------------------------------- */
.article-list li { border-bottom: 1px solid var(--line); }
.article-list li:first-child { border-top: 1px solid var(--line); }
.row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-1);
  text-decoration: none;
  color: var(--ink);
}
.row__thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.6) 1.4px, transparent 1.6px);
  background-size: 9px 9px;
  background-position: right -3px bottom -3px;
  background-repeat: repeat;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.row__thumb svg { width: 24px; height: 24px; position: relative; }
.row:hover .row__thumb { transform: scale(1.06) rotate(-3deg); }
.row__body { flex: 1; min-width: 0; }
.row__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-1);
}
.row__cat { font-weight: 600; }
.row__title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: var(--space-1);
}
.row__summary {
  display: block;
  color: var(--ink-soft);
  font-size: 0.94rem;
  max-width: 62ch;
}
.row__arrow {
  flex: none;
  align-self: center;
  color: var(--ink-soft);
  transition: transform 160ms ease, color 160ms ease;
}
.row__arrow svg { width: 18px; height: 18px; }
.row:hover .row__title { color: var(--accent); }
.row:hover .row__arrow { color: var(--accent); transform: translateX(3px); }

.row__rate {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: 0 0 var(--space-4);
}
.row__rate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.row__rate-btn svg { width: 17px; height: 17px; }
.row__rate-btn:hover:not(:disabled) { background: var(--paper-raised); color: var(--ink); }
.row__rate-btn.is-voted { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }
.row__rate-btn:disabled { cursor: default; }
.row__rate-btn:disabled:not(.is-voted) { opacity: 0.4; }

.flash {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--on-yellow);
  background: var(--yellow);
  padding: 2px var(--space-2);
  border-radius: 999px;
}
.flash svg { width: 12px; height: 12px; }
.flash--muted { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }

/* -- Seitenkarte --------------------------------------------------------- */
.side-rail { display: flex; flex-direction: column; gap: var(--space-5); }
.side-card {
  position: relative;
  overflow: hidden;
  background: var(--paper-raised);
  border-radius: var(--radius);
  border: 3px solid var(--accent);
  box-shadow: var(--shadow), 0 0 26px -10px rgba(228, 6, 126, 0.45);
  padding: var(--space-5);
}
.side-card__illustration, .info-box__illustration {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 52px;
  height: 52px;
  pointer-events: none;
}
.side-card > *:not(.side-card__illustration) { position: relative; }
.side-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: #fff;
  margin-bottom: var(--space-3);
}
.side-card__icon svg { width: 17px; height: 17px; }
.side-card h2, .side-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.side-card h2 svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.side-card__list li {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
}
.side-card__list li:first-child { border-top: none; padding-top: 0; }
.side-card__list strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.side-card__list p { color: var(--ink-soft); font-size: 0.88rem; }
.side-card__list li:has(.side-card__recent) { padding: 0; border-top: none; }
.side-card__recent {
  display: block;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.side-card__list li:first-child .side-card__recent { border-top: none; padding-top: 0; }
.side-card__recent:hover strong { color: var(--accent); }

.event-row { display: flex; flex-direction: column; gap: var(--space-2); }
.event-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.event-row__branches {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.event-row__link {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--accent-tint);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}
.event-row__link svg { width: 14px; height: 14px; flex: none; }
.event-row__link:hover { text-decoration: underline; }
.event-row__days {
  flex: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 3px var(--space-2);
  border-radius: 999px;
  white-space: nowrap;
}
.side-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  text-decoration: none;
}
.side-card__link svg { width: 16px; height: 16px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
.pre-line { white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 0.94rem; }

/* -- Leerzustand ----------------------------------------------------- */
.empty-state {
  background: var(--paper-raised);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-8) var(--space-5);
  text-align: center;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.empty-state svg { width: 48px; height: 48px; color: var(--ink-soft); }
.empty-state strong { color: var(--ink); font-size: 1.1rem; }

/* -- Detailseite ---------------------------------------------------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--ink); }

.detail__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.detail__date { color: var(--ink-soft); font-size: 0.85rem; }
.detail h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  margin-bottom: var(--space-6);
}
.detail__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--space-7);
}
@media (max-width: 60rem) {
  .detail__body { grid-template-columns: minmax(0, 1fr); }
}
.detail__main { display: flex; flex-direction: column; gap: var(--space-5); }
.detail__main > p { max-width: 68ch; }
.detail__main > .btn { align-self: flex-start; }
.info-box__preview { max-width: none; white-space: pre-line; }
.detail__main > p { color: var(--ink); }
.detail__side { display: flex; flex-direction: column; gap: var(--space-4); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--space-3);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  color: #fff;
  white-space: nowrap;
}

.info-box {
  position: relative;
  overflow: hidden;
  background: var(--paper-raised);
  box-shadow: var(--shadow), 0 0 26px -10px rgba(47, 143, 138, 0.45);
  border-radius: var(--radius);
  border: 3px solid var(--teal);
  padding: var(--space-4) var(--space-5);
}
.info-box > *:not(.info-box__illustration) { position: relative; }
.info-box h2 { font-size: 0.95rem; font-weight: 700; margin-bottom: var(--space-3); }
.info-box ul { display: flex; flex-direction: column; gap: var(--space-2); }
.info-box li {
  font-size: 0.92rem;
  padding-left: 1.1em;
  position: relative;
}
.info-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* -- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 0.95rem;
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn--primary:active { transform: translateY(0) scale(0.98); box-shadow: var(--shadow); }
.btn--secondary { background: var(--paper-raised); color: var(--ink); border: 1px solid var(--line); }
.btn--secondary:hover { background: var(--paper); }
.btn--secondary:active { transform: scale(0.98); }

/* -- Mail-Generator ------------------------------------------------------- */
.mailgen {
  background: var(--paper-raised);
  border-radius: var(--radius);
  border: 3px solid var(--yellow);
  box-shadow: var(--shadow), 0 0 26px -10px rgba(255, 204, 0, 0.55);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.mailgen h2 { font-size: 1rem; font-weight: 700; }
.mailgen__field { display: flex; flex-direction: column; gap: var(--space-2); }
.mailgen__field label { font-weight: 600; font-size: 0.88rem; }
.mailgen__radiogroup-label { font-weight: 600; font-size: 0.88rem; }
.mailgen__radiogroup {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.mailgen__radiogroup label {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
}
.mailgen__radiogroup input { accent-color: var(--accent); width: 15px; height: 15px; }
code {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0.35em;
  font-size: 0.9em;
}
.mailgen__field input,
.mailgen__field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.mailgen__field textarea { min-height: 12rem; }
.mailgen__warning {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.86rem;
  font-weight: 600;
  color: #7a4a00;
  background: #fff3d6;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
}
.mailgen__warning[hidden] { display: none; }
.mailgen__warning svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.mailgen__actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.mailgen__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--success);
  background: var(--success-tint);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.mailgen__status.is-visible { opacity: 1; transform: translateY(0); }
.mailgen__status svg { width: 15px; height: 15px; }

/* -- Anfragen an Microsoft (Checklisten-Mailgen) ---------------------- */
.msreq__intro { font-size: 0.92rem; color: var(--ink-soft); }
.msreq__checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 22rem;
  overflow-y: auto;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.msreq__group-label {
  position: sticky;
  top: 0;
  background: var(--paper-raised);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  padding: var(--space-3) var(--space-3) var(--space-1);
}
.msreq__group-label:first-child { padding-top: var(--space-2); }
.msreq__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: calc(-1 * var(--space-2));
}
.msreq__option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background-color 150ms ease;
}
.msreq__option:hover { background: var(--paper-raised); }
.msreq__option input { margin-top: 0.3em; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.msreq__option strong { font-size: 0.92rem; }
.msreq__meta { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.msreq__note { font-size: 0.85rem; color: var(--ink-soft); }
.msreq__example { font-size: 0.9rem; }
.msreq__example summary { cursor: pointer; font-weight: 600; color: var(--teal-text); }
.msreq__example-text {
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-top: var(--space-2);
  max-height: 18rem;
  overflow-y: auto;
}

/* -- Responsive ------------------------------------------------------------ */
@media (max-width: 48rem) {
  .shell { flex-direction: column; }
  /* Illustration kollidiert bei schmaler Breite mit der (dann mehrzeiligen)
     Überschrift — auf Mobile weglassen statt Text zu überdecken. */
  .hero__illustration { display: none; }
  .rail {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-right: none;
    border-bottom: 1px solid var(--line);
    position: sticky;
  }
  .rail__logo { flex-shrink: 0; }
  .rail__logo img { width: 32px; height: 42px; }
  .rail__nav { flex-direction: row; gap: var(--space-2); flex-shrink: 0; }
  .view { padding: var(--space-5) var(--space-4) var(--space-5); }
  .row { gap: var(--space-3); }
  .row__thumb { width: 44px; height: 44px; }
  .row__thumb svg { width: 20px; height: 20px; }
}

/* -- Maskottchen ---------------------------------------------------------- */
.mascot {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  max-width: min(18rem, calc(100vw - 2 * var(--space-5)));
  pointer-events: none;
  animation: mascot-in 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mascot__figure, .mascot__bubble { pointer-events: auto; }
.mascot.is-leaving { animation: mascot-out 160ms ease forwards; }
@keyframes mascot-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes mascot-out {
  to { transform: translateY(8px); opacity: 0; }
}
.mascot__figure { width: 52px; height: 52px; flex: none; animation: mascot-float 3.2s ease-in-out infinite; }
@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}
.mascot__bubble {
  position: relative;
  background: var(--paper-raised);
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hover);
  padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4);
}
.mascot__bubble::before {
  content: "";
  position: absolute;
  left: -14px;
  bottom: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 14px 8px 0;
  border-color: transparent var(--ink) transparent transparent;
}
.mascot__bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 21px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 11px 6px 0;
  border-color: transparent var(--paper-raised) transparent transparent;
}
.mascot__bubble p {
  font-size: 0.9rem;
  padding-right: var(--space-4);
  transition: opacity 160ms ease;
}
.mascot__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: var(--space-2);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.mascot__more svg { width: 12px; height: 12px; transition: transform 160ms ease; }
.mascot__more:hover svg { transform: translateX(2px); }
.mascot__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  border-radius: 50%;
}
.mascot__close:hover { background: var(--paper); color: var(--ink); }
.mascot__close svg { width: 13px; height: 13px; }
@media (max-width: 34rem) {
  .mascot { right: var(--space-3); bottom: var(--space-3); }
  .hero::before { top: -0.75rem; right: -0.75rem; width: 150px; height: 150px; }
}

/* -- Reduced Motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .mascot { animation: none; }
}
