@font-face {
  font-family: 'Open Sans Custom';
  src: url('../../assets/fonts/opensans-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans Custom';
  src: url('../../assets/fonts/opensans-bold-webfont.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: rgb(var(--color-bg));
  color: rgb(var(--color-text));
  transition:
    background-color var(--motion-medium) var(--ease-standard),
    color var(--motion-medium) var(--ease-standard);
}

html.is-theme-transitioning,
body.is-theme-transitioning {
  cursor: progress;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 90;
  background:
    radial-gradient(circle at 18% 18%, rgb(var(--color-accent-soft) / 0.10), transparent 22%),
    radial-gradient(circle at 82% 18%, rgb(var(--color-accent-strong) / 0.10), transparent 24%),
    linear-gradient(180deg, rgb(var(--color-bg-elevated) / 0.10), rgb(var(--color-bg) / 0.18));
  transition: opacity var(--motion-soft) var(--ease-soft);
}

body.is-theme-transitioning::before {
  opacity: 1;
}

body::selection {
  background: rgb(var(--color-accent) / 0.32);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* FONT1 - Space Grotesk für Überschriften und Interface */
.stage-title,
.hero-title,
.card-item__title,
.site-nav__link,
.theme-chip,
.button,
.stage-label,
.card-item__meta {
  font-family: var(--font-display);
}

.site-nav__link,
.theme-chip,
.button {
  font-family: var(--font-interface);
}


.site-header,
.site-header__progress,
.site-header__progress-bar,
.site-nav__link,
.theme-panel,
.theme-chip,
.button,
.stage-backdrop,
.stage-atmosphere,
.stage-orb,
.stage-beam,
.stage-marker,
.stage-highlight,
.stage-highlight__item,
.hero-media-surface,
.editorial-media-surface,
.card-item,
.compare-item,
.process-step,
.process-handoff,
.faq-item,
.cta-panel,
.cta-readiness,
.surface-panel{
  transition:
    background-color var(--motion-medium) var(--ease-standard),
    background-image var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    color var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    opacity var(--motion-soft) var(--ease-standard),
    filter var(--motion-medium) var(--ease-standard),
    transform var(--motion-soft) var(--ease-standard);
}

.hero-media-surface::before,
.hero-media-surface::after,
.editorial-media-surface::before,
.editorial-media-surface::after{
  transition:
    opacity var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    background-image var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard);
}

.hero-media-surface img,
.editorial-media-surface img{
  transition:
    filter var(--motion-medium) var(--ease-standard),
    opacity var(--motion-medium) var(--ease-standard),
    transform var(--motion-medium) var(--ease-standard);
}
@media (prefers-reduced-motion: reduce) {
  body::before,
  .site-header,
  .site-header__progress,
  .site-header__progress-bar,
  .site-nav__link,
  .theme-panel,
  .theme-chip,
  .button,
  .stage-backdrop,
  .stage-atmosphere,
  .stage-orb,
  .stage-beam,
  .stage-marker,
  .stage-highlight,
  .stage-highlight__item,
  .hero-media-surface,
  .editorial-media-surface,
  .card-item,
  .compare-item,
  .process-step,
  .process-handoff,
  .faq-item,
  .cta-panel,
  .cta-readiness,
  .surface-panel,
  .hero-media-surface::before,
  .hero-media-surface::after,
  .editorial-media-surface::before,
  .editorial-media-surface::after,
  .hero-media-surface img,
  .editorial-media-surface img{
    transition: none !important;
  }
}


.stage-media-surface,
.hero-media-surface,
.editorial-media-surface{
  position: relative;
  box-shadow: var(--shadow-medium);
}

.stage-media-surface::before,
.hero-media-surface::before,
.editorial-media-surface::before{
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgb(var(--color-line) / calc(var(--alpha-line) + 0.03));
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.stage-media-surface::after,
.hero-media-surface::after,
.editorial-media-surface::after{
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.20)),
    radial-gradient(circle at 14% 14%, rgb(var(--color-accent-strong) / 0.10), transparent 28%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.56;
  z-index: 1;
}

.hero-media-surface img,
.editorial-media-surface img{
  filter: saturate(0.96) contrast(1.04);
}

.site-main {
  display: block;
  padding-top: clamp(0.78rem, 1.55vw, 1.35rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgb(var(--color-bg-elevated) / 0.72);
  border-bottom: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
  transition:
    background-color var(--motion-soft) var(--ease-standard),
    border-color var(--motion-soft) var(--ease-standard),
    box-shadow var(--motion-soft) var(--ease-standard),
    transform var(--motion-soft) var(--ease-standard);
}

.site-header.is-scrolled {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.site-header__progress {
  position: relative;
  height: 2px;
  background: rgb(var(--color-line) / 0.04);
  overflow: clip;
}

.site-header__progress-bar {
  display: block;
  width: var(--scroll-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, rgb(var(--color-accent)), rgb(var(--color-accent-strong)));
  box-shadow: var(--glow-soft);
  transition: width 140ms linear;
}

.site-header__mobilebar,
.site-mobile-menu {
  display: none;
}

body.has-mobile-menu-open {
  overflow: hidden;
}

.site-header__inner {
  width: min(100% - 2rem, var(--container-stage));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 14.25rem) minmax(0, 1fr) minmax(17rem, 24rem);
  align-items: start;
  gap: clamp(0.9rem, 1.4vw, 1.45rem);
  padding-block: 0.82rem;
}

.site-header__brandblock {
  display: grid;
  gap: 0.18rem;
  align-self: center;
  padding-right: var(--space-2);
}

.site-brand__eyebrow {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--color-text-dim));
}

.site-brand {
  display: grid;
  gap: 0.14rem;
  text-decoration: none;
}

.site-brand__title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.012em;
}

.site-brand__meta {
  font-size: 0.76rem;
  line-height: 1.32;
  color: rgb(var(--color-text-soft));
  overflow-wrap: anywhere;
}

.site-header__navzone {
  display: grid;
  gap: 0.42rem;
  align-self: center;
}

.site-nav {
  min-width: 0;
  align-self: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.site-nav__link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.14rem;
  padding: 0.46rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
  background: rgb(var(--color-surface-strong) / 0.16);
  color: rgb(var(--color-text-soft));
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.008em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    transform var(--motion-soft) var(--ease-standard),
    background-color var(--motion-soft) var(--ease-standard),
    border-color var(--motion-soft) var(--ease-standard),
    color var(--motion-soft) var(--ease-standard),
    box-shadow var(--motion-soft) var(--ease-standard);
}

.site-nav__link::before,
.site-nav__link::after {
  content: '';
  position: absolute;
  pointer-events: none;
  transition:
    opacity var(--motion-soft) var(--ease-standard),
    transform var(--motion-soft) var(--ease-standard);
}

.site-nav__link::before {
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%);
  opacity: 0;
}

.site-nav__link::after {
  left: 0.68rem;
  right: 0.68rem;
  bottom: 0.36rem;
  height: 2px;
  border-radius: 999px;
  background: rgb(var(--color-accent));
  opacity: 0;
  transform: scaleX(0.72);
  transform-origin: center;
}

.site-nav__link:hover {
  transform: translateY(-1px);
  color: rgb(var(--color-text));
  border-color: rgb(var(--color-line) / var(--alpha-line));
}

.site-nav__link:hover::before,
.site-nav__link:focus-visible::before,
.site-nav__link.is-active::before {
  opacity: 1;
}

.site-nav__link.is-active {
  transform: translateY(-1px);
  background: rgb(var(--color-panel) / 0.84);
  color: rgb(var(--color-text));
  border-color: rgb(var(--color-accent) / 0.24);
  box-shadow: 0 0 0 1px rgb(var(--color-accent) / 0.11), 0 12px 32px rgba(0, 0, 0, 0.12);
}

.site-nav__link.is-active::after {
  opacity: 0.92;
  transform: scaleX(1);
}

.site-header__tools {
  display: flex;
  justify-content: flex-end;
  align-self: center;
}

.theme-panel {
  --theme-panel-gap: 0.62rem;
  display: grid;
  gap: var(--theme-panel-gap);
  width: min(100%, 24rem);
  padding: 0.72rem 0.74rem;
  border-radius: calc(var(--radius-l) + 0.12rem);
  align-items: start;
}

.theme-panel--refined {
  position: relative;
  isolation: isolate;
}

.theme-panel--refined::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%);
  opacity: 0.9;
  z-index: 0;
}

.theme-panel__block {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.46rem;
}

.theme-panel__surface {
  padding: 0.56rem 0.58rem 0.62rem;
  border-radius: calc(var(--radius-m) + 0.04rem);
  border: 1px solid rgb(var(--color-line) / 0.06);
  background: rgb(var(--color-surface-strong) / 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.theme-panel__eyebrow {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.15;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgb(var(--color-text-dim));
}

.theme-panel__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.theme-panel__group--themes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-panel__group--modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-chip {
  appearance: none;
  position: relative;
  border: 1px solid rgb(var(--color-line) / var(--alpha-line));
  background: rgb(var(--color-surface-strong) / 0.5);
  color: rgb(var(--color-text-soft));
  border-radius: 999px;
  min-height: 2.04rem;
  padding: 0.5rem 0.76rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.008em;
  cursor: pointer;
  transition:
    transform var(--motion-soft) var(--ease-standard),
    background-color var(--motion-soft) var(--ease-standard),
    border-color var(--motion-soft) var(--ease-standard),
    color var(--motion-soft) var(--ease-standard),
    box-shadow var(--motion-soft) var(--ease-standard);
}

.theme-chip--theme {
  min-height: 2.22rem;
  padding-inline: 0.84rem;
}

.theme-chip--mode {
  min-height: 1.96rem;
  padding-inline: 0.64rem;
  font-size: 0.76rem;
}

.theme-chip:hover {
  transform: translateY(-1px);
  color: rgb(var(--color-text));
}

.theme-chip:focus-visible {
  outline: none;
  border-color: rgb(var(--color-accent) / 0.42);
  box-shadow: 0 0 0 3px rgb(var(--color-accent) / 0.14);
}

.theme-chip.is-active {
  background: rgb(var(--color-accent));
  color: rgb(var(--theme-chip-active-text, 20 18 14));
  border-color: rgb(var(--color-accent) / 0.2);
  box-shadow: var(--glow-soft);
}

.theme-chip--soft.is-active {
  background: rgb(var(--color-surface) / 0.92);
  color: rgb(var(--color-text));
  border-color: rgb(var(--color-accent) / 0.26);
  box-shadow: 0 0 0 1px rgb(var(--color-accent) / 0.08), 0 10px 28px rgba(0, 0, 0, 0.12);
}

.stage-label {
  margin: 0 0 var(--space-3);
  font-size: var(--text-s);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--color-accent));
}

.stage-title {
  margin: 0;
  font-size: var(--title-l);
  line-height: var(--line-height-title);
  letter-spacing: var(--tracking-title);
  color: rgb(var(--color-text));
}

.stage-text {
  margin: var(--space-4) 0 0;
  max-width: 38rem;
  font-size: var(--text-l);
  line-height: var(--line-height-copy);
  color: rgb(var(--color-text-soft));
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-m);
  border: 1px solid transparent;
  font-size: var(--text-m);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--motion-soft) var(--ease-standard),
    background-color var(--motion-soft) var(--ease-standard),
    border-color var(--motion-soft) var(--ease-standard),
    color var(--motion-soft) var(--ease-standard),
    box-shadow var(--motion-soft) var(--ease-standard);
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: rgb(var(--color-accent));
  color: rgb(var(--button-primary-text, 20 18 14));
  box-shadow: var(--glow-soft);
}

.button-secondary {
  background: rgb(var(--color-surface-strong) / 0.72);
  color: rgb(var(--color-text));
  border-color: rgb(var(--color-line) / var(--alpha-line));
}

.button-ghost {
  background: transparent;
  color: rgb(var(--color-text-soft));
  border-color: rgb(var(--color-line) / var(--alpha-line-soft));
}

.hero-media-placeholder,
.editorial-media-placeholder {
  position: relative;
  z-index: 2;
}


.site-header--static .site-header__progress {
  height: 1px;
  background: rgb(var(--color-line) / 0.06);
}

.site-header__inner--static {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.site-header__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  align-items: center;
}

.site-header__utility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.14rem;
  padding: 0.46rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
  background: rgb(var(--color-surface-strong) / 0.16);
  color: rgb(var(--color-text-soft));
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.008em;
}

.site-header__utility:hover,
.site-header__utility:focus-visible {
  color: rgb(var(--color-text));
  border-color: rgb(var(--color-line) / var(--alpha-line));
  background: rgb(var(--color-panel) / 0.78);
}

