/* =========================================================================
   günstige-firmenwebseite.de — Stylesheet
   Lila-System auf Bureau-Marten-Skelett
   Mobile-First. Critical-Path: Reset → Tokens → Nav → Hero zuerst.
   ========================================================================= */

/* --- Font: Inter Variable v4.66 — self-hosted (DSGVO-konform) ------------ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2-variations'),
       url('../fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable-Italic.woff2') format('woff2-variations'),
       url('../fonts/InterVariable-Italic.woff2') format('woff2');
}

/* --- Design Tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --color-primary: #7C3AED;
  --color-hover: #6D28D9;
  --color-accent-light: #A78BFA;
  --color-accent-deep: #5B21B6;

  /* Neutral */
  --color-black: #0A0A0A;
  --color-white: #FFFFFF;
  --color-gray-50: #FAFAFA;
  --color-gray-100: #F4F4F5;
  --color-gray-200: #E4E4E7;
  --color-gray-500: #71717A;
  --color-gray-700: #3F3F46;
  --color-gray-900: #18181B;

  /* Semantic */
  --color-bg: var(--color-white);
  --color-bg-soft: var(--color-gray-50);
  --color-text: var(--color-black);
  --color-text-muted: var(--color-gray-500);
  --color-border: var(--color-gray-200);

  /* Typo */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --base-font-size: 16px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(10,10,10,0.04);
  --shadow-md: 0 8px 24px rgba(10,10,10,0.08);
  --shadow-lg: 0 24px 60px rgba(10,10,10,0.12);
  --shadow-violet: 0 12px 32px rgba(124,58,237,0.28);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;
  --dur-slow: 400ms;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 4vw, 4rem);
  --section-pad: clamp(4rem, 10vw, 8rem);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

/* --- Base ---------------------------------------------------------------- */
html { font-size: var(--base-font-size); }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-black);
}
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.03em; }

p { color: var(--color-text); }

/* --- Container ----------------------------------------------------------- */
/* WICHTIG: Inner-Children (.section-intro, .leistungen-list, .projekte-header,
   .testimonials-inner) wurden hier ENTFERNT — Section-Parents sind selbst
   containerized (.leistungen, .ueber etc.), Doppel-Padding war Bug-Wurzel. */
.container,
.hero-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --- Screen-Reader-Only & Skip-Link -------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  /* backdrop-filter entfernt: verursachte Scroll-Repaint-Storm */
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0.875rem var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}
.nav-links {
  display: none;
  gap: 1.75rem;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--color-gray-700);
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--color-black); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0; background: var(--color-primary);
  transition: width var(--dur) var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-submenu { position: relative; }
.nav-submenu-list {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav-submenu:hover .nav-submenu-list,
.nav-submenu:focus-within .nav-submenu-list {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-submenu-list li a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
}
.nav-submenu-list li a:hover { background: var(--color-gray-50); color: var(--color-primary); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-black);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.theme-toggle:hover { background: var(--color-gray-50); border-color: var(--color-primary); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 1rem var(--container-pad) 1.5rem;
  background: var(--color-white);
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.875rem 0;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile a:last-child { border-bottom: 0; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  background: var(--color-white);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 75%);
  pointer-events: none;
}
.hero-dot {
  position: absolute;
  top: 18%; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-accent-light), var(--color-primary) 60%, transparent 75%);
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.hero-label-line {
  display: inline-block;
  width: 40px; height: 2px;
  background: var(--color-primary);
}
.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--color-black);
  max-width: 18ch;
}
.line-accent {
  position: relative;
  display: inline-block;
  color: inherit;
  /* white-space: nowrap entfernt — verursachte Mobile-Overflow */
}
.line-accent::before {
  content: "";
  position: absolute;
  left: -0.1em; right: -0.1em;
  bottom: 0.06em;
  height: 0.38em;
  background: var(--color-primary);
  opacity: 0.22;
  z-index: -1;
  border-radius: 2px;
  transform: skewX(-6deg);
}
.hero-bottom {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: 2rem;
  align-items: end;
}
.hero-desc {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--color-gray-700);
  line-height: 1.55;
}
.hero-action { display: flex; flex-wrap: wrap; gap: 1rem; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-black, .btn-lila {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              outline-offset var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-black {
  background: var(--color-black);
  color: var(--color-white);
  outline: 2px solid transparent;
}
.btn-black:hover {
  background: var(--color-white);
  color: var(--color-black);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  transform: translateY(-1px);
}
.btn-lila {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-violet);
}
.btn-lila:hover {
  background: var(--color-accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(91,33,182,0.34);
}
.btn-black::after, .btn-lila::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}
.btn-black:hover::after, .btn-lila:hover::after { transform: translateX(3px); }

/* =========================================================================
   DIVIDER
   ========================================================================= */
.divider {
  height: 1px;
  background: var(--color-border);
  border: 0;
  margin: 0 var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* =========================================================================
   SECTION-LABEL / INTRO
   ========================================================================= */
.section-intro {
  padding-top: var(--section-pad);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: inline-flex; align-items: center; gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--color-primary);
}

/* =========================================================================
   LEISTUNGEN
   ========================================================================= */
.leistungen { padding-bottom: var(--section-pad); }
.leistungen-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
.leistung {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.leistung:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.leistung-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
}
.leistung-text h3 { margin-bottom: 0.5rem; }
.leistung-text p { color: var(--color-gray-700); }
.leistung-features {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.25rem;
  min-width: 0;
}
.leistung-features li {
  font-size: 0.85rem;
  padding: 0.375rem 0.75rem;
  background: var(--color-gray-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-gray-700);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.leistung-bottom {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto; /* Preis-Block ans Karten-Ende andocken → alle Preislinien bündig */
}
.leistung-price {
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}
/* Leichter Zusatz (zzgl. MwSt. etc.) kleiner, damit lange Preiszeilen kompakt bleiben */
.leistung-price span { font-size: 0.8em; }
.leistung-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.leistung-addon {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent-light);
}
.leistung-addon-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  background: rgba(167,139,250,0.18);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
}
.leistung-addon-body { font-size: 0.95rem; color: var(--color-gray-700); }
.leistung-addon-price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
}

/* =========================================================================
   PROJEKTE / BRANCHEN
   ========================================================================= */
.projekte { padding-bottom: var(--section-pad); }
.projekte-header {
  display: flex; align-items: end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.projekte-list {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.proj-row {
  display: grid;
  grid-template-columns: 56px 1fr auto 32px;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: padding-inline var(--dur) var(--ease), background var(--dur) var(--ease);
}
.proj-row:first-child { border-top: 1px solid var(--color-border); }
.proj-row:hover {
  background: var(--color-gray-50);
  padding-inline: 1rem;
}
.proj-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}
.proj-title {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-black);
}
.proj-row:hover .proj-title { color: var(--color-primary); }
.proj-cat {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.proj-arrow {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.proj-row:hover .proj-arrow {
  transform: translateX(6px);
  color: var(--color-primary);
}

/* =========================================================================
   ÜBER
   ========================================================================= */
.ueber {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.ueber-left h2 { margin-bottom: 1.5rem; }
.ueber-left p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--color-gray-700);
  margin-bottom: 1rem;
  max-width: 56ch;
}
.ueber-right { display: flex; justify-content: center; }
.ueber-portrait {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-gray-100);
  box-shadow: 0 32px 80px -20px rgba(124,58,237,0.35), 0 0 0 8px rgba(124,58,237,0.06);
  border: 1px solid var(--color-border);
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonials {
  background: var(--color-gray-50);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.testimonials-inner { display: grid; gap: 2rem; }
.testimonial-carousel { position: relative; }
.testimonial-track {
  position: relative;
  min-height: 240px;
}
.testimonial {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease),
              visibility var(--dur-slow);
  display: grid;
  gap: 1.25rem;
  align-content: center;
}
.testimonial.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}
.testimonial blockquote {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--color-black);
  max-width: 60ch;
}
.testimonial blockquote::before {
  content: "„";
  color: var(--color-primary);
  font-size: 1.4em;
  line-height: 0;
  margin-right: 0.05em;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.testimonial cite span { color: var(--color-primary); }
.testimonial-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-top: 1rem;
}
.testimonial-dots {
  display: flex; gap: 0.5rem;
}
.testimonial-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-gray-200);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.testimonial-dot.active {
  background: var(--color-primary);
  transform: scale(1.25);
}
.testimonial-dot:hover { background: var(--color-accent-light); }
.testimonial-pause {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gray-700);
  background: var(--color-white);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.testimonial-pause:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pause-icon {
  width: 10px; height: 10px;
  display: inline-block;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.testimonial-pause[aria-pressed="true"] .pause-icon {
  border-left: 7px solid currentColor;
  border-right: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  width: 0;
}

/* =========================================================================
   CTA
   ========================================================================= */
.cta {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: end;
}
.cta-left h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  max-width: 16ch;
}
.cta-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  display: inline-block;
}
.cta-right { display: grid; gap: 1.25rem; justify-items: start; }
.cta-sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 38ch;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--color-gray-50);
  border-top: 1px solid var(--color-border);
  padding: 3rem var(--container-pad) 2rem;
}
.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  font-size: 0.9rem;
}
.footer-links a {
  color: var(--color-gray-700);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--color-primary); }
