/* Design-System: Grundlayout & Komponenten für Landingpages */ 

:root {
  --ui-bg: #f4f5f7;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f9fafb;
  --ui-border: #e5e7eb;
  --ui-border-strong: #d1d5db;
  --ui-text: #111827;
  --ui-text-muted: #2c2d2f;
  --ui-text-muted-soft: #adadad;
  --ui-primary: #1d4ed8;
  --ui-primary-soft: #e0ecff;
  --ui-primary-strong: #1e40af;
  --ui-accent: #10b981;
  --ui-radius-sm: 6px;
  --ui-radius-md: 10px;
  --ui-radius-lg: 16px;
  --ui-shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
  --ui-shadow-subtle: 0 4px 10px rgba(15, 23, 42, 0.04);
  --ui-gap-sm: 0.5rem;
  --ui-gap-md: 1rem;
  --ui-gap-lg: 1.5rem;
  --ui-transition-fast: 160ms ease-out;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ui-bg);
  color: var(--ui-text);
}

:root {
  --header-offset-top: 118px;      /* Topbar + Header */
  --header-offset-scrolled: 74px;  /* nur Header */
}

.section {
  margin-bottom: 1.5rem;
}

@media (min-width: 960px) {
  .section--wide {
      margin-bottom: 2rem;
  }
}

/* Typografie */

h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.05rem;
}

@media (min-width: 960px) {
  h1 {
      font-size: 2.2rem;
  }
  h2 {
      font-size: 1.55rem;
  }
}

.lead {
  font-size: 1.15rem;
  color: var(--ui-text-muted-soft);
}

.muted {
  color: var(--ui-text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
      background-color var(--ui-transition-fast),
      border-color var(--ui-transition-fast),
      color var(--ui-transition-fast),
      box-shadow var(--ui-transition-fast),
      transform var(--ui-transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-strong));
  color: #ffffff;
  box-shadow: var(--ui-shadow-soft);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--ui-primary-strong), #1e3a8a);
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--ui-border-strong);
  color: var(--ui-text);
  box-shadow: var(--ui-shadow-subtle);
}

.btn-secondary:hover {
  border-color: var(--ui-primary);
  box-shadow: var(--ui-shadow-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ui-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--ui-primary-soft);
}

.btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ui-primary);
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--ui-surface-soft);
  color: var(--ui-text-muted);
  border: 1px solid var(--ui-border);
}

.badge-primary {
  background: var(--ui-primary-soft);
  color: var(--ui-primary-strong);
  border-color: rgba(37, 99, 235, 0.35);
}

/* Grid-System */

.grid {
  display: grid;
  gap: var(--ui-gap-md);
}

.grid-2 {
  grid-template-columns: minmax(0, 1fr);
}

.grid-3 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .grid-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Cards */

.card {
  background: var(--ui-surface);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  padding: 1rem 1.1rem;
}

.card-soft {
  background: var(--ui-surface-soft);
}

.card-feature {
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-soft);
}

/* Header / Navigation */

.site-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: var(--ui-gap-lg);
  margin-bottom: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* Topbar / Trust Row Baseline */

.topbar {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--ui-text-muted);
  overflow: hidden;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .topbar {
      overflow: visible;
  }
}

.topbar__track {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.topbar__marquee {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0.2rem 0;
  animation: topbar-marquee 120s linear infinite;
}

.topbar:hover .topbar__marquee {
  animation-play-state: paused;
}

@keyframes topbar-marquee {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar__marquee {
      animation: none;
  }
}

.topbar {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.85rem;
margin-bottom: 0.75rem;
color: var(--ui-text-muted);
}

.topbar__btn {
border: 1px solid var(--ui-border);
background: #fff;
border-radius: 999px;
width: 34px;
height: 34px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
user-select: none;
}

.topbar__btn:active {
transform: translateY(1px);
}

.topbar__viewport {
overflow: hidden;
flex: 1 1 auto;
min-width: 0;
}

.topbar__track {
display: flex;
will-change: transform;
transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}

.topbar__item {
flex: 0 0 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: .3rem .25rem;
}

/* Reduced motion: kein Sliding */
@media (prefers-reduced-motion: reduce){
.topbar__track{ transition: none; }
}

@media (max-width: 520px){
.topbar__btn{ width: 30px; height: 30px; }
.topbar__item{ padding: .25rem .15rem; }
}

/* Header shell overlay */

.header-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: transparent;
  transition:
      background-color 180ms ease,
      box-shadow 180ms ease,
      backdrop-filter 180ms ease;
}