.static-page-main {
  padding-top: clamp(1rem, 1.7vw, 1.5rem);
  padding-bottom: clamp(1.4rem, 2.2vw, 2rem);
}

.static-page-stage {
  position: relative;
  padding: clamp(1rem, 1.8vw, 1.6rem) 0 clamp(1.8rem, 3vw, 2.8rem);
}

.static-page-stage__inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.static-page-card {
  padding: clamp(1.35rem, 2.4vw, 2rem);
  border-radius: var(--radius-xl);
  background: rgb(var(--color-panel) / calc(var(--alpha-panel) + 0.04));
}

.static-page__eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgb(var(--color-accent));
}

.static-page__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.static-page__intro {
  margin: 1rem 0 0;
  max-width: 50rem;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.65;
  color: rgb(var(--color-text-soft));
}

.static-page__content {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.static-page__lead {
  display: grid;
  gap: 1rem;
}

.static-page__lead p,
.static-page__section p,
.static-page__section li {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: rgb(var(--color-text-soft));
}

.static-page__section {
  display: grid;
  gap: 0.8rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
}

.static-page__section h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.static-page__section ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.static-page__section strong {
  color: rgb(var(--color-text));
}

.static-page__section--contactbox {
  padding: 1.25rem;
  border: 1px solid rgb(var(--color-line) / var(--alpha-line));
  border-radius: var(--radius-l);
  background: rgb(var(--color-surface-strong) / 0.16);
}

.static-page__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.static-page__fact {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-l);
  border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
  background: rgb(var(--color-surface-strong) / 0.12);
}

.static-page__fact span {
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--color-text-dim));
}

.static-page__fact strong,
.static-page__fact a {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgb(var(--color-text));
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer {
  position: relative;
  padding: 0 0 clamp(1.2rem, 2.5vw, 2rem);
}

.site-footer__inner {
  width: min(100% - 2rem, var(--container-stage));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
}

.site-footer__intro {
  display: grid;
  gap: 0.24rem;
}

.site-footer__eyebrow {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.15;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgb(var(--color-text-dim));
}

.site-footer__claim {
  margin: 0;
  max-width: 38rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgb(var(--color-text-soft));
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  align-items: start;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
  background: rgb(var(--color-surface-strong) / 0.14);
  color: rgb(var(--color-text-soft));
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.site-footer__link:hover,
.site-footer__link:focus-visible,
.site-footer__link.is-active {
  color: rgb(var(--color-text));
  border-color: rgb(var(--color-accent) / 0.22);
  background: rgb(var(--color-panel) / 0.84);
}

.site-footer__link--email {
  overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .site-header__brandblock,
  .site-header__tools {
    justify-content: center;
  }

  .site-header__brandblock,
  .site-header__navzone {
    text-align: center;
  }

  .site-nav__list {
    justify-content: center;
  }

  .site-header__tools {
    display: block;
  }

  .theme-panel {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    width: min(100% - 1.2rem, var(--container-stage));
    padding-block: 0.74rem;
  }

  .site-header__inner--static {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-header__actions {
    justify-content: flex-start;
  }

  .static-page-stage__inner,
  .site-footer__inner {
    width: min(100% - 1.2rem, var(--container-stage));
  }

  .static-page__facts {
    grid-template-columns: 1fr;
  }

  .site-header__navzone {
    gap: 0.46rem;
  }

  .site-nav__list {
    gap: 0.38rem;
  }

  .site-nav__link {
    padding-inline: 0.68rem;
    font-size: 0.8rem;
  }

  .theme-panel {
    padding: 0.66rem;
  }

  .theme-panel__surface {
    padding: 0.54rem 0.56rem 0.6rem;
  }
}

@media (max-width: 640px) {
  .site-brand__meta {
    font-size: 0.74rem;
  }

  .static-page-card {
    padding: 1.1rem;
    border-radius: calc(var(--radius-l) + 0.08rem);
  }

  .static-page__content {
    gap: 1.2rem;
  }

  .static-page__section--contactbox {
    padding: 1rem;
  }

  .site-footer__inner,
  .site-footer__nav {
    grid-template-columns: 1fr;
    justify-content: flex-start;
  }

  .site-footer__nav {
    display: grid;
  }

  .site-footer__link {
    justify-content: flex-start;
  }

  .theme-panel__group {
    gap: 0.34rem;
  }

  .theme-panel__group--themes,
  .theme-panel__group--modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-chip {
    min-height: 2rem;
    padding-inline: 0.64rem;
    font-size: 0.78rem;
  }

  .theme-chip--mode:last-child {
    grid-column: 1 / -1;
  }

  .site-nav__link {
    min-height: 2rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 980px) {
  .site-header__inner {
    display: none;
  }

  .site-header__mobilebar {
    width: min(100% - 1.2rem, var(--container-stage));
    margin-inline: auto;
    padding-block: 0.72rem 0.78rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
  }

  .site-header__mobilemeta,
  .site-header__mobilebrand {
    display: grid;
  }

  .site-header__mobilemeta {
    min-width: 0;
    gap: 0.34rem;
  }

  .site-header__mobilebrand {
    gap: 0.16rem;
  }

  .site-header__mobileeyebrow,
  .site-header__mobilecurrent-label,
  .site-mobile-nav__title,
  .site-mobile-menu__eyebrow {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.15;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgb(var(--color-text-dim));
  }

  .site-header__mobilebrandlink {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.012em;
  }

  .site-header__mobilecurrent {
    margin: 0;
    display: grid;
    gap: 0.08rem;
    min-width: 0;
  }

  .site-header__mobilecurrent-value {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgb(var(--color-text-soft));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-mobile-toggle,
  .site-mobile-menu__close {
    appearance: none;
    border: 1px solid rgb(var(--color-line) / var(--alpha-line));
    background: rgb(var(--color-surface-strong) / 0.2);
    color: rgb(var(--color-text));
    border-radius: 999px;
    min-height: 2.3rem;
    padding: 0.54rem 0.92rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .site-mobile-toggle[aria-expanded="true"] {
    background: rgb(var(--color-panel) / 0.9);
    border-color: rgb(var(--color-accent) / 0.22);
    box-shadow: 0 0 0 1px rgb(var(--color-accent) / 0.08), 0 12px 30px rgba(0, 0, 0, 0.16);
  }

  .site-mobile-menu {
    display: block;
    position: fixed;
    inset: calc(var(--site-header-height) + 2px) 0 0;
    z-index: 46;
    padding: 0.72rem 0.6rem 0.95rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--motion-soft) var(--ease-standard), visibility var(--motion-soft) var(--ease-standard);
  }

  .site-mobile-menu[hidden] {
    display: none;
  }

  .site-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background:
      linear-gradient(180deg, rgb(var(--color-bg-elevated) / 0.78), rgb(var(--color-bg) / 0.9)),
      radial-gradient(circle at 18% 12%, rgb(var(--color-accent-soft) / 0.08), transparent 24%),
      radial-gradient(circle at 82% 14%, rgb(var(--color-accent-strong) / 0.08), transparent 26%);
    backdrop-filter: blur(16px);
    cursor: pointer;
  }

  .site-mobile-menu__panel {
    position: relative;
    width: min(100%, var(--container-stage));
    margin-inline: auto;
    padding: 0.9rem;
    border-radius: calc(var(--radius-xl) + 0.08rem);
    display: grid;
    gap: 1rem;
    max-height: calc(100dvh - var(--site-header-height) - 1.6rem);
    overflow: auto;
    background: rgb(var(--color-bg-elevated) / 0.88);
  }

  .site-mobile-menu__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
  }

  .site-mobile-menu__intro {
    display: grid;
    gap: 0.16rem;
  }

  .site-mobile-menu__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .site-mobile-nav {
    display: grid;
    gap: 0.92rem;
  }

  .site-mobile-nav__group {
    display: grid;
    gap: 0.5rem;
  }

  .site-mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .site-mobile-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2.85rem;
    padding: 0.74rem 0.86rem;
    border-radius: var(--radius-m);
    border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
    background: rgb(var(--color-surface-strong) / 0.16);
    color: rgb(var(--color-text-soft));
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  }

  .site-mobile-nav__link.is-active {
    background: rgb(var(--color-panel) / 0.88);
    color: rgb(var(--color-text));
    border-color: rgb(var(--color-accent) / 0.24);
    box-shadow: 0 0 0 1px rgb(var(--color-accent) / 0.08), 0 12px 28px rgba(0, 0, 0, 0.14);
  }

  .site-mobile-menu__switchers {
    display: grid;
  }

  .theme-panel--mobile {
    width: 100%;
    padding: 0.68rem;
  }

  .site-main {
    padding-top: 0.65rem;
  }
}

@media (max-width: 640px) {
  .site-header__mobilebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-mobile-toggle {
    justify-self: start;
  }

  .site-mobile-menu__header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-mobile-menu__close {
    align-self: start;
  }

  .site-mobile-nav__list,
  .theme-panel__group--themes,
  .theme-panel__group--modes {
    grid-template-columns: 1fr;
  }

  .site-main {
    padding-top: 0.4rem;
  }
}

/* Desktop style drawer */
.theme-toolbar {
  position: relative;
  width: min(100%, 23.5rem);
  display: grid;
  justify-items: end;
  gap: 0.65rem;
}

.theme-toolbar__bar {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.55rem;
}

.theme-modebar {
  width: 100%;
  padding: 0.46rem;
}

.theme-modebar .theme-panel__block {
  gap: 0.34rem;
}

.theme-modebar .theme-panel__surface {
  padding: 0.46rem 0.48rem 0.5rem;
}

.theme-chip--style-toggle {
  min-height: 2.56rem;
  padding-inline: 0.92rem;
  white-space: nowrap;
  align-self: stretch;
}

.theme-drawer {
  position: absolute;
  top: calc(100% + 0.58rem);
  right: 0;
  width: min(100%, 23.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -0.8rem, 0);
  z-index: 65;
  transition:
    opacity var(--motion-soft) var(--ease-standard),
    transform var(--motion-soft) var(--ease-standard),
    visibility var(--motion-soft) var(--ease-standard);
}

.theme-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

body.has-style-drawer-open .site-header {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1180px) {
  .theme-toolbar {
    width: min(100%, 22rem);
  }

  .theme-drawer {
    width: min(100%, 22rem);
  }
}

/* Toolbar refinement - integrated mode/style bar */
.theme-toolbar {
  gap: 0.42rem;
}

.theme-controlbar {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.56rem;
}

.theme-controlbar__mode {
  display: grid;
  gap: 0.34rem;
  min-width: 0;
}

.theme-controlbar__mode .theme-panel__group--modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-controlbar .theme-chip.theme-chip--style-toggle {
  min-height: 4.2rem;
  padding-inline: 1rem;
  align-self: stretch;
  border-radius: calc(var(--radius-l) + 0.08rem);
}

.theme-controlbar .theme-chip.theme-chip--style-toggle[aria-expanded="true"] {
  box-shadow: 0 0 0 1px rgb(var(--color-accent) / 0.08), 0 12px 30px rgba(0, 0, 0, 0.14);
}

.theme-drawer {
  top: calc(100% + 0.32rem);
  width: 100%;
}

@media (max-width: 1180px) {
  .theme-toolbar,
  .theme-drawer {
    width: min(100%, 22rem);
  }

  .theme-controlbar .theme-chip.theme-chip--style-toggle {
    min-height: 4rem;
  }
}

/* Floating compact theme controls */
@media (min-width: 981px) {
  .site-header__inner {
    position: relative;
    grid-template-columns: minmax(0, 14.25rem) minmax(0, 1fr);
    align-items: center;
  }

  .site-header__navzone {
    padding-right: clamp(18rem, 22vw, 20rem);
  }

  .site-header__tools {
    position: absolute;
    top: 0.35rem;
    right: 0;
    align-self: start;
    z-index: 64;
  }

  .theme-floating {
    position: relative;
    width: min(100%, 18.5rem);
    display: grid;
    gap: 0.18rem;
    justify-items: stretch;
  }

  .theme-floating__mode-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.46rem;
    border-radius: calc(var(--radius-l) + 0.06rem);
    border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
    background: rgb(var(--color-bg-elevated) / 0.72);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
  }

  .theme-floating__label {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.12;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgb(var(--color-text-dim));
  }

  .theme-floating__label--styles {
    padding-inline: 0.2rem;
  }

  .theme-floating__mode-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.34rem;
  }

  .theme-floating .theme-chip--mode {
    min-height: 1.88rem;
    font-size: 0.74rem;
  }

  .theme-drawer-toggle {
    appearance: none;
    width: 100%;
    min-height: 2.02rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
    background: rgb(var(--color-bg-elevated) / 0.72);
    color: rgb(var(--color-text-soft));
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition:
      transform var(--motion-soft) var(--ease-standard),
      background-color var(--motion-soft) var(--ease-standard),
      border-color var(--motion-soft) var(--ease-standard),
      color var(--motion-soft) var(--ease-standard),
      box-shadow var(--motion-soft) var(--ease-standard);
  }

  .theme-drawer-toggle:hover {
    transform: translateY(-1px);
    color: rgb(var(--color-text));
    border-color: rgb(var(--color-line) / var(--alpha-line));
  }

  .theme-drawer-toggle__icon {
    display: block;
    width: 0.86rem;
    height: 0.86rem;
    margin: 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform var(--motion-soft) var(--ease-standard);
  }

  .theme-drawer-toggle[aria-expanded="true"] .theme-drawer-toggle__icon {
    transform: rotate(-135deg) translate(-1px, -1px);
  }

  .theme-drawer {
    top: calc(100% + 0.18rem);
    right: 0;
    width: 100%;
  }
}