.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* =========================================================================
   SCROLL-TOP
   ========================================================================= */
.scroll-top {
  position: fixed;
  right: calc(1.25rem + 6px);
  bottom: calc(1.25rem + 144px);
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              visibility var(--dur);
  z-index: 90;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--color-primary); }

/* =========================================================================
   A11Y-WIDGET (fixed right-bottom)
   ========================================================================= */
.a11y-trigger {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px; height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-violet);
  z-index: 95;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.a11y-trigger:hover { background: var(--color-accent-deep); transform: scale(1.04); }
.a11y-trigger svg { width: 26px; height: 26px; }

.a11y-panel {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + 72px);
  width: min(320px, calc(100vw - 2rem));
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  z-index: 96;
  display: none;
}
.a11y-panel.is-open { display: block; }
.a11y-panel h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--color-black);
}
.a11y-group {
  margin-bottom: 1rem;
}
.a11y-group + .a11y-group { padding-top: 1rem; border-top: 1px solid var(--color-border); }
.a11y-group-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.625rem;
  display: block;
}
.a11y-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  margin: 0.125rem 0.25rem 0.125rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: 0.85rem; font-weight: 500;
  color: var(--color-gray-700);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.a11y-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
.a11y-toggle[aria-pressed="true"] {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.a11y-font-row {
  display: inline-flex; gap: 0.375rem; align-items: center;
}
.a11y-font-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--color-gray-700);
  background: var(--color-white);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.a11y-font-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.a11y-font-btn.is-active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.a11y-reset {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  margin-top: 0.5rem;
  display: inline-block;
}
.a11y-reset:hover { color: var(--color-primary); }

