/* ══════════════════════════════════════════════
   ostrovsky-web.de — Design System & Styles
   Swiss-Clean v3
   ══════════════════════════════════════════════ */

/* ── Self-hosted Fonts ── */

/* Outfit — Display + Body (variable 100–900, latin subset) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono — Technical/monospace accent (400, 500) */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Instrument Serif — Accent italic */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design Tokens ── */
:root {
  /* Colors */
  --color-bg:               #FAFAF8;
  --color-text:             #2B2B2B;
  --color-text-muted:       #6B6B66;
  --color-text-light:       #767670;  /* AA-compliant on bg (4.5:1) — was #A0A09A */
  --color-text-decorative:  #A0A09A;  /* aria-hidden numerals/decorative only */
  --color-accent:           #C4654A;  /* large UI / buttons (3:1 large-text threshold) */
  --color-accent-text:      #6F2A1B;  /* 4.5:1+ on light bg for small labels (was #A85036) */
  --color-accent-on-dark:   #E08566;  /* large text/UI on dark (3:1) */
  --color-accent-on-dark-sm: #E79073; /* small text on dark — 4.5:1+ on #3A3632/#2B2B2B */
  --color-accent-hover:     #B55A41;
  --color-dark:             #3A3632;
  --color-dark-card:        #2B2B2B;
  --color-border:           #E0E0DE;
  --color-surface:          #F3F3F0;
  --color-text-on-dark:        rgba(250, 250, 248, 0.92);  /* primary */
  --color-text-on-dark-muted:  rgba(250, 250, 248, 0.78);  /* body, AA on dark */
  --color-text-on-dark-light:  rgba(250, 250, 248, 0.6);   /* decorative only */

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-serif:   'Instrument Serif', serif;
  /* Technical/monospace accent — self-hosted IBM Plex Mono */
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, 'Roboto Mono', monospace;

  /* Fluid display scale — wider contrast for the bolder direction */
  --fs-hero:    clamp(48px, 8.2vw, 104px);   /* hero headline */
  --fs-display: clamp(34px, 4.4vw, 52px);    /* big section titles */
  --fs-stat:    clamp(40px, 5vw, 60px);      /* trust numerals */
  --fs-index:   clamp(40px, 4.6vw, 64px);    /* oversized service indices */

  /* Spacing */
  --space-section: 96px;
  --space-group:   64px;
  --space-element: 24px;
  --space-gutter:  80px;

  /* Layout */
  --max-width: 1440px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
main { overflow-anchor: none; }
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { text-decoration: none; color: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }

/* Skip link — keyboard users jump straight to content */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-text); color: var(--color-bg);
  padding: 12px 20px; font-size: 14px; font-weight: 500;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* Focus indicator — visible for keyboard users, hidden for mouse */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.hero-block *:focus-visible,
.cta-inner *:focus-visible,
.service-card.featured *:focus-visible {
  outline-color: var(--color-bg);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Technical mono label (engineering-detail accent) ──
   Small uppercase monospace tag used for eyebrows, meta and indices.
   Colour is set by context; defaults to the AA-safe accent-on-light. */
.tlabel {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-text);
}
.tlabel-muted { color: var(--color-text-light); }
.hero-block .tlabel,
.hero-interior .tlabel,
.cta-inner .tlabel { color: var(--color-accent-on-dark-sm); }
.hero-block .tlabel-muted,
.cta-inner .tlabel-muted { color: var(--color-text-on-dark-light); }

/* ── Scroll reveal — gated by JS (.reveal-ready added only when motion OK) ── */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal].is-visible {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ── Site Header ── */
.site-header { position: relative; z-index: 5; }
.site-header-light {
  position: sticky; top: 0; z-index: 20;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header-light.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 24px rgba(30, 30, 28, 0.04);
}

/* Dark sticky header (homepage and dark-hero pages) — header sits above the hero
   so it overlays it visually; the hero-block extends up under the header via its
   negative top margin set below, keeping the existing dark-hero design. */
.has-overlay-nav .site-header {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 20; background: transparent;
  transition: background 0.25s, border-color 0.2s;
  border-bottom: 1px solid transparent;
}
.hero-rotate-word { will-change: transform, opacity; }
.has-overlay-nav .site-header.is-scrolled {
  background: var(--color-dark);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
/* Pull the hero block up so it sits behind the transparent header at the top of
   the page (preserves the original overlay design). */
.has-overlay-nav .hero-block { margin-top: -107px; }
/* Hero content already had top padding for the absolute-positioned header — keep
   it so headlines sit at the same vertical position as before. */

/* Compressed nav padding when scrolled (both light + dark variants) */
.site-header-light.is-scrolled .nav,
.has-overlay-nav .site-header.is-scrolled .nav {
  padding-top: 10px; padding-bottom: 10px;
}
.site-header-light .nav,
.has-overlay-nav .site-header .nav {
  transition: padding 0.2s;
}
.site-header-light.is-scrolled .nav-logo img,
.has-overlay-nav .site-header.is-scrolled .nav-logo img {
  height: 36px;
  transition: height 0.2s;
}
.nav-logo img { transition: height 0.2s; }

/* ── Hero Block (Nav + Hero combined) ── */
.hero-block {
  position: relative;
  background: var(--color-dark);
  overflow: hidden;
}
.hero-block::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero-dark-bg.png') center/cover no-repeat;
  background: image-set(
    url('../images/hero-dark-bg.webp') type('image/webp'),
    url('../images/hero-dark-bg.png') type('image/png')
  ) center/cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.hero-block::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58,54,50,0.6) 0%, rgba(58,54,50,0.9) 70%, rgba(58,54,50,1) 100%);
  pointer-events: none;
}

/* ── Nav ── */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--space-gutter); width: 100%; max-width: var(--max-width); margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 50px;
  width: auto;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a.nav-mobile-home { display: none; }
.nav-links > a,
.nav-links > .nav-item > a {
  font-size: 15px; color: var(--color-text-on-dark-muted);
  padding: 12px 4px; transition: color 0.2s;
  display: inline-block;
}
.nav-links a {
  font-size: 15px; color: var(--color-text-on-dark-muted);
  padding: 12px 4px; transition: color 0.2s;
}
/* Non-link dropdown label for the "Leistungen" group (no standalone page) */
.nav-grouplabel {
  font-size: 15px; color: var(--color-text-on-dark-muted);
  padding: 12px 4px; display: inline-block; transition: color 0.2s; cursor: default;
}
.nav-light .nav-grouplabel { color: var(--color-text-muted); }
.nav-item-has-sub:hover .nav-grouplabel,
.nav-item-has-sub:focus-within .nav-grouplabel,
.nav-item-has-sub.is-active .nav-grouplabel { color: var(--color-bg); }
.nav-light .nav-item-has-sub:hover .nav-grouplabel,
.nav-light .nav-item-has-sub:focus-within .nav-grouplabel,
.nav-light .nav-item-has-sub.is-active .nav-grouplabel { color: var(--color-text); }