/* Alignment fix for style column */
@media (min-width: 981px) {
  .theme-floating__label--styles,
  .theme-drawer-toggle,
  .theme-drawer {
    width: min(100%, 15rem);
    justify-self: end;
  }

  .theme-floating__label--styles {
    text-align: center;
    padding-inline: 0;
  }

  .theme-drawer-toggle {
    width: min(100%, 15rem);
  }

  .theme-drawer {
    width: min(100%, 15rem);
  }
}

/* Restore full drawer width while keeping compact style trigger */
@media (min-width: 981px) {
  .theme-floating {
    width: min(100%, 18.5rem);
  }

  .theme-floating__label--styles,
  .theme-drawer-toggle {
    width: min(100%, 6.4rem);
    justify-self: end;
  }

  .theme-drawer {
    width: min(100%, 18.5rem);
    justify-self: end;
  }
}

/* Clean reset: free floating style control top right */
@media (min-width: 981px) {
  .site-header__tools {
    position: fixed;
    top: 0.85rem;
    right: max(1rem, calc((100vw - var(--container-stage)) / 2));
    z-index: 92;
  }

  .theme-floating {
    width: min(100%, 16.8rem);
    gap: 0.16rem;
  }

  .theme-floating__mode-row,
  .theme-floating__label--styles,
  .theme-drawer-toggle,
  .theme-drawer {
    width: 100%;
    justify-self: stretch;
  }

  .theme-floating__label--styles {
    text-align: center;
  }

  .theme-drawer {
    top: calc(100% + 0.16rem);
  }
}

/* Final alternative: side drawer from right edge */
@media (min-width: 981px) {
  .site-header__tools {
    position: fixed;
    top: 0.72rem;
    right: max(1rem, calc((100vw - var(--container-stage)) / 2));
    transform: translateX(-75px);
    z-index: 92;
  }

  .theme-toolbar--side {
    width: min(100%, 16.4rem);
    display: grid;
    gap: 0;
  }

  .theme-toolbar__topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.26rem;
    align-items: stretch;
    justify-items: end;
  }

  .theme-style-launcher {
    min-height: 1.8rem;
    width: auto;
    min-width: 8.35rem;
    padding-inline: 0.68rem;
    font-size: 0.75rem;
    justify-content: center;
    justify-self: end;
    white-space: nowrap;
  }

  .theme-drawer--side {
    position: fixed;
    top: 0;
    right: 0;
    width: min(22rem, 100vw);
    height: 100dvh;
    padding: 1rem 1rem 1.1rem;
    border-radius: 0;
    border-left: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(100%, 0, 0);
    transition:
      opacity var(--motion-soft) var(--ease-standard),
      transform var(--motion-soft) var(--ease-standard),
      visibility var(--motion-soft) var(--ease-standard);
    overflow: auto;
    z-index: 94;
  }

  .theme-drawer--side.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .theme-drawer--side .theme-drawer__header {
    padding: 0.15rem 0.1rem 0.75rem;
  }

  .theme-drawer--side .theme-panel__surface {
    padding: 0.72rem;
    border-radius: calc(var(--radius-l) + 0.04rem);
  }

  .theme-drawer--side .theme-panel__group--themes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .theme-drawer--side .theme-chip--theme {
    min-height: 2.42rem;
  }
}

/* Compact top-right side panel instead of full-height drawer */
@media (min-width: 981px) {
  .theme-drawer--side {
    top: 4.15rem;
    right: max(0.85rem, calc((100vw - var(--container-stage)) / 2));
    width: min(18.2rem, calc(100vw - 1.7rem));
    height: auto;
    max-height: calc(100dvh - 5rem);
    padding: 0.8rem;
    border-radius: calc(var(--radius-xl) + 0.08rem);
    border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
    transform: translate3d(110%, 0, 0);
  }

  .theme-drawer--side .theme-drawer__header {
    padding: 0.05rem 0.1rem 0.5rem;
  }

  .theme-drawer--side .theme-panel__surface {
    padding: 0.5rem;
  }

  .theme-drawer--side .theme-panel__group--themes {
    gap: 0.42rem;
  }

  .theme-drawer--side .theme-chip--theme {
    min-height: 2.18rem;
  }
}


/* Theme drawer readability fix: more width, more breathing room, no clipped labels */
@media (min-width: 981px) {
  .theme-drawer--side {
    width: min(21.8rem, calc(100vw - 1.7rem));
    padding: 0.9rem;
  }

  .theme-drawer--side .theme-panel__surface {
    padding: 0.68rem;
  }

  .theme-drawer--side .theme-panel__group--themes {
    gap: 0.56rem;
  }

  .theme-drawer--side .theme-chip--theme {
    min-height: 2.72rem;
    padding: 0.62rem 0.92rem;
    font-size: 0.84rem;
    line-height: 1.14;
    white-space: normal;
    text-align: center;
    align-content: center;
    justify-content: center;
  }
}


/* Stability refinements for curated style worlds */
.site-header__tools,
.theme-toolbar--side,
.theme-toolbar__topbar,
.theme-floating__mode-buttons {
  min-width: 0;
}

.theme-drawer--side {
  overscroll-behavior: contain;
}

@media (min-width: 981px) {
  .site-header,
  .site-header__inner {
    overflow: visible;
  }

  .site-header__tools {
    max-width: min(17.2rem, calc(100vw - 1.25rem));
  }
}


/* Toolbar interaction stability across browsers */
.site-header__tools,
.theme-toolbar,
.theme-toolbar--side,
.theme-toolbar__topbar,
.theme-floating__mode-row,
.theme-floating__mode-buttons,
.theme-chip,
.theme-drawer--side .theme-panel__surface,
.theme-drawer--side .theme-chip--theme {
  pointer-events: auto;
}

.site-header__tools,
.theme-toolbar,
.theme-toolbar--side,
.theme-toolbar__topbar{
  isolation: isolate;
}

.theme-floating__mode-row,
.theme-chip {
  position: relative;
  z-index: 1;
}

@media (min-width: 981px) {
  .theme-toolbar--side .theme-floating__mode-row {
    grid-template-columns: minmax(0, 1fr);
    width: auto;
    gap: 0.28rem;
    padding: 0.26rem 0.34rem;
    justify-self: end;
  }

  .theme-toolbar--side .theme-floating__label--mode {
    display: none;
  }

  .theme-toolbar--side .theme-floating__label {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .theme-toolbar--side .theme-chip--mode {
    min-height: 1.72rem;
    padding-inline: 0.62rem;
    font-size: 0.7rem;
  }
}

/* Width fix only: prevent horizontal page overflow */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.site-header,
.site-main,
.site-footer,
.stage,
.stage-shell,
.stage-inner {
  max-width: 100%;
}


/* Independent desktop site style overlay without legacy drawer geometry */
.site-style-overlay {
  position: static;
}

.site-style-overlay__drawer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-style-overlay__drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 981px) {
  .site-style-overlay__drawer {
    position: fixed !important;
    top: calc(7.05rem + 100px) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(41.5rem, calc(100vw - 2rem)) !important;
    height: auto !important;
    max-height: calc(100dvh - 8rem) !important;
    padding: 0.95rem !important;
    border-radius: calc(var(--radius-xl) + 0.08rem);
    border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.24);
    transform: translate3d(calc(-50% + 60vw - 240px), 0.35rem, 0) scale(0.98) !important;
    overflow: auto;
    z-index: 94;
  }

  .site-style-overlay__drawer.is-open {
    transform: translate3d(calc(-50% - 240px), 0, 0) scale(1) !important;
  }

  .site-style-overlay__drawer .theme-drawer__header {
    padding: 0.08rem 0.12rem 0.56rem;
  }

  .site-style-overlay__drawer .theme-panel__surface {
    padding: 0.72rem;
    border-radius: calc(var(--radius-l) + 0.04rem);
  }

  .site-style-overlay__drawer .theme-panel__group--themes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.56rem;
  }

  .site-style-overlay__drawer .theme-chip--theme {
    min-height: 2.56rem;
    padding: 0.54rem 0.72rem;
    font-size: 0.76rem;
    line-height: 1.1;
    white-space: normal;
    text-align: center;
    align-content: center;
    justify-content: center;
  }
}


.site-style-overlay__effect {
  position: relative;
  height: 96px;
  max-height: 100px;
  margin: 0 0 0.82rem;
  overflow: visible;
  pointer-events: none;
}


.site-style-overlay__effect-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ps-style-fx {
  --fx-accent: 122 168 255;
  --fx-strong: 92 230 255;
  --fx-soft: 255 146 108;
  --fx-white: 245 248 255;
  --fx-rot-a: 0deg;
  --fx-rot-b: 0deg;
  --fx-rot-c: 0deg;
  --fx-shift-a: 0%;
  --fx-shift-b: 0%;
  --fx-shift-c: 0%;
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  pointer-events: none;
}

.ps-style-fx > span {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
}

.ps-style-fx__veil {
  mix-blend-mode: screen;
  filter: blur(18px) saturate(1.2);
}

.ps-style-fx__veil--a {
  background:
    radial-gradient(42% 88% at calc(18% + var(--fx-shift-a)) 58%, rgb(var(--fx-strong) / 0.82) 0%, rgb(var(--fx-accent) / 0.42) 32%, transparent 72%),
    radial-gradient(28% 72% at 58% 44%, rgb(var(--fx-white) / 0.38) 0%, transparent 74%);
  transform: translate3d(-8%, 0, 0) rotate(var(--fx-rot-a));
}

.ps-style-fx__veil--b {
  background:
    radial-gradient(48% 84% at calc(52% + var(--fx-shift-b)) 36%, rgb(var(--fx-soft) / 0.62) 0%, rgb(var(--fx-strong) / 0.18) 48%, transparent 78%),
    linear-gradient(90deg, transparent 0%, rgb(var(--fx-strong) / 0.12) 42%, rgb(var(--fx-white) / 0.2) 50%, rgb(var(--fx-soft) / 0.14) 62%, transparent 100%);
  transform: translate3d(8%, 0, 0) rotate(var(--fx-rot-b));
}

.ps-style-fx__veil--c {
  background:
    radial-gradient(30% 72% at calc(78% + var(--fx-shift-c)) 50%, rgb(var(--fx-strong) / 0.46) 0%, rgb(var(--fx-white) / 0.16) 36%, transparent 76%);
  filter: blur(22px) saturate(1.24);
  transform: rotate(var(--fx-rot-c));
}

.ps-style-fx__beam {
  top: 34%;
  bottom: 28%;
  border-radius: 999px;
  mix-blend-mode: screen;
  filter: blur(10px);
}

.ps-style-fx__beam--a {
  background: linear-gradient(90deg, transparent 0%, rgb(var(--fx-accent) / 0.0) 10%, rgb(var(--fx-strong) / 0.22) 24%, rgb(var(--fx-white) / 0.82) 48%, rgb(var(--fx-soft) / 0.36) 68%, transparent 100%);
  transform: translate3d(34%, 0, 0) scaleX(0.64);
}

.ps-style-fx__beam--b {
  background: linear-gradient(90deg, transparent 0%, rgb(var(--fx-soft) / 0.0) 10%, rgb(var(--fx-soft) / 0.12) 28%, rgb(var(--fx-white) / 0.34) 52%, rgb(var(--fx-strong) / 0.14) 76%, transparent 100%);
  transform: translate3d(-24%, 8px, 0) scaleX(0.52);
  filter: blur(16px);
}