/* --- A11y State Classes (auf body) --------------------------------------- */
body.a11y-contrast {
  background: #000 !important;
  color: #fff !important;
}
body.a11y-contrast .nav,
body.a11y-contrast .footer,
body.a11y-contrast .testimonials,
body.a11y-contrast .leistung,
body.a11y-contrast .a11y-panel,
body.a11y-contrast .nav-mobile {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
body.a11y-contrast h1,
body.a11y-contrast h2,
body.a11y-contrast h3,
body.a11y-contrast h4,
body.a11y-contrast p,
body.a11y-contrast .proj-title,
body.a11y-contrast .leistung-text p,
body.a11y-contrast .hero-desc { color: #fff !important; }
body.a11y-contrast a { color: #ffff00 !important; text-decoration: underline !important; }
body.a11y-contrast .btn-black { background: #ffff00; color: #000; outline-color: #ffff00; }
body.a11y-contrast .btn-lila { background: #ffff00; color: #000; }
body.a11y-contrast .leistung-price,
body.a11y-contrast .leistung-num,
body.a11y-contrast .cta-label { color: #ffff00 !important; }

body.a11y-no-motion *,
body.a11y-no-motion *::before,
body.a11y-no-motion *::after {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}

body.a11y-underline a { text-decoration: underline !important; text-underline-offset: 3px; }

body.a11y-big-cursor,
body.a11y-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'><path fill='%237C3AED' stroke='%23fff' stroke-width='1.5' d='M3 2l7 18 2.5-7 7-2.5z'/></svg>") 4 4, auto !important;
}

body.a11y-dyslexia,
body.a11y-dyslexia * {
  font-family: 'OpenDyslexic', 'Comic Sans MS', 'Trebuchet MS', sans-serif !important;
  letter-spacing: 0.02em;
}

body.a11y-spacing,
body.a11y-spacing * {
  line-height: 2 !important;
  letter-spacing: 0.08em !important;
  word-spacing: 0.16em !important;
}

/* Graustufen: A11y-Widget MUSS sichtbar bleiben — Filter nur auf Content, nicht auf den Trigger */
body.a11y-desaturate > nav,
body.a11y-desaturate > main,
body.a11y-desaturate > footer,
body.a11y-desaturate > .di-toc,
body.a11y-desaturate > .scroll-top { filter: grayscale(1); }

body.a11y-reading-mask { cursor: crosshair; }
body.a11y-reading-mask::after {
  content: "";
  position: fixed;
  left: 0; right: 0;
  top: var(--reading-mask-y, 50%);
  height: 96px;
  background: rgba(255,255,255,0.0);
  box-shadow: 0 -100vh 0 100vh rgba(10,10,10,0.7);
  pointer-events: none;
  z-index: 200;
  transform: translateY(-50%);
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
/* CSS-fadeUp für Hero-Elemente ENTFERNT — kollidierte mit GSAP gsap.from() Reveals.
   Race-Condition: CSS zeigte Element auf 220ms an, GSAP setzte parallel opacity:0 zurück. */

/* =========================================================================
   BREAKPOINTS — Mobile First
   ========================================================================= */
@media (min-width: 640px) {
  .hero-bottom {
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
  }
  .cta { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .leistungen-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projekte-header { flex-wrap: nowrap; }
  .ueber {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (min-width: 1024px) {
  .nav-links { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .leistungen-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  /* In der 3-Spalten-Ansicht: einheitliche Reserve für den Preis-Block, damit die
     drei Preislinien exakt auf einer Höhe sitzen (egal wie lang der Preistext umbricht) */
  .leistung-bottom { min-height: 5rem; }
  .proj-row { grid-template-columns: 80px 1fr 200px 32px; gap: 2rem; }
}

@media (min-width: 1280px) {
  .hero-title { max-width: 16ch; }
  .leistung { padding: 2.5rem; }
}

/* --- Mobile-Stack für Projekt-Rows --------------------------------------- */
@media (max-width: 767px) {
  .proj-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "num title arrow"
      ".   cat   .";
    gap: 0.5rem 1rem;
  }
  .proj-num { grid-area: num; }
  .proj-title { grid-area: title; font-size: 1.25rem; }
  .proj-cat { grid-area: cat; }
  .proj-arrow { grid-area: arrow; }
}

/* =========================================================================
   DARK MODE — prefers-color-scheme + [data-theme="dark"]
   ========================================================================= */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: var(--color-black);
    --color-bg-soft: var(--color-gray-900);
    --color-text: var(--color-white);
    --color-text-muted: #A1A1AA;
    --color-border: #27272A;
  }
  :root:not([data-theme="light"]) h1,
  :root:not([data-theme="light"]) h2,
  :root:not([data-theme="light"]) h3,
  :root:not([data-theme="light"]) h4 { color: var(--color-white); }
  :root:not([data-theme="light"]) .nav,
  :root:not([data-theme="light"]) .nav-submenu-list,
  :root:not([data-theme="light"]) .a11y-panel,
  :root:not([data-theme="light"]) .testimonial-pause,
  :root:not([data-theme="light"]) .a11y-toggle,
  :root:not([data-theme="light"]) .a11y-font-btn {
    background: var(--color-gray-900);
    border-color: var(--color-border);
    color: var(--color-white);
  }
  :root:not([data-theme="light"]) .leistung {
    background: var(--color-gray-900);
    border-color: var(--color-border);
  }
  :root:not([data-theme="light"]) .leistung-features li,
  :root:not([data-theme="light"]) .leistung-addon {
    background: #1F1F23;
    border-color: var(--color-border);
    color: #D4D4D8;
  }
  :root:not([data-theme="light"]) .testimonials,
  :root:not([data-theme="light"]) .footer {
    background: var(--color-gray-900);
    border-color: var(--color-border);
  }
  :root:not([data-theme="light"]) .hero-grid {
    background-image:
      linear-gradient(to right, rgba(167,139,250,0.07) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(167,139,250,0.07) 1px, transparent 1px);
  }
  :root:not([data-theme="light"]) .btn-black {
    background: var(--color-white);
    color: var(--color-black);
  }
  :root:not([data-theme="light"]) .btn-black:hover {
    background: var(--color-black);
    color: var(--color-white);
    outline-color: var(--color-primary);
  }
}

[data-theme="dark"] {
  --color-bg: var(--color-black);
  --color-bg-soft: var(--color-gray-900);
  --color-text: var(--color-white);
  --color-text-muted: #A1A1AA;
  --color-border: #27272A;
}
[data-theme="dark"] body { background: var(--color-bg); color: var(--color-text); }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .proj-title,
[data-theme="dark"] .hero-title,
[data-theme="dark"] .line-accent { color: var(--color-white); }
[data-theme="dark"] .nav,
[data-theme="dark"] .nav-submenu-list,
[data-theme="dark"] .a11y-panel,
[data-theme="dark"] .testimonial-pause,
[data-theme="dark"] .a11y-toggle,
[data-theme="dark"] .a11y-font-btn,
[data-theme="dark"] .nav-mobile { background: var(--color-gray-900); border-color: var(--color-border); color: var(--color-white); }
[data-theme="dark"] .leistung { background: var(--color-gray-900); border-color: var(--color-border); }
[data-theme="dark"] .leistung-features li,
[data-theme="dark"] .leistung-addon { background: #1F1F23; border-color: var(--color-border); color: #D4D4D8; }
[data-theme="dark"] .testimonials,
[data-theme="dark"] .footer { background: var(--color-gray-900); }
[data-theme="dark"] .btn-black { background: var(--color-white); color: var(--color-black); }
[data-theme="dark"] .btn-black:hover { background: var(--color-black); color: var(--color-white); outline-color: var(--color-primary); }

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   PRINT
   ========================================================================= */
@media print {
  .nav, .a11y-trigger, .a11y-panel, .scroll-top, .testimonial-controls { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* =========================================================================
   PATCH 2026-05-16b — Sub-Agent-Naming-Mismatch + FAQ-Styling + Polish
   HTML benutzt Bureau-Marten-Naming (nav, .logo, .nav-hamburger, .nav-submenu),
   Agent B hat alternative Klassen (.nav-inner, .nav-logo, .nav-submenu-list)
   geschrieben. Dieser Patch deckt das HTML-Naming ab.
   ========================================================================= */

nav[role="navigation"] {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 1rem var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
a.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
}
a.logo:hover { color: var(--color-primary); }
a.logo .logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
  margin: 0 2px;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
  flex-shrink: 0;
}

.nav-hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.has-submenu { position: relative; }
.has-submenu > .submenu-trigger {
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: var(--color-gray-700);
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--dur) var(--ease);
}
.has-submenu > .submenu-trigger::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}
.has-submenu > .submenu-trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.has-submenu > .submenu-trigger:hover { color: var(--color-text); }

ul.nav-submenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 51;
}
.has-submenu:hover > ul.nav-submenu,
.has-submenu:focus-within > ul.nav-submenu,
.has-submenu > .submenu-trigger[aria-expanded="true"] + ul.nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
ul.nav-submenu li { list-style: none; }
ul.nav-submenu li a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-gray-700);
  font-size: 0.95rem;
  white-space: nowrap;
}
ul.nav-submenu li a:hover {
  background: var(--color-gray-50);
  color: var(--color-primary);
}

ul.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  gap: 1.75rem;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
}
ul.nav-links > li { list-style: none; }
ul.nav-links a.nav-cta {
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  transition: background var(--dur) var(--ease);
}
ul.nav-links a.nav-cta:hover { background: var(--color-primary); }
ul.nav-links a.nav-cta::after { display: none; }

@media (min-width: 1024px) {
  ul.nav-links { display: inline-flex; }
  .nav-hamburger { display: none; }
}
@media (max-width: 1023px) {
  ul.nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem var(--container-pad);
    gap: 0.75rem;
    align-items: stretch;
  }
  ul.nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    display: none;
  }
  .has-submenu > .submenu-trigger[aria-expanded="true"] + ul.nav-submenu {
    display: block;
  }
}

/* =========================================================================
   FAQ — details/summary stylen
   ========================================================================= */
.faq {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.faq .section-label { margin-bottom: 1.5rem; display: inline-block; }
.faq h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 2.5rem;
}
.faq-list { display: grid; gap: 0.75rem; }

details.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
details.faq-item:hover { border-color: var(--color-accent-light); }
details.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(124,58,237,0.08);
}

details.faq-item > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text);
  outline: none;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::after {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--dur) var(--ease);
}
details.faq-item[open] > summary::after {
  transform: rotate(45deg);
}
details.faq-item > summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--color-gray-700);
  line-height: 1.65;
  max-width: 70ch;
}
.faq-answer p { margin: 0; }

/* =========================================================================
   POLISH
   ========================================================================= */

/* Testimonial: zweiten Quote-Marker entfernen (HTML hat schon „...) */
.testimonial blockquote::before { content: none; }

/* Preis-Umbruch nicht zerschneiden */
.leistung-addon-price { white-space: nowrap; }
/* .leistung-price NICHT nowrap: lange Preiszeilen (z.B. "ab 35 € / Monat netto · mit
   KI-Bot 39 €") müssen in der schmalen Karte umbrechen, sonst Overflow + abgeschnittener Text */
.leistung-price { white-space: normal; overflow-wrap: anywhere; }

/* Footer Logo-Dot: enger ans Wort + kleiner */
footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
footer .footer-logo .logo-dot {
  width: 7px; height: 7px;
  margin: 0 2px;
}

/* Container für Bereiche die noch ungewrapped sind */
section.cta {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Branchen-Sektion: Container + Section-Header oben */
section.projekte {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.projekte-header { margin-bottom: 1.5rem; }

/* Sticky-Nav: ausreichend Platz für Submenu */
nav[role="navigation"] { contain: layout; }

/* =========================================================================
   PATCH 2026-05-16c — HIGH-END: Liquid Hero, XL-Typo, Motion, Cursor, Intro
   ========================================================================= */

/* --- Loading Intro --------------------------------------------------------- */
#loading-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#loading-intro.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#loading-intro .li-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
#loading-intro.is-ready .li-stage {
  opacity: 1;
  transform: translateY(0);
}
#loading-intro .li-logo {
  color: var(--color-white);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
#loading-intro .li-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  margin: 0 3px;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.25);
  display: inline-block;
  animation: li-pulse 1.4s ease-in-out infinite;
}
@keyframes li-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(124,58,237,0.25); }
  50% { transform: scale(1.25); box-shadow: 0 0 0 9px rgba(124,58,237,0.0); }
}
#loading-intro .li-bar {
  width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
