/* =========================================================
   Existenzgründer Pflege — Design System
   Tokens · Layout · Komponenten · Dark Mode
   ========================================================= */

/* ---------- 1. Tokens ---------- */

:root {
  color-scheme: light;

  /* Marke (aus dem Logo abgeleitet) */
  --brand-50: #eef9fe;
  --brand-100: #d3eefb;
  --brand-200: #a7ddf6;
  --brand-400: #29b9ec;
  --brand-500: #00a5df;
  --brand-600: #0086b9;
  --brand-700: #026b93;

  --accent-50: #edfaf1;
  --accent-100: #d3f2dc;
  --accent-400: #56d071;
  --accent-500: #34b855;
  --accent-600: #269544;

  /* Flächen & Text */
  --bg: #ffffff;
  --bg-subtle: #f5f9fc;
  --bg-sunken: #eef4f8;
  --surface: #ffffff;
  --surface-2: #f8fbfd;
  --text: #0f1c26;
  --text-muted: #55697a;
  --text-faint: #7c8fa0;
  --border: #e2ebf2;
  --border-strong: #c9d9e4;

  --header-bg: rgba(255, 255, 255, 0.82);
  --hero-bg: linear-gradient(160deg, #eff9fe 0%, #f3fbf6 55%, #ffffff 100%);
  --hero-glow-a: rgba(0, 165, 223, 0.16);
  --hero-glow-b: rgba(52, 184, 85, 0.16);

  /* Radien */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* Schatten */
  --shadow-xs: 0 1px 2px rgba(15, 28, 38, 0.05);
  --shadow-sm:
    0 1px 2px rgba(15, 28, 38, 0.05), 0 2px 6px -2px rgba(15, 28, 38, 0.07);
  --shadow:
    0 4px 12px -3px rgba(15, 28, 38, 0.08),
    0 14px 30px -12px rgba(15, 28, 38, 0.12);
  --shadow-lg:
    0 10px 24px -8px rgba(15, 28, 38, 0.14),
    0 30px 60px -20px rgba(15, 28, 38, 0.22);
  --ring: 0 0 0 3px rgba(0, 165, 223, 0.35);

  /* Typografie */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --fs-body: clamp(1rem, 0.965rem + 0.16vw, 1.0625rem);
  --fs-lede: clamp(1.06rem, 1rem + 0.32vw, 1.25rem);
  --fs-h1: clamp(1.95rem, 1.42rem + 2.3vw, 3.15rem);
  --fs-h2: clamp(1.45rem, 1.26rem + 0.85vw, 2rem);
  --fs-h3: clamp(1.13rem, 1.06rem + 0.34vw, 1.35rem);
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Maße */
  --container: 1240px;
  --measure: 68ch;
  --header-h: 68px;
  --space: clamp(1.5rem, 1rem + 2vw, 3.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.25s;
}

[data-theme="dark"] {
  color-scheme: dark;

  --brand-500: #3ec1f0;
  --brand-600: #6ed0f5;
  --brand-700: #9adef8;
  --brand-50: #0d2430;
  --brand-100: #103446;

  --accent-500: #52cf74;
  --accent-600: #7ade95;
  --accent-50: #0e2a1a;
  --accent-100: #113a24;

  --bg: #0a1119;
  --bg-subtle: #0e1721;
  --bg-sunken: #0b131b;
  --surface: #131f2a;
  --surface-2: #172531;
  --text: #e8f0f7;
  --text-muted: #9fb3c4;
  --text-faint: #7b90a2;
  --border: #21303d;
  --border-strong: #2e4152;

  --header-bg: rgba(10, 17, 25, 0.82);
  --hero-bg: linear-gradient(160deg, #0d1b26 0%, #0d1f1c 55%, #0a1119 100%);
  --hero-glow-a: rgba(62, 193, 240, 0.14);
  --hero-glow-b: rgba(82, 207, 116, 0.12);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow:
    0 4px 14px -4px rgba(0, 0, 0, 0.55), 0 16px 34px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg:
    0 12px 28px -10px rgba(0, 0, 0, 0.6), 0 34px 64px -24px rgba(0, 0, 0, 0.7);
  --ring: 0 0 0 3px rgba(62, 193, 240, 0.4);
}

/* ---------- 2. Reset & Basis ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-xs);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 700;
  text-wrap: balance;
  color: var(--text);
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.03em;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}

p {
  text-wrap: pretty;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

::selection {
  background: var(--brand-100);
  color: var(--text);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 3rem, var(--container));
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  transform: translateY(-160%);
  background: var(--brand-600);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  text-decoration: none;
  color: #fff;
}

/* ---------- 3. Scroll-Fortschritt ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1200;
  pointer-events: none;
  background: transparent;
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500) 85%);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: width 0.1s linear;
}

/* ---------- 4. Header & Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  overflow: visible;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* Der Blur sitzt bewusst auf einem Pseudo-Element: `backdrop-filter` auf dem
   Header selbst würde ihn zum Containing Block für das fixed positionierte
   Mobile-Drawer machen und dessen Höhe auf die Header-Höhe begrenzen. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  pointer-events: none;
  transition: background-color var(--dur) var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  position: relative;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 1.02rem;
}

.brand-text b {
  font-weight: 700;
  color: var(--brand-600);
}

.brand-text span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-600);
}

.site-header .brand {
  z-index: 1001;
}

.primary-nav {
  margin-inline-start: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.primary-nav a {
  display: block;
  position: relative;
  padding: 0.5rem 0.72rem;
  border-radius: var(--radius-sm);
  font-size: 0.945rem;
  font-weight: 550;
  color: var(--text-muted);
  white-space: nowrap;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.primary-nav a:hover {
  color: var(--text);
  background: var(--bg-sunken);
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  color: var(--brand-600);
  background: var(--brand-50);
  font-weight: 650;
}

[data-theme="dark"] .primary-nav a:hover {
  color: var(--text);
  background: rgba(62, 193, 240, 0.1);
}

[data-theme="dark"] .primary-nav a[aria-current="page"] {
  color: #dff6ff;
  background: rgba(62, 193, 240, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  /* über dem Drawer, damit der Schließen-Button erreichbar bleibt */
  position: relative;
  z-index: 1001;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.icon-button:hover {
  color: var(--brand-600);
  border-color: var(--brand-200);
  background: var(--brand-50);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
}

.nav-toggle .bars {
  position: relative;
  width: 19px;
  height: 13px;
}

.nav-toggle .bars span {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.nav-toggle .bars span:nth-child(1) {
  top: 0;
}
.nav-toggle .bars span:nth-child(2) {
  top: 50%;
  margin-top: -1px;
}
.nav-toggle .bars span:nth-child(3) {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 998;
  background: rgba(9, 18, 26, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1100px) {
  .header-actions {
    margin-inline-start: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(84vw, 340px);
    z-index: 999;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.25rem 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    visibility: hidden;
    transition:
      transform 0.32s var(--ease),
      visibility 0.32s var(--ease);
  }

  body.nav-open .primary-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .primary-nav a {
    padding: 0.85rem 1rem;
    font-size: 1.02rem;
    border-radius: var(--radius);
  }

  .primary-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--brand-500);
  }

  [data-theme="dark"] .primary-nav {
    background: var(--surface);
    border-color: var(--border-strong);
  }
}

@media (max-width: 560px) {
  .header-bar {
    gap: 0.65rem;
  }

  .brand {
    min-width: 0;
    gap: 0.55rem;
  }

  .brand-logo {
    height: 30px;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .brand-text span {
    font-size: 0.68rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 370px) {
  .brand-text {
    display: none;
  }
}

/* ---------- 5. Hero / Seitenkopf ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
}

.page-hero::before {
  width: 42rem;
  height: 42rem;
  top: -60%;
  right: -12%;
  background: var(--hero-glow-a);
}

.page-hero::after {
  width: 32rem;
  height: 32rem;
  bottom: -70%;
  left: -8%;
  background: var(--hero-glow-b);
}

.page-hero.is-home {
  padding-block: clamp(3rem, 1.8rem + 5vw, 6rem);
}

.hero-inner {
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.34rem 0.85rem 0.34rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-100);
}

.hero-lede {
  margin-top: 1rem;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  list-style: none;
  margin-top: 2.6rem;
  max-width: 46rem;
}

.hero-stats li {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.stat-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--brand-600);
  line-height: 1.15;
}

.stat-label {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- 6. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(0, 134, 185, 0.55);
}

.btn-primary:hover {
  background: var(--brand-700);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 134, 185, 0.6);
}

[data-theme="dark"] .btn-primary {
  color: #06212e;
  box-shadow: none;
}

[data-theme="dark"] .btn-primary:hover {
  color: #06212e;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
  background: var(--brand-50);
}

/* ---------- 7. Layout ---------- */

.page-main {
  flex: 1 0 auto;
  padding-block: var(--space);
}

.layout {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}

.content {
  min-width: 0;
}

/* ---------- 8. Prose / Inhalt ---------- */

.content h1 {
  margin-bottom: 1rem;
}

.content > .content-fragment > .entry > h1:first-child {
  /* Titel steht im Seitenkopf — Dublette im Fließtext unterdrücken */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.entry > h2,
.content h2 {
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
  padding-top: 0.2rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.entry > h2::after,
.content > h2::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
}

.entry h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.entry p,
.content > p {
  max-width: var(--measure);
  margin-bottom: 1.15rem;
  color: var(--text-muted);
}

.entry p strong,
.content p strong {
  color: var(--text);
  font-weight: 650;
}

.entry a,
.content a {
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--brand-200);
  text-decoration-thickness: 1.5px;
}

.entry a:hover,
.content a:hover {
  text-decoration-color: currentColor;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 58ch;
}

.entry > .lede:first-of-type {
  margin-bottom: 1.6rem;
}

.meta {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 1.6rem;
}

/* Listen */

.entry ul,
.entry ol,
.content ul,
.content ol {
  max-width: var(--measure);
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.entry ol,
.content ol {
  counter-reset: li;
}

.entry li,
.content li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.entry ul > li::before,
.content ul > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-400);
}

.entry ol > li::before,
.content ol > li::before {
  counter-increment: li;
  content: counter(li);
  position: absolute;
  left: 0;
  top: 0.12em;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 0.78rem;
  font-weight: 700;
}

.check-list > li::before {
  content: "" !important;
  left: 0 !important;
  top: 0.38em !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  border-radius: 50% !important;
  background: var(--accent-50) !important;
}

.check-list > li::after {
  content: "";
  position: absolute;
  left: 0.37rem;
  top: 0.75em;
  width: 0.42rem;
  height: 0.22rem;
  border-left: 2px solid var(--accent-500);
  border-bottom: 2px solid var(--accent-500);
  transform: rotate(-45deg);
}

.link-list > li {
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.link-list > li::before {
  display: none;
}

.link-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.link-list > li:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.link-label {
  flex: 1 1 14rem;
  font-size: var(--fs-sm);
  color: var(--text);
  font-weight: 550;
}

@media (max-width: 720px) {
  .link-list > li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 1rem;
  }

  .link-label {
    flex: none;
    width: 100%;
  }

  .link-list > li a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.source-list > li {
  padding-left: 1.9rem;
  margin-bottom: 1rem;
}

.source-list > li::before {
  top: 0.55em;
}

/* Karten & Boxen */

.card {
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card h2::after {
  display: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
  max-width: 100%;
}

.card-grid > * {
  margin-bottom: 0;
}

.contact-card {
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-style: normal;
  line-height: 1.65;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}

.contact-card strong {
  display: inline-block;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.legal-list {
  max-width: var(--measure);
  margin-bottom: 1.4rem;
}

.legal-list dt {
  margin-top: 1rem;
  font-weight: 650;
  color: var(--text);
}

.legal-list dd {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
}

.entry img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.entry img.border {
  border: 1px solid var(--border);
}

.section-highlight,
.accent-link {
  color: var(--brand-600);
  font-weight: 650;
}

/* ---------- 9. FAQ ---------- */

.faq-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.faq-heading {
  margin-bottom: 1.5rem;
}

.faq-heading::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
}

.faq-box {
  display: grid;
  gap: 0.7rem;
  max-width: var(--measure);
}

.qa-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.qa-item:hover {
  border-color: var(--brand-200);
}

.qa-item[open] {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.qa-question {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.qa-question::-webkit-details-marker {
  display: none;
}

.qa-icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: var(--brand-50);
  font-size: 0;
}

.qa-icon::before,
.qa-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.68rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-600);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease);
}

.qa-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.qa-item[open] .qa-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.qa-answer {
  margin: 0 1.25rem 1.15rem 3.5rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: none;
}

@media (max-width: 520px) {
  .qa-answer {
    margin-left: 1.25rem;
  }
}

/* ---------- 10. Sidebar ---------- */

.sidebar {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.widget {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.widget-promo {
  background: linear-gradient(170deg, var(--accent-50), var(--surface) 70%);
  border-color: var(--accent-100);
}

.sidebar-heading,
.rss-heading {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sidebar-heading::before,
.rss-heading::before {
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: var(--radius-full);
  background: linear-gradient(var(--brand-500), var(--accent-500));
}

.sidebar-promo-text {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.widget-promo > .sidebar-promo-text:last-child {
  text-align: center;
}

.sidebar-promo-text a {
  font-weight: 600;
}

.promo-figure {
  display: block;
  margin-bottom: 1rem;
}

.promo-figure a {
  display: block;
  text-align: center;
}

.promo-figure img {
  width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  object-fit: cover;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.promo-figure:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.promo-figure figcaption {
  margin-top: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand-600);
  text-align: center;
}

.promo-figure:hover figcaption {
  text-decoration: underline;
}

@media (max-width: 1023px) {
  .widget-promo {
    padding-inline: clamp(1rem, 4vw, 1.4rem);
  }
}

/* RSS */

.rss-container {
  display: grid;
  gap: 0.8rem;
}

.rss-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.rss-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.rss-card-title {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.rss-date {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}

.rss-description {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.rss-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.rss-link::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}

.rss-link:hover::after {
  transform: translateX(3px);
}

.rss-error,
.rss-loading {
  font-size: var(--fs-sm);
  color: var(--text-faint);
}

.rss-skeleton {
  height: 4.5rem;
  border-radius: var(--radius);
  background: linear-gradient(
    100deg,
    var(--bg-sunken) 30%,
    var(--surface-2) 50%,
    var(--bg-sunken) 70%
  );
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -150% 0;
  }
}

/* ---------- 11. Footer ---------- */

.site-footer {
  margin-top: auto;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-about p {
  margin-top: 0.9rem;
  max-width: 40ch;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .site-footer .brand {
    display: none;
  }

  .footer-about p {
    margin-top: 0;
  }
}

.footer-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--brand-600);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

/* ---------- 12. Floating Controls ---------- */

.floating-controls {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.75rem);
  bottom: clamp(0.9rem, 2vw, 1.75rem);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.05rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fab:hover {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
}

[data-theme="dark"] .fab:hover {
  color: #06212e;
}

.fab svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fab-round {
  width: 46px;
  height: 46px;
  padding: 0;
  justify-content: center;
}

.fab.is-hidden {
  display: none;
}

@media (max-width: 560px) {
  .fab-label {
    display: none;
  }

  .fab-pdf {
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
  }
}

/* ---------- 13. Reveal-Animationen ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 14. Print / PDF-Export ---------- */

.is-exporting .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.pdf-appendix {
  margin-bottom: 1.25rem;
}

.pdf-appendix-text {
  color: var(--brand-600);
  font-size: var(--fs-sm);
}

.pdf-export-frame {
  position: absolute;
  top: 0;
  left: -200vw;
  z-index: -1;
  width: 660px;
  max-width: 660px;
  min-height: 1px;
  overflow: hidden;
  pointer-events: none;
  background: #fff;
  border: 0;
}

.pdf-export-source {
  --bg: #fff;
  --bg-subtle: #fff;
  --bg-sunken: #f3f7fa;
  --surface: #fff;
  --surface-2: #f8fbfd;
  --text: #0f1c26;
  --text-muted: #34495a;
  --text-faint: #687d8e;
  --border: #dbe7ef;
  --border-strong: #c4d5e1;
  --brand-50: #eef9fe;
  --brand-100: #d3eefb;
  --brand-200: #a7ddf6;
  --brand-500: #00a5df;
  --brand-600: #0086b9;
  --brand-700: #026b93;
  --accent-50: #edfaf1;
  --accent-100: #d3f2dc;
  --accent-500: #34b855;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: none;

  width: 660px;
  max-width: none;
  padding: 0 34px 5rem;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.58;
}

.pdf-export-source .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.pdf-export-source.content > .content-fragment > .entry > h1:first-child {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  white-space: normal;
}

.pdf-export-source .entry p,
.pdf-export-source.content > p,
.pdf-export-source .entry ul,
.pdf-export-source .entry ol,
.pdf-export-source.content ul,
.pdf-export-source.content ol {
  max-width: none;
}

.pdf-export-source h1,
.pdf-export-source h2,
.pdf-export-source h3,
.pdf-export-source .qa-question {
  break-after: avoid;
  page-break-after: avoid;
}

.pdf-export-source p,
.pdf-export-source li,
.pdf-export-source .card,
.pdf-export-source .contact-card,
.pdf-export-source .link-list > li,
.pdf-export-source .source-list > li,
.pdf-export-source .qa-item {
  break-inside: avoid;
  page-break-inside: avoid;
}

.pdf-export-source .pdf-page-break {
  display: block;
  height: 0;
  break-before: page;
  page-break-before: always;
}

.pdf-export-source .faq-section {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
}

.pdf-export-source .faq-box {
  max-width: none;
}

.pdf-export-source .qa-item {
  margin-bottom: 0.75rem;
  border-color: var(--border);
  box-shadow: none;
}

.pdf-export-source .qa-question {
  padding: 0.85rem 1rem;
}

.pdf-export-source .pdf-qa-question {
  display: block;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.pdf-export-source .qa-icon {
  display: none;
}

.pdf-export-source .qa-answer {
  margin: 0 1rem 1rem;
  color: var(--text-muted);
}

@media print {
  .site-header,
  .floating-controls,
  .sidebar,
  .scroll-progress,
  .skip-link,
  .site-footer,
  .nav-backdrop {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page-hero {
    background: none;
    border: none;
    padding-block: 0 1rem;
  }

  .content > .content-fragment > .entry > h1:first-child {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
