/* PrismaX — Redesign Prototype
   Dark Executive Tech / Boutique Technology Consulting */

:root {
  /* Seitenbasis: dunkles Anthrazit mit leicht grünlichem Unterton (war helleres Grau #48494C) */
  --bg-main: #191D1F;
  /* Komponentenfarbe für kleine, nicht separat gelistete Deko-Flächen (Portrait-Backing,
     Timeline-Punkt, Browser-Mock) — bewusst getrennt von den Kachel-Alpha-Werten unten,
     siehe --bg-card/--bg-elevated. */
  --bg-section: #1E2427;
  /* normale Kachel: 92% deckend, damit der Hintergrund NICHT durch Text/Icons scheint,
     aber zwischen den Kacheln sichtbar bleibt */
  --bg-card: rgba(27,31,33,.92);
  /* hervorgehobene Kachel (Highlight-Panel, Zitat, Kontaktformular) */
  --bg-elevated: rgba(32,36,38,.95);
  --header-bg: rgba(25,29,31,.94);
  --dropdown-bg: rgba(21,24,26,.97);

  --text-main: #F8F7F4;
  --text-soft: #D6D3CE;
  --text-muted: #B7B4AF;

  --sand: #C9A876;
  --sand-light: #E3CDA0;
  --sand-dark: #9C7F52;

  --border: rgba(255,255,255,.14);
  --border-strong: rgba(255,255,255,.24);
  /* dezenter goldener Kachelrahmen, ersetzt --border auf den Karten/Panels unten */
  --tile-border: rgba(201,168,118,.22);

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --ease: cubic-bezier(.4,0,.2,1);
  --header-height: 89px;
}

* { box-sizing: border-box; }

/* overflow-y:auto + scrollbar-gutter:stable reserviert den Platz für die Scrollbar
   DAUERHAFT — ob sie gerade tatsächlich eingeblendet ist oder nicht. Dadurch kann das
   gezielte Ein-/Ausblenden der Scrollbar (z. B. während des Marken-Intros oder des
   mobilen Menüs, siehe ".pxi-lock"/".no-scroll" weiter unten) die Seitenbreite nicht mehr
   verändern — unabhängig von Browser/Betriebssystem/Messzeitpunkt. In Browsern ohne
   scrollbar-gutter-Unterstützung (harmlos ignoriert) bzw. mit Overlay-Scrollbars (iOS/
   macOS-Trackpad-Stil, die ohnehin keinen Platz beanspruchen) hat die Regel keinerlei
   sichtbaren Effekt — dort gibt es durch Scrollbars grundsätzlich keinen Versatz. */
html { scroll-behavior: smooth; overflow-y: auto; scrollbar-gutter: stable; }
html.pxi-lock { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  /* Lange, unteilbare Wörter (z. B. juristische Komposita wie
     "Auftragsverarbeitungsverträge") dürfen auf sehr schmalen Viewports
     umbrechen, statt die Seite horizontal zu sprengen. */
  overflow-wrap: break-word;
}