#loading-intro .li-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent-light), transparent);
  transform: translateX(-100%);
  animation: li-sweep 1.3s ease-in-out infinite;
}
@keyframes li-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* --- Hero XL --------------------------------------------------------------- */
.hero.hero-xl {
  position: relative;
  min-height: clamp(640px, 96vh, 980px);
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}
.hero.hero-xl #hero-liquid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  display: block;
}
.hero.hero-xl .hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero.hero-xl .hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

/* --- XL-Typo H1 ------------------------------------------------------------ */
.hero-h1-xl {
  font-size: clamp(3rem, 11.5vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--color-black);
  margin: 0;
  max-width: 14ch;
  font-variation-settings: "wght" 800;
  transition: font-variation-settings 0.1s linear;
}
.hero-h1-xl .line-accent {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}
.hero-h1-xl .line-accent::before {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  top: 38%;
  bottom: 12%;
  background: var(--color-primary);
  opacity: 0.28;
  transform: skewX(-6deg);
  z-index: -1;
}

/* Word-Animation: Reveal Y aus Overflow */
.hero-h1-xl .word-anim {
  display: inline-block;
  will-change: transform, opacity;
}

/* --- Custom Cursor --------------------------------------------------------- */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: normal;
  box-shadow: 0 0 16px rgba(124,58,237,0.55);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
  opacity: 0.95;
}
.custom-cursor.is-hover {
  width: 48px;
  height: 48px;
  background: rgba(124,58,237,0.18);
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 0 24px rgba(124,58,237,0.35);
}
@media (hover: none), (pointer: coarse) {
  .custom-cursor { display: none; }
}

/* --- Magnetic Buttons ------------------------------------------------------ */
.btn-black.is-magnetic,
.btn-lila.is-magnetic {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s var(--ease),
              color 0.3s var(--ease),
              box-shadow 0.4s var(--ease);
  will-change: transform;
}

/* Body-Scroll-Lock entfernt: war Scroll-Killer wenn window.load nicht feuerte */

/* --- Hero-Spacing Tweaks: Label und Desc verbreitert ----------------------- */
.hero.hero-xl .hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--color-gray-700);
}
.hero.hero-xl .hero-label-line {
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--color-primary);
}
.hero.hero-xl .hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--color-gray-700);
  max-width: 56ch;
}
.hero.hero-xl .hero-bottom {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 768px) {
  .hero.hero-xl .hero-bottom {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}

/* --- Reduce-Motion: alle Hero-Animationen aus ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero.hero-xl #hero-liquid {
    background: radial-gradient(circle at 70% 50%, rgba(124,58,237,0.30), rgba(167,139,250,0.10) 40%, transparent 70%);
  }
  #loading-intro .li-dot,
  #loading-intro .li-bar-fill { animation: none; }
  .custom-cursor { display: none; }
  .btn-black.is-magnetic,
  .btn-lila.is-magnetic { transition: none; transform: none !important; }
}

/* =========================================================================
   PATCH 2026-05-16e — DARK + PREMIUM + CSS-Liquid (Three.js raus)
   ========================================================================= */

/* --- Dark Mode als Default: schwarzer Hintergrund, weiße Typo -------------- */
:root {
  --color-bg: #0A0A0A;
  --color-bg-soft: #141416;
  --color-bg-card: #16161A;
  --color-text: #FFFFFF;
  --color-text-muted: #A1A1AA;
  --color-gray-700: #B4B4B8;
  --color-gray-500: #71717A;
  --color-border: #27272A;
  --color-border-strong: #3F3F46;
}
html, body { background: var(--color-bg); color: var(--color-text); overflow-x: hidden; max-width: 100%; }

/* Hero auf Dark trimmen */
.hero.hero-xl { background: var(--color-bg); }
.hero-h1-xl { color: var(--color-text); }
.hero.hero-xl .hero-desc,
.hero.hero-xl .hero-label { color: var(--color-text-muted); }
.hero.hero-xl .hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}

/* --- CSS-Liquid: animierter Lila-Blob im Hintergrund (statt Three.js) ----- */
#hero-liquid {
  background:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(124,58,237,0.55), transparent 60%),
    radial-gradient(ellipse 50% 60% at 25% 70%, rgba(91,33,182,0.45), transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 80%, rgba(167,139,250,0.30), transparent 65%);
  filter: blur(22px) saturate(1.1);
  animation: liquid-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes liquid-drift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%; transform: scale(1.0) rotate(0deg); }
  50%  { background-position: 30% 20%, 70% 80%, 20% 40%; transform: scale(1.05) rotate(2deg); }
  100% { background-position: 60% 40%, 40% 60%, 80% 30%; transform: scale(1.02) rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) {
  #hero-liquid { animation: none; }
}

/* --- Hero — gebändigt, dramatisch aber nicht überlaufend ----------------- */
.hero-h1-xl {
  font-size: clamp(2.4rem, 8.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: none;
  overflow-wrap: break-word;
  word-break: keep-all;
  hyphens: none;
}
.hero.hero-xl {
  min-height: clamp(720px, 100vh, 1100px);
  padding-top: clamp(6rem, 10vw, 12rem);
  padding-bottom: clamp(6rem, 10vw, 12rem);
}
.hero-h1-xl .line-accent::before {
  background: var(--color-primary);
  opacity: 0.45;
}

/* --- Nav auf Dark anpassen ------------------------------------------------- */
nav[role="navigation"] {
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid var(--color-border);
}
a.logo { color: var(--color-text); }
.has-submenu > .submenu-trigger,
ul.nav-links a { color: var(--color-text-muted); }
.has-submenu > .submenu-trigger:hover,
ul.nav-links a:hover { color: var(--color-text); }
ul.nav-links a.nav-cta { background: var(--color-white); color: var(--color-black); }
ul.nav-links a.nav-cta:hover { background: var(--color-primary); color: var(--color-white); }
ul.nav-submenu {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}
ul.nav-submenu li a { color: var(--color-text-muted); }
ul.nav-submenu li a:hover { background: var(--color-bg-soft); color: var(--color-primary); }
.nav-hamburger span { background: var(--color-text); }

/* --- Sections: doppelter Padding ------------------------------------------ */
.leistungen, section.projekte, .ueber, .testimonials, section.cta, .faq {
  padding-top: clamp(6rem, 12vw, 12rem);
  padding-bottom: clamp(6rem, 12vw, 12rem);
}

/* --- Leistungs-Karten: Dark + Schatten + mehr Padding --------------------- */
.leistung {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: clamp(2rem, 3.5vw, 3rem);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.leistung:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 24px 60px -20px rgba(124,58,237,0.45), 0 0 0 1px rgba(124,58,237,0.15);
}
.leistung h3 { color: var(--color-text); font-size: clamp(1.5rem, 2.5vw, 2rem); }
.leistung-text { color: var(--color-text-muted); }
.leistung-num { color: var(--color-primary); font-weight: 700; }
.leistung-features { color: var(--color-text-muted); }
.leistung-features li {
  background: var(--color-bg-soft);
  border-color: var(--color-border);
  color: var(--color-text-muted);
}
.leistung-price { color: var(--color-primary); }
.leistung-hint { color: var(--color-gray-500); }
.leistung-addon {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}
.leistung-addon-tag { background: var(--color-primary); color: var(--color-white); }
.leistung-addon-body h3 { color: var(--color-text); }
.leistung-addon-body p { color: var(--color-text-muted); }

/* --- Buttons: Premium-Tiefe ----------------------------------------------- */
.btn-black {
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: 0 8px 24px -8px rgba(255,255,255,0.2);
}
.btn-black:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 12px 32px -8px rgba(124,58,237,0.55);
}
.btn-lila {
  box-shadow: 0 12px 32px -8px rgba(124,58,237,0.55);
}

