/* =========================================================================
   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 ----------------------------------------------------------- */
.container,
.hero-inner,
.section-intro,
.leistungen-list,
.projekte-header,
.ueber,
.testimonials-inner,
.cta {
  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: var(--color-black);
  white-space: nowrap;
}
.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: 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: grid;
  gap: 1.25rem;
  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;
}
.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);
}
.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);
}
.leistung-price {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}
.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: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--color-gray-100);
  box-shadow: var(--shadow-md);
  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: 1.25rem;
  bottom: calc(1.25rem + 80px);
  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;
}

body.a11y-desaturate { 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); }
}
.hero-label,
.hero-title,
.hero-desc,
.hero-action {
  animation: fadeUp var(--dur-slow) var(--ease) both;
}
.hero-title { animation-delay: 60ms; }
.hero-desc { animation-delay: 140ms; }
.hero-action { animation-delay: 220ms; }

/* =========================================================================
   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: 1fr 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: 1fr 1fr 1fr; gap: 1.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-price,
.leistung-addon-price { white-space: nowrap; }

/* 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(2.2rem, 11vw, 4rem);
    line-height: 1.0;
  }
}

/* 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: 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: 240px; margin-inline: auto; }
  .ueber-portrait { max-width: 240px; }
}

/* 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 */
}

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