.ps-style-fx__spark {
  inset: auto 8% 20% 8%;
  height: 2px;
  border-radius: 999px;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent 0%, rgb(var(--fx-strong) / 0) 6%, rgb(var(--fx-strong) / 0.92) 34%, rgb(var(--fx-white) / 1) 50%, rgb(var(--fx-soft) / 0.78) 72%, transparent 100%);
  box-shadow: 0 0 10px rgb(var(--fx-strong) / 0.42), 0 0 22px rgb(var(--fx-soft) / 0.2);
  transform: translate3d(-22%, 0, 0) scaleX(0.38);
}

.ps-style-fx__spark--b {
  inset: auto 18% 42% 18%;
  transform: translate3d(18%, 0, 0) scaleX(0.22);
  opacity: 0;
}

.ps-style-fx__pulse {
  inset: 14% 34% 12% 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgb(var(--fx-white) / 0.88) 0%, rgb(var(--fx-strong) / 0.34) 26%, rgb(var(--fx-soft) / 0.08) 52%, transparent 74%);
  filter: blur(14px);
  mix-blend-mode: screen;
  transform: scale(0.34);
}

.ps-style-fx.is-active .ps-style-fx__veil--a {
  animation: psFxVeilA 1.9s cubic-bezier(.18,.82,.18,1) both, psFxDriftA 3.2s ease-in-out both;
}

.ps-style-fx.is-active .ps-style-fx__veil--b {
  animation: psFxVeilB 2.2s cubic-bezier(.2,.78,.18,1) both, psFxDriftB 3.3s ease-in-out both;
}

.ps-style-fx.is-active .ps-style-fx__veil--c {
  animation: psFxVeilC 2.4s cubic-bezier(.2,.82,.18,1) both;
}

.ps-style-fx.is-active .ps-style-fx__beam--a {
  animation: psFxBeamA 1.2s cubic-bezier(.16,.88,.14,1) both;
}

.ps-style-fx.is-active .ps-style-fx__beam--b {
  animation: psFxBeamB 1.55s cubic-bezier(.16,.88,.14,1) .18s both;
}

.ps-style-fx.is-active .ps-style-fx__spark--a {
  animation: psFxSparkA .9s cubic-bezier(.2,.86,.2,1) .06s both;
}

.ps-style-fx.is-active .ps-style-fx__spark--b {
  animation: psFxSparkB 1.2s cubic-bezier(.2,.86,.2,1) .26s both;
}

.ps-style-fx.is-active .ps-style-fx__pulse {
  animation: psFxPulse 1.9s cubic-bezier(.18,.82,.18,1) both;
}

.ps-style-fx.is-idle .ps-style-fx__veil--a,
.ps-style-fx.is-idle .ps-style-fx__veil--b,
.ps-style-fx.is-idle .ps-style-fx__veil--c {
  opacity: 0.34;
}

.ps-style-fx.is-idle .ps-style-fx__beam--a {
  opacity: 0.18;
}

.ps-style-fx.is-idle .ps-style-fx__beam--b,
.ps-style-fx.is-idle .ps-style-fx__spark,
.ps-style-fx.is-idle .ps-style-fx__pulse {
  opacity: 0;
}

@keyframes psFxVeilA {
  0% { opacity: 0; transform: translate3d(-18%, 0, 0) rotate(calc(var(--fx-rot-a) - 4deg)) scale(0.92); }
  38% { opacity: 0.96; }
  100% { opacity: 0.34; transform: translate3d(0, 0, 0) rotate(var(--fx-rot-a)) scale(1); }
}

@keyframes psFxVeilB {
  0% { opacity: 0; transform: translate3d(20%, 0, 0) rotate(calc(var(--fx-rot-b) + 6deg)) scale(0.88); }
  42% { opacity: 0.88; }
  100% { opacity: 0.22; transform: translate3d(0, 0, 0) rotate(var(--fx-rot-b)) scale(1); }
}

@keyframes psFxVeilC {
  0% { opacity: 0; transform: rotate(calc(var(--fx-rot-c) - 8deg)) scale(0.8); }
  46% { opacity: 0.64; }
  100% { opacity: 0.16; transform: rotate(var(--fx-rot-c)) scale(1); }
}

@keyframes psFxBeamA {
  0% { opacity: 0; transform: translate3d(44%, 0, 0) scaleX(0.36); }
  26% { opacity: 0.96; }
  100% { opacity: 0.2; transform: translate3d(-6%, 0, 0) scaleX(1.02); }
}

@keyframes psFxBeamB {
  0% { opacity: 0; transform: translate3d(-28%, 8px, 0) scaleX(0.2); }
  34% { opacity: 0.5; }
  100% { opacity: 0.12; transform: translate3d(12%, 8px, 0) scaleX(0.72); }
}

@keyframes psFxSparkA {
  0% { opacity: 0; transform: translate3d(-30%, 0, 0) scaleX(0.12); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(8%, 0, 0) scaleX(1); }
}

@keyframes psFxSparkB {
  0% { opacity: 0; transform: translate3d(18%, 0, 0) scaleX(0.08); }
  34% { opacity: 0.76; }
  100% { opacity: 0; transform: translate3d(-8%, 0, 0) scaleX(0.72); }
}

@keyframes psFxPulse {
  0% { opacity: 0; transform: scale(0.18); }
  32% { opacity: 0.88; }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes psFxDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--fx-rot-a)) scale(1); }
  50% { transform: translate3d(2%, -2px, 0) rotate(calc(var(--fx-rot-a) + 1.5deg)) scale(1.02); }
}

@keyframes psFxDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--fx-rot-b)) scale(1); }
  50% { transform: translate3d(-2%, 2px, 0) rotate(calc(var(--fx-rot-b) - 1.2deg)) scale(1.01); }
}

.site-style-overlay__effect-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ps-style-scan {
  --fx-accent: 122 168 255;
  --fx-strong: 92 230 255;
  --fx-soft: 255 146 108;
  --fx-white: 245 248 255;
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  pointer-events: none;
}

.ps-style-scan__svg,
.ps-style-scan__sweep,
.ps-style-scan__pulse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ps-style-scan__svg {
  overflow: visible;
}

.ps-style-scan__bar,
.ps-style-scan__path,
.ps-style-scan__node-ring,
.ps-style-scan__node-core {
  fill: none;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
}

.ps-style-scan__bar {
  stroke: rgb(var(--fx-soft) / 0.34);
  opacity: 0;
  filter: drop-shadow(0 0 8px rgb(var(--fx-soft) / 0.18));
}

.ps-style-scan__path--glow {
  stroke: rgb(var(--fx-strong) / 0.24);
  stroke-width: 8;
  stroke-linecap: round;
  opacity: 0;
  filter: blur(7px);
}

.ps-style-scan__path--line {
  stroke: rgb(var(--fx-white) / 0.82);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgb(var(--fx-strong) / 0.34));
}

.ps-style-scan__node-ring {
  stroke: rgb(var(--fx-accent) / 0.72);
  stroke-width: 1.7;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgb(var(--fx-accent) / 0.28));
}

.ps-style-scan__node-core {
  fill: rgb(var(--fx-white) / 0.92);
  opacity: 0;
  filter: drop-shadow(0 0 10px rgb(var(--fx-strong) / 0.36));
}

.ps-style-scan__sweep {
  border-radius: 999px;
  mix-blend-mode: screen;
  opacity: 0;
}

.ps-style-scan__sweep--a {
  top: 22%;
  bottom: 40%;
  background: linear-gradient(90deg, transparent 0%, rgb(var(--fx-strong) / 0) 8%, rgb(var(--fx-strong) / 0.18) 28%, rgb(var(--fx-white) / 0.96) 50%, rgb(var(--fx-soft) / 0.34) 72%, transparent 100%);
  filter: blur(10px);
  transform: translate3d(26%, 0, 0) scaleX(0.42);
}

.ps-style-scan__sweep--b {
  top: 52%;
  bottom: 16%;
  background: linear-gradient(90deg, transparent 0%, rgb(var(--fx-soft) / 0) 8%, rgb(var(--fx-soft) / 0.14) 34%, rgb(var(--fx-white) / 0.42) 52%, rgb(var(--fx-strong) / 0.22) 70%, transparent 100%);
  filter: blur(16px);
  transform: translate3d(-18%, 0, 0) scaleX(0.28);
}

.ps-style-scan__pulse {
  left: 42%;
  right: 42%;
  top: 18%;
  bottom: 18%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgb(var(--fx-white) / 0.9) 0%, rgb(var(--fx-strong) / 0.36) 26%, rgb(var(--fx-soft) / 0.08) 54%, transparent 72%);
  mix-blend-mode: screen;
  filter: blur(8px);
  opacity: 0;
  transform: scale(0.22);
}

.ps-style-scan.is-active .ps-style-scan__bar {
  animation: psScanBar 1.3s cubic-bezier(.2,.84,.2,1) both;
}

.ps-style-scan.is-active .ps-style-scan__path--glow,
.ps-style-scan.is-active .ps-style-scan__path--line {
  stroke-dasharray: 180 880;
  stroke-dashoffset: 330;
  animation: psScanPath 1.72s cubic-bezier(.16,.88,.18,1) both;
}

.ps-style-scan.is-active .ps-style-scan__node-ring,
.ps-style-scan.is-active .ps-style-scan__node-core {
  animation: psScanNode 1.2s cubic-bezier(.18,.84,.2,1) both;
}

.ps-style-scan.is-active .ps-style-scan__sweep--a {
  animation: psScanSweepA 1.28s cubic-bezier(.16,.9,.18,1) both;
}

.ps-style-scan.is-active .ps-style-scan__sweep--b {
  animation: psScanSweepB 1.56s cubic-bezier(.16,.9,.18,1) .16s both;
}

.ps-style-scan.is-active .ps-style-scan__pulse {
  animation: psScanPulse 1.72s cubic-bezier(.18,.84,.2,1) both;
}

.ps-style-scan.is-idle .ps-style-scan__path--glow { opacity: 0.12; }
.ps-style-scan.is-idle .ps-style-scan__path--line { opacity: 0.18; }
.ps-style-scan.is-idle .ps-style-scan__bar,
.ps-style-scan.is-idle .ps-style-scan__node-ring,
.ps-style-scan.is-idle .ps-style-scan__node-core,
.ps-style-scan.is-idle .ps-style-scan__sweep,
.ps-style-scan.is-idle .ps-style-scan__pulse { opacity: 0; }

@keyframes psScanBar {
  0% { opacity: 0; transform: scaleY(0.2); }
  34% { opacity: 0.72; }
  100% { opacity: 0.18; transform: scaleY(1); }
}

@keyframes psScanPath {
  0% { opacity: 0; stroke-dashoffset: 340; }
  28% { opacity: 1; }
  100% { opacity: .14; stroke-dashoffset: -26; }
}

@keyframes psScanNode {
  0% { opacity: 0; transform: scale(0.28); }
  34% { opacity: 1; }
  100% { opacity: .22; transform: scale(1); }
}

@keyframes psScanSweepA {
  0% { opacity: 0; transform: translate3d(34%, 0, 0) scaleX(0.18); }
  28% { opacity: 1; }
  100% { opacity: .12; transform: translate3d(-8%, 0, 0) scaleX(.98); }
}

@keyframes psScanSweepB {
  0% { opacity: 0; transform: translate3d(-22%, 0, 0) scaleX(0.12); }
  34% { opacity: .72; }
  100% { opacity: .08; transform: translate3d(8%, 0, 0) scaleX(.72); }
}

@keyframes psScanPulse {
  0% { opacity: 0; transform: scale(0.18); }
  30% { opacity: .92; }
  100% { opacity: 0; transform: scale(1.28); }
}

/* Hell-Modus Korrektur 05 - stabile Umschaltung ohne sichtbare Zwischenebene */
body[data-color-scheme="light"].is-theme-transitioning::before {
  opacity: 0 !important;
}

body[data-color-scheme="light"]::view-transition-old(root),
body[data-color-scheme="light"]::view-transition-new(root) {
  animation: none !important;
}

/* Hell-Modus Korrektur 06 - stabile Sofortumschaltung */
html.is-theme-transitioning,
body.is-theme-transitioning {
  cursor: auto !important;
}

body.is-theme-transitioning::before,
body[data-color-scheme="light"].is-theme-transitioning::before,
body[data-color-scheme="dark"].is-theme-transitioning::before {
  opacity: 0 !important;
  visibility: hidden !important;
}

