/*
 * Worlex Education — Stylesheet
 * ----------------------------------------------------------------
 * Kein externes CSS-Framework, sondern ein kleines, selbst gebautes,
 * responsives System mit klaren Bausteinen (Design-Tokens, Container,
 * Grid, Komponenten). Reines CSS, kein Build-Schritt nötig.
 *
 * Aufbau dieser Datei:
 *   1. Reset & Grundlagen
 *   2. Design-Tokens (Farben, Schrift)
 *   3. Layout-System (Container, responsives Grid)
 *   4. Typografie
 *   5. Komponenten (Buttons, Badges, Cards, Formulare …)
 *   6. Header / Navigation
 *   7. Hero
 *   8. Sections (Value Props, Method, About, Programs, Testimonials, FAQ, Contact)
 *   9. Footer
 *  10. Legal-Page (Impressum/Datenschutz)
 *  11. Responsive Breakpoints (mobile-first: Basis = Mobile, dann sm/lg)
 * ----------------------------------------------------------------
 */

/* ============ 1. Reset & Grundlagen ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Links im Fließtext (Absätze, Definitionslisten) und im Footer: bei
   Hover/Active dezent unterstrichen + Linkfarbe wechselt auf das
   Dunkelblau der Seite. Die Unterstreichung blendet sanft ein (Farbe
   der Linie startet transparent, kein Layout-Sprung beim Einblenden).
   Navigation, Buttons und Sprachschalter haben bewusst eigene
   Hover-Stile und sind hier ausgenommen. */
p a,
dd a,
.footer-list a {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}
p a:hover,
p a:active,
dd a:hover,
dd a:active,
.footer-list a:hover,
.footer-list a:active {
  color: var(--color-blue-700);
  text-decoration-color: currentColor;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
button {
  font-family: inherit;
}

/* ============ 2. Design-Tokens ============ */
:root {
  /* Neutrale Basis: kühles, helles Off-White, passend zu Blau */
  --color-cream: #f6f9fc;
  --color-cream-soft: #eaf1f7;
  --color-surface: #ffffff;
  --color-ink: #2b3440;
  --color-ink-soft: #5c6774;
  --color-border: #dbe4ec;

  /* Kontrastfarbe: Blau */
  --color-blue-50: #eef3f8;
  --color-blue-100: #dae6f1;
  --color-blue-300: #a7c3de;
  --color-blue-500: #4c74a6;
  --color-blue-600: #3c5d87;
  --color-blue-700: #2e4868;

  /* Sekundärakzente: Gold (Fibonacci) & Salbeigrün (natürlich) */
  --color-gold-100: #f4e9d2;
  --color-gold-400: #cfa75e;
  --color-gold-600: #a8823f;

  --color-sage-100: #e7ede1;
  --color-sage-400: #8fa77f;
  --color-sage-600: #6d8560;

  /* Standard-/Systemschrift statt Webfont */
  --font-sans:
    Arial, Helvetica, "Liberation Sans", "Nimbus Sans", "Segoe UI", Roboto,
    sans-serif;

  --container-width: 72rem; /* 1152px, entspricht max-w-6xl */
  --container-width-narrow: 48rem; /* entspricht max-w-3xl */
  --radius-lg: 1rem;
  --radius-full: 999px;
}

body {
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-blue-300);
  color: var(--color-ink);
}

/* ============ 3. Layout-System ============ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-width-narrow);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Responsives Grid: mobil immer 1 Spalte, ab sm/lg mehr Spalten.
   Damit lässt sich jedes Layout dieser Seite abbilden. */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .sm\:grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .sm\:grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .lg\:grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.section {
  padding-block: 4rem;
  /* Jede Section ist bewusst genau viewport-breit und nie breiter.
     Reveal-Elemente (siehe js/scroll-animate.js) verschieben sich vor
     dem Einblenden per transform: translateX() – dieses Clipping ist
     hier, direkt am Ursprung des Effekts, korrekt platziert (nicht
     global auf html/body), damit nur der beabsichtigte Animations-
     Überstand gefasst wird und kein anderer Overflow versehentlich
     mitversteckt wird. */
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .section {
    padding-block: 6rem;
  }
}

.section-alt {
  background: var(--color-cream-soft);
}

.section-surface {
  background: var(--color-surface);
}

.text-center {
  text-align: center;
}

/* Abstands-Utilities (vermeiden Inline-Styles in den HTML-Seiten) */
.mt-1 {
  margin-top: 0.75rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.25rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 2rem;
}
.mt-6 {
  margin-top: 2.5rem;
}
.max-w-sm {
  max-width: 28rem;
}
.max-w-md {
  max-width: 34rem;
}
.max-w-lg {
  max-width: 42rem;
}
.mx-auto {
  margin-inline: auto;
}

