@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/static/Inter_18pt-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/static/Inter_18pt-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/static/Inter_18pt-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/static/Inter_18pt-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/static/Inter_18pt-ExtraBold.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBM_Plex_Mono/IBMPlexMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/IBM_Plex_Mono/IBMPlexMono-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/IBM_Plex_Mono/IBMPlexMono-SemiBold.woff2") format("woff2");
}

:root {
  --blue: #0275ed;
  --blue-l: #459af0;
  --blue-d: #0260c4;
  --fs: "Inter", system-ui, -apple-system, sans-serif;
  --fm:
    "IBM Plex Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas,
    monospace;
  --max: 1180px;
  --r: 8px;
  --r-lg: 14px;
}
[data-theme="light"] {
  --blue-soft: #eaf4fe;
  --blue-soft2: #d3e8fd;
  --ink: #12233a;
  --ink2: #33475f;
  --mute: #6b829b;
  --mute2: #94a8bd;
  --line: #e0e9f2;
  --line2: #cdddf0;
  --bg: #ffffff;
  --off: #f5f9fd;
  --off2: #eef4fa;
  --card: #ffffff;
  --dark: #0a1f38;
  --dark-text: #ffffff;
  --hero-grad1: rgba(8, 26, 50, 0.93);
  --hero-grad2: rgba(8, 26, 50, 0.78);
  --hero-grad3: rgba(10, 31, 56, 0.45);
  --shadow: rgba(18, 35, 58, 0.1);
  --logo-invert: 0;

  /* Navigation (Header liegt auf var(--bg)) */
  --nav-fg: #33475f;
  --nav-fg-hover: var(--blue);
  --nav-accent: var(--blue);
}
[data-theme="dark"] {
  --blue-soft: rgba(2, 117, 237, 0.14);
  --blue-soft2: rgba(69, 154, 240, 0.28);
  --ink: #e8f1fb;
  --ink2: #b9d0e8;
  --mute: #8ba3bd;
  --mute2: #5f7a97;
  --line: rgba(69, 154, 240, 0.16);
  --line2: rgba(69, 154, 240, 0.26);
  --bg: #081625;
  --off: #0b1f33;
  --off2: #0e2740;
  --card: #0d2339;
  --dark: #040e1a;
  --dark-text: #e8f1fb;
  --hero-grad1: rgba(4, 14, 26, 0.94);
  --hero-grad2: rgba(4, 14, 26, 0.82);
  --hero-grad3: rgba(8, 22, 40, 0.55);
  --shadow: rgba(0, 0, 0, 0.4);
  --logo-invert: 0;

  /* Navigation (Header liegt auf var(--bg)) */
  --nav-fg: #b9d0e8;
  --nav-fg-hover: #ffffff;
  --nav-accent: var(--blue-l);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--fs);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.3s,
    color 0.3s;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.eyebrow {
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
h1,
h2,
h3 {
  color: var(--ink);
}
.sh {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 14px 0 14px;
}
.sl {
  font-size: 1.02rem;
  color: var(--ink2);
  line-height: 1.7;
  max-width: 540px;
}
.sec {
  padding-top: 33px;
  padding-right: 55px;
  padding-bottom: 65px;
  padding-left: 0px;
}
.sec-head {
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 25px;
  border-radius: var(--r);
  cursor: pointer;
  border: none;
  transition: 0.18s;
  font-family: var(--fs);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-d);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(2, 117, 237, 0.28);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line2);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}
.btn-ghost-w {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost-w:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}
.arr {
  transition: transform 0.18s;
}
.btn:hover .arr {
  transform: translateX(3px);
}

/* ------------------------------------------------------------
   Header - folgt dem aktiven Theme (hell: weiss, dunkel: navy)
   ------------------------------------------------------------ */