body[data-color-scheme="light"] .stage-title,
body[data-color-scheme="light"] .stage-text,
body[data-color-scheme="light"] .card-item__title,
body[data-color-scheme="light"] .card-item__text,
body[data-color-scheme="light"] .compare-item__title,
body[data-color-scheme="light"] .compare-item__text,
body[data-color-scheme="light"] .process-step__title,
body[data-color-scheme="light"] .process-step__text,
body[data-color-scheme="light"] .process-handoff__title,
body[data-color-scheme="light"] .process-handoff__text,
body[data-color-scheme="light"] .faq-item__question,
body[data-color-scheme="light"] .faq-item__answer,
body[data-color-scheme="light"] .cta-readiness__title,
body[data-color-scheme="light"] .cta-contact__name {
  opacity: 1 !important;
}

/* SW1: compact siteworld switcher for active ProfilSite worlds */
.siteworld-switcher {
  width: 100%;
  display: grid;
  gap: 0.24rem;
  padding: 0.26rem 0.34rem;
  border-radius: calc(var(--radius-l) + 0.06rem);
  border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
  background: rgb(var(--color-bg-elevated) / 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.siteworld-switcher__label {
  margin: 0;
  padding-inline: 0.12rem;
  font-size: 0.56rem;
  line-height: 1.12;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgb(var(--color-text-dim));
}

.siteworld-switcher__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
}

.theme-chip--siteworld {
  min-height: 1.72rem;
  padding-inline: 0.58rem;
  font-size: 0.68rem;
  white-space: nowrap;
}

.site-mobile-styleworld {
  display: grid;
  gap: 0.52rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
}

.site-mobile-styleworld__title {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.15;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgb(var(--color-text-dim));
}

.site-mobile-styleworld__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.44rem;
}

@media (min-width: 981px) {
  .theme-toolbar--side {
    width: min(100%, 19.8rem);
  }

  .theme-toolbar__topbar {
    gap: 0.34rem;
  }
}

@media (max-width: 420px) {
  .site-mobile-styleworld__buttons {
    grid-template-columns: 1fr;
  }
}

/* Block 2 - ruhige Navigation und sekundäre Steuerflächen */
@media (min-width: 981px) {
  .site-header__inner {
    grid-template-columns: minmax(13.5rem, 17.5rem) minmax(0, 1fr) minmax(13.5rem, 17.5rem) !important;
    grid-template-areas:
      "brand nav empty"
      "brand nav tools";
    align-items: center;
    gap: 0.28rem clamp(0.9rem, 1.6vw, 1.4rem);
    padding-block: 0.58rem 0.48rem;
  }

  .site-header__brandblock {
    grid-area: brand;
    justify-content: start;
    align-self: center;
    text-align: left;
    padding-right: 0;
  }

  .site-header__navzone {
    grid-area: nav;
    justify-items: center;
    align-self: center;
    padding-right: 0 !important;
    text-align: center;
  }

  .site-nav__list {
    justify-content: center;
    gap: 0.34rem;
  }

  .site-nav__link {
    min-height: 2.02rem;
    padding: 0.42rem 0.66rem;
    font-size: 0.8rem;
  }

  .site-header__tools {
    grid-area: tools;
    position: static !important;
    inset: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 2;
    display: grid;
    justify-content: end;
    align-self: start;
    max-width: none;
  }

  .theme-toolbar,
  .theme-toolbar--side {
    width: min(100%, 13.2rem) !important;
    display: grid;
    gap: 0.22rem;
    justify-items: stretch;
  }

  .theme-toolbar__topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.24rem;
    align-items: stretch;
    justify-items: stretch;
  }

  .theme-toolbar--side .theme-floating__mode-row,
  .theme-floating__mode-row {
    display: block;
    width: 100%;
    padding: 0.2rem 0.24rem;
    border-radius: 999px;
    border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
    background: rgb(var(--color-bg-elevated) / 0.52);
    box-shadow: none;
    backdrop-filter: blur(14px);
  }

  .theme-floating__mode-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.18rem;
  }

  .theme-toolbar--side .theme-chip--mode,
  .theme-chip--mode {
    min-height: 1.36rem;
    padding: 0.24rem 0.38rem;
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 700;
    box-shadow: none;
  }

  .siteworld-switcher {
    width: 100%;
    gap: 0.16rem;
    padding: 0.22rem 0.24rem;
    border-radius: calc(var(--radius-m) + 0.04rem);
    background: rgb(var(--color-bg-elevated) / 0.46);
    box-shadow: none;
  }

  .siteworld-switcher__label {
    font-size: 0.5rem;
    line-height: 1;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .siteworld-switcher__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.18rem;
  }

  .theme-chip--siteworld {
    min-height: 1.34rem;
    padding: 0.22rem 0.3rem;
    font-size: 0.6rem;
    line-height: 1;
    font-weight: 700;
    box-shadow: none;
    white-space: nowrap;
  }

  .theme-chip--soft.is-active {
    box-shadow: 0 0 0 1px rgb(var(--color-accent) / 0.08);
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .site-header__inner {
    grid-template-columns: minmax(11.5rem, 13.5rem) minmax(0, 1fr) minmax(10.8rem, 12.4rem) !important;
    gap: 0.24rem 0.72rem;
  }

  .site-brand__meta {
    display: none;
  }

  .site-nav__link {
    padding-inline: 0.54rem;
    font-size: 0.76rem;
  }

  .theme-toolbar,
  .theme-toolbar--side {
    width: min(100%, 11.6rem) !important;
  }
}

.site-mobile-mode {
  display: grid;
  gap: 0.46rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
}

.site-mobile-mode__title,
.site-mobile-styleworld__title {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.15;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgb(var(--color-text-dim));
}

.site-mobile-mode__buttons,
.site-mobile-styleworld__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.site-mobile-mode .theme-chip,
.site-mobile-styleworld .theme-chip {
  min-height: 2.08rem;
  padding: 0.52rem 0.58rem;
  font-size: 0.74rem;
}

.site-mobile-styleworld {
  margin-top: 0.88rem;
}

@media (max-width: 520px) {
  .site-mobile-mode__buttons,
  .site-mobile-styleworld__buttons {
    grid-template-columns: 1fr;
  }
}

/* Block 12 - mobile menu repair: solid, isolated overlay */
@media (max-width: 980px) {
  .site-header {
    z-index: 120;
  }

  .site-header__mobilebar {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 0.78rem max(1rem, env(safe-area-inset-left)) 0.82rem max(1rem, env(safe-area-inset-right));
    border-bottom: 1px solid rgb(var(--color-line) / 0.12);
    background:
      linear-gradient(180deg, rgba(10, 15, 21, 0.98), rgba(6, 10, 15, 0.98));
  }

  .site-mobile-menu {
    position: fixed;
    inset: var(--site-header-height, 6.5rem) 0 0 0;
    z-index: 110;
    display: block;
    padding: 0;
    background:
      radial-gradient(circle at 80% 8%, rgb(var(--color-accent) / 0.10), transparent 20rem),
      linear-gradient(180deg, rgba(6, 10, 15, 0.98), rgba(4, 7, 11, 0.995));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .site-mobile-menu[hidden] {
    display: none !important;
  }

  .site-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background:
      linear-gradient(180deg, rgba(6, 10, 15, 0.985), rgba(4, 7, 11, 0.995));
    backdrop-filter: none;
  }

  .site-mobile-menu__panel {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 1.25rem), 34rem);
    max-height: calc(100dvh - var(--site-header-height, 6.5rem) - 1.25rem);
    margin: 0.62rem auto 0;
    padding: 1rem;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgb(var(--color-line) / 0.14);
    border-radius: 1.1rem;
    background:
      linear-gradient(180deg, rgba(13, 19, 27, 0.995), rgba(8, 13, 20, 0.995));
    box-shadow:
      0 2rem 4rem rgba(0, 0, 0, 0.50),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .site-mobile-menu__header {
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgb(var(--color-line) / 0.11);
  }

  .site-mobile-nav {
    gap: 0.9rem;
  }

  .site-mobile-nav__list {
    grid-template-columns: 1fr;
    gap: 0.46rem;
  }

  .site-mobile-nav__link {
    min-height: 2.65rem;
    padding: 0.72rem 0.86rem;
    border-radius: 0.66rem;
    background: rgb(var(--color-surface-strong) / 0.18);
  }

  .site-mobile-mode,
  .site-mobile-styleworld {
    margin-top: 0.8rem;
    padding-top: 0.82rem;
  }

  .site-mobile-mode__buttons,
  .site-mobile-styleworld__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
  }

  .site-mobile-mode .theme-chip,
  .site-mobile-styleworld .theme-chip {
    min-height: 2.1rem;
    border-radius: 0.62rem;
  }

  body.has-mobile-menu-open .site-main,
  body.has-mobile-menu-open .site-footer {
    pointer-events: none;
  }
}

@media (max-width: 520px) {
  .site-mobile-mode__buttons,
  .site-mobile-styleworld__buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .site-header__mobilebar {
    padding-inline: 0.82rem;
  }

  .site-mobile-menu__panel {
    width: calc(100% - 0.85rem);
    margin-top: 0.42rem;
    padding: 0.86rem;
    border-radius: 0.9rem;
  }

  .site-mobile-menu__header {
    gap: 0.65rem;
  }

  .site-mobile-menu__close,
  .site-mobile-toggle {
    min-height: 2.2rem;
    padding: 0.5rem 0.74rem;
    font-size: 0.78rem;
  }
}

/* Block 12b - mobile menu repair: menu moved outside sticky header */
@media (max-width: 980px) {
  .site-header {
    z-index: 140;
  }

  .site-mobile-menu {
    position: fixed;
    inset: var(--site-header-height, 6.5rem) 0 0 0;
    z-index: 130;
    display: block;
    padding: 0.75rem 0.75rem max(0.9rem, env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    background:
      radial-gradient(circle at 78% 10%, rgb(var(--color-accent) / 0.10), transparent 18rem),
      linear-gradient(180deg, rgba(6, 10, 15, 0.992), rgba(3, 6, 10, 0.998));
    transition: opacity 160ms ease, visibility 160ms ease;
  }

  .site-mobile-menu[hidden] {
    display: none !important;
  }

  .site-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: rgba(3, 6, 10, 0.94);
  }

  .site-mobile-menu__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
    max-height: calc(100dvh - var(--site-header-height, 6.5rem) - 1.5rem);
    margin-inline: auto;
    padding: 1rem;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgb(var(--color-line) / 0.16);
    border-radius: 1.05rem;
    background:
      linear-gradient(180deg, rgba(12, 18, 26, 0.998), rgba(7, 11, 18, 0.998));
    box-shadow:
      0 2.2rem 5rem rgba(0, 0, 0, 0.58),
      inset 0 1px 0 rgba(255, 255, 255, 0.045);
  }

  .site-mobile-menu__header {
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgb(var(--color-line) / 0.12);
  }

  .site-mobile-nav {
    gap: 0.95rem;
  }

  .site-mobile-nav__list {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .site-mobile-nav__link {
    min-height: 2.65rem;
    padding: 0.72rem 0.86rem;
    border-radius: 0.72rem;
    background: rgb(var(--color-surface-strong) / 0.20);
  }

  .site-mobile-mode,
  .site-mobile-styleworld {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgb(var(--color-line) / 0.10);
  }

  .site-mobile-mode__buttons,
  .site-mobile-styleworld__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .site-mobile-mode .theme-chip,
  .site-mobile-styleworld .theme-chip {
    min-height: 2.12rem;
    border-radius: 0.64rem;
  }

  body.has-mobile-menu-open .site-main,
  body.has-mobile-menu-open .site-footer {
    pointer-events: none;
  }
}

@media (max-width: 520px) {
  .site-mobile-menu {
    padding-inline: 0.6rem;
  }

  .site-mobile-mode__buttons,
  .site-mobile-styleworld__buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .site-mobile-menu__panel {
    padding: 0.86rem;
    border-radius: 0.9rem;
  }

  .site-mobile-menu__close,
  .site-mobile-toggle {
    min-height: 2.2rem;
    padding: 0.5rem 0.74rem;
    font-size: 0.78rem;
  }
}

/* Abschlussblock - Navigation: sichtbarer Scroll-Verlauf und Bühnenmarkierung */
.site-header {
  position: sticky;
}

.site-header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 8;
  height: 3px;
  background: rgb(var(--color-line) / 0.10);
  overflow: hidden;
  pointer-events: none;
}

.site-header__progress-bar {
  width: var(--scroll-progress, 0%);
  min-width: 0;
  height: 100%;
  display: block;
  transform-origin: left center;
}