/* ============ 4. Typografie ============ */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-blue-600);
}

.eyebrow-badge {
  display: inline-block;
  border-radius: var(--radius-full);
  background: var(--color-blue-100);
  color: var(--color-blue-700);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.9rem;
}

.h1 {
  font-size: 1.875rem;
}
.h2 {
  font-size: 1.5rem;
}
@media (min-width: 640px) {
  .h1 {
    font-size: 2.25rem;
  }
  .h2 {
    font-size: 1.875rem;
  }
}
@media (min-width: 768px) {
  .h1 {
    font-size: 3rem;
  }
}

.lede {
  color: var(--color-ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .lede {
    font-size: 1.125rem;
  }
}

.text-soft {
  color: var(--color-ink-soft);
}
.text-small {
  font-size: 0.875rem;
}
.text-xs {
  font-size: 0.75rem;
}

/* ============ 5. Komponenten ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--color-blue-500);
  color: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.btn-primary:hover {
  background: var(--color-blue-600);
}

.btn-outline {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-ink);
}
.btn-outline:hover {
  border-color: var(--color-blue-300);
}

.btn-block {
  width: 100%;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1.5rem;
}

.card-highlight {
  border-color: var(--color-blue-300);
  box-shadow: 0 4px 16px rgb(44 88 135 / 0.08);
}

.number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 999px;
  background: var(--color-blue-100);
  color: var(--color-blue-700);
  font-size: 0.875rem;
  font-weight: 600;
}

.dot {
  display: inline-block;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 999px;
  background: var(--color-blue-500);
  flex: none;
  margin-top: 0.4rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-ink);
  margin-bottom: 0.75rem;
}

/* Formular */
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink);
}
.field input,
.field textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-cream);
  padding: 0.65rem 0.875rem;
  font-size: 0.875rem;
  color: var(--color-ink);
  outline: none;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-blue-500);
}
.field textarea {
  resize: vertical;
}

/* FAQ-Akkordeon: natives <details>/<summary>, kein JS nötig */
.faq-item {
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.faq-item[open] {
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--color-ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 999px;
  background: var(--color-blue-100);
  color: var(--color-blue-700);
  transition: transform 0.2s ease;
}
.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}
.faq-item p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

/* ============ 5b. Scroll-Reveal-Animation ============
   Siehe js/scroll-animate.js für Konfiguration/Aktivierung.
   Der versteckte Startzustand gilt NUR, wenn JS aktiv ist
   (Klasse "has-reveal-js" auf <html>) — ohne JavaScript bleiben
   Reveal-Elemente immer ganz normal sichtbar. */