/* Submenu (Leistungen dropdown) */
.nav-item {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
}
.nav-sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  color: var(--color-text-on-dark-muted); line-height: 1;
}
.nav-light .nav-sub-toggle { color: var(--color-text-muted); }
.nav-item-has-sub:hover .nav-sub-toggle,
.nav-item-has-sub:focus-within .nav-sub-toggle,
.nav-item-has-sub.is-active .nav-sub-toggle { color: var(--color-bg); }
.nav-light .nav-item-has-sub:hover .nav-sub-toggle,
.nav-light .nav-item-has-sub:focus-within .nav-sub-toggle,
.nav-light .nav-item-has-sub.is-active .nav-sub-toggle { color: var(--color-text); }
.nav-sub-toggle svg { transition: transform 0.2s; }
.nav-item-has-sub.open .nav-sub-toggle svg,
.nav-item-has-sub:hover .nav-sub-toggle svg,
.nav-item-has-sub:focus-within .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-submenu {
  list-style: none; padding: 10px; margin: 0;
  position: absolute; top: calc(100% + 4px); left: -12px;
  min-width: 280px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(30, 30, 28, 0.08);
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  /* Close ~0.35s after hover-off (and stay clickable during it); open instantly. */
  transition: opacity 0.18s ease 0.35s, transform 0.18s ease 0.35s, pointer-events 0s linear 0.35s;
  z-index: 12;
}
/* Invisible bridge over the 4px gap so moving the cursor down keeps the hover. */
.nav-submenu::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 12px;
}
.nav-item-has-sub:hover > .nav-submenu,
.nav-item-has-sub:focus-within > .nav-submenu,
.nav-item-has-sub.open > .nav-submenu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
  transition: opacity 0.15s ease 0s, transform 0.15s ease 0s, pointer-events 0s linear 0s;
}
.nav-submenu li { margin: 0; }
.nav-submenu li a {
  display: block; padding: 10px 14px;
  font-size: 14px; font-family: var(--font-body);
  color: var(--color-text-muted);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-submenu li a:hover {
  background: var(--color-surface); color: var(--color-text);
}
.nav-submenu li a[aria-current="page"] {
  background: var(--color-surface); color: var(--color-accent); font-weight: 500;
}
.nav-links a:hover { color: var(--color-bg); }
.nav-links a[aria-current="page"] { color: var(--color-bg); }
.btn-nav {
  display: inline-flex; align-items: center;
  background: rgba(250,250,248,0.12); border: 1px solid rgba(250,250,248,0.2);
  color: var(--color-bg); border-radius: 6px;
  padding: 10px 28px; font-size: 15px; font-family: var(--font-body);
  backdrop-filter: blur(8px); transition: background 0.2s;
}
.btn-nav:hover { background: rgba(250,250,248,0.2); }

/* ── Hero ── */
.hero {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 100px var(--space-gutter) 120px;
  max-width: var(--max-width); margin: 0 auto;
  gap: 48px;
}
.hero-headline { display: flex; flex-direction: column; gap: 0; width: 100%; }
/* Technical eyebrow above the headline — the first "engineering" signal */
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.hero-eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--color-accent-on-dark);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-display); font-size: var(--fs-hero);
  font-weight: 700; color: var(--color-bg);
  letter-spacing: -0.025em; line-height: 0.94;
}
.hero-title-accent {
  font-family: var(--font-serif); font-size: var(--fs-hero);
  font-weight: 400; color: var(--color-accent-on-dark); letter-spacing: -0.01em;
  line-height: 1.06; font-style: italic;
}
.hero-rotate {
  display: block; position: relative; overflow: hidden;
  /* 0.22em slack above/below the 1.06 line box so the italic serif's
     ascenders/descenders aren't clipped; negative margins give the
     slack back so the vertical rhythm stays one line tall */
  height: 1.5em;
  margin: -0.22em 0;
}
.hero-rotate-word {
  position: absolute; left: 0; top: 0.22em; width: 100%;
  display: block; opacity: 0; white-space: nowrap;
  transform: translateY(100%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.hero-rotate-word.active {
  opacity: 1; transform: translateY(0);
}
.hero-rotate-word.exit {
  opacity: 0; transform: translateY(-100%);
}
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; gap: 40px; }
.hero-bottom-left { display: flex; flex-direction: column; gap: 18px; }
.hero-desc {
  font-size: 17px; color: var(--color-text-on-dark-muted); line-height: 28px; max-width: 440px;
}
.hero-meta { letter-spacing: 0.1em; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--color-accent); color: var(--color-bg); border-radius: 6px;
  padding: 18px 40px; font-size: 16px; font-weight: 500;
  transition: background 0.2s; flex-shrink: 0;
}
.btn-primary:hover { background: var(--color-accent-hover); }

/* ── Services ── */
.services {
  display: flex; flex-direction: column; gap: var(--space-group);
  padding: var(--space-section) var(--space-gutter); max-width: var(--max-width); margin: 0 auto;
}
/* Stacked header — one focused message, no floating right-column paragraph */
.services-header { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.services-header-left { width: 100%; }
.section-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0;
  color: var(--color-accent-text);
  margin-bottom: 16px;
}
.hero-block .section-label,
.hero-interior .section-label {
  color: var(--color-accent-on-dark);
}
.section-title {
  font-family: var(--font-display); font-size: var(--fs-display);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.04;
}
.services-header-desc { font-size: 17px; color: var(--color-text-muted); line-height: 28px; max-width: 62ch; }

/* Asymmetric bento — deliberately non-uniform spans, not a 3-equal grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-element);
}
.service-card {
  grid-column: span 4;
  border: 1px solid var(--color-border); border-radius: 8px;
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
  background: transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
/* Bento rhythm — tuned for the current visible set (5 cards: WordPress,
   Tracking, Consent, E-Commerce, Hosting). Spans are position-based, so if the
   number of listed services changes, re-balance these to keep rows filling 12. */
.service-card:nth-child(1) { grid-column: span 6; }   /* WordPress — flagship */
.service-card:nth-child(2),
.service-card:nth-child(3) { grid-column: span 3; }   /* Tracking / Consent */
.service-card:nth-child(4),
.service-card:nth-child(5) { grid-column: span 6; }   /* E-Commerce / Hosting(dark) */
.service-card.experimental { grid-column: span 12; }  /* full-width banner (when listed) */

.service-card:hover {
  background: var(--color-surface); border-color: #D0D0CC;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(43, 43, 43, 0.06);
}
.service-card.featured {
  background: var(--color-dark-card); border-color: var(--color-dark-card); color: var(--color-bg);
}
.service-card.featured:hover { background: #363636; box-shadow: 0 16px 40px rgba(43, 43, 43, 0.22); }
.service-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
/* Oversized editorial index — the dominant visual mark on each card */
.service-num {
  font-family: var(--font-display); font-size: var(--fs-index);
  font-weight: 700; line-height: 0.9; letter-spacing: -0.03em;
  color: var(--color-text-light);
  transition: color 0.2s;
}
.service-card:hover .service-num { color: var(--color-accent); }
.service-arrow { color: var(--color-text-light); transition: color 0.2s, transform 0.2s; margin-top: 8px; }
.service-card:hover .service-arrow { color: var(--color-accent); transform: translate(3px, -3px); }
.service-card.featured .service-num { color: rgba(250,250,248,0.5); }
.service-card.featured:hover .service-num { color: var(--color-accent-on-dark); }
.service-card.featured .service-arrow { color: rgba(250,250,248,0.6); }
.service-card.featured:hover .service-arrow { color: var(--color-bg); }
.service-card-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-top: auto; }
.service-card:nth-child(1) .service-card-title { font-size: 26px; }
.service-card-desc { font-size: 14px; color: var(--color-text-muted); line-height: 22px; }
.service-card.featured .service-card-desc { color: rgba(250,250,248,0.78); }