header,
header.scrolled,
header.solid {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  height: 88px;

  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 20px var(--shadow);

  color: var(--ink);
  backdrop-filter: none;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;

  height: 88px;
  gap: clamp(20px, 3vw, 44px);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img,
header.scrolled .brand img,
header.solid .brand img {
  display: block;
  width: auto;
  height: 52px;

  filter: none;
  transition: none;
}

[data-theme="dark"] header .brand img {
  filter: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;

  min-width: 0;
  gap: clamp(18px, 2vw, 28px);
}

.nav-link,
header.scrolled .nav-link,
header.solid .nav-link {
  position: relative;

  color: var(--nav-fg);

  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;

  transition: color 0.18s ease;
}

.nav-link:hover,
header.scrolled .nav-link:hover,
header.solid .nav-link:hover {
  color: var(--nav-fg-hover);
}

.nav-link::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -6px;

  width: 100%;
  height: 2px;

  border-radius: 2px;
  background: var(--nav-accent);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active,
header.scrolled .nav-link.active,
header.solid .nav-link.active {
  color: var(--nav-accent);
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 14px;
}

.nav-cta {
  padding: 10px 20px;
  border-radius: var(--r);

  background: var(--blue);
  color: #fff !important;

  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;

  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.nav-cta:hover {
  background: var(--blue-d);
  transform: translateY(-1px);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1.5px solid var(--line2);
  border-radius: 9px;

  background: transparent;
  color: var(--ink);

  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;

  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.theme-toggle svg {
  display: block;
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--off);
}

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  gap: 5px;

  border: 1.5px solid var(--line2);
  border-radius: 7px;

  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;

  width: 17px;
  height: 2px;

  border-radius: 2px;
  background: var(--ink);

  transition: 0.2s;
}

.page-hero {
  position: relative;
  padding-top: 0;
  overflow: hidden;
  background: var(--dark);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 58px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--dark), transparent);
  z-index: 1;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(69, 154, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 154, 240, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.3);
}
.page-hero .eyebrow {
  color: var(--blue-l);
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: #fff;
  margin: 12px 0 14px;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  line-height: 1.68;
}

footer {
  background: var(--dark);
  color: var(--dark-text);
  padding: 64px 0 28px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(69, 154, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 154, 240, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* ------------------------------------------------------------
   Footer-Grid: 3 reale Spalten, Kontakt mit Mindestbreite
   ------------------------------------------------------------ */
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr minmax(240px, 1.2fr);
  gap: 42px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin-bottom: 18px;
  opacity: 0.95;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.68;
  max-width: 260px;
}
.footer-col h4 {
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-l);
  margin-bottom: 16px;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 10px;
  transition: 0.18s;
}
.footer-col a:hover {
  color: #fff;
}

/* ------------------------------------------------------------
   Footer - Kontaktangaben (bereinigt, ehem. Doppel-Block)
   ------------------------------------------------------------ */
.footer-contact address {
  font-style: normal;
}

.footer-contact-address,
.footer-contact-list {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-contact-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  margin: 0 0 20px;
  font-style: normal;
}

.footer-contact-address strong,
.footer-contact-address span {
  display: block;

  margin: 0;

  font-size: inherit;
  line-height: inherit;
}