.site-nav__link.is-active {
  position: relative;
}

.site-nav__link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-mobile-nav__link.is-active {
  position: relative;
}

.site-mobile-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.42rem;
  height: 2px;
  border-radius: 999px;
  background: rgb(var(--color-accent));
  opacity: 0.95;
}

/* Block 14 - robuste Scroll-Leiste und aktive Navigationsmarkierung */
.site-header__progress {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  z-index: 120 !important;
  height: 5px !important;
  display: block !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

.site-header__progress-bar {
  position: relative !important;
  display: block !important;
  height: 100% !important;
  width: var(--scroll-progress, 0%) !important;
  min-width: 0 !important;
  opacity: 1 !important;
  transform-origin: left center !important;
}

.site-nav__link.is-active,
.site-nav__link[aria-current="true"],
.site-mobile-nav__link.is-active,
.site-mobile-nav__link[aria-current="true"] {
  position: relative !important;
}

.site-nav__link.is-active::after,
.site-nav__link[aria-current="true"]::after,
.site-mobile-nav__link.is-active::after,
.site-mobile-nav__link[aria-current="true"]::after {
  content: "" !important;
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

/* Finalfix Navigation 2026-04-26 - sichtbarer Verlauf und aktive Buehne */
.site-header {
  overflow: visible !important;
}

.site-header__progress {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -3px !important;
  z-index: 999 !important;
  display: block !important;
  height: 6px !important;
  overflow: visible !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.10) !important;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.035) !important;
}

.site-header__progress-bar {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  display: block !important;
  height: 100% !important;
  width: var(--scroll-progress, 0%) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  opacity: 1 !important;
  transform: none !important;
  transform-origin: left center !important;
  transition: width 90ms linear !important;
}

html[data-scroll-progress-state="active"] .site-header__progress-bar,
body[data-scroll-progress-state="active"] .site-header__progress-bar {
  min-width: 2.6rem !important;
}

.site-nav__link[data-nav-link],
.site-mobile-nav__link[data-nav-link] {
  position: relative !important;
}

.site-nav__link[data-nav-link]::after,
.site-mobile-nav__link[data-nav-link]::after {
  content: "" !important;
}

.site-nav__link.is-active,
.site-nav__link[aria-current="true"],
.site-mobile-nav__link.is-active,
.site-mobile-nav__link[aria-current="true"] {
  isolation: isolate !important;
}


/* ==========================================================
   B5h - Papageno static pages
   Scope: contact.php, impressum.php, datenschutz.php only
   ========================================================== */
body.page-static[data-siteworld="papageno"] {
  background:
    radial-gradient(circle at 70% 12%, rgba(202, 138, 55, 0.14), transparent 32rem),
    radial-gradient(circle at 18% 82%, rgba(122, 72, 32, 0.16), transparent 34rem),
    linear-gradient(135deg, rgb(6, 7, 7) 0%, rgb(12, 9, 7) 44%, rgb(3, 5, 6) 100%);
  color: rgb(248, 244, 235);
}

body.page-static[data-siteworld="papageno"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 33%, rgba(220, 146, 62, 0.08) 33.3%, transparent 36%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 24%, rgba(0, 0, 0, 0.28));
  opacity: 0.9;
}

body.page-static[data-siteworld="papageno"] .site-header--static {
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.96), rgba(6, 5, 4, 0.86));
  border-bottom-color: rgba(213, 145, 64, 0.18);
}

body.page-static[data-siteworld="papageno"] .site-header--static .site-header__progress {
  background: linear-gradient(90deg, rgba(236, 184, 108, 0.72), rgba(155, 86, 32, 0.28), transparent);
}

body.page-static[data-siteworld="papageno"] .site-brand__eyebrow,
body.page-static[data-siteworld="papageno"] .static-page__eyebrow {
  color: rgb(232, 170, 83);
}

body.page-static[data-siteworld="papageno"] .site-brand__meta,
body.page-static[data-siteworld="papageno"] .static-page__intro,
body.page-static[data-siteworld="papageno"] .static-page__lead p,
body.page-static[data-siteworld="papageno"] .static-page__section p,
body.page-static[data-siteworld="papageno"] .static-page__section li {
  color: rgba(247, 238, 223, 0.78);
}

body.page-static[data-siteworld="papageno"] .site-header__utility {
  border-color: rgba(218, 150, 70, 0.28);
  background: rgba(24, 15, 9, 0.36);
  color: rgba(249, 241, 228, 0.78);
}

body.page-static[data-siteworld="papageno"] .site-header__utility:hover,
body.page-static[data-siteworld="papageno"] .site-header__utility:focus-visible {
  border-color: rgba(236, 184, 108, 0.52);
  background: rgba(77, 42, 17, 0.48);
  color: rgb(255, 248, 236);
}

body.page-static[data-siteworld="papageno"] .static-page-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 151, 66, 0.22);
  background:
    linear-gradient(135deg, rgba(25, 15, 10, 0.92), rgba(12, 10, 9, 0.96) 52%, rgba(29, 17, 9, 0.9)),
    radial-gradient(circle at 80% 0%, rgba(219, 151, 64, 0.14), transparent 32rem);
  box-shadow:
    0 2.2rem 5.8rem rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 225, 178, 0.08);
}

body.page-static[data-siteworld="papageno"] .static-page-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(238, 180, 99, 0.16), transparent 34%),
    radial-gradient(circle at 8% 14%, rgba(232, 170, 83, 0.09), transparent 18rem);
  opacity: 0.72;
}

body.page-static[data-siteworld="papageno"] .static-page-card > * {
  position: relative;
  z-index: 1;
}

body.page-static[data-siteworld="papageno"] .static-page__title,
body.page-static[data-siteworld="papageno"] .static-page__section h2,
body.page-static[data-siteworld="papageno"] .static-page__section strong {
  color: rgb(255, 249, 239);
}

body.page-static[data-siteworld="papageno"] .static-page__section {
  border-top-color: rgba(223, 149, 64, 0.18);
}

body.page-static[data-siteworld="papageno"] .static-page__section--contactbox,
body.page-static[data-siteworld="papageno"] .static-page__fact {
  border-color: rgba(223, 149, 64, 0.22);
  background: rgba(16, 11, 8, 0.44);
}

body.page-static[data-siteworld="papageno"] .static-page__fact span {
  color: rgba(232, 170, 83, 0.72);
}

body.page-static[data-siteworld="papageno"] .static-page__fact strong,
body.page-static[data-siteworld="papageno"] .static-page__fact a,
body.page-static[data-siteworld="papageno"] .static-page__section a {
  color: rgb(255, 239, 213);
  text-decoration-color: rgba(232, 170, 83, 0.42);
}

body.page-static[data-siteworld="papageno"] .button,
body.page-static[data-siteworld="papageno"] .button-primary {
  color: rgb(38, 22, 8);
  background: linear-gradient(135deg, rgb(250, 205, 130), rgb(211, 134, 53));
  border-color: rgba(255, 218, 157, 0.62);
  box-shadow: 0 1rem 2.4rem rgba(211, 134, 53, 0.22);
}

body.page-static[data-siteworld="papageno"] .site-footer {
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.12), rgba(5, 5, 5, 0.86));
}

body.page-static[data-siteworld="papageno"] .site-footer__inner {
  border-top-color: rgba(223, 149, 64, 0.18);
}

/* B5i-b - Papageno Moduswahl optisch beruhigen
   Ziel: Auto / Dunkel / Hell bleibt funktional, tritt aber visuell zurück. */
@media (min-width: 981px) {
  body[data-siteworld="papageno"] .site-header__navzone {
    padding-right: clamp(9rem, 12vw, 11.5rem);
  }

  body[data-siteworld="papageno"] .site-header__tools {
    top: 0.42rem;
    max-width: 10.6rem;
    opacity: 0.72;
    transition:
      opacity var(--motion-soft) var(--ease-standard),
      transform var(--motion-soft) var(--ease-standard);
  }

  body[data-siteworld="papageno"] .site-header__tools:hover,
  body[data-siteworld="papageno"] .site-header__tools:focus-within {
    opacity: 1;
  }

  body[data-siteworld="papageno"] .theme-toolbar,
  body[data-siteworld="papageno"] .theme-toolbar--side {
    width: min(100%, 10.4rem) !important;
    justify-items: end;
  }

  body[data-siteworld="papageno"] .theme-toolbar__topbar {
    justify-items: end;
  }

  body[data-siteworld="papageno"] .theme-toolbar--side .theme-floating__mode-row,
  body[data-siteworld="papageno"] .theme-floating__mode-row {
    width: auto;
    padding: 0.13rem 0.16rem;
    border-radius: 999px;
    border-color: rgba(232, 170, 83, 0.14);
    background: rgba(10, 8, 6, 0.36);
    box-shadow: none;
    backdrop-filter: blur(12px);
  }

  body[data-siteworld="papageno"] .theme-floating__mode-buttons {
    gap: 0.1rem;
  }

  body[data-siteworld="papageno"] .theme-toolbar--side .theme-chip--mode,
  body[data-siteworld="papageno"] .theme-chip--mode {
    min-height: 1.18rem;
    padding: 0.16rem 0.28rem;
    border-color: transparent;
    background: transparent;
    color: rgba(255, 245, 230, 0.58);
    font-size: 0.54rem;
    line-height: 1;
    font-weight: 650;
    letter-spacing: 0.01em;
    box-shadow: none;
  }

  body[data-siteworld="papageno"] .theme-chip--mode:hover,
  body[data-siteworld="papageno"] .theme-chip--mode:focus-visible {
    color: rgba(255, 249, 239, 0.88);
    border-color: rgba(232, 170, 83, 0.2);
    background: rgba(54, 30, 12, 0.38);
    transform: none;
  }

  body[data-siteworld="papageno"] .theme-chip--mode.is-active {
    color: rgb(42, 25, 10);
    border-color: rgba(255, 221, 164, 0.48);
    background: linear-gradient(135deg, rgba(247, 207, 137, 0.92), rgba(207, 130, 48, 0.88));
    box-shadow: 0 0 0 1px rgba(255, 225, 178, 0.08);
  }
}

/* B6a-1 - Papageno Header beim Scrollen deckender fassen
   Ziel: Grosse Buehnenueberschriften sollen nicht optisch hinter dem Sticky-Header durchscheinen. */
body[data-siteworld="papageno"] .site-header {
  background: linear-gradient(180deg, rgba(9, 9, 8, 0.92), rgba(6, 7, 8, 0.88));
  border-bottom-color: rgba(223, 149, 64, 0.16);
}

body[data-siteworld="papageno"] .site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(9, 8, 7, 0.98), rgba(5, 6, 7, 0.95));
  border-bottom-color: rgba(223, 149, 64, 0.24);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.42), 0 0.1rem 0 rgba(223, 149, 64, 0.08);
}

body.page-static[data-siteworld="papageno"] .site-header--static.is-scrolled,
body.page-static[data-siteworld="papageno"] .site-header--static {
  background: linear-gradient(180deg, rgba(9, 8, 7, 0.96), rgba(6, 6, 6, 0.9));
  border-bottom-color: rgba(223, 149, 64, 0.18);
}

/* F3a-2 - Header sichtbar nachjustieren
   Ziel: Moduswahl rechts lesbarer machen, Navigation ruhig halten, Kopfbereich nicht aufblasen. */