.header-shell__inner {
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.header-shell__container{
padding-top:.35rem;
padding-bottom:.35rem;
}

.header-shell.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.header-shell__container.container{
padding-top: .35rem !important;
padding-bottom: .35rem !important;
}

.header-shell .topbar{
max-height: 60px;
opacity: 1;
margin-bottom: .45rem;
overflow: hidden;
transform: translateY(0);
transition:
  max-height 420ms cubic-bezier(.2,.8,.2,1),
  opacity 240ms ease,
  margin 420ms cubic-bezier(.2,.8,.2,1),
  transform 420ms cubic-bezier(.2,.8,.2,1);
}

.header-shell.is-topbar-hidden .topbar{
max-height: 0;
opacity: 0;
margin-bottom: 0;
transform: translateY(-10px);
pointer-events: none;
}

/* Standard-Offset für Seiten unter festem Header */
.container > main{
padding-top: var(--header-offset-top);
}

.header-shell.is-scrolled + .container > main{
padding-top: var(--header-offset-scrolled);
}

/* Landingpage-Hero regelt den Offset selbst, daher kein zusätzliches Padding auf dem Main */
body.landing-page .container > main{
padding-top: 0;
}

body.landing-page .header-shell.is-scrolled + .container > main{
padding-top: 0;
}

/* ─────────────────────────────────────────────
 Landing Header: sticky + scroll states
 ───────────────────────────────────────────── */

.site-header {
position: static;
top: auto;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 0.75rem;
padding: 0.85rem 0;
transform: translateY(0);
transition: transform 180ms ease, padding 180ms ease, background 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

/* ===== Topbar (Dr.Müller-like) OVERRIDE ===== */
.topbar{
/* Full-bleed trotz .container */
width: 100vw;
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);

background: radial-gradient(circle at 0% 0%,
  #050608 0%,
  #020617 42%,
  #020617 100%);
color: #e5e7eb;

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

padding: .55rem 0;
border-radius: 0;
position: relative;
}

/* Track/Slider bleibt zentriert */
.topbar__viewport{
width: min(900px, 72vw);
overflow: hidden;
text-align: center;
}

.topbar__track{
display:flex;
will-change: transform;
transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}

.topbar__item{
flex: 0 0 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 0;
font-weight: 400;
letter-spacing: .04em;
}

/* Pfeile wie Dr.Müller: außen, ohne Kreis */
.topbar__btn{
position:absolute;
top:50%;
transform: translateY(-50%);

border:0;
background:transparent;
color:#f9fafb;

padding:.2rem;
cursor:pointer;
opacity:.9;
width:auto;
height:auto;
z-index: 1002;
}

.topbar__btn--prev{ left: 14px; }
.topbar__btn--next{ right: 14px; }

.topbar__btn:hover{ opacity:1; }
.topbar__btn:active{ transform: translateY(-50%) translateY(1px); }

.topbar__chev{
width: 18px;
height: 18px;
display:block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
.topbar__track{ transition:none; }
}

/* Mobile */
@media (max-width: 520px){
.topbar__viewport{ width: min(520px, 68vw); }
.topbar__btn--prev{ left: 10px; }
.topbar__btn--next{ right: 10px; }
}


/* ===== Fix: Shell nicht schwarz färben (nur Topbar bleibt schwarz) ===== */
.header-shell{
background: transparent !important;
}

/* Beim Scrollen soll Shell weiterhin weiß werden (wie geplant) */
.header-shell.is-scrolled{
background: rgba(255,255,255,.92) !important;
}

@media (min-width: 861px){
/* Header / Nav Farben wie drmueller.de (nur Desktop) */
.header-shell:not(.is-scrolled) .brand__title{
  color: #fff;
}

.header-shell:not(.is-scrolled) .brand__subtitle{
  color: rgba(255,255,255,.78);
}

.header-shell:not(.is-scrolled) .nav-links a{
  color: rgba(255,255,255,.92);
}

.header-shell.is-scrolled .brand__title{
  color: var(--ui-text);
}

.header-shell.is-scrolled .brand__subtitle{
  color: var(--ui-text-muted);
}

.header-shell.is-scrolled .nav-links a{
  color: var(--ui-text);
}
}

/* ===== Remove white gap above topbar ===== */
html, body{
margin: 0;
padding: 0;
}

.header-shell{
top: 0;
}

.header-shell__inner{
padding-top: 0 !important;
padding-bottom: 0 !important;
}

.topbar{
margin-top: 0 !important;
margin-bottom: 0 !important; /* optional, wenn du es ultra-clean willst */
}

/* ===== Kill header container padding (verursacht den weißen Streifen oben) ===== */
.header-shell__container,
.header-shell__container.container{
padding-top: 0 !important;
padding-bottom: 0 !important;
}

/* Header transparent im Top-Zustand, Hero scheint durch */
.header-shell:not(.is-scrolled){
background: transparent !important;
box-shadow: none !important;
backdrop-filter: none !important;
}

.header-shell:not(.is-scrolled) .site-header{
background: transparent !important;
box-shadow: none !important;
backdrop-filter: none !important;
}

/* Design-System: Grundlayout & Komponenten für Landingpages */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ui-bg);
  color: var(--ui-text);
}