/* ---------- Globales technisches Hintergrund-System ----------
   EIN zusammenhängender Hintergrund für die ganze Seite. .bg-layer ist ein direktes Kind
   von body: position:fixed, inset:0, z-index:0, pointer-events:none — bleibt beim
   Scrollen exakt an derselben Stelle im Browserfenster stehen. Kein
   background-attachment:fixed, kein Parallax, kein JS, das die Position verändert; keine
   Vorfahren-transform/-filter, die den Viewport-Bezug brechen könnten.
   Aufbau: .bg-base = weiche atmosphärische Verläufe + ruhigere Bildmitte für lesbare
   Inhalte. .bg-dots-a/-b = Punktfelder nur in ausgewählten, weich ausmaskierten
   Bereichen (kein gleichförmiges Raster). .bg-scene = EIN SVG mit Bergsilhouette +
   angeschnittenem, plastischem Prisma mit beleuchteter Kante (unten rechts verankert)
   sowie unterschiedlich großen Polygonnetzen und großen Kreisbögen.
   Header/Main/Footer bekommen dafür z-index:1 (#about-page bewusst ausgenommen, da es
   sein eigenes z-index:200 für das Overlay behalten muss). */
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg-main); }
.bg-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 700px at 82% 86%, rgba(201,168,118,.055), transparent 60%),
    radial-gradient(ellipse 640px 480px at 9% 14%, rgba(150,185,168,.04), transparent 65%),
    radial-gradient(ellipse 1100px 850px at 50% 50%, rgba(6,8,9,.4), transparent 72%);
}
.bg-dots-a, .bg-dots-b {
  position: absolute;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bg-dots-a {
  top: -4%; right: -2%; width: 42vw; height: 46vh; opacity: .10;
  -webkit-mask-image: radial-gradient(circle at 78% 10%, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle at 78% 10%, #000 0%, transparent 68%);
}
.bg-dots-b {
  bottom: -4%; left: -2%; width: 30vw; height: 32vh; opacity: .06;
  -webkit-mask-image: radial-gradient(circle at 14% 90%, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle at 14% 90%, #000 0%, transparent 68%);
}
.bg-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-header, main, footer.site-footer, .product-panel { position: relative; z-index: 1; }

/* ---------- Produktbereiche (PrismaX Mail / PrismaX Cloud) ----------
   Normaler In-Flow-Seitenbereich direkt unter dem (sticky) Header, KEIN Modal,
   KEIN Fullscreen-Overlay, kein body-scroll-lock. Reuses .wrap/.kicker/.serif/
   .btn-primary — kein neues Designsystem. */
.product-panel {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.product-panel .wrap { min-height: calc(100vh - var(--header-height)); min-height: calc(100dvh - var(--header-height)); display: flex; align-items: center; }
.product-view { max-width: 640px; opacity: 0; transform: translateY(10px); animation: productFadeIn .3s var(--ease) forwards; }
@keyframes productFadeIn { to { opacity: 1; transform: translateY(0); } }
.product-view p { margin: 22px 0 0; font-size: 17px; line-height: 1.7; color: var(--text-soft); max-width: 480px; }
.product-view .btn-primary { margin-top: 36px; }
.product-back {
  display: block; margin-top: 28px; background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: 14px; color: var(--text-muted); transition: color .3s ease;
}
.product-back:hover { color: var(--sand-light); }
nav.main-nav a[aria-current="true"],
.nav-dropdown-menu a[aria-current="true"] { color: var(--sand-light); }

@media (prefers-reduced-motion: reduce) {
  .product-view { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .product-panel { padding: 64px 0; }
}

/* Mobil: reduzierte, aber weiterhin sichtbare und weiterhin fixierte Komposition —
   weniger technische Details, Berg/Prisma bleibt unten rechts verankert und sichtbar. */
@media (max-width: 640px) {
  .bg-net-secondary, .bg-arcs, .bg-nodes-mid, .bg-dots-a, .bg-dots-b { display: none; }
  .bg-base {
    background:
      radial-gradient(ellipse 70vw 50vh at 88% 90%, rgba(201,168,118,.06), transparent 62%),
      radial-gradient(ellipse 90vw 70vh at 50% 50%, rgba(6,8,9,.42), transparent 74%);
  }
  /* Die beleuchtete Prisma-Kante (zwei übereinanderliegende <line>-Elemente: weicher
     Glow + scharfe helle Linie) läuft auf schmalen Viewports mitten durch Textspalten
     (z. B. "Feste Ansprechperson" / "Kommunikation auf Augenhöhe" / "Breites
     Partnernetzwerk") und stört dort die Lesbarkeit zu stark. Auf dem Desktop bleibt sie
     unverändert — nur hier gedimmt, Form/Position der Kante bleibt erhalten. */
  .bg-prism-shape line { opacity: .35; }
}

#ueber-mich .wrap { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typography helpers ---------- */

.serif { font-family: var(--serif); font-weight: 400; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sand);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--sand);
  flex-shrink: 0;
}

h1, h2, h3 { margin: 0; font-weight: 400; color: var(--text-main); }

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid var(--sand);
  border-radius: 3px;
  color: var(--sand-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn-primary:hover { background-color: rgba(201,168,118,.10); border-color: var(--sand-light); transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(201,168,118,.35); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.arrow { display: inline-block; transition: transform .5s var(--ease); }

.btn-secondary {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 4px;
  transition: color .4s ease, border-color .4s ease;
}
.btn-secondary:hover { color: var(--text-main); border-color: var(--sand); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.logo svg { flex-shrink: 0; }
.logo span {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: .01em;
  line-height: 1;
  display: inline-block;
  background: linear-gradient(120deg, var(--sand-light) 0%, var(--sand) 50%, var(--sand-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-footer .logo span { font-size: 24px; }
nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 4px;
  transition: color .4s ease;
}
nav.main-nav a::after {
  content: "";
  position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px;
  background: var(--sand);
  transition: left .35s var(--ease), right .35s var(--ease);
}
nav.main-nav a:hover { color: var(--text-main); }
nav.main-nav a:hover::after { left: 0; right: 0; }
.nav-cta { flex-shrink: 0; }

.nav-dropdown { position: relative; padding-bottom: 22px; margin-bottom: -22px; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: none; border: none; padding: 0 0 4px; margin: 0; font: inherit;
  color: var(--text-soft); font-size: 14px; transition: color .4s ease;
  /* padding-bottom:4px gleicht die restlichen nav.main-nav-Links an (die ebenfalls
     padding-bottom:4px für ihre Hover-Unterstreichung haben) — ohne diesen Ausgleich
     zentriert der Flex-Container den Button geometrisch leicht tiefer als die reinen
     Textlinks, sichtbar als "Services hängt tiefer". */
}
.nav-dropdown-trigger:hover { color: var(--text-main); }
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-chevron { transition: transform .35s cubic-bezier(.4,0,.2,1); flex-shrink: 0; }
.nav-dropdown:hover .nav-dropdown-chevron, .nav-dropdown.is-open .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--dropdown-bg); border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 8px; min-width: 200px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 20px 44px -8px rgba(18,18,20,.45), 0 6px 16px rgba(18,18,20,.24);
  z-index: 30;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 11px 14px; border-radius: 4px; font-size: 14px; color: var(--text-soft);
  text-decoration: none; white-space: nowrap; transition: background-color .3s ease, color .3s ease; margin-bottom: 0;
}
.nav-dropdown-menu a:hover { background-color: rgba(201,168,118,.10); color: var(--text-main); }

/* Referenzen-Dropdown: eigener Button statt Hover, Link und Schalter mit getrennten,
   ausreichend großen Klickflächen. Nutzt .nav-dropdown-menu für Optik/Position weiter
   (siehe oben), öffnet aber über die Klasse .is-open (siehe Skript), nicht per :hover. */
.nav-dropdown-refs { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-refs .nav-dropdown-link {
  position: relative; color: var(--text-soft); text-decoration: none; font-size: 14px;
  padding-bottom: 4px; transition: color .4s ease;
}
.nav-dropdown-refs .nav-dropdown-link::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px;
  background: var(--sand); transition: left .35s var(--ease), right .35s var(--ease);
}
.nav-dropdown-refs .nav-dropdown-link:hover { color: var(--text-main); }
.nav-dropdown-refs .nav-dropdown-link:hover::after { left: 0; right: 0; }
.nav-dropdown-toggle {
  appearance: none; -webkit-appearance: none; background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-left: 2px; padding: 0; color: var(--text-soft);
  border-radius: 5px; transition: color .3s ease, background-color .3s ease;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle:focus-visible { color: var(--text-main); background-color: rgba(201,168,118,.10); }
.nav-dropdown-toggle .nav-dropdown-chevron { transition: transform .35s var(--ease); }
.nav-dropdown-refs.is-open .nav-dropdown-toggle .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-refs.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-link:focus-visible,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown-trigger:focus-visible,
.nav-dropdown-menu a:focus-visible {
  outline: 2px solid var(--sand-light); outline-offset: 3px; border-radius: 3px;
}

/* ---------- Mobiles Menü (Hamburger) ----------
   Schalter ist per Default unsichtbar (nur < 1010px eingeblendet, siehe Media Query
   unten). Feste 44x44px-Klickfläche unabhängig vom Flex-Kontext: flex-shrink:0
   verhindert ein Zusammendrücken durch Logo/CTA in der Kopfzeile. */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  padding: 0; margin: 0;
  background: none; border: 1px solid var(--tile-border); border-radius: 6px;
  cursor: pointer; color: var(--text-main);
  transition: border-color .3s ease, background-color .3s ease;
}
.nav-toggle:hover, .nav-toggle:focus-visible { border-color: var(--sand-light); background-color: rgba(201,168,118,.08); }
.nav-toggle:focus-visible { outline: 2px solid var(--sand-light); outline-offset: 2px; }
.nav-toggle-box { position: relative; width: 20px; height: 14px; flex-shrink: 0; }
.nav-toggle-bar {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 1px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s ease, top .3s var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 6px; }
.nav-toggle-bar:nth-child(3) { top: 12px; }
/* geöffnet: Symbol wird zum Schließen-Kreuz (X) */
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-mobile-cta { display: none; }

/* Mobile Navigation — eigener, dedizierter Breakpoint bei 1010px (bewusst höher
   als die übrigen 640/960px-Layout-Breakpoints weiter unten): Ursache des
   gemeldeten Fehlers war, dass Logo + volle Navigation (5 Einträge/Dropdowns) +
   CTA-Button schon deutlich oberhalb von 640px nicht mehr nebeneinander passen —
   sichtbar u. a. bei 768px Breite, wo bislang noch die volle Desktop-Navigation
   angezeigt wurde und den Button überlappte. Messung ergab: die volle
   Desktop-Zeile benötigt real bis zu ~990px, bevor sie kollisionsfrei passt;
   900px allein hätte im Übergangsbereich 901–989px daher weiterhin überlappt.
   Deshalb 1010px (mit Sicherheitsabstand) statt Verkleinern von
   Schrift/Abständen oder hohem z-index. */
@media (max-width: 1010px) {
  .nav-toggle { display: inline-flex; }
  /* Kontaktmöglichkeit bleibt erhalten — nur nicht mehr als eigener Button in der
     Kopfzeile, sondern als CTA am Ende des aufgeklappten Menüs, siehe .nav-mobile-cta. */
  .nav-cta { display: none; }

  nav.main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--header-bg); border-bottom: 1px solid var(--border);
    /* Gleiches Frosted-Glass wie .site-header: --header-bg ist nur 94% deckend,
       ohne Weichzeichnung schimmert Inhalt dahinter (z. B. das Portraitfoto in
       der "Mehr über mich"-Ansicht) sichtbar scharf statt dezent durch. */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 32px 28px;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: 0 24px 48px -16px rgba(18,18,20,.5);
  }
  nav.main-nav.is-open { display: flex; }

  nav.main-nav > a {
    padding: 14px 4px; font-size: 16px;
  }
  nav.main-nav a::after { display: none; } /* Unterstreich-Hover ergibt in der Liste keinen Sinn */

  .nav-dropdown, .nav-dropdown-refs {
    position: static; display: flex; flex-wrap: wrap; align-items: center;
    padding-bottom: 0; margin-bottom: 0;
  }
  .nav-dropdown-trigger {
    width: 100%; justify-content: space-between;
    padding: 14px 4px; font-size: 16px;
  }
  .nav-dropdown-refs .nav-dropdown-link { flex: 1 1 auto; padding: 14px 4px; font-size: 16px; }
  .nav-dropdown-toggle { margin-left: auto; }

  .nav-dropdown-menu {
    position: static; transform: none; box-shadow: none; border: none;
    background: rgba(0,0,0,.16); border-radius: 5px;
    opacity: 1; visibility: visible; pointer-events: auto; transition: none;
    display: none; width: 100%; min-width: 0; margin: 0 0 6px; padding: 4px;
  }
  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown-refs.is-open .nav-dropdown-menu {
    display: block;
    /* Überschreibt die Desktop-Regel gleicher Spezifität (.nav-dropdown.is-open
       .nav-dropdown-menu { transform: translateX(-50%) … }), die das Panel sonst
       weit nach links aus dem sichtbaren Bereich schiebt — sichtbar u. a. als
       "leeres" Untermenü ohne erkennbare Einträge. */
    transform: none;
  }
  .nav-dropdown-menu a { padding: 12px 14px; }

  .nav-mobile-cta { display: inline-flex; margin-top: 18px; align-self: flex-start; }

  /* Hintergrundscrollen verhindern, solange das Menü offen ist. */
  body.nav-is-open { overflow: hidden; }
}
@media (max-width: 640px) {
  nav.main-nav { padding-left: 20px; padding-right: 20px; }
}

/* Trust-Zeile im Hero: Auf breiten Screens eine Zeile, auf Mobilgeräten reicht der Platz
   dafür nicht. Jede Kennzahl-Phrase bleibt dank &nbsp; (siehe HTML) als Einheit
   zusammen, nur an den Trennpunkten darf umgebrochen werden — kein Wortbruch mehr
   mitten im Text. */
@media (max-width: 640px) {
  .trust-line { text-align: center; }
  .trust-line .wrap { display: block; line-height: 2.1; }
}

/* Anker-Ziel der Referenzen-Sektion: Ausgleich für den fixierten (sticky) Header,
   damit die Überschrift auch beim Sprung von einer Unterseite aus (z. B.
   projekte.html → index.html#referenzen) nicht darunter verschwindet. */
#referenzen { scroll-margin-top: var(--header-height); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 0;
  /* keine deckende Grundfarbe mehr — der globale, fixierte Hintergrund scheint durch */
  background: radial-gradient(circle at 80% 4%, rgba(201,168,118,.07), transparent 42%);
}
.hero-inner { position: relative; max-width: 700px; }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.14;
  letter-spacing: -.01em;
}
.hero p.lead {
  margin: 28px 0 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: border-color .4s ease, background-color .4s ease, transform .35s var(--ease);
  white-space: nowrap;
}
.btn-outline:hover { border-color: rgba(255,255,255,.4); background-color: rgba(255,255,255,.04); transform: translateY(-2px); }

.trust-line {
  position: relative;
  margin-top: 72px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sand-dark);
  font-weight: 600;
  overflow-x: hidden;
}
.trust-line .wrap { max-width: 100%; }

.stat-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin-top: 72px;
  border-top: 1px solid var(--border);
}
.stat-row .stat {
  flex: 1 1 200px;
  padding: 32px 40px;
  border-left: 1px solid var(--border);
}
.stat-row .stat:first-child { border-left: none; padding-left: 0; }
.stat .num { font-family: var(--serif); font-size: 30px; color: var(--sand-light); }
.stat .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Sections generic ---------- */