.has-reveal-js .reveal-left,
.has-reveal-js .reveal-right,
.has-reveal-js .reveal-bottom {
  opacity: 0;
  transition:
    transform var(--reveal-duration, 700ms) var(--reveal-easing, cubic-bezier(0.16, 1, 0.3, 1))
      var(--reveal-delay, 0ms),
    opacity var(--reveal-duration, 700ms) ease-out var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.has-reveal-js .reveal-left {
  transform: translateX(calc(-1 * var(--reveal-distance, 60px)));
}
.has-reveal-js .reveal-right {
  transform: translateX(var(--reveal-distance, 60px));
}
.has-reveal-js .reveal-bottom {
  transform: translateY(var(--reveal-distance, 60px));
}
.has-reveal-js .reveal-left.reveal-visible,
.has-reveal-js .reveal-right.reveal-visible,
.has-reveal-js .reveal-bottom.reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .has-reveal-js .reveal-left,
  .has-reveal-js .reveal-right,
  .has-reveal-js .reveal-bottom {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* reveal-fade: dezentes, "modernes" Einblenden für Elemente, die schon
   beim Page-Load sichtbar sind (z. B. Hero) — ein Slide-in fällt dort
   kaum auf, weil nichts erst "reingescrollt" wird. Stattdessen: sanftes
   Weichzeichnen→Scharfstellen + minimales Hochgleiten + leichtes
   Einskalieren. In der Regel pro Element mit data-reveal-delay
   gestaffelt einsetzen (Badge → Headline → Text → Buttons → …). */
.has-reveal-js .reveal-fade {
  opacity: 0;
  filter: blur(var(--reveal-blur, 10px));
  transform: translateY(var(--reveal-distance, 14px)) scale(0.98);
  transition:
    opacity var(--reveal-duration, 800ms) var(--reveal-easing, cubic-bezier(0.16, 1, 0.3, 1))
      var(--reveal-delay, 0ms),
    filter var(--reveal-duration, 800ms) var(--reveal-easing, cubic-bezier(0.16, 1, 0.3, 1))
      var(--reveal-delay, 0ms),
    transform var(--reveal-duration, 800ms) var(--reveal-easing, cubic-bezier(0.16, 1, 0.3, 1))
      var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}
.has-reveal-js .reveal-fade.reveal-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .has-reveal-js .reveal-fade {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============ 6. Header / Navigation ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: rgb(246 249 252 / 0.9);
  /* -webkit-Präfix für Safari (unpräfixiert erst seit Safari 15.4
     zuverlässig unterstützt); ohne Präfix bleibt der Header einfach
     ohne Weichzeichner-Effekt lesbar, kein Fehler. */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-ink);
}
.brand-mark {
  display: block;
  flex-shrink: 0;
  height: 2rem;
  width: 2rem;
  border-radius: 999px;
  background: var(--color-blue-700);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover {
  color: var(--color-blue-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0.15rem;
  font-size: 0.875rem;
}
.lang-switch a {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-ink-soft);
  transition: color 0.15s ease;
}
.lang-switch a:hover {
  color: var(--color-ink);
}
.lang-switch a[aria-current="page"] {
  background: var(--color-blue-500);
  color: #fff;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
}
.menu-toggle svg {
  height: 1.25rem;
  width: 1.25rem;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  overflow: hidden;
  max-height: 0;
  border-top: 0 solid var(--color-border);
  background: var(--color-cream);
  transition: max-height 0.3s ease;
}
.mobile-nav.is-open {
  max-height: 28rem;
  border-top-width: 1px;
}
.mobile-nav-inner {
  padding-block: 0.75rem;
  padding-inline: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav-inner a.nav-link {
  border-radius: 0.5rem;
  padding: 0.6rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-ink);
}
.mobile-nav-inner a.nav-link:hover {
  background: var(--color-cream-soft);
}
.mobile-nav-inner .btn {
  margin-top: 0.5rem;
}

/* ============ 7. Hero ============ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(
    to bottom,
    var(--color-blue-50),
    var(--color-cream) 55%,
    var(--color-cream)
  );
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(1px) grayscale(15%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse 60% 65% at 50% 40%,
    black 0%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 60% 65% at 50% 40%,
    black 0%,
    transparent 78%
  );
}

.hero-inner {
  position: relative;
  max-width: var(--container-width-narrow);
  margin-inline: auto;
  padding-block: 4rem;
  padding-inline: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-inner {
    padding-block: 6rem;
  }
}

.hero-inner .h1 {
  margin-top: 1.25rem;
  max-width: 42rem;
  margin-inline: auto;
}

.hero-inner .lede {
  margin-top: 1.25rem;
  max-width: 34rem;
  margin-inline: auto;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-disclaimer {
  margin-top: 1.5rem;
  max-width: 28rem;
  margin-inline: auto;
  font-size: 0.75rem;
  color: var(--color-ink-soft);
  line-height: 1.6;
}

/* ============ 8. Sections ============ */
.value-props .grid {
  margin-top: 2.5rem;
}
.value-props .kicker-block {
  max-width: 42rem;
}
.value-props .closing {
  margin-top: 2.5rem;
  border-left: 2px solid var(--color-gold-400);
  padding-left: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-ink);
}

.method .kicker-block {
  max-width: 44rem;
}
.method ol.grid {
  margin-top: 2.5rem;
}
.method .step-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold-600);
}

.about-layout {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 4rem;
  }
}
.about-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 1024px) {
  .about-portrait {
    align-items: flex-start;
    text-align: left;
  }
}
.portrait-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10rem;
  width: 10rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-blue-50);
  color: var(--color-blue-600);
  font-size: 0.875rem;
  font-weight: 500;
}
.about-credentials {
  margin-top: 1.5rem;
}
.about-credentials li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}

.programs .kicker-block {
  max-width: 42rem;
}
.programs .grid {
  margin-top: 2.5rem;
}
.program-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}
.program-card h3 {
  font-size: 1.125rem;
}
.program-card .tagline {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}
.program-card .feature-list {
  margin-top: 1.5rem;
  flex: 1;
}
.program-card .btn {
  margin-top: 2rem;
}
.programs .note {
  margin-top: 2rem;
}

.testimonials .kicker-block {
  max-width: 42rem;
}
.testimonials .grid {
  margin-top: 2.5rem;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--color-cream);
}
.testimonial-card blockquote {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-ink);
}
.testimonial-card figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
}
.testimonial-card figcaption .name {
  display: block;
  font-weight: 600;
  color: var(--color-ink);
}

.faq-section .container-narrow > .text-center {
  margin-bottom: 2.5rem;
}
.faq-list {
  margin-top: 2.5rem;
}