:root {
  --header-offset-top: 118px;      /* Topbar + Header */
  --header-offset-scrolled: 74px;  /* nur Header */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 2rem;
}

.section {
  margin-bottom: 1.5rem;
}

@media (min-width: 960px) {
  .section--wide {
      margin-bottom: 2rem;
  }
}

/* Typografie */

h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.05rem;
}

@media (min-width: 960px) {
  h1 {
      font-size: 2.2rem;
  }
  h2 {
      font-size: 1.55rem;
  }
}

.muted {
  color: var(--ui-text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
      background-color var(--ui-transition-fast),
      border-color var(--ui-transition-fast),
      color var(--ui-transition-fast),
      box-shadow var(--ui-transition-fast),
      transform var(--ui-transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-strong));
  color: #ffffff;
  box-shadow: var(--ui-shadow-soft);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--ui-primary-strong), #1e3a8a);
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--ui-border-strong);
  color: var(--ui-text);
  box-shadow: var(--ui-shadow-subtle);
}

.btn-secondary:hover {
  border-color: var(--ui-primary);
  box-shadow: var(--ui-shadow-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ui-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--ui-primary-soft);
}

.btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ui-primary);
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--ui-surface-soft);
  color: var(--ui-text-muted);
  border: 1px solid var(--ui-border);
}

.badge-primary {
  background: var(--ui-primary-soft);
  color: var(--ui-primary-strong);
  border-color: rgba(37, 99, 235, 0.35);
}

/* Grid-System */

.grid {
  display: grid;
  gap: var(--ui-gap-md);
}

.grid-2 {
  grid-template-columns: minmax(0, 1fr);
}

.grid-3 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .grid-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Cards */

.card {
  background: var(--ui-surface);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  padding: 1rem 1.1rem;
}

.card-soft {
  background: var(--ui-surface-soft);
}

.card-feature {
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-soft);
}

/* Header / Navigation */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--ui-gap-lg);
  margin-bottom: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand__title {
  font-weight: 600;
  font-size: 1.25rem;
}