section { padding: 44px 0; position: relative; }
/* section.alt hat keine eigene deckende Fläche mehr — der globale, fixierte Hintergrund
   bleibt zwischen den Kacheln durchgehend sichtbar. */
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head h1, .section-head h2 { margin-top: 24px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.22; letter-spacing: -.005em; }

/* ---------- Legal / Impressum ---------- */

.legal-page { padding-bottom: 80px; }
.legal-panel { max-width: 820px; }
.legal-block { padding: 24px 0; border-top: 1px solid var(--tile-border); }
.legal-block:first-child { padding-top: 0; border-top: none; }
.legal-block h2, .legal-block h3 { font-family: var(--serif); font-size: 19px; color: var(--sand-light); font-weight: 500; margin: 0 0 10px; }
.legal-block p { font-size: 15.5px; line-height: 1.75; color: var(--text-soft); margin: 0 0 8px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block .inline-link, .legal-note-box .inline-link { color: var(--sand-light); text-decoration: none; border-bottom: 1px solid var(--tile-border); transition: border-color .3s var(--ease); }
.legal-block .inline-link:hover, .legal-note-box .inline-link:hover { border-color: var(--sand-light); }
.legal-block code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; color: var(--sand); background: rgba(201,168,118,.08); padding: 1px 5px; border-radius: 3px; }
.legal-note { max-width: 820px; margin: 28px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.legal-note .tbc { color: var(--sand-dark); }

/* Anker-Ziele innerhalb der Rechtsseiten: Ausgleich für den fixierten Header,
   damit Überschriften beim Sprung aus dem Inhaltsverzeichnis nicht darunter
   verschwinden (gleiches Prinzip wie bei #referenzen, siehe oben). */
.legal-block[id] { scroll-margin-top: var(--header-height); }

/* Deutlich sichtbarer Hinweis zum Bearbeitungsstand am Seitenanfang. */
.legal-note-box {
  max-width: 820px; margin: 0 0 40px; padding: 20px 24px;
  background: rgba(201,168,118,.07); border: 1px solid var(--tile-border); border-radius: 5px;
  font-size: 14px; line-height: 1.7; color: var(--text-soft);
}
.legal-note-box strong { color: var(--text-main); }

/* Noch zu bestätigende / offene Angaben — bewusst auffällig markiert, damit sie
   nicht mit fertigem Text verwechselt werden. */
.tbc {
  color: var(--sand-dark); font-weight: 600; font-style: normal;
  background: rgba(201,168,118,.14); padding: 1px 6px; border-radius: 3px;
}

/* Inhaltsverzeichnis mit Sprunglinks. */
.legal-toc {
  max-width: 820px; margin: 0 0 40px; padding: 22px 24px;
  background: var(--bg-card); border: 1px solid var(--tile-border); border-radius: 5px;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  box-shadow: 0 0 24px rgba(201,168,118,.16), 0 0 54px rgba(201,168,118,.08);
}
.legal-toc-label { width: 100%; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.legal-toc a { font-size: 14px; color: var(--text-soft); text-decoration: none; border-bottom: 1px solid transparent; transition: color .3s ease, border-color .3s ease; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--sand-light); border-color: var(--sand-light); }

.legal-highlight { margin-top: 0; padding: 28px 32px; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.legal-highlight h3 { margin: 0 0 10px; }
.legal-highlight p { margin: 0; max-width: none; }

@media (max-width: 640px) {
  .legal-toc { padding: 18px 20px; gap: 4px 16px; }
  .legal-highlight { padding: 22px 20px; }
}

/* ---------- Aktuelle Projekte ---------- */

.projects-page { padding-bottom: 80px; }
.projects-list { display: flex; flex-direction: column; gap: 32px; }
.project-card { padding: 40px; }
.project-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.project-preview { display: block; text-decoration: none; cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.project-preview:hover, .project-preview:focus-visible { transform: translateY(-3px); box-shadow: 0 34px 80px -22px rgba(18,18,20,.6); }
.project-preview:focus-visible { outline: 2px solid var(--sand-light); outline-offset: 3px; }
.project-preview-frame { position: relative; aspect-ratio: 2 / 1; background: var(--bg-section); overflow: hidden; }
.project-preview-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.project-preview.preview-missing .project-preview-img { display: none; }
.project-preview-placeholder {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--text-muted); font-size: 13px; text-align: center; padding: 24px;
}
.project-preview.preview-missing .project-preview-placeholder { display: flex; }

.project-actions { margin-top: 28px; }

/* Empfehlungstext: volle Kartenbreite unterhalb von Vorschau/Beschreibung, dezente
   Trennlinie zum oberen Bereich, schmale goldene Akzentlinie (wie .quote-card .bar). */
.project-review {
  margin: 40px 0 0; padding-top: 36px; border-top: 1px solid var(--tile-border);
  display: flex; align-items: flex-start; gap: 28px;
}
.project-review .bar { width: 2px; align-self: stretch; background: var(--sand); opacity: .5; flex-shrink: 0; }
.project-review-body { flex: 1 1 auto; min-width: 0; }
.project-review p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--sand-light); }
.project-review-byline { margin-top: 20px; display: flex; flex-direction: column; gap: 3px; }
.project-review-name { font-size: 14.5px; font-weight: 600; color: var(--text-main); }
.project-review-role { font-size: 12.5px; color: var(--text-muted); }
.project-review-draft-tag {
  display: inline-block; margin-top: 16px; padding: 4px 10px; border: 1px solid var(--tile-border); border-radius: 3px;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: var(--sand-dark);
}
@media (max-width: 640px) {
  .project-review { gap: 18px; padding-top: 28px; }
  .project-review p { font-size: 16px; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 960px) {
  .project-showcase { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .project-card { padding: 28px 24px; }
}
.section-head p { margin: 22px 0 0; font-size: 17px; line-height: 1.7; color: var(--text-soft); max-width: 620px; }

/* ---------- Leistungen cards ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--tile-border);
  border-radius: 5px;
  padding: 40px;
  transition: border-color .5s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
  /* Dezenter Glow, an .portrait-frame angelehnt (gleiche Sand-Farbe/gleicher
     Mechanismus, deutlich zurückhaltender als beim Profilbild). */
  box-shadow: 0 0 24px rgba(201,168,118,.16), 0 0 54px rgba(201,168,118,.08);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 40px; right: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,118,.35), transparent);
  opacity: .6;
  transition: opacity .5s ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  /* Beim Hover etwas kräftiger, bleibt aber unter der Glow-Stärke des Profilbilds (.20/.10). */
  box-shadow: 0 0 30px rgba(201,168,118,.20), 0 0 64px rgba(201,168,118,.11), 0 24px 48px -30px rgba(18,18,20,.5);
}
.card:hover::before { opacity: 1; }