.contact-layout {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}
.contact-info dl {
  margin-top: 2rem;
}
.contact-info .info-block {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.contact-info dt {
  font-weight: 600;
  color: var(--color-ink);
}
.contact-info dd {
  color: var(--color-ink-soft);
}
.contact-form-card {
  background: var(--color-cream-soft);
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .contact-form-card {
    padding: 2rem;
  }
}
.contact-form-card .form-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-ink-soft);
}

/* ============ 9. Footer ============ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-cream-soft);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
/*
 * The footer has 3 blocks (brand, nav, contact+legal). Fitting 3 items
 * into an implicit 2-column grid leaves one cell empty and the third
 * block dangling alone in the next row - explicit areas avoid that at
 * every breakpoint instead of relying on grid auto-placement.
 */
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "brand brand"
      "nav contact";
  }
  .footer-brand {
    grid-area: brand;
  }
  .footer-nav {
    grid-area: nav;
  }
  .footer-contact {
    grid-area: contact;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas: "brand nav contact";
  }
}
.footer-brand .brand {
  margin-bottom: 0.75rem;
}
.footer-brand p {
  max-width: 24rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}
.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
}
.footer-list {
  margin-top: 0.75rem;
}
.footer-list li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}
.footer-legal-heading {
  margin-top: 1.5rem;
}
.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-ink-soft);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-bottom p:last-child {
    max-width: 40rem;
    text-align: right;
  }
}

/* ============ 10. Legal-Page ============ */
.legal-page {
  max-width: var(--container-width-narrow);
  margin-inline: auto;
  padding-block: 4rem;
  padding-inline: 1rem;
}
@media (min-width: 768px) {
  .legal-page {
    padding-block: 6rem;
  }
}
.legal-intro {
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(207 167 94 / 0.5);
  background: var(--color-gold-100);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-ink);
}
.legal-sections {
  margin-top: 2.5rem;
}
.legal-sections > div {
  margin-bottom: 2rem;
}
.legal-sections h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
}
.legal-sections p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
}
/*
 * Bare h1/h2/p/ul/ol as DIRECT children of .legal-page, with no extra
 * classes: this is what an Impressum-/Datenschutz-Generator export
 * looks like, so it can be pasted in as-is and match the site's
 * styling without any manual class/markup adjustments. Uses `>` (not a
 * plain descendant selector) so it never affects legal pages that
 * still use the older .legal-intro/.legal-sections wrapper structure.
 */
.legal-page > * + * {
  margin-top: 1rem;
}
.legal-page > h1 {
  font-size: 1.5rem;
}
@media (min-width: 640px) {
  .legal-page > h1 {
    font-size: 1.875rem;
  }
}
.legal-page > h2 {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
}
.legal-page > h3 {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink);
}
.legal-page > h4 {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
}
.legal-page > p,
.legal-page li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
}
.legal-page > ul,
.legal-page > ol {
  padding-left: 1.25rem;
}
.legal-page > ul {
  list-style: disc;
}
.legal-page > ol {
  list-style: decimal;
}
.legal-page li + li {
  margin-top: 0.25rem;
}
.legal-back {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-blue-600);
}
.legal-back:hover {
  color: var(--color-blue-700);
}

/* ============ 11. Sichtbarkeits-Utilities (bewusst ganz am Ende) ============
   Müssen als letztes Regelwerk in der Datei stehen: bei gleicher
   Spezifität (eine Klasse) gewinnt sonst z. B. ".header-actions{display:
   flex}" gegen ".show-desktop{display:none}", nur weil es weiter oben
   steht. So am Ende platziert setzen sich diese Regeln immer durch. */
.show-mobile {
  display: flex;
}
.show-desktop {
  display: none;
}
@media (min-width: 1024px) {
  .show-mobile {
    display: none;
  }
  .show-desktop {
    display: flex;
  }
}

/* ============ 12. Scroll-to-Top-Button ============
   Fest am rechten Rand, erst sichtbar (eingeblendet) nach etwas
   Scrollen – siehe js/main.js für die Sichtbarkeits-Logik. */
.scroll-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border: none;
  border-radius: 999px;
  background: var(--color-blue-500);
  color: #fff;
  box-shadow: 0 4px 14px rgb(44 88 135 / 0.28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background-color 0.15s ease;
}
.scroll-top-btn:hover {
  background: var(--color-blue-600);
}
.scroll-top-btn svg {
  height: 1.35rem;
  width: 1.35rem;
}
.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (min-width: 640px) {
  .scroll-top-btn {
    right: 1.5rem;
    bottom: 1.5rem;
    height: 3rem;
    width: 3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn {
    transition: opacity 0.3s ease;
    transform: none;
  }
}