/* --- Branchen-Rows: Dark + Hover-Glow ------------------------------------- */
.proj-row { border-color: var(--color-border); }
.proj-row:first-child { border-top-color: var(--color-border); }
.proj-row:hover {
  background: var(--color-bg-soft);
}
.proj-title { color: var(--color-text); }
.proj-cat, .proj-num, .proj-arrow { color: var(--color-text-muted); }

/* --- Über Johanna -------------------------------------------------------- */
.ueber-left h2 { color: var(--color-text); }
.ueber-left p { color: var(--color-text-muted); }
.ueber-portrait {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  box-shadow: 0 32px 80px -20px rgba(124,58,237,0.35);
}

/* --- Testimonials -------------------------------------------------------- */
.testimonials { background: var(--color-bg-soft); }
.testimonial blockquote { color: var(--color-text); }
.testimonial cite { color: var(--color-text-muted); }
.testimonial-dot {
  background: var(--color-border);
}
.testimonial-dot.active { background: var(--color-primary); }
.testimonial-pause { border-color: var(--color-border); color: var(--color-text-muted); }

/* --- FAQ ----------------------------------------------------------------- */
.faq h2 { color: var(--color-text); }
details.faq-item {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}
details.faq-item:hover { border-color: var(--color-accent-light); }
details.faq-item[open] {
  background: var(--color-bg-soft);
  border-color: var(--color-primary);
}
details.faq-item > summary { color: var(--color-text); }
.faq-answer { color: var(--color-text-muted); }

/* --- CTA-Sektion --------------------------------------------------------- */
.cta-left h2 { color: var(--color-text); }
.cta-left h2 span { color: var(--color-primary); }
.cta-label { color: var(--color-primary); }
.cta-sub { color: var(--color-text-muted); }
section.cta {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
}
@media (min-width: 768px) {
  section.cta { grid-template-columns: 1fr auto; align-items: center; }
}

/* --- Footer -------------------------------------------------------------- */
footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: clamp(3rem, 6vw, 5rem) var(--container-pad);
  color: var(--color-text-muted);
}
footer .footer-logo { color: var(--color-text); }
footer .footer-logo .logo-dot {
  width: 6px; height: 6px;
  margin: 0 1px;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.25);
}
footer .footer-links a { color: var(--color-text-muted); }
footer .footer-links a:hover { color: var(--color-primary); }
.footer-copy { color: var(--color-gray-500); }

/* --- Logo-Dot kompakter im Header ---------------------------------------- */
a.logo .logo-dot {
  width: 6px; height: 6px;
  margin: 0 1px;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.20);
}

/* --- Divider Dark -------------------------------------------------------- */
.divider { background: var(--color-border); }

/* --- Section-Label Hervorhebung ------------------------------------------ */
.section-label {
  color: var(--color-primary);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

/* --- Skip-Link + A11y-Widget auf Dark ------------------------------------ */
.skip-link {
  background: var(--color-white);
  color: var(--color-black);
}
.a11y-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.a11y-toggle {
  background: var(--color-bg-soft);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.a11y-toggle[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* --- Selection -------------------------------------------------------- */
::selection { background: var(--color-primary); color: var(--color-white); }

/* --- Custom Cursor: heller weil Dark BG --------------------------------- */
.custom-cursor {
  background: var(--color-primary);
  box-shadow: 0 0 24px rgba(124,58,237,0.8);
}
.custom-cursor.is-hover {
  background: rgba(124,58,237,0.25);
  border-color: var(--color-accent-light);
}

/* =========================================================================
   PATCH 2026-05-16f — Dynamic Island TOC + Theme Toggler + Light-Mode-Overrides
   ========================================================================= */

/* --- Dynamic Island TOC --------------------------------------------------- */
.di-toc {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
}
.di-toc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  /* backdrop-filter raus: bei opacity:0 trotzdem GPU-Layer */
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.di-toc.is-expanded .di-toc-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.di-toc-pill {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 80px);
  width: 280px;
  height: 52px;
  border-radius: 26px;
  background: rgba(20,20,22,0.92);
  /* di-toc-pill backdrop-filter raus: kostete bei jedem Scroll-Frame Repaint */
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.6),
              0 8px 24px -6px rgba(124,58,237,0.18);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px 0 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.45s;
  overflow: hidden;
  font: inherit;
  text-align: left;
  pointer-events: none;
}
.di-toc.is-visible .di-toc-pill {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.di-toc-pill:hover {
  box-shadow: 0 32px 64px -16px rgba(0,0,0,0.7),
              0 12px 32px -6px rgba(124,58,237,0.35);
}
.di-toc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(124,58,237,0.7);
}
.di-toc-label-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 20px;
  position: relative;
}
.di-toc-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #FFFFFF;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.di-toc-label.is-out { opacity: 0; transform: translateY(-6px); }
.di-toc-progress {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
.di-toc-progress-fill {
  transition: stroke-dashoffset 0.15s ease-out;
}
.di-toc-list,
.di-toc-close {
  display: none;
}

/* Expanded State */
.di-toc.is-expanded .di-toc-pill {
  width: min(360px, calc(100vw - 32px));
  height: 420px;
  border-radius: 24px;
  cursor: default;
  padding: 16px 8px 12px 8px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.di-toc.is-expanded .di-toc-dot,
.di-toc.is-expanded .di-toc-label-wrap,
.di-toc.is-expanded .di-toc-progress {
  display: none;
}
.di-toc.is-expanded .di-toc-list,
.di-toc.is-expanded .di-toc-close {
  display: block;
}
.di-toc-close {
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 4px;
  background: none;
  border: 0;
  transition: color 0.2s ease;
}
.di-toc-close:hover { color: #FFFFFF; }
.di-toc-list {
  list-style: none;
  margin: 28px 0 0 0;
  padding: 0 4px;
  overflow-y: auto;
  flex: 1;
  height: calc(100% - 28px);
}
.di-toc-list::-webkit-scrollbar { width: 4px; }
.di-toc-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.di-toc-item {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  text-align: left;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.di-toc-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  transform: translateX(2px);
}
.di-toc-item.is-active {
  background: rgba(124,58,237,0.18);
  color: #FFFFFF;
  font-weight: 600;
}
.di-toc-item.is-active::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-left: auto;
  box-shadow: 0 0 8px rgba(124,58,237,0.6);
}

@media (prefers-reduced-motion: reduce) {
  .di-toc-pill { transition: opacity 0.2s linear; }
}

/* --- Theme Toggler im Header ---------------------------------------------- */
.theme-toggle-li { list-style: none; display: inline-flex; align-items: center; }
.theme-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
  padding: 0;
}
.theme-toggle:hover {
  border-color: var(--color-primary);
  background: rgba(124,58,237,0.08);
  transform: scale(1.06);
}
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle .tt-stack {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}
.theme-toggle .tt-sun,
.theme-toggle .tt-moon {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-toggle.is-light .tt-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.theme-toggle.is-light .tt-moon {
  opacity: 0;
  transform: scale(0.3) rotate(90deg);
}
.theme-toggle.is-dark .tt-sun {
  opacity: 0;
  transform: scale(0.3) rotate(-90deg);
}
.theme-toggle.is-dark .tt-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* --- LIGHT MODE: Overrides wenn html.theme-light ---------------------------- */
html.theme-light {
  --color-bg: #FFFFFF;
  --color-bg-soft: #FAFAFA;
  --color-bg-card: #FFFFFF;
  --color-text: #0A0A0A;
  --color-text-muted: #52525B;
  --color-gray-700: #3F3F46;
  --color-gray-500: #71717A;
  --color-border: #E4E4E7;
  --color-border-strong: #D4D4D8;
}
html.theme-light .hero.hero-xl .hero-grid {
  background-image:
    linear-gradient(rgba(10,10,10,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.05) 1px, transparent 1px);
}
html.theme-light nav[role="navigation"] {
  background: rgba(255,255,255,0.85);
  border-bottom-color: var(--color-border);
}
html.theme-light .btn-black {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.25);
}
html.theme-light .btn-black:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
html.theme-light ul.nav-links a.nav-cta {
  background: var(--color-black);
  color: var(--color-white);
}
html.theme-light .testimonials { background: var(--color-bg-soft); }
html.theme-light .leistung,
html.theme-light .leistung-addon,
html.theme-light details.faq-item {
  background: var(--color-white);
}
html.theme-light .leistung:hover {
  box-shadow: 0 24px 60px -20px rgba(124,58,237,0.25), 0 0 0 1px rgba(124,58,237,0.10);
}
html.theme-light footer { background: var(--color-bg); }
html.theme-light .di-toc-pill {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.08);
  color: var(--color-text);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.18),
              0 8px 24px -6px rgba(124,58,237,0.15);
}
html.theme-light .di-toc-label { color: var(--color-text); }
html.theme-light .di-toc-item { color: rgba(10,10,10,0.55); }
html.theme-light .di-toc-item:hover {
  background: rgba(0,0,0,0.05);
  color: var(--color-text);
}
html.theme-light .di-toc-item.is-active {
  background: rgba(124,58,237,0.12);
  color: var(--color-text);
}
html.theme-light .di-toc-close { color: rgba(10,10,10,0.5); }
html.theme-light .di-toc-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }

/* =========================================================================
   PATCH 2026-05-16j — Responsive-Hardening
   ========================================================================= */

/* Theme-Toggler steht als Sibling neben Hamburger — immer sichtbar */
.theme-toggle-standalone {
  margin-right: 0.5rem;
  order: 5;
}
@media (max-width: 1023px) {
  .theme-toggle-standalone {
    order: 0;
    margin-left: auto;
  }
}

/* Hero-XL auf Mobile zähmen (mehr Atem) */
@media (max-width: 767px) {
  .hero.hero-xl {
    min-height: auto;
    padding-top: clamp(4rem, 12vw, 6rem);
    padding-bottom: clamp(4rem, 12vw, 6rem);
  }
  .hero-h1-xl {
    font-size: clamp(1.75rem, 7.5vw, 3rem);
    line-height: 1.05;
  }
}

/* Header-Padding auf Mobile reduzieren — Logo passt sonst nicht */
@media (max-width: 480px) {
  nav[role="navigation"] {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  a.logo { font-size: 0.85rem; }
  .nav-hamburger { width: 36px; height: 36px; padding: 6px; }
  .theme-toggle-standalone { width: 36px; height: 36px; }
}

/* Branchen-Rows: konsistentes Stacking unter 768px */
@media (max-width: 767px) {
  .proj-row {
    padding: 1.25rem 0;
  }
  .proj-title { font-size: 1.15rem; }
  .proj-cat { font-size: 0.8rem; line-height: 1.5; }
}

/* Leistungen: zwischen Tablet und Desktop auch 1-spaltig (statt zerrissen 3-spaltig) */
@media (min-width: 768px) and (max-width: 1023px) {
  .leistungen-list { grid-template-columns: minmax(0, 1fr); max-width: 540px; margin-inline: auto; }
}

/* Über Johanna: Mobile-Stack */
@media (max-width: 767px) {
  .ueber {
    grid-template-columns: 1fr;
  }
  .ueber-right { order: -1; max-width: 320px; margin-inline: auto; }
  .ueber-portrait { max-width: 320px; }
}

/* Footer: Mobile-Stack mit echtem Spacing */
@media (max-width: 767px) {
  footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}

/* Globale Sicherheits-Bremse: keine Inhalte über Viewport-Breite hinaus */
img, video, canvas, svg { max-width: 100%; height: auto; }

/* =========================================================================
   PATCH 2026-05-16k — Container-Wrap-Fix für Add-ons + Leistungen + Über
   ========================================================================= */
.leistungen,
.ueber,
.testimonials-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Add-on-Karten: Mobile-Stack, Tablet+ horizontal */
.leistung-addon {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--color-bg-card);
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
}
@media (max-width: 767px) {
  .leistung-addon {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .leistung-addon-price {
    justify-self: start;
  }
}

/* Leistungs-Karten Hover-State darf nicht klemmen bleiben: clear focus */
.leistung:focus-within {
  /* nur for visible focus */
}

/* =========================================================================
   PATCH 2026-05-16l — VOLLSTÄNDIGER BUG-PATCH nach 4-Agent-Audit
   ========================================================================= */

/* (1) Hero-H1 line-accent: keep-all + nowrap entfernen, lässt Wörter umbrechen */
.hero-h1-xl .line-accent {
  white-space: normal;
}
@media (max-width: 1023px) {
  .hero-h1-xl {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .hero-h1-xl .line-accent::before {
    top: 30%;
    bottom: 8%;
  }
}

/* (2) Hero-H1 lesbarer Skala — vorherige Werte sprengten den Container */
.hero-h1-xl {
  font-size: clamp(1.85rem, 5.4vw, 5rem);
  font-variation-settings: "wght" 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero-h1-xl .line-accent {
  font-style: italic;
  font-variation-settings: "wght" 700, "slnt" -8;
  letter-spacing: -0.03em;
}

/* (3) Lila Hover-Farbe für WCAG AA (war #6D28D9 = 3.6:1, jetzt #A78BFA = 6.5:1) */
:root { --color-hover: #8B5CF6; }

/* (4) Footer braucht max-width-Wrap */
footer {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* (5) di-toc-pill: auf Mobile rechts statt zentral, vermeidet a11y-trigger-Overlap */
@media (max-width: 559px) {
  .di-toc-pill {
    left: auto;
    right: 5.5rem;
    transform: translate(0, 80px);
  }
  .di-toc.is-visible .di-toc-pill {
    transform: translate(0, 0);
  }
  .di-toc.is-expanded .di-toc-pill {
    width: calc(100vw - 7rem);
  }
}

/* (6) Branchen-Rows Tablet-Layout (768-1023px) — Cat unter Title */
@media (min-width: 768px) and (max-width: 1023px) {
  .proj-row {
    grid-template-columns: 48px 1fr 32px;
    grid-template-areas:
      "num title arrow"
      ".   cat   .";
    gap: 0.5rem 1rem;
  }
  .proj-num { grid-area: num; }
  .proj-title { grid-area: title; }
  .proj-cat { grid-area: cat; }
  .proj-arrow { grid-area: arrow; }
}

/* (7) Testimonial-Track: keine fixe min-height, kein Springen */
.testimonial-track {
  min-height: 0;
}
.testimonial.active {
  position: relative;
}

/* (8) Header-Hierarchie: section-label als h2 mit Reset für visuelle Größe */
h2.section-label-h2 {
  color: var(--color-primary);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  font-family: inherit;
}

/* (9) CTA-Button Mobile-Anpassung — verhindert Overflow bei kleinstem Viewport */
@media (max-width: 374px) {
  .btn-black, .btn-lila {
    padding: 0.875rem 1.4rem;
    font-size: 0.95rem;
  }
  .hero-action .btn-black { white-space: normal; text-align: center; }
}

/* (10) Selection Color für beide Themes */
::selection { background: rgba(124, 58, 237, 0.35); color: var(--color-text); }

/* =========================================================================
   PATCH 2026-05-16n — Light-Default + Add-on-Spacing + A11y-Trigger neu
   ========================================================================= */

/* Mehr Atem zwischen Leistungs-Karten und Add-on-Block */
.leistungen-list {
  margin-bottom: 4.5rem;
}
.leistung-addon {
  margin-top: 1.25rem;
}
.leistung-addon + .leistung-addon {
  margin-top: 1rem;
}

/* A11y-Trigger größerer Klick-Bereich + breitere Pille für längeres Label */
.a11y-trigger {
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.a11y-trigger-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* =========================================================================
   PATCH 2026-05-16o — Echte Logos (Image-Bilder statt Text)
   ========================================================================= */

/* Logo-Container Reset (Text + Logo-Dot waren vorher) */
a.logo,
.footer-logo {
  font-size: 0;
  letter-spacing: normal;
}

/* Beide Logo-Bilder bauen normal — CSS schaltet je nach Theme */
.logo-img {
  display: block;
  height: 160px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 640px) {
  .logo-img { height: 120px; }
}
@media (max-width: 380px) {
  .logo-img { height: 88px; }
}

/* Footer-Logo etwas kleiner als Header */
.footer-logo .logo-img { height: 120px; }
@media (max-width: 640px) {
  .footer-logo .logo-img { height: 44px; }
}

/* Logik: Default Dark-Mode (kein theme-light) zeigt logo-on-dark */
.logo-on-light { display: none; }
.logo-on-dark { display: block; }

/* Theme-Light aktiv: zeige Light-Logo, verstecke Dark-Logo */
html.theme-light .logo-on-light { display: block; }
html.theme-light .logo-on-dark { display: none; }

/* =========================================================================
   PATCH 2026-05-16p — Johanna-Foto rund/größer + TOC ab erster Section
   ========================================================================= */

/* Über-Sektion-Layout: Foto rechts noch größer wirken lassen */
@media (min-width: 768px) {
  .ueber {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 3.5vw, 3.5rem);
    align-items: center;
  }
  .ueber-right { justify-content: flex-end; }
}
@media (max-width: 767px) {
  .ueber-portrait {
    max-width: 280px;
  }
}

/* =========================================================================
   PATCH 2026-05-16s — Legal-Pages + Bringeful-Marken-Update
   ========================================================================= */

.legal-page {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}
.legal-page .legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.legal-page .hero-label-line {
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--color-primary);
}
.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 2.5rem 0;
  font-weight: 800;
}
.legal-page h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 2.5rem 0 0.75rem 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.legal-page p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 1rem 0;
}
.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page a:hover { color: var(--color-hover); }
.legal-page .legal-hint {
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  margin: 2rem 0;
  font-size: 0.95rem;
}
.legal-page .legal-hint strong { color: var(--color-text); }

/* =========================================================================
   PATCH 2026-05-16u — Referenzen-Section (5 Beispielseiten)
   ========================================================================= */

.referenzen {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: clamp(6rem, 12vw, 12rem) var(--container-pad);
}
.referenzen .section-intro {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.referenzen .section-intro h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0.75rem 0 0 0;
}

/* === MARQUEE === laufendes Band mit nahtlosem Loop (5 + 5 Duplikate, translateX(-50%)) */
.referenzen-marquee {
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  padding: 1rem 0 2rem;
}
.marquee-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: max-content;
  animation: marquee-roll 60s linear infinite;
  will-change: transform;
}
.referenzen-marquee:hover .marquee-track,
.referenzen-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-roll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .marquee-track { animation-duration: 45s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .referenzen-marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .referenz-card { scroll-snap-align: start; }
}

.referenz-card {
  flex: 0 0 clamp(280px, 30vw, 420px);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
}
.referenz-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 32px 80px -20px rgba(124,58,237,0.35),
              0 0 0 1px rgba(124,58,237,0.15);
}
.referenz-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.referenz-frame {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-bg-soft);
  position: relative;
}
.referenz-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.referenz-card:hover .referenz-frame img {
  transform: scale(1.04);
}
.referenz-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem 1.5rem;
}
.referenz-name {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.referenz-cat {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .referenz-card { transition: none; }
  .referenz-card:hover { transform: none; }
  .referenz-card:hover .referenz-frame img { transform: none; }
}

/* =========================================================================
   PATCH 2026-05-16v — Hero-Geist (Mesh-SVG) + Testimonial-Stack-Cards
   ========================================================================= */

/* --- Hero auf 2-Spalten umbauen ------------------------------------------ */
.hero-grid-2col {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid-2col {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .hero-visual { padding-left: 2rem; }
}
.hero-content { min-width: 0; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}
@media (max-width: 1023px) {
  .hero-visual { order: -1; max-width: 240px; margin: 0 auto; }
}

/* --- Geist-Mascot -------------------------------------------------------- */
.ghost-float {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 231 / 289;
  animation: ghost-breath 2.8s ease-in-out infinite;
  transform-origin: top center;
  filter: drop-shadow(0 24px 48px rgba(124, 58, 237, 0.35));
}
@media (max-width: 1023px) {
  .ghost-float { max-width: 180px; }
}
@keyframes ghost-breath {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-8px) scaleY(1.04); }
}