/* Full-width experimental banner: horizontal split (index+title | desc) */
.service-card.experimental {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  grid-template-areas:
    "top  desc"
    "title desc";
  align-items: start; gap: 14px 56px; padding: 40px 44px;
}
.service-card.experimental .service-card-top { grid-area: top; }
.service-card.experimental .service-card-title { grid-area: title; margin-top: 0; font-size: 26px; align-self: end; }
.service-card.experimental .service-card-desc { grid-area: desc; align-self: center; font-size: 15px; line-height: 24px; }

/* ── AI-Websites Experimental Card (blueprint/dotted-grid look) ── */
.service-card.experimental {
  background:
    radial-gradient(circle, rgba(43,43,43,0.18) 1px, transparent 1.2px) 0 0 / 14px 14px,
    #F3EDE44A;
  border: 1px dashed rgba(196, 101, 74, 0.45);
}
.service-card.experimental:hover {
  background:
    radial-gradient(circle, rgba(43,43,43,0.22) 1px, transparent 1.2px) 0 0 / 14px 14px,
    #EFE7DA;
  border-color: var(--color-accent);
}
.service-card.experimental .service-num { color: var(--color-accent-text); font-weight: 600; }
.service-card.experimental .service-arrow { color: var(--color-accent-text); }
.service-card.experimental:hover .service-arrow { color: var(--color-accent); }

/* ── Keyword highlight (used in body copy) ── */
.kw { color: var(--color-text); font-weight: 600; }
.hero-interior-desc .kw { color: var(--color-bg); font-weight: 600; }
.service-card.featured .service-card-desc .kw { color: var(--color-bg); font-weight: 600; }

/* ── Workspace Image Strip (framed technical artifact) ── */
.workspace-strip { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-gutter); }
.workspace-frame {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-dark);
}
.workspace-frame picture { display: block; }
.workspace-strip img {
  width: 100%; height: 320px; object-fit: cover; display: block;
}
/* Functional caption sits below the image, not overlaid on it */
.workspace-caption {
  margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--color-text-muted); letter-spacing: 0.02em;
}

/* ── About (editorial portrait + capability matrix) ── */
.about {
  display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: start;
  padding: var(--space-section) var(--space-gutter); max-width: var(--max-width); margin: 0 auto;
}
.about-portrait-col { display: flex; flex-direction: column; gap: 14px; }
.about-portrait {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--color-border); background: var(--color-surface);
}
.about-portrait img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
}
.about-portrait-caption { color: var(--color-text-muted); letter-spacing: 0.04em; }
.about-body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.about-name {
  font-family: var(--font-display); font-size: var(--fs-display);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.04;
}
.about-bio { font-size: 17px; color: var(--color-text-muted); line-height: 28px; max-width: 60ch; }
/* Capability matrix — fills the width the old single-column list left empty */
.about-stack {
  width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px;
  margin-top: 8px; padding-top: 30px; border-top: 1px solid var(--color-border);
}
.about-stack-cell { display: flex; flex-direction: column; gap: 8px; }
.about-stack-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
.about-stack-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-text);
}
.about-stack-value { font-size: 15px; color: var(--color-text-muted); line-height: 23px; }
.about-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  color: var(--color-accent-text); font-size: 16px; font-weight: 500;
  padding: 8px 0; transition: color 0.2s;
}
.about-link:hover { color: var(--color-accent-hover); }

/* ── CTA ── */
.cta { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-gutter); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 16px; padding: 80px;
  background: var(--color-dark-card); position: relative; overflow: hidden;
}
.cta-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.15; pointer-events: none;
}
.cta-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display); font-size: var(--fs-display);
  font-weight: 700; color: var(--color-bg); letter-spacing: -0.02em; line-height: 1.04;
}
.cta-desc { font-size: 16px; color: var(--color-text-on-dark-muted); margin-top: 14px; max-width: 460px; line-height: 26px; }
.btn-cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--color-accent); color: var(--color-bg); border-radius: 8px;
  padding: 18px 40px; font-size: 16px; font-weight: 500;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--color-accent-hover); }

/* ── Footer ── */
.footer {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 80px;
  padding: 64px var(--space-gutter); max-width: var(--max-width); margin: 64px auto 0;
  border-top: 1px solid var(--color-border);
}
.footer-brand { max-width: 360px; }
.footer-brand-name { display: flex; align-items: center; }
.footer-brand-name img { height: 50px; width: auto; }
.footer-brand-sub { font-size: 14px; color: var(--color-text-muted); margin-top: 12px; line-height: 22px; }
.footer-copyright { font-size: 13px; color: var(--color-text-muted); margin-top: 24px; }
.footer-columns { display: flex; gap: 80px; }
.footer-col-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0; color: var(--color-text-muted); margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 15px; color: var(--color-text-muted);
  padding: 6px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-text); }

/* ── Page Header (light, for interior pages) ── */
.page-header {
  padding: 64px var(--space-gutter) 48px;
  max-width: var(--max-width); margin: 0 auto;
}
.page-header h1 {
  font-family: var(--font-display); font-size: 48px;
  font-weight: 700; letter-spacing: 0; line-height: 56px;
  margin-top: 16px;
}
.page-header .page-header-desc {
  font-size: 17px; color: var(--color-text-muted); line-height: 28px;
  max-width: 680px; margin-top: 20px;
}
.page-header-desc strong {
  color: var(--color-text); font-weight: 500;
  background: linear-gradient(180deg, transparent 62%, rgba(196,101,74,0.18) 62%);
  padding: 0 2px;
}

.quick-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-top: 32px;
}
.quick-fact {
  padding: 20px 24px;
  border-left: 1px solid var(--color-border);
}
.quick-fact:first-child {
  border-left: none;
  padding-left: 0;
}
.quick-fact-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0;
  color: var(--color-accent-text); margin-bottom: 8px;
}
.quick-fact-value {
  font-size: 15px; color: var(--color-text-muted); line-height: 23px;
}
.quick-fact-value strong { color: var(--color-text); font-weight: 600; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 14px; color: var(--color-text-muted); margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--color-text-muted); transition: color 0.2s; padding: 4px 0; }
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb .breadcrumb-sep { color: var(--color-text-decorative); }
.breadcrumb [aria-current="page"] { color: var(--color-text); }

/* ── Content Section ── */
.content-section {
  padding: var(--space-section) var(--space-gutter);
  max-width: var(--max-width); margin: 0 auto;
}
.content-section + .content-section { padding-top: 0; }
.content-section h2 {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 700; letter-spacing: 0; line-height: 36px;
  margin-bottom: 20px;
}
.content-section h3 {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 600; line-height: 28px; margin-bottom: 12px;
}
.content-section p {
  font-size: 16px; color: var(--color-text-muted); line-height: 28px;
  margin-bottom: 16px;
}

/* ── Detail List (bullet points in service detail) ── */
.detail-list {
  list-style: none; padding: 0; margin: 0 0 24px 0;
}
.detail-list li {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
  padding: 4px 0 4px 20px; position: relative;
}
.detail-list li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
}