/* ---------- Subtiles Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.card .num { font-family: var(--serif); font-size: 15px; color: var(--sand-dark); letter-spacing: .04em; }
.card h3 { font-family: var(--sans); font-size: 21px; font-weight: 600; margin: 18px 0 12px; }
.card p { font-size: 15px; line-height: 1.65; color: var(--text-soft); margin: 0; }

.services-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.services-grid-4 .card { padding: 32px; }
.services-grid-4 .card::before { left: 32px; right: 32px; }
.services-grid-4 .card h3 { font-size: 19px; margin: 16px 0 10px; }
.services-grid-4 .card p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.card-link { font-size: 13px; font-weight: 600; color: var(--sand-light); text-decoration: none; letter-spacing: .02em; }
.card-link:hover { color: var(--text-main); }
.inline-link { color: var(--sand-light); text-decoration: underline; text-decoration-color: rgba(201,168,118,.4); }
.inline-link:hover { color: var(--text-main); }

.benefits-head {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: end;
}
.benefits-head h2 { margin-top: 22px; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; }
.benefits-head p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-soft); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.benefit-icon {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid rgba(201,168,118,.30);
  display: flex; align-items: center; justify-content: center;
  color: var(--sand); flex-shrink: 0;
}
.benefit h4 { font-size: 15px; font-weight: 600; margin: 14px 0 0; color: var(--text-main); }
.benefit p { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 8px 0 0; max-width: 280px; }

.highlight-panel {
  margin-top: 44px;
  background: var(--bg-elevated);
  border: 1px solid rgba(201,168,118,.28);
  border-radius: 5px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  /* Mittlerer Glow (Hauptkachel-Stufe) — gleicher Mechanismus wie .portrait-frame,
     aber schwächer als dort. */
  box-shadow: 0 0 36px rgba(201,168,118,.18), 0 0 84px rgba(201,168,118,.10);
}
.highlight-panel h3 { font-size: 24px; font-weight: 500; font-family: var(--serif); }
.highlight-panel p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-soft); max-width: 640px; }