.brand__subtitle {
  font-size: 0.9rem;
  color: var(--ui-text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-header.is-sticky {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transform: translateY(0);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid var(--ui-border-strong);
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ui-text);
  box-shadow: var(--ui-shadow-subtle);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ui-primary);
}

.nav-links a {
  text-decoration: none;
  color: var(--ui-primary);
  position: relative;
  padding-bottom: 0.05rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ui-primary), var(--ui-accent));
  transition: width var(--ui-transition-fast);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

/* Aktive Sektion: Linie bleibt sichtbar */
.nav-links a.is-active::after {
  width: 100%;
}

.nav-links a:focus-visible {
  outline: none;
}

@media (max-width: 640px) {
  .site-header {
      flex-direction: column;
      align-items: stretch;
      padding-top: 0.25rem;
      padding-bottom: 0.5rem;
      row-gap: 0.4rem;
  }

  .site-nav {
      flex-direction: column;
      align-items: flex-end;
      gap: 0.35rem;
  }

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

  .nav-links {
      flex-direction: column;
      align-items: flex-end;
      gap: 0.4rem;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition:
          max-height var(--ui-transition-fast),
          opacity var(--ui-transition-fast);
  }

  .nav-links.is-open {
      max-height: 220px;
      opacity: 1;
  }
}

/* Topbar / Trust Row Baseline */

.topbar {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--ui-text-muted);
  overflow: hidden;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .topbar {
      overflow: visible;
  }
}

.topbar__track {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.topbar__marquee {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0.2rem 0;
  animation: topbar-marquee 120s linear infinite;
}

.topbar:hover .topbar__marquee {
  animation-play-state: paused;
}

@keyframes topbar-marquee {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar__marquee {
      animation: none;
  }
}

.topbar {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.85rem;
margin-bottom: 0.75rem;
color: var(--ui-text-muted);
}

.topbar__btn {
border: 1px solid var(--ui-border);
background: #fff;
border-radius: 999px;
width: 34px;
height: 34px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
user-select: none;
}

.topbar__btn:active {
transform: translateY(1px);
}

.topbar__viewport {
overflow: hidden;
flex: 1 1 auto;
min-width: 0;
}

.topbar__track {
display: flex;
will-change: transform;
transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}

.topbar__item {
flex: 0 0 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: .3rem .25rem;
}

/* Reduced motion: kein Sliding */
@media (prefers-reduced-motion: reduce){
.topbar__track{ transition: none; }
}

@media (max-width: 520px){
.topbar__btn{ width: 30px; height: 30px; }
.topbar__item{ padding: .25rem .15rem; }
}

/* Header shell overlay */

.header-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: transparent;
  transition:
      background-color 180ms ease,
      box-shadow 180ms ease,
      backdrop-filter 180ms ease;
}