/* ── Service Detail Block (sub-service with border separator) ── */
.service-detail {
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-detail:first-child { padding-top: 0; }
.service-detail:last-child { border-bottom: none; }

/* details layout: cards (2-up capability grid — a distinct presentation
   from the stacked list so service pages don't all read the same) */
.detail-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px;
}
.detail-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--color-border); border-radius: 8px; padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.detail-card:hover { border-color: #D0D0CC; box-shadow: 0 10px 30px rgba(43, 43, 43, 0.05); }
.detail-card h3 { font-size: 18px; margin-bottom: 10px; }
.detail-card p { font-size: 14.5px; line-height: 24px; margin-bottom: 14px; }
.detail-card p:last-child { margin-bottom: 0; }
.detail-card .detail-list { margin-bottom: 0; }
.detail-card .detail-list li { font-size: 14px; }
.detail-after { font-size: 16px; color: var(--color-text-muted); line-height: 28px; margin: 16px 0 0; }
.detail-card .detail-after { font-size: 14px; line-height: 23px; margin-top: 12px; color: var(--color-text-muted); }

/* ── Problem Section (pain points callout) ── */
.problem-section {
  position: relative;
  background: var(--color-surface); border-radius: 12px;
  padding: 40px; margin-bottom: 16px;
  border: 1px solid var(--color-border);
}
.problem-section::before {
  content: ''; position: absolute; top: 24px; left: 40px;
  width: 32px; height: 2px; background: var(--color-accent);
}
.problem-section h2 { margin-bottom: 16px; margin-top: 16px; }
.problem-section .problem-intro {
  font-size: 16px; color: var(--color-text-muted); line-height: 28px;
  margin-bottom: 24px;
}
.problem-list {
  list-style: none; padding: 0; margin: 0;
}
.problem-list li {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
  padding: 8px 0 8px 20px; position: relative;
}
.problem-list li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
}
.problem-list li strong { color: var(--color-text); font-weight: 600; }

/* ── Process Steps ── */
.process-steps {
  display: flex; flex-direction: column; gap: 0;
  position: relative; padding-left: 48px;
}
.process-steps::before {
  content: ''; position: absolute; left: 15px; top: 8px;
  bottom: 8px; width: 1px; background: var(--color-border);
}
.process-step {
  position: relative; padding: 20px 0;
}
.process-step-num {
  position: absolute; left: -48px; top: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-bg); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px;
  font-weight: 700; color: var(--color-accent); z-index: 1;
}
.process-step-title {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; margin-bottom: 8px;
}
.process-step-desc {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
}

/* CTA-style first step inside .process-steps */
.process-step-cta {
  position: relative;
  margin-bottom: 8px;
  padding: 24px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}
.process-step-cta::before {
  content: ''; position: absolute; top: 0; left: 28px;
  width: 32px; height: 2px; background: var(--color-accent);
}
.process-step-cta .process-step-num {
  position: absolute; left: -48px; top: 28px;
  background: var(--color-accent); border-color: var(--color-accent);
  color: var(--color-bg);
}
.process-step-cta-title {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; margin-bottom: 6px;
}
.process-step-cta-desc {
  font-size: 14px; color: var(--color-text-muted); line-height: 22px;
  margin-bottom: 16px;
}
.btn-step-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-accent); color: var(--color-bg);
  border-radius: 6px; padding: 12px 22px;
  font-size: 14px; font-weight: 500;
  transition: background 0.2s;
}
.btn-step-cta:hover { background: var(--color-accent-hover); }
.btn-step-cta svg { flex-shrink: 0; }

/* ── Floating Page TOC (sub-service pages) ── */
.page-toc { display: none; }

@media (min-width: 1100px) {
  .page-toc {
    display: block;
    position: fixed;
    top: 140px;
    left: max(var(--space-gutter), calc(50vw - 720px + var(--space-gutter)));
    width: 200px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    z-index: 4;
    padding-left: 16px;
    border-left: 1px solid var(--color-border);
    transition: opacity 0.3s, transform 0.3s;
  }
  .page-toc.is-hidden {
    opacity: 0; pointer-events: none; transform: translateX(-8px);
  }
  .page-toc-label {
    font-family: var(--font-display); font-size: 11px;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-light); margin-bottom: 14px;
  }
  .page-toc-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column;
  }
  .page-toc-list a {
    display: block;
    font-size: 13px; line-height: 18px;
    color: var(--color-text-muted);
    padding: 7px 0 7px 16px;
    margin-left: -17px;
    border-left: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }
  .page-toc-list a:hover { color: var(--color-text); }
  .page-toc-list a.is-active {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    font-weight: 500;
  }
  .has-toc .page-header,
  .has-toc .content-section,
  .has-toc .cta,
  .has-toc .about-content,
  .has-toc .logos-section {
    padding-left: calc(var(--space-gutter) + 240px);
  }
  .has-toc .about-content { max-width: 1040px; }
  .has-toc .page-header .page-header-desc { max-width: 640px; }
}

/* ── Tech Table ── */
.tech-table {
  width: 100%; border-collapse: collapse;
}
.tech-table thead th {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0;
  color: var(--color-text-muted); text-align: left;
  padding: 12px 0; border-bottom: 2px solid var(--color-border);
}
.tech-table tbody td {
  font-size: 15px; color: var(--color-text-muted); line-height: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--color-border);
}
.tech-table tbody td:first-child {
  font-weight: 600; color: var(--color-text); width: 280px;
}
/* "Optional dazubuchen" (Wartung) — short label/price rows flow in two
   columns on wider screens instead of one long, mostly empty table. */
@media (min-width: 769px) {
  #zusatz .tech-table { display: block; }
  #zusatz .tech-table thead { display: none; }
  #zusatz .tech-table tbody {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
  }
  #zusatz .tech-table tbody tr {
    display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
    border-bottom: 1px solid var(--color-border);
  }
  #zusatz .tech-table tbody td { border-bottom: none; }
  #zusatz .tech-table tbody td:first-child { width: auto; }
  #zusatz .tech-table tbody td:last-child { white-space: nowrap; text-align: right; }
}