.process-strip {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.process-strip .step .step-num { font-family: var(--serif); font-size: 22px; color: var(--sand); }
.process-strip .step .step-title { font-size: 14px; font-weight: 600; margin-top: 8px; }
.process-strip .step .step-text { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ---------- Interims-IT ---------- */

.interims { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.interims .pitch p { margin: 24px 0 0; max-width: 480px; font-size: 17px; line-height: 1.7; color: var(--text-soft); }
.interims .pitch a { margin-top: 40px; }
.panel {
  background: var(--bg-card);
  border: 1px solid var(--tile-border);
  border-radius: 5px;
  padding: 40px;
  /* Mittlerer Glow (Hauptkachel-Stufe), gleicher Mechanismus wie .portrait-frame. */
  box-shadow: 0 0 36px rgba(201,168,118,.18), 0 0 84px rgba(201,168,118,.10);
}
.panel-item {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
}
.panel-item:first-child { border-top: none; padding-top: 0; }
.panel-item .p-num { font-family: var(--serif); font-size: 18px; color: var(--sand-dark); }
.panel-item .p-title { font-size: 16px; font-weight: 600; }
.panel-item .p-text { font-size: 14px; color: var(--text-soft); margin-top: 6px; line-height: 1.6; }

/* ---------- Über mich ---------- */

.about-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.about-top-3col { grid-template-columns: 0.62fr 1fr 0.65fr; gap: 56px; }
.value-list { display: flex; flex-direction: column; gap: 24px; position: relative; padding-left: 18px; border-left: 1px solid var(--border); }
.value { display: flex; align-items: flex-start; gap: 14px; }
.value-icon {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(201,168,118,.30);
  display: flex; align-items: center; justify-content: center;
  color: var(--sand); flex-shrink: 0;
}
.value-text { font-size: 14px; line-height: 1.55; color: var(--text-main); font-weight: 500; padding-top: 6px; }
.quote-card-right { max-width: 760px; margin-left: auto; align-items: center; }
.quote-card-right p { font-size: 19px; }
.quote-card-right .byline { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.about-top p.lead { margin: 24px 0 0; font-size: 17px; line-height: 1.7; color: var(--text-soft); max-width: 560px; }
.tags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.tag {
  display: inline-flex; align-items: center; padding: 8px 16px;
  border: 1px solid var(--border-strong); border-radius: 3px;
  font-size: 13px; color: var(--text-soft); font-weight: 500;
}
.portrait-frame {
  position: relative;
  border-radius: 8px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--sand-light), var(--sand), var(--sand-dark));
  box-shadow:
    0 0 40px rgba(201,168,118,.20),
    0 0 90px rgba(201,168,118,.10),
    0 40px 80px -28px rgba(18,18,20,.50),
    0 16px 32px rgba(18,18,20,.26);
}
/* Blaupausen-Eckmarken — reine Deko, reuses --sand, kein neues Token */
.portrait-frame::before,
.portrait-frame::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--sand);
  opacity: .45;
  pointer-events: none;
}
.portrait-frame::before { top: -9px; left: -9px; border-right: none; border-bottom: none; }
.portrait-frame::after { bottom: -9px; right: -9px; border-left: none; border-top: none; }
.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 500 / 555;
  border-radius: 7px;
  background: var(--bg-section);
  overflow: hidden;
  box-shadow: inset 0 0 46px rgba(24,24,26,.24), inset 0 0 14px rgba(24,24,26,.20);
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: grayscale(1) contrast(1.08) brightness(.94);
}
.portrait-duotone {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(25,29,31,.55) 0%, rgba(201,168,118,.32) 100%);
  mix-blend-mode: color;
}
.portrait-sweep {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(230,220,201,.09) 46%, rgba(235,227,210,.14) 50%, rgba(230,220,201,.09) 54%, transparent 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.portrait-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(46,48,51,.35) 0%, transparent 40%);
}