.header-shell__inner {
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.header-shell__container{
padding-top:.35rem;
padding-bottom:.35rem;
}

.header-shell.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.header-shell__container.container{
padding-top: .35rem !important;
padding-bottom: .35rem !important;
}

.header-shell .topbar{
max-height: 60px;
opacity: 1;
margin-bottom: .45rem;
overflow: hidden;
transform: translateY(0);
transition:
  max-height 420ms cubic-bezier(.2,.8,.2,1),
  opacity 240ms ease,
  margin 420ms cubic-bezier(.2,.8,.2,1),
  transform 420ms cubic-bezier(.2,.8,.2,1);
}

.header-shell.is-topbar-hidden .topbar{
max-height: 0;
opacity: 0;
margin-bottom: 0;
transform: translateY(-10px);
pointer-events: none;
}

.container > main{
padding-top: var(--header-offset-top);
}

.header-shell.is-scrolled + .container > main{
padding-top: var(--header-offset-scrolled);
}

/* ─────────────────────────────────────────────
 Landing Header: sticky + scroll states
 ───────────────────────────────────────────── */

.site-header {
position: static;
top: auto;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 0.75rem;
padding: 0.85rem 0;
transform: translateY(0);
transition: transform 180ms ease, padding 180ms ease, background 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

/* Scroll: kleiner + Glass */
.site-header.is-scrolled {
padding: 0.85rem 0;
background: rgba(255, 255, 255, 0.75);
backdrop-filter: blur(10px);
box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

/* Scroll down: verstecken */
.site-header.is-hidden {
transform: translateY(0) !important;
}

/* Menü Button (Desktop erstmal aus) */
.nav-toggle {
display: none;
border: 1px solid var(--ui-border);
background: #cdcdcd;
border-radius: 10px;
padding: 0.5rem 0.75rem;
font-weight: 600;
}

/* ===== Topbar (Dr.Müller-like) OVERRIDE ===== */
.topbar{
/* Full-bleed trotz .container */
width: 100vw;
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);

background: #0b0b0b;
color: #fff;

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

padding: .55rem 0;
border-radius: 0;
position: relative;
}

/* Track/Slider bleibt zentriert */
.topbar__viewport{
width: min(900px, 72vw);
overflow: hidden;
text-align: center;
}

.topbar__track{
display:flex;
will-change: transform;
transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}

.topbar__item{
flex: 0 0 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 0;
font-weight: 500;
letter-spacing: .01em;
}

/* Pfeile wie Dr.Müller: außen, ohne Kreis */
.topbar__btn{
position:absolute;
top:50%;
transform: translateY(-50%);

border:0;
background:transparent;
color:#fff;

padding:.2rem;
cursor:pointer;
opacity:.9;
width:auto;
height:auto;
}

.topbar__btn--prev{ left: 14px; }
.topbar__btn--next{ right: 14px; }

.topbar__btn:hover{ opacity:1; }
.topbar__btn:active{ transform: translateY(-50%) translateY(1px); }

.topbar__chev{
width: 18px;
height: 18px;
display:block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
.topbar__track{ transition:none; }
}

/* Mobile */
@media (max-width: 520px){
.topbar__viewport{ width: min(520px, 68vw); }
.topbar__btn--prev{ left: 10px; }
.topbar__btn--next{ right: 10px; }
}

/* ===== Topbar: weiches Ausblenden am Rand (gegen Flacker-Kante) ===== */
.topbar__viewport{
position: relative;
overflow: hidden;
}

/* rechter Fade */
.topbar__viewport::after{
content:"";
position:absolute;
top:0;
right:0;
width:48px;
height:100%;
pointer-events:none;
background: linear-gradient(to left, #050608 0%, rgba(5,6,12,0) 100%);
}

/* optional: linker Fade (symmetrisch) */
.topbar__viewport::before{
content:"";
position:absolute;
top:0;
left:0;
width:48px;
height:100%;
pointer-events:none;
background: linear-gradient(to right, #050608 0%, rgba(5,6,12,0) 100%);
}

/* ===== Glättung für bewegten Text ===== */
.topbar__track,
.topbar__marquee{
will-change: transform;
transform: translate3d(0,0,0);
}

/* ===== Topbar Slide/Shift langsamer machen ===== */
.topbar__track{
transition: transform 1100ms cubic-bezier(.2,.8,.2,1);
}

/* ===== Force marquee speed (wins against any earlier rule) ===== */
.topbar__marquee{
animation-duration: 120s !important;
}

/* Mobile-Feinschliff: Topbar und Header etwas luftiger und ruhiger auf sehr kleinen Screens */
@media (max-width: 520px){
  .topbar{
    font-size: 0.78rem;
    padding: 0.42rem 0;
  }

  .topbar__btn{
    opacity: 0.85;
  }

  .header-shell .site-header{
    padding-top: 0.25rem;
    padding-bottom: 0.35rem;
  }
}

/* ===== Hero underlays header (Dr.Müller effect) ===== */
.header-shell + .container #top.section--wide{
margin-top: calc(-1 * var(--header-offset-top));
padding-top: var(--header-offset-top);
}

.header-shell.is-scrolled + .container #top.section--wide{
margin-top: calc(-1 * var(--header-offset-scrolled));
padding-top: var(--header-offset-scrolled);
}

/* Auf der Landingpage übernimmt der Hero selbst den vertikalen Offset – keine zusätzliche Verschiebung der Section */
body.landing-page .header-shell + .container #top.section--wide,
body.landing-page .header-shell.is-scrolled + .container #top.section--wide{
margin-top: 0;
padding-top: 0;
}

/* ===== Fix: Shell nicht schwarz färben (nur Topbar bleibt schwarz) ===== */
.header-shell{
background: transparent !important;
}

/* Beim Scrollen soll Shell weiterhin weiß werden (wie geplant) */
.header-shell.is-scrolled{
background: rgba(255,255,255,.92) !important;
}

/* Header / Nav Farben wie drmueller.de */
.header-shell:not(.is-scrolled) .brand__title{
color: #fff;
}

.header-shell:not(.is-scrolled) .brand__subtitle{
color: rgba(255,255,255,.78);
}

.header-shell.is-scrolled .brand__title{
color: var(--ui-text);
}

.header-shell.is-scrolled .brand__subtitle{
color: var(--ui-text-muted);
}

/* ===== Remove white gap above topbar ===== */
html, body{
margin: 0;
padding: 0;
}

.header-shell{
top: 0;
}

.header-shell__inner{
padding-top: 0 !important;
padding-bottom: 0 !important;
}

.topbar{
margin-top: 0 !important;
margin-bottom: 0 !important; /* optional, wenn du es ultra-clean willst */
}

/* ===== Kill header container padding (verursacht den weißen Streifen oben) ===== */
.header-shell__container,
.header-shell__container.container{
padding-top: 0 !important;
padding-bottom: 0 !important;
}


/* ================================
 CANONICAL HEADER + NAV (single source of truth)
 ================================ */

/* Desktop Header */
.site-header{
position: relative;
display:flex;
align-items:center;
justify-content:flex-start;
gap: .75rem;
padding: .85rem 0;
}

/* Inline Brand-Titel neben Hamburger (wird erst bei versteckter Topbar eingeblendet) */
.brand--inline{
flex: 0 1 auto;
display:flex;
flex-direction:column;
justify-content:center;
align-items:flex-start;
min-width: 0;
gap: .15rem;
}

/* Standard: Titel im Header ausgeblendet, solange Topbar sichtbar ist */
.header-shell .brand--inline{
opacity: 0;
transform: translateY(4px);
transition:
  opacity 180ms ease,
  transform 180ms ease;
}

/* Wenn Topbar ausgeblendet ist (Header vollständig runter gefahren), Titel einblenden */
.header-shell.is-topbar-hidden .brand--inline{
opacity: 1;
transform: translateY(0);
}

@media (min-width: 861px){
.site-header{
  justify-content:flex-start;
}
.site-nav{
  margin-right:auto;
}
.header-login-icon{
  margin-left:auto;
}
.brand--inline{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
}
}

.header-login-icon{
display:inline-flex;
align-items:center;
justify-content:center;
color: #fff;
text-decoration:none;
}

/* Scrolled / weißer Header: dunkles Icon */
.header-shell.is-scrolled .header-login-icon,
.header-shell.is-topbar-hidden .header-login-icon{
color: var(--ui-text);
}

.brand--inline .brand__title{
font-size: 0.95rem;
font-weight: 600;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}

.brand__logo{
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
flex: 0 0 34px;
border-radius: 999px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0, 0, 0, .12), 0 0 0 1px rgba(255, 255, 255, .10);
transition: box-shadow 180ms ease, transform 180ms ease;
}