/* ── Pricing (3-tier plan cards) ── */
.pricing-intro {
  font-size: 17px; color: var(--color-text-muted); line-height: 28px;
  max-width: 62ch; margin: 0 0 44px;
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch; margin-top: 28px;
}
.pricing-card {
  position: relative; display: flex; flex-direction: column; gap: 24px;
  border: 1px solid var(--color-border); border-radius: 12px;
  padding: 36px 32px; background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pricing-card:not(.featured):hover {
  border-color: #D0D0CC; box-shadow: 0 10px 30px rgba(43, 43, 43, 0.06);
}
/* Featured tier lifts and inverts — the same device as the featured service card */
.pricing-card.featured {
  background: var(--color-dark-card); border-color: var(--color-dark-card);
  transform: translateY(-10px);
  box-shadow: 0 18px 44px rgba(43, 43, 43, 0.22);
}
.pricing-badge {
  position: absolute; top: -12px; left: 32px;
  background: var(--color-bg); color: var(--color-accent-text);
  border: 1px solid var(--color-accent);
  padding: 5px 13px; border-radius: 999px;
}
.pricing-card-head { display: flex; flex-direction: column; gap: 14px; }
.pricing-name {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em;
}
.pricing-card.featured .pricing-name { color: var(--color-bg); }
.pricing-price { display: flex; align-items: baseline; gap: 9px; }
.pricing-amount {
  font-family: var(--font-display); font-size: 42px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1; color: var(--color-text);
}
.pricing-card.featured .pricing-amount { color: var(--color-bg); }
.pricing-period { font-family: var(--font-mono); font-size: 13px; color: var(--color-text-muted); }
.pricing-card.featured .pricing-period { color: var(--color-text-on-dark-muted); }
.pricing-setup { font-family: var(--font-mono); font-size: 12px; color: var(--color-text-light); margin: 6px 0 0 0; letter-spacing: 0.01em; }
.pricing-card.featured .pricing-setup { color: var(--color-text-on-dark-muted); }
.pricing-desc { font-size: 14.5px; color: var(--color-text-muted); line-height: 22px; }
.pricing-card.featured .pricing-desc { color: var(--color-text-on-dark-muted); }
.pricing-features {
  display: flex; flex-direction: column; gap: 13px;
  border-top: 1px solid var(--color-border); padding-top: 24px;
}
.pricing-card.featured .pricing-features { border-color: rgba(250, 250, 248, 0.16); }
.pricing-features li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 14.5px; color: var(--color-text-muted); line-height: 22px;
}
.pricing-card.featured .pricing-features li { color: var(--color-text-on-dark-muted); }
.pricing-check { flex-shrink: 0; margin-top: 3px; color: var(--color-accent); }
.pricing-card.featured .pricing-check { color: var(--color-accent-on-dark); }
.pricing-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 24px; border-radius: 6px;
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--color-border); color: var(--color-text);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pricing-cta:hover { border-color: var(--color-accent); color: var(--color-accent-text); }
.pricing-card.featured .pricing-cta {
  background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg);
}
.pricing-card.featured .pricing-cta:hover {
  background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-bg);
}
.pricing-note { font-size: 13px; color: var(--color-text-muted); line-height: 21px; margin: 26px 0 0; max-width: 64ch; }

/* ── FAQ Accordion ── */
.faq { margin: 0; padding: 0; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  padding: 24px 40px 24px 0; cursor: pointer; list-style: none;
  position: relative; line-height: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 24px;
  font-family: var(--font-display); font-size: 24px; font-weight: 400;
  color: var(--color-text-muted); transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item .faq-answer {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
  padding: 0 40px 24px 0;
}

/* ── Interior Hero (dark, smaller — for overview pages) ── */
.hero-interior {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 80px var(--space-gutter) 80px;
  max-width: var(--max-width); margin: 0 auto;
  gap: 24px;
}
.hero-interior .section-label { color: var(--color-accent); }
.hero-interior h1 {
  font-family: var(--font-display); font-size: 56px;
  font-weight: 700; color: var(--color-bg); letter-spacing: 0;
  line-height: 64px;
}
.hero-interior .hero-interior-desc {
  font-size: 17px; color: var(--color-text-on-dark-muted); line-height: 28px;
  max-width: 600px;
}

/* ── Service Index (editorial list on /leistungen/) ── */
.svc-index {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--color-border);
}
.svc-index-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) 28px;
  gap: 36px; align-items: start;
  padding: 36px 24px 36px 8px; margin: 0 -24px 0 -8px;
  border-bottom: 1px solid var(--color-border);
  border-radius: 8px;
  transition: background 0.2s;
}
.svc-index-row:hover { background: var(--color-surface); }
.svc-index-num {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  color: var(--color-accent-text); padding-top: 6px; letter-spacing: 0.02em;
}
.svc-index-main { display: flex; flex-direction: column; gap: 10px; }
.svc-index-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1; transition: color 0.2s;
}
.svc-index-row:hover .svc-index-title { color: var(--color-accent-text); }
.svc-index-desc { font-size: 15px; color: var(--color-text-muted); line-height: 24px; max-width: 52ch; }
.svc-index-tags {
  list-style: none; padding: 6px 0 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
}
.svc-index-tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border); border-radius: 999px;
  padding: 5px 11px; white-space: nowrap;
}
.svc-index-arrow { color: var(--color-text-light); margin-top: 8px; transition: color 0.2s, transform 0.2s; }
.svc-index-row:hover .svc-index-arrow { color: var(--color-accent); transform: translate(3px, -3px); }

/* ── Why Section (numbered reasons grid) ── */
.why-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.why-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--color-border); border: 1px solid var(--color-border);
  border-radius: 10px; overflow: hidden;
}
.why-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--color-bg); padding: 32px;
}
.why-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.why-card-num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--color-accent-text); letter-spacing: 0.04em;
}
.why-card p { font-size: 15.5px; color: var(--color-text-muted); line-height: 26px; }
.why-card strong { color: var(--color-text); font-weight: 600; }

/* ── About Hero (Editorial Portrait) ── */
.about-hero {
  background: var(--color-surface);
  padding: 80px var(--space-gutter);
}
.about-hero-inner {
  display: flex; gap: 80px; align-items: center;
  max-width: var(--max-width); margin: 0 auto;
}
.about-hero-photo {
  width: 45%; flex-shrink: 0;
}
.about-hero-photo img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 12px; display: block; background: var(--color-border);
}
.about-hero-content {
  flex: 1; display: flex; flex-direction: column; gap: 20px;
}
.about-hero-content .section-label { margin-bottom: 0; }
.about-hero-content h1 {
  font-family: var(--font-display); font-size: 48px;
  font-weight: 700; letter-spacing: 0; line-height: 56px;
}
.about-hero-subtitle {
  font-family: var(--font-serif); font-size: 24px;
  font-style: italic; color: var(--color-text-muted);
}
.about-hero-citation {
  font-size: 16px; color: var(--color-text-muted); line-height: 28px;
}
.about-hero-location {
  font-size: 15px; color: var(--color-text-muted); line-height: 24px;
}
.about-trust-row {
  display: flex; gap: 32px; margin-top: 8px;
}
.about-trust-item {}
.about-trust-value {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 700; letter-spacing: 0;
}
.about-trust-label {
  font-size: 12px; color: var(--color-text-muted); margin-top: 4px;
}

/* ── About Content (centered single-column) ── */
.about-content {
  max-width: 800px; margin: 0 auto;
  padding: 88px var(--space-gutter);
}
.about-content h2 {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 700; letter-spacing: 0; line-height: 36px;
  margin-bottom: 20px;
}
.about-content p {
  font-size: 16px; color: var(--color-text-muted); line-height: 28px;
  margin-bottom: 16px;
}