/* Mesh-Füllung mit Geist-Form per CSS-mask (Safari-tauglich, Original-Optik 1:1) */
.ghost-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, #A78BFA 0%, transparent 45%),
    radial-gradient(circle at 75% 60%, #7C3AED 0%, transparent 55%),
    radial-gradient(circle at 50% 90%, #1A1A2E 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, #C4B5FD 0%, transparent 40%),
    linear-gradient(160deg, #5B21B6 0%, #2C1B5C 100%);
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20231%20289%27%3E%3Cpath%20d%3D%27M230.809%20115.385V249.411C230.809%20269.923%20214.985%20287.282%20194.495%20288.411C184.544%20288.949%20175.364%20285.718%20168.26%20280C159.746%20273.154%20147.769%20273.461%20139.178%20280.23C132.638%20285.384%20124.381%20288.462%20115.379%20288.462C106.377%20288.462%2098.1451%20285.384%2091.6055%20280.23C82.912%20273.385%2070.9353%20273.385%2062.2415%20280.23C55.7532%20285.334%2047.598%20288.411%2038.7246%20288.462C17.4132%20288.615%200%20270.667%200%20249.359V115.385C0%2051.6667%2051.6756%200%20115.404%200C179.134%200%20230.809%2051.6667%20230.809%20115.385Z%27%20fill%3D%27white%27%2F%3E%3C%2Fsvg%3E");
          mask-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20231%20289%27%3E%3Cpath%20d%3D%27M230.809%20115.385V249.411C230.809%20269.923%20214.985%20287.282%20194.495%20288.411C184.544%20288.949%20175.364%20285.718%20168.26%20280C159.746%20273.154%20147.769%20273.461%20139.178%20280.23C132.638%20285.384%20124.381%20288.462%20115.379%20288.462C106.377%20288.462%2098.1451%20285.384%2091.6055%20280.23C82.912%20273.385%2070.9353%20273.385%2062.2415%20280.23C55.7532%20285.334%2047.598%20288.411%2038.7246%20288.462C17.4132%20288.615%200%20270.667%200%20249.359V115.385C0%2051.6667%2051.6756%200%20115.404%200C179.134%200%20230.809%2051.6667%20230.809%20115.385Z%27%20fill%3D%27white%27%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  animation: ghost-mesh-shift 9s ease-in-out infinite alternate;
  filter: saturate(1.1);
}
@keyframes ghost-mesh-shift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 0% 0%; }
  50%  { background-position: 20% 30%, 70% 70%, 30% 40%, 60% 80%, 0% 0%; }
  100% { background-position: 40% 50%, 50% 60%, 60% 30%, 80% 30%, 0% 0%; }
}

/* SVG-Overlay mit Augen, deckungsgleich über dem Mesh */
.ghost-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Augen (Original-Look: schwarze Ellipsen, blinzeln) */
.ghost-eye {
  fill: #0A0A0A;
  transform-box: fill-box;
  transform-origin: center;
  animation: ghost-blink 4.2s infinite ease-in-out;
}
@keyframes ghost-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