.brand__logo img{
display:block;
width: 100%;
height: 100%;
object-fit: contain;
}

.brand__logo:hover{
transform: translateY(-1px);
box-shadow:
  0 10px 26px rgba(0,0,0,.18),
  0 0 0 1px rgba(255,255,255,.14),
  0 0 0 2px rgba(180,140,60,.28);
}

.header-shell.is-scrolled .brand__logo{
box-shadow:
  0 8px 20px rgba(0,0,0,.10),
  0 0 0 1px rgba(17,24,39,.10);
}

.header-shell.is-scrolled .brand__logo:hover{
box-shadow:
  0 10px 26px rgba(0,0,0,.14),
  0 0 0 1px rgba(17,24,39,.12),
  0 0 0 2px rgba(180,140,60,.24);
}

@media (max-width: 860px){
.brand__logo{
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin-top: 0;
  transition: transform 180ms ease;
}
}

.brand__section {
margin-top: -0.3rem;
font-size: 0.8rem;
color: var(--ui-text-muted);
text-align: center;
width: 100%;
}

@media (max-width: 860px){
  .brand--inline{
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .brand__section{
    display: block;
    margin-bottom: 3px;
    font-size: 0.74rem;
    line-height: 1.15;
    text-align: center;
  }
}

.brand__section::before{
content:"(";
}

.brand__section::after{
content:")";
}

/* Desktop Nav Links inline */
.nav-links{
display:flex;
align-items:center;
gap: 1.05rem;
margin: 0;
padding: 0;
list-style:none;
}

/* Desktop: Toggle hidden */
.nav-toggle{
display:none;
border: 1px solid var(--ui-border);
background: #fff;
border-radius: 10px;
width: 34px;
height: 34px;
padding: 0;
}

/* Mobile Drawer */
@media (max-width: 860px){
/* Pseudo-Backdrop deaktiviert – echter Backdrop via .nav-backdrop */
.site-header::before{ content:none !important; }
.site-header.is-nav-open::before{ content:none !important; }

.site-header{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  column-gap: .5rem;
  min-height: 50px;
  padding: .08rem 0;
  transition:
    min-height 180ms ease,
    padding 180ms ease;
}

.header-shell.is-topbar-hidden .site-header,
.header-shell.is-scrolled .site-header{
  min-height: 42px;
  padding: 0;
}

/* Hamburger left (standard) */
.nav-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  font-size:0; /* hide glyph text */
  color: var(--ui-text);
}

.nav-toggle::before{
  content:"";
  position:absolute;
  left: 11px;
  right: 11px;
  top: 11px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

/* Backdrop (real element) */
.nav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 1001;
}
.site-header.is-nav-open .nav-backdrop{
  opacity: 1;
  pointer-events: auto;
}

/* Drawer panel */
.site-nav{
  position: fixed;
  top: 56px;
  left: 0;
  display: block;
  width: min(86vw, 360px);
  height: calc(100vh - 56px);
  background: #fff;
  border-right: 1px solid var(--ui-border);
  box-shadow: 20px 0 40px rgba(0,0,0,0.18);
  transform: translateX(-110%);
  transition: transform 220ms ease;
  padding: 1rem;
  z-index: 1002;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.site-header.is-nav-open .site-nav{
  transform: translateX(0);
}

/* Drawer links vertical + IMPORTANT: force readable colors */
.site-nav .nav-links{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap: .5rem;
  margin: 0;
  padding: 0;
  max-height: none;
  opacity: 1;
  overflow: visible;
}

.site-nav .nav-links a{
  display:block;
  padding: .65rem .75rem;
  border-radius: 10px;
  text-decoration:none;
  color: var(--ui-text);           /* <-- FIX: not white on white */
}

.site-nav .nav-links a:hover{
  background: rgba(0,0,0,0.04);
}

}

/* Ab 640px: Drawer-Einträge trotzdem sichtbar (Override der älteren 640px-Blöcke) */
@media (max-width: 640px) {
.site-nav .nav-links {
  max-height: none;
  opacity: 1;
  overflow: visible;
}
/* Landing-Header: eine Zeile beibehalten (kein Column-Stack durch Design-System-640px) */
.header-shell .site-header {
  flex-direction: row;
  align-items: center;
}
}