/* Differentiator cards */
.diff-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-element); margin-top: 24px;
}
.diff-card {
  padding: 32px; border: 1px solid var(--color-border);
  border-radius: 8px;
}
.diff-card-title {
  font-family: var(--font-display); font-size: 17px;
  font-weight: 600; margin-bottom: 8px;
}
.diff-card-desc {
  font-size: 14px; color: var(--color-text-muted); line-height: 22px;
}
.diff-card--link {
  display: block;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.diff-card--link:hover {
  background: var(--color-surface); border-color: #D0D0CC;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(43, 43, 43, 0.06);
}
.diff-card-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.diff-card-arrow { color: var(--color-text-light); transition: color 0.2s, transform 0.2s; flex-shrink: 0; }
.diff-card--link:hover .diff-card-arrow { color: var(--color-accent); transform: translate(3px, -3px); }

/* KI callout box */
.callout-box {
  background: var(--color-surface); border-radius: 8px;
  padding: 32px; margin-top: 16px;
}
.callout-box p { margin-bottom: 0; }
.callout-box strong { color: var(--color-text); }

/* Client type list */
.client-list {
  list-style: none; padding: 0; margin: 24px 0 0 0;
}
.client-list li {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
  padding: 12px 0; border-bottom: 1px solid var(--color-border);
}
.client-list li:first-child { border-top: 1px solid var(--color-border); }
.client-list li strong { color: var(--color-text); font-weight: 600; }

/* ── Logo Slider ── */
.logos-section {
  padding: var(--space-section) var(--space-gutter);
  max-width: var(--max-width); margin: 0 auto;
  text-align: center;
}
.logos-section h2 {
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0;
  color: var(--color-text-muted); margin-bottom: 40px;
}
.logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
}
.client-logo-tile {
  display: flex; align-items: center; justify-content: center;
  width: 200px; height: 72px;
  padding: 14px 24px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s, transform 0.2s;
}
.client-logo-tile:hover {
  border-color: #D0D0CC;
  transform: translateY(-2px);
}
.client-logo {
  max-height: 40px;
  max-width: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.client-logo--invert {
  filter: invert(1) brightness(0.45);
}
.client-logo--lg {
  transform: scale(2);
  transform-origin: center;
}
.logos-more {
  font-size: 14px; color: var(--color-text-muted); margin-top: 24px;
}

/* ── Project Grid (Projekte overview) ── */
.project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* "More projects under NDA" callout */
.projects-more {
  margin-top: 56px;
  padding: 48px;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex; justify-content: center;
  position: relative; overflow: hidden;
}
.projects-more::before {
  content: ''; position: absolute; top: 0; left: 48px;
  width: 32px; height: 2px; background: var(--color-accent);
}
.projects-more-inner {
  max-width: 720px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.projects-more-eyebrow {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-accent); margin-top: 8px;
}
.projects-more-title {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 700; line-height: 34px; letter-spacing: 0;
}
.projects-more-desc {
  font-size: 16px; color: var(--color-text-muted); line-height: 28px;
  max-width: 640px;
}
.projects-more-desc strong { color: var(--color-text); font-weight: 600; }
.projects-more .btn-primary { margin-top: 8px; padding: 14px 28px; }
.project-card {
  border: 1px solid var(--color-border); border-radius: 8px;
  overflow: hidden; transition: border-color 0.2s; display: block;
  background: transparent;
}
.project-card:hover { border-color: #D0D0CC; }
.project-card-img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  background: var(--color-surface); display: block;
}
.project-card-body { padding: 28px; }
.project-card-text {
  background: rgba(255, 255, 255, 0.28);
}
.project-card-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0;
  color: var(--color-text-muted); background: rgba(43, 43, 43, 0.06);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}
.project-card-title {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 600; margin-bottom: 8px;
}
.project-card-desc {
  font-size: 14px; color: var(--color-text-muted); line-height: 22px;
  margin-bottom: 16px;
}
.project-card-section {
  border-top: 1px solid var(--color-border);
  padding-top: 16px; margin-top: 16px;
}
.project-card-section-title {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0;
  color: var(--color-text-muted); margin-bottom: 6px;
}
.project-card-section p {
  font-size: 14px; color: var(--color-text-muted); line-height: 22px;
  margin-bottom: 0;
}
.project-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px;
}
.project-card-tag {
  font-size: 12px; color: var(--color-text);
  background: #ECECE8; padding: 4px 10px;
  border-radius: 4px;
}

/* ── Legal Pages (Impressum / Datenschutz / AGB) ── */
.legal-block { max-width: 760px; }
.legal-block h2 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  margin-top: 36px; margin-bottom: 12px;
}
.legal-block h2:first-child { margin-top: 0; }
.legal-block h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  margin-top: 28px; margin-bottom: 10px; color: var(--color-text);
}
.legal-block p {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
  margin-bottom: 14px;
}
.legal-block ul, .legal-block ol { margin: 0 0 14px 20px; padding: 0; }
.legal-block li {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
  margin-bottom: 4px;
}
.legal-block a { color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 2px; }
.legal-block a:hover { color: var(--color-accent-hover); }

/* ── Kontakt Page ── */
.kontakt-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-gutter) var(--space-section);
}
.kontakt-cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-element);
}
.kontakt-card {
  border: 1px solid var(--color-border); border-radius: 8px;
  padding: 40px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 16px;
}
.kontakt-card-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--color-surface); display: flex;
  align-items: center; justify-content: center;
}
.kontakt-card-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
}
.kontakt-card-desc {
  font-size: 14px; color: var(--color-text-muted); line-height: 22px;
}
.kontakt-card .btn-primary {
  padding: 14px 28px; font-size: 15px; margin-top: auto;
}
.kontakt-info {
  margin-top: var(--space-group); padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.kontakt-info p {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
  margin-bottom: 8px;
}
.kontakt-info strong { color: var(--color-text); font-weight: 600; }

/* ══════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════ */

/* ── Mobile Nav ── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative; z-index: 10;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-bg); position: absolute; left: calc(50% - 11px);
  transition: transform 0.3s, opacity 0.3s;
}
/* Offsets relative to center so the glyph stays centered when the button
   grows to the 44px touch-target size on mobile portrait. */
.nav-toggle span:nth-child(1) { top: calc(50% - 7px); }
.nav-toggle span:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle span:nth-child(3) { top: calc(50% + 5px); }
.nav-toggle.active span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }
.nav-toggle-light span { background: var(--color-text); }
.nav-toggle-light.active span { background: var(--color-bg); }

/* Nav light variant (subpages with light background) */
.nav-light { padding-top: 28px; padding-bottom: 28px; }
.nav-light .nav-links a { color: var(--color-text-muted); }
.nav-light .nav-links a:hover { color: var(--color-text); }
.nav-light .nav-links a[aria-current="page"],
.nav-light .nav-links a[aria-current="true"],
.nav-light .nav-links .nav-item-has-sub.is-active > a {
  color: var(--color-text); font-weight: 500;
}
.nav-light .btn-nav { color: var(--color-text); background: rgba(43,43,43,0.08); border-color: var(--color-border); }
.nav-light .nav-submenu li a[aria-current="page"] { color: var(--color-accent); }
.nav-links a[aria-current="page"],
.nav-links .nav-item-has-sub.is-active > a { color: var(--color-bg); font-weight: 500; }