.footer-contact-address strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-contact-row {
  margin: 0;

  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.footer-contact-row a,
.footer-contact-row span {
  margin: 0;

  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.footer-contact-row a {
  display: inline;
}

.footer-contact-label {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.footer-contact-row-wide {
  display: block;
  margin-top: 8px;
}

.footer-contact-row-wide + .footer-contact-row-wide {
  margin-top: 0;
}

.footer-contact-row a:hover {
  color: #fff;
}

@media (max-width: 560px) {
  .footer-contact-address {
    margin-bottom: 22px;
  }

  .footer-contact-list {
    gap: 5px;
  }
}
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(69, 154, 240, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
/* ------------------------------------------------------------
   Footer - rechtliche Links und Cookie-Einstellungen
   ------------------------------------------------------------ */
.footer-bottom span,
.footer-bottom a,
.footer-bottom button {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--fs);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.footer-legal a,
.footer-cookie-button {
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-cookie-button {
  -webkit-appearance: none;
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--fs);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-cookie-button:hover {
  color: var(--blue-l);
  background: transparent;
}

.footer-cookie-button:active,
.footer-cookie-button:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.footer-legal a:focus-visible,
.footer-cookie-button:focus-visible {
  outline: 2px solid var(--blue-l);
  outline-offset: 4px;
  border-radius: 2px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(6, 18, 34, 0.8);
  backdrop-filter: blur(6px);
  padding: 40px 20px;
  overflow-y: auto;
}
.modal.show {
  display: block;
}
.modal-box {
  background: var(--bg);
  border-radius: var(--r-lg);
  max-width: 720px;
  margin: 0 auto;
  padding: 44px;
  position: relative;
  border: 1px solid var(--line);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line2);
  background: var(--off);
  border-radius: 9px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.modal-box h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.modal-box .modal-sub {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 24px;
}
.modal-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--ink);
}
.modal-box p,
.modal-box li {
  font-size: 0.92rem;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 10px;
}
.modal-box ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.modal-box .draft-note {
  background: var(--blue-soft);
  border: 1px solid var(--blue-soft2);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 0.84rem;
  color: var(--blue);
  margin-bottom: 24px;
}
.modal-box a {
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 980px) {
  .nav-menu {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    transform: translateY(-120%);
    transition: 0.3s;
    box-shadow: 0 16px 40px var(--shadow);
    z-index: 99;
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .nav-link {
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    color: var(--nav-fg);
    font-size: 0.96rem;
  }
  .nav-link:hover,
  .nav-link.active {
    color: var(--nav-accent);
  }
  .nav-cta {
    margin: 10px 28px;
    text-align: center;
  }
  .burger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-contact {
    grid-column: 1 / -1;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .cookie-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .modal-box {
    padding: 32px 24px;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 0.8, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 0.8, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-d1 {
  transition-delay: 0.08s;
}
.reveal-d2 {
  transition-delay: 0.16s;
}
.reveal-d3 {
  transition-delay: 0.24s;
}
.reveal-d4 {
  transition-delay: 0.32s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(6, 18, 34, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.show {
  display: flex;
}
.lb-img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
}
.lb-close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-nav:hover {
  background: rgba(2, 117, 237, 0.7);
}
.lb-prev {
  left: 24px;
}
.lb-next {
  right: 24px;
}

/* ---------- Cookie-Banner ---------- */
.cookie {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(6, 18, 34, 0.7);
  backdrop-filter: blur(5px);
  align-items: flex-end;
  justify-content: center;
}
.cookie.show {
  display: flex;
}
.cookie.center {
  align-items: center;
}
.cookie-box {
  background: var(--bg);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  max-width: 940px;
  width: 100%;
  margin: 0 18px;
  padding: 32px 36px 28px;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.35);
  max-height: 92vh;
  overflow-y: auto;
}
.cookie-box.dt {
  border-radius: var(--r-lg);
  margin: 18px auto;
  max-width: 720px;
}
.cookie-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.cookie-ic {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--blue-l));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.cookie-ic svg {
  width: 23px;
  height: 23px;
}
.cookie-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cookie-box p {
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.62;
  margin-bottom: 10px;
}
.cookie-box p a {
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}
.cookie-legal {
  background: var(--off2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 15px;
  font-size: 0.82rem;
  color: var(--ink2);
  line-height: 1.55;
  margin: 14px 0;
}
.cookie-legal strong {
  color: var(--ink);
}
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.c-btn {
  font-family: var(--fs);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--r);
  cursor: pointer;
  transition: 0.18s;
  border: none;
  text-align: center;
}
.c-btn-primary {
  background: var(--blue);
  color: #fff;
}
.c-btn-primary:hover {
  background: var(--blue-d);
}
.c-btn-sec {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--line2);
}
.c-btn-sec:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.c-btn-link {
  background: transparent;
  color: var(--ink2);
  border: 1.5px solid transparent;
}
.c-btn-link:hover {
  color: var(--blue);
  background: var(--off);
}
.cookie-fine {
  font-size: 0.74rem;
  color: var(--mute2);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.cookie-cat {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--off);
}
.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  gap: 14px;
}
.cat-name {
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.cat-req {
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 3px 8px;
  border-radius: 3px;
}
.cat-desc {
  font-size: 0.8rem;
  color: var(--mute);
  margin-top: 3px;
  line-height: 1.5;
}
.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-s {
  position: absolute;
  inset: 0;
  background: var(--line2);
  border-radius: 14px;
  transition: 0.25s;
  cursor: pointer;
}
.toggle-s::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.toggle input:checked + .toggle-s {
  background: var(--blue);
}
.toggle input:checked + .toggle-s::before {
  transform: translateX(20px);
}
.toggle.locked .toggle-s {
  background: var(--blue);
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-reopen {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 120;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--bg);
  color: var(--blue);
  cursor: pointer;
  box-shadow: 0 6px 20px var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.cookie-reopen.show {
  display: flex;
}
.cookie-reopen:hover {
  background: var(--blue);
  color: #fff;
  transform: scale(1.05);
}
.cookie-reopen svg {
  width: 22px;
  height: 22px;
}

/* ---------- Responsiv (gemeinsam) ---------- */

.reveal-d5 {
  transition-delay: 0.4s;
}

/* ---------- Aufforderungsband (alle Unterseiten) ---------- */
.cta-band {
  background: var(--blue);
  padding: 70px 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cta-band p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 460px;
  margin: 0 auto 28px;
}
.cta-band-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Intro-Bereich (Unterseiten) ---------- */
.intro {
  padding: 80px 0;
  background: var(--bg);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.intro-text p {
  font-size: 1.05rem;
  color: var(--ink2);
  line-height: 1.78;
  margin-bottom: 16px;
}
.intro-text p strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 980px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}
@media (max-width: 560px) {
  .cta-band-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- Lightbox: Bildunterschrift ---------- */
.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 90vw;
}
.lb-cap {
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

@media (max-width: 980px) {
  header,
  .nav {
    height: 68px;
  }
  .brand img,
  header.scrolled .brand img,
  header.solid .brand img {
    height: 40px;
  }
  .page-hero {
    padding-top: 0;
  }
  .nav-menu {
    top: 68px;
  }
}

/* ------------------------------------------------------------
   Zentrale Scroll-Sperre - ohne Positionssprung
   ------------------------------------------------------------ */
html.is-scroll-locked,
body.is-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* ------------------------------------------------------------
   Zurueck zum Seitenanfang
   ------------------------------------------------------------ */

.back-to-top {
  position: fixed;

  /*
   * Auf grossen Bildschirmen an der rechten Kante des .wrap-Bereichs.
   * Auf kleineren Bildschirmen mindestens 28 px vom Rand entfernt.
   */
  right: max(28px, calc((100vw - var(--max)) / 2 + 16px));
  bottom: 32px;

  width: 52px;
  height: 52px;
  z-index: 125;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;

  background: var(--blue);
  color: #fff;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(69, 154, 240, 0.14);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);

  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: var(--blue-d);
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--blue-l);
  outline-offset: 4px;
}

.back-to-top svg {
  display: block;
  width: 20px;
  height: 12px;
  fill: none;
  stroke: currentColor;
}

/* Waehrend Navigation, Cookie-Dialog, Rechtsmodal oder Lightbox gesperrt sind. */
html.is-scroll-locked .back-to-top,
body.is-scroll-locked .back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 560px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

/* ------------------------------------------------------------
   Standalone-Rechtsseiten (/impressum, /datenschutz)
   Typografie identisch zum Rechts-Modal (.modal-box)
   ------------------------------------------------------------ */
.legal-page {
  max-width: var(--max);
  margin: 0;
  padding: 0;
}

.legal-page > * {
  max-width: 760px;   /* Lesebreite, linksbündig an der wrap-Flucht */
}

.legal-page .modal-sub {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 24px;
}

.legal-page h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--ink);
}

.legal-page p,
.legal-page li {
  font-size: 0.92rem;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-page a {
  color: var(--blue);
  text-decoration: underline;
}

.legal-page address {
  font-style: normal;
}

@media (max-width: 560px) {
  .legal-page {
    padding: 36px 20px 64px;
  }
}