.timeline-wrap { margin-top: 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
/* sanfter Übergang vom persönlichen Einstieg zur Historie — die Trennlinie läuft
   jetzt am Rand aus (fade statt hartem Schnitt), damit Profilbereich und Timeline
   als EINE Komposition wirken statt als zwei gestapelte Sektionen */
.about-timeline-transition {
  margin-top: 52px;
  padding-top: 40px;
  border-top: none;
  position: relative;
}
.about-timeline-transition::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 18%, var(--border) 82%, transparent);
}
.timeline { position: relative; padding-left: 32px; border-left: 1px solid var(--border); }
.timeline .tl-item { position: relative; margin-bottom: 68px; }
.timeline .tl-item:last-child { margin-bottom: 0; }
.timeline .tl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg-section); border: 1px solid var(--sand);
  box-shadow: 0 0 0 3px rgba(201,168,118,.10), 0 0 14px rgba(201,168,118,.22);
  position: absolute; left: -36.5px; top: 5px;
}
.timeline .tl-head { display: flex; align-items: center; gap: 10px; }
.tl-icon {
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid rgba(201,168,118,.30);
  display: flex; align-items: center; justify-content: center;
  color: var(--sand); flex-shrink: 0;
}
.timeline .tl-year {
  display: flex; align-items: center;
  font-family: var(--serif); font-style: italic; font-size: 21px;
  letter-spacing: .01em; color: var(--sand);
}
.timeline .tl-title { font-size: 16px; font-weight: 600; margin-top: 10px; }
.timeline .tl-text { font-size: 14px; color: var(--text-soft); margin-top: 6px; line-height: 1.65; max-width: 440px; }