/* ── Tablet (max-width: 1024px) ── */
@media (max-width: 1024px) {
  :root {
    --space-gutter: 40px;
    --space-section: 80px;
    --space-group: 48px;
  }

  .hero { padding: 80px var(--space-gutter) 100px; }
  .has-overlay-nav .hero { padding-top: 180px; }
  .has-overlay-nav .hero-interior { padding-top: 160px; }

  .services-header { flex-direction: column; gap: 24px; }
  .services-header-left { width: 100%; }
  .services-header-desc { padding-top: 0; }

  /* Bento → flagship full, others 2-up, banner full */
  .service-card,
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5),
  .service-card:nth-child(6) { grid-column: span 6; }
  .service-card:nth-child(1) { grid-column: span 12; }
  .service-card.experimental { grid-column: span 12; }

  .about { grid-template-columns: 1fr; gap: var(--space-group); }
  .about-portrait-col { max-width: 340px; }

  .svc-index-row { grid-template-columns: 44px 1fr 24px; gap: 20px 24px; }
  .svc-index-tags { grid-column: 2 / 3; }

  .cta-inner { padding: 56px; }
  .cta-title { font-size: 32px; }

  .footer-columns { gap: 40px; }

  .about-hero-inner { gap: 48px; }
  .about-hero-photo { width: 40%; }
  .about-trust-row { gap: 24px; flex-wrap: wrap; }
  .diff-grid { gap: 16px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ── Mobile landscape (max-width: 768px) ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--color-dark); z-index: 5;
    padding: 100px 40px 40px; gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a,
  .nav-links > a,
  .nav-links > .nav-item > a {
    font-size: 24px; color: rgba(250,250,248,0.7);
    padding: 16px 0; border-bottom: 1px solid rgba(250,250,248,0.1);
  }
  .nav-light .nav-links.open a:not(.btn-nav) { color: var(--color-text-on-dark-muted); }
  .nav-light .nav-links.open a:not(.btn-nav):hover,
  .nav-light .nav-links.open a[aria-current="page"] { color: var(--color-bg); }

  /* Mobile submenu — inline (always visible inside open menu) */
  .nav-item { display: block; }
  .nav-item-has-sub { border-bottom: 1px solid rgba(250,250,248,0.1); }
  .nav-links .nav-item-has-sub > a { border-bottom: 0; padding-right: 0; }
  /* Match the "weitere Leistungen" group label to the other top-level nav items.
     The label is a <span>, so the .nav-light desktop rules (up to 0,4,0 specificity)
     would otherwise paint it dark on the dark mobile overlay — restate every state. */
  .nav-links .nav-grouplabel,
  .nav-light .nav-links .nav-grouplabel,
  .nav-light .nav-item-has-sub:hover .nav-grouplabel,
  .nav-light .nav-item-has-sub:focus-within .nav-grouplabel {
    font-size: 24px; color: rgba(250,250,248,0.7);
    padding: 16px 0; padding-right: 0;
  }
  .nav-item-has-sub.is-active .nav-grouplabel,
  .nav-light .nav-item-has-sub.is-active .nav-grouplabel { color: var(--color-bg); }
  .nav-links > a.nav-mobile-home { display: block; }
  .nav-sub-toggle {
    position: absolute; right: 0; top: 8px;
    color: rgba(250,250,248,0.7);
    padding: 16px;
  }
  /* Same story for the chevron button next to the group label */
  .nav-light .nav-sub-toggle,
  .nav-item-has-sub:hover .nav-sub-toggle,
  .nav-light .nav-item-has-sub:hover .nav-sub-toggle,
  .nav-item-has-sub:focus-within .nav-sub-toggle,
  .nav-light .nav-item-has-sub:focus-within .nav-sub-toggle,
  .nav-item-has-sub.is-active .nav-sub-toggle,
  .nav-light .nav-item-has-sub.is-active .nav-sub-toggle { color: rgba(250,250,248,0.7); }
  .nav-submenu {
    position: static; opacity: 1; pointer-events: auto;
    transform: none; background: transparent; border: 0;
    box-shadow: none; padding: 0 0 0 16px; min-width: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease, padding-bottom 0.25s ease;
  }
  .nav-item-has-sub.open .nav-submenu { max-height: 600px; padding-bottom: 12px; }
  .nav-submenu li a {
    font-size: 16px; color: rgba(250,250,248,0.55);
    padding: 10px 0; border-bottom: 0;
  }
  .nav-submenu li a[aria-current="page"] {
    background: transparent; color: var(--color-accent);
  }
  .nav-links a[style] { color: rgba(250,250,248,0.7) !important; }
  .nav-links .btn-nav,
  .nav-links .btn-nav[style] {
    margin-top: 24px; border: none !important;
    background: var(--color-accent) !important;
    color: var(--color-bg) !important;
    padding: 16px 28px; text-align: center; justify-content: center;
    font-size: 18px;
  }
  .nav { z-index: 10; }

  .hero { padding: 60px var(--space-gutter) 80px; gap: 36px; }
  .has-overlay-nav .hero { padding-top: 160px; }
  .has-overlay-nav .hero-interior { padding-top: 140px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-eyebrow { margin-bottom: 18px; }

  /* Single column on phones */
  .service-card,
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5),
  .service-card:nth-child(6),
  .service-card.experimental { grid-column: span 12; }
  /* Experimental reverts to a normal vertical card */
  .service-card.experimental {
    display: flex; flex-direction: column; gap: 16px; padding: 28px;
  }

  .workspace-strip img { height: 220px; }

  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-card.featured { transform: none; }
  .pricing-badge { left: 28px; }

  .why-grid { grid-template-columns: 1fr; }
  .svc-index-title { font-size: 22px; }
  .detail-cards { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .quick-fact:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }
  .quick-fact:nth-child(n+3) { border-top: 1px solid var(--color-border); }

  .cta-inner { flex-direction: column; gap: 32px; padding: 40px; text-align: center; align-items: center; }

  .footer { flex-direction: column; gap: 40px; }
  .footer-columns { flex-wrap: wrap; gap: 32px; }

  .page-header h1 { font-size: 36px; line-height: 44px; }
  .hero-interior h1 { font-size: 40px; line-height: 48px; }

  .problem-section { padding: 32px; }
  .tech-table tbody td:first-child { width: auto; }

  .about-hero-inner { flex-direction: column; gap: 40px; }
  .about-hero-photo { width: 100%; max-width: 400px; }
  .about-hero-content h1 { font-size: 36px; line-height: 44px; }
  .about-hero-subtitle { font-size: 20px; }
  .diff-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .kontakt-cards { grid-template-columns: 1fr; }
  .logos-row { gap: 32px; }
}

/* ── Mobile portrait (max-width: 480px) ── */
@media (max-width: 480px) {
  :root {
    --space-gutter: 20px;
    --space-section: 64px;
    --space-group: 36px;
  }

  .hero-title, .hero-title-accent { font-size: 36px; line-height: 40px; }
  /* 40px line + 8px clearance top/bottom, mirroring the base rule */
  .hero-rotate { height: 56px; margin: -8px 0; }
  .hero-rotate-word { top: 8px; }
  .hero-desc { font-size: 15px; line-height: 24px; }

  .about-name { font-size: 28px; }

  .service-card { padding: 28px; }

  .cta-inner { padding: 32px 24px; }
  .cta-title { font-size: 26px; }
  .btn-cta { padding: 16px 32px; font-size: 15px; }

  .workspace-strip img { height: 180px; }

  .page-header h1 { font-size: 30px; line-height: 38px; }
  .hero-interior h1 { font-size: 32px; line-height: 40px; }

  .footer-columns { flex-direction: column; gap: 28px; }

  .about-stack { grid-template-columns: 1fr; gap: 22px; }

  .process-steps { padding-left: 36px; }
  .process-step-num { left: -36px; width: 28px; height: 28px; font-size: 12px; }

  .quick-facts { grid-template-columns: 1fr; }
  .quick-fact,
  .quick-fact:nth-child(odd) {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: 18px 0;
  }
  .quick-fact:first-child { border-top: none; }

  .about-hero { padding: var(--space-section) var(--space-gutter) var(--space-group); }
  .about-hero-content h1 { font-size: 30px; line-height: 38px; }
  .about-trust-row { gap: 16px; }
  .about-trust-value { font-size: 18px; }
  .diff-card { padding: 24px; }
  .kontakt-card { padding: 28px; }
  .logos-row { gap: 16px; }
  .client-logo-tile { width: 160px; height: 60px; padding: 10px 18px; }
  .client-logo { max-height: 32px; }

  /* Audit fixes: larger touch targets for mobile (WCAG 2.5.8 / 44px enhanced) */
  .nav-toggle { min-width: 44px; min-height: 44px; }
  .footer-col a { display: flex; align-items: center; padding-block: 6px; min-height: 44px; box-sizing: border-box; }
}