@media (min-width: 981px) {
  body[data-siteworld="papageno"] .site-header__inner {
    grid-template-columns: minmax(15.5rem, 19rem) minmax(0, 1fr) minmax(15.5rem, 19rem) !important;
    grid-template-areas:
      "brand nav empty"
      "brand nav tools";
    gap: 0.28rem clamp(1rem, 1.45vw, 1.45rem);
    padding-block: 0.58rem 0.52rem;
  }

  body[data-siteworld="papageno"] .site-header__brandblock {
    min-width: 0;
    align-self: center;
  }

  body[data-siteworld="papageno"] .site-header__navzone {
    justify-items: center;
    padding-right: 0 !important;
  }

  body[data-siteworld="papageno"] .site-nav__list {
    gap: clamp(0.36rem, 0.58vw, 0.54rem);
  }

  body[data-siteworld="papageno"] .site-nav__link {
    min-height: 2.16rem;
    padding: 0.46rem 0.76rem;
    font-size: 0.88rem;
  }

  body[data-siteworld="papageno"] .site-header__tools {
    max-width: 15.4rem;
    opacity: 0.96;
    align-self: start;
    justify-content: end;
  }

  body[data-siteworld="papageno"] .site-header__tools:hover,
  body[data-siteworld="papageno"] .site-header__tools:focus-within {
    opacity: 1;
  }

  body[data-siteworld="papageno"] .theme-toolbar,
  body[data-siteworld="papageno"] .theme-toolbar--side {
    width: min(100%, 15.4rem) !important;
    justify-items: stretch;
  }

  body[data-siteworld="papageno"] .theme-toolbar__topbar {
    justify-items: stretch;
  }

  body[data-siteworld="papageno"] .theme-toolbar--side .theme-floating__mode-row,
  body[data-siteworld="papageno"] .theme-floating__mode-row {
    width: 100%;
    padding: 0.2rem 0.24rem;
    border-radius: 999px;
    border-color: rgba(232, 170, 83, 0.2);
    background: rgba(10, 8, 6, 0.56);
    box-shadow: none;
    backdrop-filter: blur(12px);
  }

  body[data-siteworld="papageno"] .theme-floating__mode-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.18rem;
  }

  body[data-siteworld="papageno"] .theme-toolbar--side .theme-chip--mode,
  body[data-siteworld="papageno"] .theme-chip--mode {
    min-height: 1.72rem;
    padding: 0.28rem 0.5rem;
    border-color: rgba(232, 170, 83, 0.11);
    background: rgba(255, 255, 255, 0.016);
    color: rgba(255, 245, 230, 0.82);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 750;
    letter-spacing: 0.01em;
    box-shadow: none;
  }

  body[data-siteworld="papageno"] .theme-chip--mode:hover,
  body[data-siteworld="papageno"] .theme-chip--mode:focus-visible {
    color: rgba(255, 249, 239, 0.96);
    border-color: rgba(232, 170, 83, 0.28);
    background: rgba(54, 30, 12, 0.44);
    transform: none;
  }

  body[data-siteworld="papageno"] .theme-chip--mode.is-active {
    color: rgb(42, 25, 10);
    border-color: rgba(255, 221, 164, 0.56);
    background: linear-gradient(135deg, rgba(247, 207, 137, 0.95), rgba(207, 130, 48, 0.91));
    box-shadow: 0 0 0 1px rgba(255, 225, 178, 0.1);
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  body[data-siteworld="papageno"] .site-header__inner {
    grid-template-columns: minmax(11.6rem, 13.6rem) minmax(0, 1fr) minmax(12.2rem, 13.8rem) !important;
    gap: 0.24rem 0.68rem;
  }

  body[data-siteworld="papageno"] .site-nav__list {
    gap: 0.24rem;
  }

  body[data-siteworld="papageno"] .site-nav__link {
    min-height: 2rem;
    padding-inline: 0.54rem;
    font-size: 0.78rem;
  }

  body[data-siteworld="papageno"] .theme-toolbar,
  body[data-siteworld="papageno"] .theme-toolbar--side {
    width: min(100%, 12.8rem) !important;
  }

  body[data-siteworld="papageno"] .theme-toolbar--side .theme-chip--mode,
  body[data-siteworld="papageno"] .theme-chip--mode {
    min-height: 1.52rem;
    padding-inline: 0.38rem;
    font-size: 0.64rem;
  }
}

/* F3a-3 - mobile Header stabilisieren
   Ziel: Mobile Kopfzeile kompakter halten, Menü rechts belassen, keine Bühnenänderung. */
@media (max-width: 980px) {
  body[data-siteworld="papageno"] .site-header__mobilebar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.72rem;
    padding-block: 0.62rem 0.66rem;
  }

  body[data-siteworld="papageno"] .site-header__mobilemeta {
    gap: 0.26rem;
  }

  body[data-siteworld="papageno"] .site-header__mobilebrandlink {
    font-size: 0.98rem;
    line-height: 1.12;
  }

  body[data-siteworld="papageno"] .site-header__mobilecurrent-value {
    font-size: 0.82rem;
  }

  body[data-siteworld="papageno"] .site-mobile-toggle {
    justify-self: end;
    min-height: 2.18rem;
    padding: 0.5rem 0.82rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  body[data-siteworld="papageno"] .site-header__mobilebar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body[data-siteworld="papageno"] .site-mobile-toggle {
    justify-self: end;
  }

  body[data-siteworld="papageno"] .site-header__mobileeyebrow,
  body[data-siteworld="papageno"] .site-header__mobilecurrent-label {
    font-size: 0.58rem;
    letter-spacing: 0.095em;
  }

  body[data-siteworld="papageno"] .site-header__mobilebrandlink {
    font-size: 0.92rem;
  }

  body[data-siteworld="papageno"] .site-header__mobilecurrent-value {
    font-size: 0.76rem;
  }
}

/* F3c - mobiles Menue strukturell kompakter fassen
   Ziel: Nach Entfernung der doppelten Panel-Kopfzeile das geoeffnete mobile Menue ruhiger und kompakter fuehren.
   Einfuegen: Diesen Block ganz unten an css/core/base.css anhaengen. */

@media (max-width: 980px) {
  body[data-siteworld="papageno"].has-mobile-menu-open .site-mobile-menu {
    inset: var(--site-header-height, 5.1rem) 0 0 0;
    padding: 0.56rem 0.68rem max(0.72rem, env(safe-area-inset-bottom));
  }

  body[data-siteworld="papageno"] .site-mobile-menu__panel {
    width: min(100%, 32rem);
    max-height: calc(100dvh - var(--site-header-height, 5.1rem) - 1.12rem);
    margin-inline: auto;
    padding: 1.02rem 1.08rem 1.06rem;
    gap: 0.86rem;
    border-radius: 1.05rem;
  }

  body[data-siteworld="papageno"] .site-mobile-nav {
    gap: 0.78rem;
  }

  body[data-siteworld="papageno"] .site-mobile-nav__group {
    gap: 0.46rem;
  }

  body[data-siteworld="papageno"] .site-mobile-nav__title,
  body[data-siteworld="papageno"] .site-mobile-mode__title,
  body[data-siteworld="papageno"] .site-mobile-styleworld__title {
    font-size: 0.66rem;
    letter-spacing: 0.11em;
  }

  body[data-siteworld="papageno"] .site-mobile-nav__list {
    gap: 0.34rem;
  }

  body[data-siteworld="papageno"] .site-mobile-nav__link {
    min-height: 2.34rem;
    padding: 0.56rem 0.74rem;
    font-size: 0.92rem;
  }

  body[data-siteworld="papageno"] .site-mobile-mode,
  body[data-siteworld="papageno"] .site-mobile-styleworld {
    margin-top: 0.58rem;
    padding-top: 0.68rem;
    gap: 0.42rem;
  }

  body[data-siteworld="papageno"] .site-mobile-mode__buttons,
  body[data-siteworld="papageno"] .site-mobile-styleworld__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.32rem;
  }

  body[data-siteworld="papageno"] .site-mobile-mode .theme-chip,
  body[data-siteworld="papageno"] .site-mobile-styleworld .theme-chip {
    min-height: 1.92rem;
    padding: 0.45rem 0.48rem;
    font-size: 0.72rem;
    border-radius: 0.58rem;
  }
}

@media (max-width: 520px) {
  body[data-siteworld="papageno"] .site-mobile-menu {
    padding-inline: 0.5rem;
  }

  body[data-siteworld="papageno"] .site-mobile-menu__panel {
    width: min(100%, 31rem);
    padding: 0.92rem 0.96rem 1rem;
  }

  body[data-siteworld="papageno"] .site-mobile-mode__buttons,
  body[data-siteworld="papageno"] .site-mobile-styleworld__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  body[data-siteworld="papageno"] .site-mobile-nav__link {
    font-size: 0.86rem;
  }

  body[data-siteworld="papageno"] .site-mobile-mode .theme-chip,
  body[data-siteworld="papageno"] .site-mobile-styleworld .theme-chip {
    font-size: 0.66rem;
    padding-inline: 0.34rem;
  }
}

/* F3c-2 - mobile Moduszeile erzwingen
   Ziel: Auto / Dunkel / Hell im mobilen Menue immer sauber nebeneinander fuehren.
   Einfuegen: Diesen Block ganz unten an css/core/base.css anhaengen, nach dem F3c-Block. */

@media (max-width: 980px) {
  body[data-siteworld="papageno"] .site-mobile-mode__buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 0.36rem !important;
    align-items: stretch;
    justify-items: stretch;
  }

  body[data-siteworld="papageno"] .site-mobile-mode__buttons .theme-chip,
  body[data-siteworld="papageno"] .site-mobile-mode__buttons .theme-chip--mode {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
  }

  body[data-siteworld="papageno"] .site-mobile-menu__panel {
    overflow-y: auto;
  }
}

@media (max-width: 520px) {
  body[data-siteworld="papageno"] .site-mobile-mode__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.28rem !important;
  }

  body[data-siteworld="papageno"] .site-mobile-mode__buttons .theme-chip,
  body[data-siteworld="papageno"] .site-mobile-mode__buttons .theme-chip--mode {
    padding-inline: 0.28rem !important;
    font-size: 0.66rem !important;
  }
}

@media (max-width: 360px) {
  body[data-siteworld="papageno"] .site-mobile-mode__buttons .theme-chip,
  body[data-siteworld="papageno"] .site-mobile-mode__buttons .theme-chip--mode {
    font-size: 0.62rem !important;
    letter-spacing: 0;
  }
}



/* F9 - Statische Seiten in die Stilwelten einbeziehen */
.site-header__actions--static {
  align-items: flex-end;
  gap: 0.7rem;
}

.static-page-switches {
  display: grid;
  gap: 0.42rem;
  justify-items: end;
  margin-right: 0.2rem;
}

.static-page-switches__group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.32rem;
}

.static-page-switches .theme-chip {
  min-height: 1.85rem;
  padding: 0.34rem 0.62rem;
  font-size: 0.74rem;
}

body.page-static .static-page-stage {
  overflow: hidden;
}

body.page-static .static-page-stage::before,
body.page-static .static-page-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

body.page-static .static-page-stage::before {
  inset: -8rem -6rem auto auto;
  width: min(54rem, 64vw);
  height: min(32rem, 38vw);
  border-radius: 50%;
  opacity: 0.36;
}

body.page-static .static-page-stage::after {
  inset: 0;
  opacity: 0.48;
}

body.page-static .static-page-stage__inner {
  position: relative;
  z-index: 1;
}

body.page-static[data-siteworld="klartechnik"] .site-header--static {
  background:
    linear-gradient(180deg, rgba(4, 9, 14, 0.96), rgba(5, 10, 16, 0.86));
  border-bottom-color: rgba(91, 165, 215, 0.20);
}

body.page-static[data-siteworld="klartechnik"] .site-header--static .site-header__progress {
  background: linear-gradient(90deg, rgba(126, 196, 242, 0.72), rgba(73, 130, 182, 0.28), transparent);
}

body.page-static[data-siteworld="klartechnik"] .site-brand__eyebrow,
body.page-static[data-siteworld="klartechnik"] .static-page__eyebrow {
  color: rgb(126, 196, 242);
}

body.page-static[data-siteworld="klartechnik"] .site-brand__meta,
body.page-static[data-siteworld="klartechnik"] .static-page__intro,
body.page-static[data-siteworld="klartechnik"] .static-page__lead p,
body.page-static[data-siteworld="klartechnik"] .static-page__section p,
body.page-static[data-siteworld="klartechnik"] .static-page__section li {
  color: rgba(224, 236, 246, 0.80);
}

body.page-static[data-siteworld="klartechnik"] .site-header__utility,
body.page-static[data-siteworld="klartechnik"] .static-page-switches .theme-chip {
  border-color: rgba(91, 165, 215, 0.26);
  background: rgba(9, 18, 28, 0.42);
  color: rgba(232, 243, 251, 0.80);
}

body.page-static[data-siteworld="klartechnik"] .site-header__utility:hover,
body.page-static[data-siteworld="klartechnik"] .site-header__utility:focus-visible,
body.page-static[data-siteworld="klartechnik"] .static-page-switches .theme-chip:hover,
body.page-static[data-siteworld="klartechnik"] .static-page-switches .theme-chip:focus-visible,
body.page-static[data-siteworld="klartechnik"] .static-page-switches .theme-chip.is-active {
  border-color: rgba(126, 196, 242, 0.54);
  background: rgba(22, 48, 72, 0.52);
  color: rgb(246, 250, 253);
}

body.page-static[data-siteworld="klartechnik"] .static-page-stage::before {
  border: 1px solid rgba(91, 165, 215, 0.14);
  box-shadow: 0 0 78px rgba(91, 165, 215, 0.08);
}