/* Hover: Schwebe + Mesh pausieren */
.ghost-float:hover { animation-play-state: paused; }
.ghost-float:hover .ghost-mesh { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .ghost-float { animation: none; }
  .ghost-mesh { animation: none; }
  .ghost-eye { animation: none; transition: none; }
}

/* --- Testimonial Stack-Cards (replaces alten Carousel) ------------------- */
.ts-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 320px;
  margin: clamp(2rem, 4vw, 3rem) auto;
  user-select: none;
}

.ts-card {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow:
    0 24px 60px -20px rgba(124, 58, 237, 0.35),
    0 0 0 1px rgba(124, 58, 237, 0.08);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  cursor: grab;
  touch-action: pan-y;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center bottom;
  will-change: transform;
}
.ts-card.is-dragging {
  cursor: grabbing;
  transition: none;
}

/* Stack: 3 sichtbare Karten, dahinter dezent */
.ts-card[data-depth="0"] {
  z-index: 3;
  transform: translate(0, 0) rotate(0deg) scale(1);
  opacity: 1;
}
.ts-card[data-depth="1"] {
  z-index: 2;
  transform: translate(0, 14px) rotate(-2.5deg) scale(0.96);
  opacity: 0.55;
}
.ts-card[data-depth="2"] {
  z-index: 1;
  transform: translate(0, 28px) rotate(-5deg) scale(0.92);
  opacity: 0.25;
}
.ts-card[data-depth="hidden"] {
  z-index: 0;
  transform: translate(0, 28px) rotate(-5deg) scale(0.92);
  opacity: 0;
  pointer-events: none;
}

.ts-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-deep));
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.45);
}

/* 5-Sterne-Reihe */
.ts-stars {
  display: inline-flex;
  align-items: center;
  color: #F59E0B;
  line-height: 0;
}
.ts-stars svg { display: block; }
.ts-card cite strong {
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ts-card blockquote {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ts-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  margin-top: auto;
}

.ts-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.ts-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.ts-arrow:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
  background: rgba(124, 58, 237, 0.08);
}
.ts-arrow:active { transform: scale(0.94); }
.ts-arrow:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.ts-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ts-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ts-dot:hover { transform: scale(1.3); }
.ts-dot.is-active {
  background: var(--color-primary);
  width: 22px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .ts-card { transition: opacity 0.2s linear; }
}

/* Build: 2026-05-16 — günstige-firmenwebseite.de — Lila-System auf Bureau-Marten-Skelett */

/* === Preisliste-Sektion (Landing, eingefuegt 2026-05-17) === */
.preisliste {
    padding: 6rem 2rem;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
}

.preisliste-header {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.preisliste-h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    margin: 0.5rem 0;
    color: #0a0a0a;
    font-weight: 800;
}

.preisliste-sub {
    color: #525252;
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
}

.preisliste-tabelle {
    max-width: 900px;
    margin: 0 auto;
}

.preis-gruppe {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}

.preis-gruppe h3 {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7c3aed;
    font-weight: 700;
}

.preis-zeile {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: start;
    padding: 0.9rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.preis-zeile:last-child {
    border-bottom: none;
}

.preis-leistung strong {
    display: block;
    color: #0a0a0a;
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.preis-leistung span {
    display: block;
    color: #525252;
    font-size: 0.88rem;
    line-height: 1.45;
}

.preis-betrag {
    text-align: right;
    min-width: 130px;
    flex-shrink: 0;
}

.preis-betrag strong {
    display: block;
    color: #0a0a0a;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.preis-betrag span {
    display: block;
    color: #737373;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.preisliste-fussnote {
    max-width: 900px;
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem;
    background: #fff7ed;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    color: #57534e;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === Hero-CTA-Hinweis (Mail-Klarstellung) === */
.hero-cta-hinweis {
    margin: 0.85rem 0 0;
    font-size: 0.88rem;
    color: #525252;
    line-height: 1.5;
    max-width: 540px;
}

.hero-cta-hinweis strong {
    color: #0a0a0a;
    font-weight: 700;
}

@media (max-width: 640px) {
    .preisliste {
        padding: 4rem 1.25rem;
    }
    .preis-zeile {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .preis-betrag {
        text-align: left;
    }
}

/* === PATCH 2026-05-17 — Johanna-Bild RADIKAL groesser === */
@media (min-width: 1024px) {
  .ueber {
    grid-template-columns: 1fr 700px !important;
    align-items: center !important;
    gap: clamp(3rem, 5vw, 6rem) !important;
    max-width: 1500px !important;
    margin-inline: auto !important;
    padding-inline: clamp(1.5rem, 4vw, 3rem) !important;
  }
  .ueber-right {
    justify-content: flex-end !important;
    width: 100% !important;
    max-width: 700px !important;
  }
  .ueber-portrait {
    width: 100% !important;
    max-width: 700px !important;
    min-width: 500px !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ueber-portrait { max-width: 450px !important; min-width: 380px !important; }
}

/* =========================================================================
   PATCH 2026-06-04 — Geist mobil sichtbar machen
   Bug: .hero-visual hat <1024px margin:0 auto -> Grid-Item wird shrink-to-fit,
   Kind .ghost-float (width:100%) kollabierte dadurch zirkulaer auf 0x0.
   Fix: hero-visual volle Spaltenbreite, Geist bekommt intrinsische Breite.
   ========================================================================= */
@media (max-width: 1023px) {
  .hero-visual { width: 100%; }
  .ghost-float { width: min(180px, 60vw); max-width: none; }
}

/* =========================================================================
   PATCH 2026-06-04b — Theme-Toggle sichtbar rund + Hinweistext-Lesbarkeit
   Bug1: .theme-toggle wurde im engen Flex-Header auf ~23px gequetscht (Oval
         statt Kreis) + Rand unsichtbar dunkel -> sichtbarer BG + flex-shrink:0.
   Bug2: .hero-cta-hinweis war hardcoded #525252 / strong #0a0a0a -> im
         Dark-Default schwarz-auf-schwarz unlesbar -> auf Theme-Variablen.
   ========================================================================= */
.theme-toggle {
  background: var(--color-bg-soft);
  border-color: var(--color-border-strong);
  flex-shrink: 0;
}
.hero-cta-hinweis { color: var(--color-text-muted); }
.hero-cta-hinweis strong { color: var(--color-text); }


/* =========================================================================
   PATCH 2026-06-04d — Geist-Sprechblasen rotieren (JS-gesteuert, mobil)
   Blase blendet ein -> haelt -> blendet aus -> naechster Spruch (Loop).
   Logik in main.js (.ghost-bubble). Nur <1024px. Dekorativ (aria-hidden).
   Spruch-Liste frei aenderbar in main.js.
   ========================================================================= */
.ghost-bubble { display: none; }
@media (max-width: 1023px) {
  .ghost-float { overflow: visible; }
  .ghost-bubble {
    display: block;
    position: absolute;
    top: -16%;
    right: -20%;
    max-width: 11rem;
    background: #7C3AED;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.25;
    text-align: center;
    padding: 0.5rem 0.8rem;
    border-radius: 14px 14px 14px 4px;
    box-shadow: 0 10px 28px rgba(124,58,237,0.45);
    z-index: 2;
    pointer-events: none;
    transform-origin: bottom right;
    opacity: 0;
    transform: scale(0.4) translateY(8px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
  }
  .ghost-bubble.is-visible { opacity: 1; transform: scale(1) translateY(0); }
  .ghost-bubble::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 18px;
    width: 13px;
    height: 13px;
    background: #7C3AED;
    transform: rotate(45deg);
    border-radius: 0 0 4px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ghost-bubble { transition: opacity 0.25s linear; transform: none; }
  .ghost-bubble.is-visible { transform: none; }
}