/* ══════════════════════════════════════════════
   Hero Builder — homepage auto-play intro (~2s)
   Code-Editor → Wireframe → fertige Website.
   Every decorative layer is invisible unless JS
   adds html.hb-on (motion allowed); the fallback
   is the unchanged static hero, exactly as before.
   ══════════════════════════════════════════════ */

.hb-backdrop, .hb-chrome, .hb-editor, .hb-wire,
.hb-hud { display: none; }

.hb-on .hb-track {
  position: relative;
  height: 100vh; height: 100svh;
  margin-top: -107px;
}
.hb-on .hb-stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #1D1B19;
}

/* Blueprint backdrop behind the scaled-down frame */
.hb-on .hb-backdrop {
  display: block; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 42%, rgba(196, 101, 74, 0.10), transparent 65%),
    radial-gradient(circle, rgba(250, 250, 248, 0.05) 1px, transparent 1.3px);
  background-size: 100% 100%, 18px 18px;
  background-color: #1D1B19;
}

/* The browser window that morphs from editor to finished site */
.hb-on .hb-frame {
  --hb-scale: 0.74;
  position: absolute; inset: 0; z-index: 2;
  transform: scale(var(--hb-scale));
  border: 1px solid rgba(250, 250, 248, 0.14);
  border-radius: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background: var(--color-dark);
  will-change: transform;
}
.hb-on .hb-canvas { position: absolute; inset: 0; }

/* The real hero inside the frame: cancel the page-level pull-under-nav
   margin (the track carries it instead) and center it in the viewport.
   The bg photo + gradient (::before/::after) fade in via --hb-bg. */
.hb-on .hb-canvas .hero-block {
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hb-on .hb-canvas .hero-block::before { opacity: calc(0.35 * var(--hb-bg, 0)); }
.hb-on .hb-canvas .hero-block::after  { opacity: var(--hb-bg, 0); }
.hb-on .hb-canvas .hero { width: 100%; padding-top: 110px; padding-bottom: 56px; }
.hb-on .hb-site [data-wf] { opacity: 0; visibility: hidden; }

/* ── Wireframe overlay (rects + labels created by JS) ── */
.hb-on .hb-wire {
  display: block; position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
}
.hb-wire-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hb-wire-svg rect {
  fill: rgba(250, 250, 248, 0.05); fill-opacity: 0;
  stroke: rgba(224, 133, 102, 0.8); stroke-width: 1;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.hb-wf-label {
  position: absolute;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.05em; white-space: nowrap;
  color: var(--color-accent-on-dark-sm);
  opacity: 0; visibility: hidden;
}

/* ── Code editor layer ── */
.hb-on .hb-editor {
  display: block; position: absolute; inset: 0; z-index: 4;
  background: #221F1C;
  padding: 78px clamp(20px, 6vw, 72px) 40px;
  overflow: hidden;
}
.hb-on .hb-code {
  position: relative;
  font-family: var(--font-mono); font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 400; line-height: 2;
  counter-reset: hb-ln;
}
.hb-on .hb-line {
  display: block; width: max-content; white-space: pre;
  clip-path: inset(-2px 101% -2px -2px);
  counter-increment: hb-ln;
}
.hb-on .hb-line::before {
  content: counter(hb-ln, decimal-leading-zero);
  display: inline-block; width: 2em; margin-right: 1.8em;
  text-align: right;
  color: rgba(250, 250, 248, 0.2);
}
.hb-on .hb-caret {
  position: absolute; left: 0; top: 5px;
  width: 2px; height: 1.55em;
  background: var(--color-accent-on-dark);
  animation: hb-blink 1.05s steps(2, jump-none) infinite;
}
@keyframes hb-blink { 50% { opacity: 0.15; } }

/* Editor syntax palette (derived from the site tokens) */
.hb-tok-c { color: #6E675F; font-style: italic; }
.hb-tok-p { color: #837C74; }
.hb-tok-t { color: var(--color-accent-on-dark); }
.hb-tok-a, .hb-tok-k { color: #D9C8A4; }
.hb-tok-s, .hb-tok-n { color: #A9C29B; }
.hb-tok-x { color: rgba(250, 250, 248, 0.92); }
.hb-swatch {
  display: inline-block; width: 9px; height: 9px;
  border-radius: 2px; margin-right: 5px;
  border: 1px solid rgba(250, 250, 248, 0.25);
  vertical-align: -1px;
}

/* ── Browser chrome bar ── */
.hb-on .hb-chrome {
  display: flex; align-items: center;
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  height: 46px; padding: 0 18px;
  background: #1A1816;
  border-bottom: 1px solid rgba(250, 250, 248, 0.08);
}
.hb-chrome-dots { display: flex; gap: 7px; }
.hb-chrome-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(250, 250, 248, 0.16);
}
.hb-chrome-url {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11.5px;
  color: rgba(250, 250, 248, 0.55);
  background: rgba(250, 250, 248, 0.06);
  border-radius: 99px; padding: 5px 16px;
  white-space: nowrap;
}
.hb-chrome-url::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #A9C29B;
}

/* ── Build status HUD ── */
.hb-on .hb-hud {
  display: flex; align-items: center; gap: 18px;
  position: absolute; z-index: 6;
  left: var(--space-gutter); right: var(--space-gutter);
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
}
.hb-status {
  display: flex; align-items: center; gap: 14px;
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
}
.hb-status-step { color: var(--color-accent-on-dark-sm); }
.hb-status-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-status.is-done .hb-status-step,
.hb-status.is-done .hb-status-text { color: #A9C29B; }
.hb-stage *:focus-visible { outline-color: var(--color-bg); }

/* Short viewports: keep the centered hero inside the frame */
@media (max-height: 760px) {
  .hb-on .hb-canvas .hero { padding-top: 96px; padding-bottom: 40px; gap: 32px; }
}
@media (max-height: 600px) {
  .hb-on .hb-canvas .hero { gap: 22px; }
  .hb-on .hb-canvas .hero-title,
  .hb-on .hb-canvas .hero-title-accent { font-size: clamp(34px, 6vw, 56px); }
}

/* Tablet / mobile */
@media (max-width: 768px) {
  .hb-on .hb-frame { --hb-scale: 0.88; }
  .hb-on .hb-editor { padding: 60px 14px 28px; }
  .hb-on .hb-code { font-size: 10.5px; line-height: 1.9; }
  .hb-on .hb-line::before { width: 1.6em; margin-right: 1em; }
  .hb-on .hb-chrome { height: 40px; padding: 0 14px; }
  .hb-chrome-url { font-size: 10.5px; padding: 4px 12px; }
  .hb-on .hb-hud { gap: 12px; }
  .hb-status { gap: 10px; font-size: 10px; }
  .hb-on .hb-canvas .hero { padding-top: 96px; }
}
@media (max-width: 480px) {
  .hb-status-text { display: none; }
}