.quote-card {
  margin-top: 52px;
  background: var(--bg-card);
  border: 1px solid var(--tile-border);
  border-radius: 5px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  /* Mittlerer Glow (Hauptkachel-Stufe), gleicher Mechanismus wie .portrait-frame. */
  box-shadow: 0 0 36px rgba(201,168,118,.18), 0 0 84px rgba(201,168,118,.10);
}
.quote-card .bar { width: 2px; align-self: stretch; background: var(--sand); opacity: .5; flex-shrink: 0; }
.quote-card p { margin: 0; font-size: 22px; line-height: 1.6; color: var(--sand-light); }

/* ---------- Referenzen ---------- */

.case-feature { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.case-feature-right { display: grid; grid-template-columns: 1fr 0.9fr; gap: 40px; align-items: center; }
.browser-mock {
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px -20px rgba(18,18,20,.55);
}
.browser-mock-bar { background: #3C3D40; padding: 10px 14px; display: flex; align-items: center; gap: 6px; }
.browser-mock-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-block; }
.browser-mock-body { background: var(--bg-section); padding: 36px 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.browser-mock-btn {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--sand); border-radius: 3px;
  color: var(--sand-light); font-size: 12px; font-weight: 600; width: fit-content;
}
.checklist-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.checklist-sub { font-size: 13px; color: var(--sand-dark); margin-top: 4px; }
.check-item { font-size: 14px; color: var(--text-soft); margin-top: 12px; }

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.case-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--tile-border);
  border-radius: 5px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-card::before {
  content: ""; position: absolute; top: 0; left: 40px; right: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,118,.35), transparent);
  opacity: .6;
}
.case-tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sand-dark); font-weight: 600; }
.case-stage { font-size: 14px; color: var(--text-muted); }
.case-stage b { color: var(--text-soft); font-weight: 600; }
.case-result { font-size: 15px; color: var(--sand-light); line-height: 1.6; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(201,168,118,.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px; color: var(--sand);
  flex-shrink: 0;
}
.case-person { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.case-person .name { font-size: 14px; font-weight: 600; }
.case-person .role { font-size: 12px; color: var(--text-muted); }

.featured-quote {
  margin-top: 56px;
  padding: 40px 48px;
  border: 1px solid rgba(201,168,118,.28);
  border-radius: 5px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 0 36px rgba(201,168,118,.18), 0 0 84px rgba(201,168,118,.10);
}
.featured-quote p { margin: 0; font-size: 21px; line-height: 1.6; color: var(--sand-light); }
.featured-quote .byline { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 820px; }
.faq-item {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
}
.faq-item:first-child { border-top: none; padding-top: 0; }
.faq-num { font-family: var(--serif); font-size: 17px; color: var(--sand-dark); }
.faq-q { font-size: 18px; font-weight: 600; font-family: var(--serif); }
.faq-a { font-size: 15px; color: var(--text-soft); margin-top: 10px; line-height: 1.7; max-width: 620px; }

/* ---------- Kontakt ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 96px; }
.contact-pitch p { margin: 24px 0 0; font-size: 16px; line-height: 1.7; color: var(--text-soft); max-width: 440px; }
.contact-details { margin-top: 56px; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); }
.contact-row:last-child { border-bottom: 1px solid var(--border); }
.contact-row a { color: var(--text-main); text-decoration: none; font-size: 15px; }
.contact-row a:hover { color: var(--sand-light); }
.contact-label { font-size: 12px; color: var(--text-muted); letter-spacing: .04em; width: 90px; flex-shrink: 0; text-transform: uppercase; }

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--tile-border);
  border-radius: 5px;
  padding: 48px;
  box-shadow: 0 0 36px rgba(201,168,118,.18), 0 0 84px rgba(201,168,118,.10);
}
.field { margin-bottom: 32px; }
.field label {
  display: block; margin-bottom: 10px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 12px 2px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-main);
  transition: border-color .4s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sand); }
.contact-form button { width: 100%; justify-content: center; margin-top: 8px; }

/* ---------- Footer ---------- */

/* leicht dunkel getönt statt deckend — der globale Hintergrund bleibt schwach sichtbar,
   der sehr sanfte Verlauf hält die Fußzeilentexte trotzdem ruhig lesbar */
footer.site-footer {
  padding: 72px 0 0;
  background: linear-gradient(180deg, rgba(10,13,14,0) 0%, rgba(10,13,14,.5) 30%, rgba(10,13,14,.6) 100%);
  border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; }
.footer-grid p { margin: 20px 0 0; font-size: 14px; line-height: 1.7; color: var(--text-muted); max-width: 280px; }
.f-col-title { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 20px; }
.f-link { display: block; color: var(--text-soft); text-decoration: none; font-size: 14px; margin-bottom: 14px; transition: color .4s ease; }
.f-sub-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sand-dark); font-weight: 600; margin: 18px 0 12px 0; }
.f-link:hover { color: var(--sand-light); }
.footer-bottom {
  margin-top: 56px; padding: 24px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { font-size: 12px; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; transition: color .3s ease; }
.footer-bottom a:hover { color: var(--sand-light); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .services-grid, .case-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-top, .interims, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .case-feature, .case-feature-right { grid-template-columns: minmax(0, 1fr); }
  /* Einspaltig gestapelt: gap gleicht den fehlenden margin-bottom des jeweils LETZTEN
     Eintrags jedes .timeline-Blocks aus (siehe .tl-item:last-child), sonst rutschen die
     beiden Blöcke ohne jeden Abstand ineinander, während die übrigen Einträge weiterhin
     68px Abstand haben — ungleichmäßiges Bild. */
  .timeline-wrap { grid-template-columns: minmax(0, 1fr); gap: 68px; }
  .process-strip { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .services-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .benefits-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section { padding: 32px 0; }
  /* nav.main-nav wird ab 1010px über das Hamburger-Menü gesteuert, siehe dortigen Block. */
  .services-grid, .case-grid { grid-template-columns: minmax(0, 1fr); }
  .services-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .benefits-grid { grid-template-columns: minmax(0, 1fr); }
  .process-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-row .stat { border-left: none; border-top: 1px solid var(--border); padding: 24px 0; flex: 1 1 45%; }
  .stat-row .stat:first-child { border-top: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 88px; }
}

/* Sehr schmale Geräte (z. B. 320px): einzelne Buttons mit langem Label (nowrap)
   sind breiter als der Viewport und verursachen horizontales Scrollen. Ab hier
   darf der Button-Text umbrechen statt die Seite zu sprengen; Look/Feel bleibt
   erhalten (gleiche Farben/Radius/Padding), nur die Zeile bricht bei Bedarf um. */
@media (max-width: 400px) {
  .btn-primary, .btn-outline, .btn-secondary { white-space: normal; text-align: center; }
}

/* ÜBER MICH — Detailseite (Overlay) */
/* html.no-scroll sperrt das tatsächliche Scrollen (html ist seit der
   scrollbar-gutter-Regel oben das für overflow zuständige Element); body.no-scroll
   bleibt zusätzlich bestehen, da die Nachbar-Selektoren weiter unten (Header/Main/
   Footer ausblenden) gezielt davon abhängen. Das Öffnen/Schließen-Skript setzt die
   Klasse auf beiden Elementen. */
html.no-scroll { overflow: hidden; }
body.no-scroll { overflow: hidden; }

.about-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  /* Kein eigener, flacher Grundton mehr — stattdessen scheint der globale,
     fixierte .bg-layer-Hintergrund (Punkte/Bergsilhouette/Prisma) durch, exakt
     wie auf jeder anderen Seite. body.no-scroll blendet dafür den restlichen
     Seiteninhalt darunter aus (siehe body.no-scroll-Regel unten), damit nichts
     durchscheint außer dem gewünschten Hintergrund. */
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
/* body.no-scroll wird ausschließlich beim Öffnen der "Mehr über mich"-Detailansicht
   gesetzt (siehe about-page-JS) — blendet Header/Produktbereich/Main/Footer aus,
   damit durch das jetzt transparente .about-page nur der globale Hintergrund
   sichtbar ist, nicht der Inhalt der Hauptseite darunter. */
body.no-scroll > .site-header,
body.no-scroll > .product-panel,
body.no-scroll > main,
body.no-scroll > footer.site-footer {
  visibility: hidden;
}
.about-page.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear 0s;
}
.about-page-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.about-page-head {
  position: relative;
  /* .about-page-scroll erzeugt durch mask-image einen eigenen Stacking-Context;
     ohne explizites z-index würde sie (spätere DOM-Position) das mobile
     Nav-Panel dieses Kopfbereichs optisch/interaktiv verdecken. */
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px clamp(20px, 6vw, 80px) 0;
}
/* Eigene Mobil-Navigation der Detailansicht: nutzt dieselben .main-nav/.nav-toggle-
   Klassen (und damit dieselbe Panel-/Dropdown-Logik) wie der Haupt-Header, ist aber
   per ID ausschließlich ≤1010px sichtbar — am Desktop bleibt der Kopf der
   Detailansicht unverändert nur Logo + Schließen-Button. */
@media (min-width: 1011px) {
  #about-main-nav { display: none; }
}
.about-page-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.about-page-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color .4s ease, color .4s ease, transform .4s var(--ease);
}
.about-page-close:hover { border-color: var(--sand); color: var(--sand-light); transform: rotate(90deg); }