body.page-static[data-siteworld="klartechnik"] .static-page-stage::after {
  background:
    linear-gradient(90deg, rgba(91, 165, 215, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(126, 196, 242, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 78% 20%, rgba(91, 165, 215, 0.12), transparent 26rem);
  background-size: 8rem 8rem, 8rem 8rem, auto;
}

body.page-static[data-siteworld="klartechnik"] .static-page-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(91, 165, 215, 0.24);
  background:
    linear-gradient(135deg, rgba(11, 22, 34, 0.94), rgba(6, 12, 20, 0.97) 54%, rgba(12, 26, 40, 0.92)),
    radial-gradient(circle at 82% 0%, rgba(91, 165, 215, 0.14), transparent 32rem);
  box-shadow:
    0 2.2rem 5.8rem rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(206, 232, 252, 0.08);
}

body.page-static[data-siteworld="klartechnik"] .static-page-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(91, 165, 215, 0.14), transparent 34%),
    radial-gradient(circle at 8% 14%, rgba(126, 196, 242, 0.08), transparent 18rem);
  opacity: 0.74;
}

body.page-static[data-siteworld="klartechnik"] .static-page-card > * {
  position: relative;
  z-index: 1;
}

body.page-static[data-siteworld="klartechnik"] .static-page__title,
body.page-static[data-siteworld="klartechnik"] .static-page__section h2,
body.page-static[data-siteworld="klartechnik"] .static-page__section strong {
  color: rgb(245, 249, 253);
}

body.page-static[data-siteworld="klartechnik"] .static-page__section {
  border-top-color: rgba(91, 165, 215, 0.18);
}

body.page-static[data-siteworld="klartechnik"] .static-page__section--contactbox,
body.page-static[data-siteworld="klartechnik"] .static-page__fact {
  border-color: rgba(91, 165, 215, 0.24);
  background: rgba(7, 15, 24, 0.46);
}

body.page-static[data-siteworld="klartechnik"] .static-page__fact span {
  color: rgba(126, 196, 242, 0.72);
}

body.page-static[data-siteworld="klartechnik"] .static-page__fact strong,
body.page-static[data-siteworld="klartechnik"] .static-page__fact a,
body.page-static[data-siteworld="klartechnik"] .static-page__section a {
  color: rgb(220, 241, 255);
  text-decoration-color: rgba(126, 196, 242, 0.42);
}

body.page-static[data-siteworld="klartechnik"] .button,
body.page-static[data-siteworld="klartechnik"] .button-primary {
  color: rgb(5, 18, 30);
  background: linear-gradient(135deg, rgb(185, 226, 252), rgb(83, 164, 224));
  border-color: rgba(206, 232, 252, 0.62);
  box-shadow: 0 1rem 2.4rem rgba(83, 164, 224, 0.22);
}

body.page-static[data-siteworld="farbatelier"] .site-header--static {
  background:
    linear-gradient(180deg, rgba(8, 5, 14, 0.96), rgba(9, 6, 18, 0.86));
  border-bottom-color: rgba(232, 86, 194, 0.22);
}

body.page-static[data-siteworld="farbatelier"] .site-header--static .site-header__progress {
  background: linear-gradient(90deg, rgba(255, 151, 220, 0.72), rgba(94, 201, 244, 0.34), rgba(255, 182, 78, 0.22), transparent);
}

body.page-static[data-siteworld="farbatelier"] .site-brand__eyebrow,
body.page-static[data-siteworld="farbatelier"] .static-page__eyebrow {
  color: rgb(255, 151, 220);
}

body.page-static[data-siteworld="farbatelier"] .site-brand__meta,
body.page-static[data-siteworld="farbatelier"] .static-page__intro,
body.page-static[data-siteworld="farbatelier"] .static-page__lead p,
body.page-static[data-siteworld="farbatelier"] .static-page__section p,
body.page-static[data-siteworld="farbatelier"] .static-page__section li {
  color: rgba(237, 226, 245, 0.80);
}

body.page-static[data-siteworld="farbatelier"] .site-header__utility,
body.page-static[data-siteworld="farbatelier"] .static-page-switches .theme-chip {
  border-color: rgba(232, 86, 194, 0.26);
  background: rgba(24, 10, 34, 0.42);
  color: rgba(247, 235, 252, 0.80);
}

body.page-static[data-siteworld="farbatelier"] .site-header__utility:hover,
body.page-static[data-siteworld="farbatelier"] .site-header__utility:focus-visible,
body.page-static[data-siteworld="farbatelier"] .static-page-switches .theme-chip:hover,
body.page-static[data-siteworld="farbatelier"] .static-page-switches .theme-chip:focus-visible,
body.page-static[data-siteworld="farbatelier"] .static-page-switches .theme-chip.is-active {
  border-color: rgba(255, 151, 220, 0.56);
  background: rgba(60, 22, 78, 0.54);
  color: rgb(253, 248, 255);
}

body.page-static[data-siteworld="farbatelier"] .static-page-stage::before {
  border: 1px solid rgba(232, 86, 194, 0.14);
  box-shadow: 0 0 78px rgba(232, 86, 194, 0.08);
}

body.page-static[data-siteworld="farbatelier"] .static-page-stage::after {
  background:
    radial-gradient(circle at 78% 20%, rgba(232, 86, 194, 0.13), transparent 26rem),
    radial-gradient(circle at 18% 76%, rgba(94, 201, 244, 0.10), transparent 25rem),
    linear-gradient(118deg, transparent 0 28%, rgba(232, 86, 194, 0.06) 28.2%, transparent 29.1% 72%, rgba(94, 201, 244, 0.05) 72.2%, transparent 73.1%);
}

body.page-static[data-siteworld="farbatelier"] .static-page-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 86, 194, 0.24);
  background:
    linear-gradient(135deg, rgba(25, 12, 34, 0.94), rgba(10, 7, 18, 0.97) 54%, rgba(28, 12, 42, 0.92)),
    radial-gradient(circle at 82% 0%, rgba(232, 86, 194, 0.14), transparent 32rem),
    radial-gradient(circle at 10% 92%, rgba(94, 201, 244, 0.08), transparent 26rem);
  box-shadow:
    0 2.2rem 5.8rem rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 221, 247, 0.08);
}

body.page-static[data-siteworld="farbatelier"] .static-page-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(232, 86, 194, 0.14), transparent 34%),
    radial-gradient(circle at 8% 14%, rgba(94, 201, 244, 0.08), transparent 18rem);
  opacity: 0.76;
}

body.page-static[data-siteworld="farbatelier"] .static-page-card > * {
  position: relative;
  z-index: 1;
}

body.page-static[data-siteworld="farbatelier"] .static-page__title,
body.page-static[data-siteworld="farbatelier"] .static-page__section h2,
body.page-static[data-siteworld="farbatelier"] .static-page__section strong {
  color: rgb(253, 248, 255);
}

body.page-static[data-siteworld="farbatelier"] .static-page__section {
  border-top-color: rgba(232, 86, 194, 0.18);
}

body.page-static[data-siteworld="farbatelier"] .static-page__section--contactbox,
body.page-static[data-siteworld="farbatelier"] .static-page__fact {
  border-color: rgba(232, 86, 194, 0.24);
  background: rgba(18, 8, 28, 0.46);
}

body.page-static[data-siteworld="farbatelier"] .static-page__fact span {
  color: rgba(255, 151, 220, 0.72);
}

body.page-static[data-siteworld="farbatelier"] .static-page__fact strong,
body.page-static[data-siteworld="farbatelier"] .static-page__fact a,
body.page-static[data-siteworld="farbatelier"] .static-page__section a {
  color: rgb(255, 224, 248);
  text-decoration-color: rgba(255, 151, 220, 0.42);
}

body.page-static[data-siteworld="farbatelier"] .button,
body.page-static[data-siteworld="farbatelier"] .button-primary {
  color: rgb(28, 8, 34);
  background: linear-gradient(135deg, rgb(255, 177, 229), rgb(232, 86, 194));
  border-color: rgba(255, 221, 247, 0.62);
  box-shadow: 0 1rem 2.4rem rgba(232, 86, 194, 0.22);
}

body.page-static[data-color-scheme="light"][data-siteworld="klartechnik"] .static-page-card,
body.page-static[data-color-scheme="light"][data-siteworld="farbatelier"] .static-page-card {
  color-scheme: dark;
}

@media (max-width: 980px) {
  .site-header__actions--static {
    align-items: stretch;
    justify-content: flex-start;
  }

  .static-page-switches,
  .static-page-switches__group {
    justify-items: start;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .static-page-switches {
    width: 100%;
  }

  .static-page-switches .theme-chip {
    font-size: 0.72rem;
    padding-inline: 0.52rem;
  }
}

/* F14 - Statische Seiten: Keine zweite Header-Logik
   Statische Seiten nutzen dieselbe Header-Struktur wie die Startseite.
   Der statische Modus in PHP ändert ausschließlich die Linkziele zu index.php#anker. */
body.page-static .site-header__utilityrow {
  display: none !important;
}

.site-mobile-utility {
  display: grid;
  gap: 0.42rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
}

.site-mobile-utility__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.58rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--color-line) / var(--alpha-line-soft));
  background: rgb(var(--color-surface-strong) / 0.16);
  color: rgb(var(--color-text-soft));
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
}

.site-mobile-utility__link:hover,
.site-mobile-utility__link:focus-visible {
  color: rgb(var(--color-text));
  border-color: rgb(var(--color-line) / var(--alpha-line));
  background: rgb(var(--color-panel) / 0.78);
}

/* S3m - Papageno mobiles Menü: Aktive Bereiche, Moduszeile und Stilwelt-Steuerung
   Ziel: Mobile Navigation und Steuerflächen an die Papageno-Stilwelt angleichen. */
@media (max-width: 980px) {
  body[data-siteworld="papageno"] .site-mobile-nav__link[data-mobile-nav-link] {
    border-color: rgba(228, 151, 67, 0.34);
    background:
      linear-gradient(135deg, rgba(42, 22, 12, 0.62), rgba(7, 8, 8, 0.84));
    color: rgba(255, 246, 225, 0.88);
    box-shadow:
      inset 0 1px 0 rgba(255, 224, 178, 0.08),
      0 0.7rem 1.4rem rgba(0, 0, 0, 0.16);
  }

  body[data-siteworld="papageno"] .site-mobile-nav__link[data-mobile-nav-link].is-active,
  body[data-siteworld="papageno"] .site-mobile-nav__link[data-mobile-nav-link][aria-current="true"] {
    border-color: rgba(255, 202, 125, 0.78);
    background:
      radial-gradient(circle at 12% 30%, rgba(255, 211, 137, 0.28), transparent 58%),
      linear-gradient(135deg, rgba(92, 48, 23, 0.92), rgba(24, 12, 7, 0.96));
    color: rgb(255, 248, 232);
    box-shadow:
      0 0 0 1px rgba(228, 151, 67, 0.30),
      0 0.7rem 1.7rem rgba(228, 126, 49, 0.18),
      inset 0 1px 0 rgba(255, 232, 185, 0.22);
  }

  body[data-siteworld="papageno"] .site-mobile-nav__link[data-mobile-nav-link].is-active::after,
  body[data-siteworld="papageno"] .site-mobile-nav__link[data-mobile-nav-link][aria-current="true"]::after {
    left: 0.74rem;
    right: 0.74rem;
    bottom: 0.32rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 209, 128, 0.96), rgba(219, 120, 42, 0.76));
    box-shadow: 0 0 0.8rem rgba(228, 151, 67, 0.32);
  }

  body[data-siteworld="papageno"] .site-mobile-mode__buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.32rem !important;
  }

  body[data-siteworld="papageno"] .site-mobile-mode__buttons .theme-chip--mode,
  body[data-siteworld="papageno"] .site-mobile-mode__buttons .theme-chip--mode:last-child {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: nowrap;
  }

  body[data-siteworld="papageno"] .site-mobile-styleworld__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.32rem !important;
  }

  body[data-siteworld="papageno"] .site-mobile-styleworld__buttons .theme-chip--siteworld {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: nowrap;
  }

  body[data-siteworld="papageno"] .site-mobile-mode__title,
  body[data-siteworld="papageno"] .site-mobile-styleworld__title {
    color: rgba(255, 215, 150, 0.76);
  }
}

@media (max-width: 420px) {
  body[data-siteworld="papageno"] .site-mobile-styleworld__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body[data-siteworld="papageno"] .site-mobile-styleworld__buttons .theme-chip--siteworld {
    padding-inline: 0.28rem !important;
    font-size: 0.62rem !important;
  }
}