/* scrolls internally, but the scrollbar itself stays invisible — the page never *looks* scrollable */
.about-page-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 40px), transparent 100%);
}
.about-page-scroll::-webkit-scrollbar { display: none; }

.about-page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px clamp(20px, 6vw, 80px) 96px;
}
.about-page-content h1.serif {
  margin: 18px 0 0 0;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.15;
  font-weight: 400;
  color: var(--text-main);
}
.about-page-content p {
  margin: 24px 0 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 640px;
}
.about-page-content .about-page-closing {
  color: var(--sand-light);
  font-size: 20px;
  line-height: 1.6;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Premium-Kachel am Kopf der ausführlichen Über-mich-Ansicht — nutzt bestehende
   Card-/Portrait-/Tag-Tokens (--bg-card, --border, --sand*, .portrait-frame, .tag) */
.about-hero-tile {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--tile-border);
  border-radius: 8px;
  padding: 48px;
  box-shadow: 0 0 36px rgba(201,168,118,.18), 0 0 84px rgba(201,168,118,.10);
}
.about-hero-tile .portrait-frame { max-width: 320px; }
.about-hero-text h1.serif {
  margin: 18px 0 0 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.28;
  font-weight: 400;
  color: var(--text-main);
}
.about-hero-text .tags { margin-top: 28px; }
.about-page-content .about-hero-tile + p { margin-top: 48px; }

@media (max-width: 960px) {
  .about-hero-tile { grid-template-columns: minmax(0, 1fr); padding: 36px; gap: 32px; }
  .about-hero-tile .portrait-frame { max-width: 220px; margin: 0 auto; }
  .about-hero-text { text-align: center; }
  .about-hero-text .tags { justify-content: center; }
}
@media (max-width: 640px) {
  .about-hero-tile { padding: 28px 24px; }
}
