/* ================================================================
   Kraftsy v36 — one stylesheet for the home page, /websites/,
   the legal pages, /services and /portfolio.
   One typeface: Krub 200–700. One stylesheet for every page.
   ----------------------------------------------------------------
    1. Tokens + theme axes (theme, contrast, mode, font size)
    2. Reset & base
    3. Icons  <i class="i i-name">
    4. Utilities (wrap, eyebrow, headings, tags, buttons)
    5. Motion (reveal system)
    6. Navigation bar, menu overlay, settings overlay
    7. Hero — «Schön. Klar. Kraftvoll.» + welcome field
    8. Leistungen
    9. Was Sie davon haben
   10. Arbeiten (grid + cards) + clients
   11. Zusammenarbeit
   12. Websites (home teaser + offers page)
   13. Über mich
   14. Kontakt (sentence form)
   15. Footer
   16. Case view (project popup)
   17. Sub-pages: legal, /services, /portfolio
   18. Theme details (dark, high contrast, freak)
   19. Responsive
   20. Reduced motion
   ================================================================ */


/* ================================================================
   1. TOKENS
   Four independent axes on <html> (set pre-paint, js/theme.js):
   data-theme light|dark · data-contrast normal|high ·
   data-mode normal|freak · data-font-size small|medium|large
   ================================================================ */
:root {
  --bg:          #f4f1ea;
  --bg-alt:      #ebe6db;
  --surface:     #fbfaf6;
  --text:        #141216;
  --text-soft:   #57515c;
  --text-mute:   #8a8490;
  --line:        rgba(20, 18, 22, 0.14);
  --accent:      #753ba9;            /* Kraftsy purple */
  --accent-strong: #5f2f88;
  --accent-soft: #e9e0f3;
  --on-accent:   #ffffff;
  --field:       #753ba9;            /* the hero dot + welcome field */
  --on-field:    #ffffff;

  /* the dark band (contact, footer) */
  --band:        #151218;
  --band-2:      #201b25;
  --on-band:     #efebf3;
  --on-band-soft: rgba(239, 235, 243, 0.64);
  --line-band:   rgba(239, 235, 243, 0.14);
  --accent-band: #a472e0;

  --shadow:      0 40px 80px -40px rgba(20, 18, 22, 0.4);

  --font:   "Krub", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Archivo", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max:    1600px;
  --edge:   max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  --nav-h:  5.25rem;
  --radius: 1.25rem;

  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --z-overlay: 300;
  --z-nav:     310;
  --z-modal:   400;
}

[data-theme="dark"] {
  --bg:          #141216;
  --bg-alt:      #1b1820;
  --surface:     #1f1b25;
  --text:        #efebf3;
  --text-soft:   rgba(239, 235, 243, 0.7);
  --text-mute:   rgba(239, 235, 243, 0.46);
  --line:        rgba(239, 235, 243, 0.14);
  --accent:      #b489ee;
  --accent-strong: #caa8f6;
  --accent-soft: rgba(180, 137, 238, 0.14);
  --on-accent:   #141216;
  --field:       #6a34a0;
  --band:        #0d0b10;
  --band-2:      #19151d;
  --accent-band: #b489ee;
  --shadow:      0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

[data-contrast="high"] {
  --text:        #000000;
  --text-soft:   #1e1e1e;
  --text-mute:   #333333;
  --line:        rgba(0, 0, 0, 0.6);
  --accent:      #4a1780;
  --accent-strong: #2e0a55;
  --on-band-soft: rgba(255, 255, 255, 0.92);
  --line-band:   rgba(255, 255, 255, 0.5);
  --accent-band: #d9c0ff;
}
[data-theme="dark"][data-contrast="high"] {
  --bg:          #000000;
  --bg-alt:      #0b0b0b;
  --surface:     #0e0e0e;
  --text:        #ffffff;
  --text-soft:   #f2f2f2;
  --text-mute:   #d4d4d4;
  --line:        rgba(255, 255, 255, 0.6);
  --accent:      #dcc4ff;
  --accent-strong: #ffffff;
  --accent-soft: rgba(220, 196, 255, 0.16);
  --on-accent:   #000000;
  --band:        #000000;
  --band-2:      #111111;
}

/* Freak: a neon layer on top of the current theme */
[data-mode="freak"] {
  --freak-a: #ff0080;
  --freak-b: #7400e8;
  --freak-c: #0060ff;
  --accent:      #ff0080;
  --accent-strong: #cc0066;
  --accent-soft: #ffe3f1;
  --field:       #7400e8;
  --accent-band: #ff4fa7;
}
[data-theme="dark"][data-mode="freak"] {
  --freak-a: #00ffe0;
  --freak-b: #ff40ff;
  --freak-c: #ffe600;
  --accent:      #00ffe0;
  --accent-strong: #7dfff0;
  --accent-soft: rgba(0, 255, 224, 0.12);
  --on-accent:   #0d0b10;
  --field:       #ff40ff;
  --on-field:    #0d0b10;
  --accent-band: #00ffe0;
}

html[data-font-size="small"]  { font-size: 14px; }
html[data-font-size="medium"] { font-size: 16px; }
html[data-font-size="large"]  { font-size: 18px; }


/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--accent-band); }
[hidden] { display: none !important; }


/* ================================================================
   3. ICONS — one-colour SVG masks painted with currentColor
   ================================================================ */
.i {
  display: inline-block; flex-shrink: 0;
  width: 1em; height: 1em; vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}
.i-arrow-right  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.i-arrow-left   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M20 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.i-arrow-down   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M12 4v15M6 13l6 6 6-6'/%3E%3C/svg%3E"); }
.i-arrow-ne     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E"); }
.i-plus         { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.i-close        { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.i-sliders      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h8M16 7h4M4 17h4M12 17h8'/%3E%3Ccircle cx='14' cy='7' r='2.2'/%3E%3Ccircle cx='10' cy='17' r='2.2'/%3E%3C/g%3E%3C/svg%3E"); }
.i-sun          { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5v2M12 19.5v2M4.6 4.6l1.4 1.4M18 18l1.4 1.4M2.5 12h2M19.5 12h2M4.6 19.4L6 18M18 6l1.4-1.4'/%3E%3C/g%3E%3C/svg%3E"); }
.i-moon         { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M20 14.5A8.5 8.5 0 1 1 9.5 4a6.8 6.8 0 0 0 10.5 10.5z'/%3E%3C/svg%3E"); }
.i-contrast     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill='none' stroke='%23000' stroke-width='1.8' cx='12' cy='12' r='8.5'/%3E%3Cpath fill='%23000' d='M12 3.5a8.5 8.5 0 0 1 0 17z'/%3E%3C/svg%3E"); }
.i-circle       { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill='%23000' cx='12' cy='12' r='8.5'/%3E%3C/svg%3E"); }
.i-rotate-left  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12a7.5 7.5 0 1 0 2.4-5.5'/%3E%3Cpath d='M4.5 4.5V9H9'/%3E%3C/g%3E%3C/svg%3E"); }
.i-sparkles     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20L14.5 9.5M13 8l3 3'/%3E%3Cpath d='M18 3v4M16 5h4M20 12v2.6M18.7 13.3h2.6M9 3v2.4M7.8 4.2h2.4'/%3E%3C/g%3E%3C/svg%3E"); }
.i-layers       { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l8.5 4.5L12 12.5 3.5 8z'/%3E%3Cpath d='M3.5 12.5L12 17l8.5-4.5M3.5 16.5L12 21l8.5-4.5'/%3E%3C/g%3E%3C/svg%3E"); }
.i-fingerprint  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5a7 7 0 0 1 14 0v1.5'/%3E%3Cpath d='M8.5 20c.6-1.4 1-3 1-4.8V11a2.5 2.5 0 0 1 5 0v2.5c0 2.6-.5 5-1.5 7'/%3E%3Cpath d='M12 11v3.5c0 2.5-.6 4.6-1.6 6.3'/%3E%3Cpath d='M5.2 15.5c.3-1 .4-2 .4-3M17.8 17.5c.3-1.2.5-2.5.6-3.8'/%3E%3C/g%3E%3C/svg%3E"); }
.i-browser      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M6.3 6.8h.01M8.8 6.8h.01'/%3E%3C/g%3E%3C/svg%3E"); }
.i-mail         { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.8 6.5L12 12.8l8.2-6.3'/%3E%3C/g%3E%3C/svg%3E"); }
.i-phone        { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M5.2 3.5h3.3l1.6 4.4-2.1 1.5a11 11 0 0 0 6.6 6.6l1.5-2.1 4.4 1.6v3.3a2 2 0 0 1-2 2A16.8 16.8 0 0 1 3.2 5.5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.i-linkedin     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4.5 9h3.3v10.5H4.5zM6.15 3.9a1.9 1.9 0 1 1 0 3.8 1.9 1.9 0 0 1 0-3.8zM10 9h3.15v1.45h.05c.45-.83 1.5-1.7 3.1-1.7 3.3 0 3.9 2.17 3.9 5v5.75h-3.3v-5.1c0-1.22-.02-2.78-1.7-2.78-1.7 0-1.95 1.32-1.95 2.7v5.18H10z'/%3E%3C/svg%3E"); }


/* ================================================================
   4. UTILITIES
   ================================================================ */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 500;
  padding: 0.6rem 1rem; border-radius: 999px;
  color: var(--bg); background: var(--text); font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

section { position: relative; }
.band { color: var(--on-band); background: var(--band); }

/* Eyebrow — a quiet label with the brand dot (no numbering) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.78rem; font-weight: 600; line-height: 1;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow::before {
  content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--accent);
}
.band .eyebrow { color: var(--on-band-soft); }
.band .eyebrow::before { background: var(--accent-band); }

/* Display headings — explicit lines (.ln) that rise from their own mask */
.h-display {
  font-size: clamp(2.3rem, 7.2vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.ln { display: block; overflow: hidden; padding: 0.14em 0.08em 0.26em; margin: -0.14em -0.08em -0.26em; }
.ln > span { display: inline-block; white-space: nowrap; }

.sec { padding-block: clamp(6rem, 12vw, 10.5rem); }
.sec--alt { background: var(--bg-alt); }
.sec-head { display: grid; gap: 1.75rem; }
.sec-head .h-display { margin-top: 0.2rem; }
.sec-lead { max-width: 40ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--text-soft); }
.band .sec-lead { color: var(--on-band-soft); }
.sec-head--split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.sec-head--split > :first-child { grid-column: 1 / -1; }
.sec-head--split > :last-child  { grid-column: 6 / -1; margin-top: 1.5rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags li {
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem; font-weight: 500; line-height: 1.3;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px;
}
.tags--line li { color: var(--text); background: transparent; border: 1px solid var(--line); }

/* Buttons — pill; colour rises from below, the arrow glides through */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 1rem;
  height: 3.5rem; padding: 0 0.45rem 0 1.6rem;
  font-size: 1rem; font-weight: 600; line-height: 1;
  color: var(--bg); background: var(--text);
  border: 1px solid var(--text); border-radius: 999px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--on-accent); border-color: var(--accent); }
.btn-ico {
  display: grid; place-items: center; overflow: hidden;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  font-size: 1.05rem; color: var(--text); background: var(--bg);
}
.btn:hover .btn-ico .i { animation: arrowThrough 0.6s var(--ease); }
@keyframes arrowThrough {
  0% { transform: none; } 45% { transform: translateX(160%); }
  46% { transform: translateX(-160%); } 100% { transform: none; }
}
.btn--ghost { color: var(--text); background: transparent; border-color: var(--line); }
.btn--ghost .btn-ico { color: var(--bg); background: var(--text); }
.btn--band { color: var(--band); background: var(--on-band); border-color: var(--on-band); }
.btn--band .btn-ico { color: var(--on-band); background: var(--band); }
.btn--field { color: var(--field); background: var(--on-field); border-color: var(--on-field); }
.btn--field .btn-ico { color: var(--on-field); background: var(--field); }
.btn--field::before { background: var(--band); }
.btn--field:hover { color: var(--on-band); border-color: var(--band); }
.btn--field-ghost { color: var(--on-field); background: transparent; border-color: color-mix(in srgb, var(--on-field) 45%, transparent); }
.btn--field-ghost .btn-ico { color: var(--field); background: var(--on-field); }
.btn--field-ghost::before { background: var(--on-field); }
.btn--field-ghost:hover { color: var(--field); border-color: var(--on-field); }


/* Headlines: Archivo, a touch narrower and bolder; text stays Krub */
h1, h2, h3, .h-display, .hero-title, .welcome-title, .contact-title, .tier-price,
.nav-link-title, .settings-title, .settings-panel-title, .work-title, .case-title,
.clients-title, .lp-title, .path h3, .gain h3, .step h3 {
  font-family: var(--font-head);
  font-stretch: 88%;
}
.h-display, .welcome-title, .contact-title, .tier-price, .lp-title, .gain h3, .step h3 { font-weight: 800; }
.wf h2, .wf-mark { font-family: var(--font); font-stretch: 100%; }   /* Workform keeps its own voice */


/* ================================================================
   5. MOTION — hidden states only once JS is on
   ================================================================ */
/* ordinary content blocks: short and quiet (≈0.4 s), so text is there
   when the visitor arrives; display headlines keep a little more swing */
.js [data-reveal] {
  opacity: 0; transform: translateY(1.25rem);
  transition: opacity 0.4s ease, transform 0.45s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="lines"] { opacity: 1; transform: none; }
.js [data-reveal="lines"] .ln > span { transform: translateY(112%); transition: transform 0.7s var(--ease); }
.js [data-reveal="lines"] .ln:nth-child(2) > span { transition-delay: 0.05s; }
.js [data-reveal="lines"] .ln:nth-child(3) > span { transition-delay: 0.1s; }
.js [data-reveal="lines"].is-in .ln > span { transform: none; }


/* ================================================================
   6. NAVIGATION — bar (logo · STYLE · MENU), menu + settings overlays
   ================================================================ */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  display: flex; justify-content: space-between; align-items: center;
  height: var(--nav-h);
  padding-inline: var(--edge);
  color: var(--accent);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, height 0.45s var(--ease), color 0.4s ease, transform 0.5s var(--ease);
}
.site-nav.is-scrolled {
  height: 4.25rem;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
          backdrop-filter: blur(14px) saturate(1.3);
}
.site-nav.on-band { color: var(--accent-band); }
.site-nav.on-band.is-scrolled { background: color-mix(in srgb, var(--band) 84%, transparent); box-shadow: 0 1px 0 var(--line-band); }
.site-nav.on-field { color: var(--on-field); }
.site-nav.on-field.is-scrolled { background: color-mix(in srgb, var(--field) 88%, transparent); box-shadow: none; }
.site-nav.menu-open, .site-nav.settings-open {
  color: var(--accent) !important;
  background: transparent !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.site-nav .logo { position: relative; z-index: 350; display: flex; color: inherit; }
.site-nav .logo svg { width: auto; height: 2.5rem; transition: height 0.45s var(--ease); }
.site-nav.is-scrolled .logo svg { height: 2.1rem; }
.nav-actions { position: relative; z-index: 350; display: flex; align-items: center; gap: 1.25rem; }

.nav-toggle, .settings-toggle {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  padding: 0.5rem; color: inherit; background: none; border: none;
}
/* STYLE: an icon in a fine circle, quieter than navigation and contact */
.settings-toggle {
  width: 2.75rem; height: 2.75rem; min-width: 0; min-height: 0; padding: 0;
  border: 1.5px solid color-mix(in srgb, currentColor 38%, transparent); border-radius: 50%;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.settings-toggle:hover, .settings-toggle:focus-visible, .settings-toggle[aria-expanded="true"] { border-color: currentColor; }
.settings-toggle:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* direct contact, always in the bar */
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  height: 2.75rem; padding: 0 1.15rem;
  font-size: 0.92rem; font-weight: 600; line-height: 1; white-space: nowrap;
  color: inherit; border: 1.5px solid currentColor; border-radius: 999px;
  transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0s;
}
.nav-cta .i { transition: transform 0.35s var(--ease); }
.nav-cta:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.nav-cta:hover .i { transform: translateX(3px); }
.site-nav.menu-open .nav-cta, .site-nav.settings-open .nav-cta { opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
.nav-icon { position: relative; display: block; width: 32px; height: 22px; }
.nav-line {
  position: absolute; left: 0; width: 32px; height: 2.5px; border-radius: 1px;
  background-color: currentColor;
  transition: transform 0.35s var(--ease-io), opacity 0.25s ease, width 0.35s var(--ease);
}
.nav-line:nth-child(1) { top: 0; }
.nav-line:nth-child(2) { top: 10px; width: 22px; }
.nav-line:nth-child(3) { top: 20px; }
.nav-toggle:hover .nav-line:nth-child(2) { width: 32px; }
.nav-toggle[aria-expanded="true"] { color: var(--text); }
.nav-toggle[aria-expanded="true"] .nav-line:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-line:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
.settings-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: 20px; }
.settings-icon .i { transition: transform 0.5s var(--ease-io); }
.settings-toggle[aria-expanded="true"] { color: var(--text); }
.settings-toggle[aria-expanded="true"] .settings-icon .i { transform: rotate(180deg); }

/* Overlays share the shell */
.nav-menu, .settings-menu {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  overflow-y: auto; overscroll-behavior: contain;
  color: var(--text); background: var(--surface);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.nav-menu.active, .settings-menu.active { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }

.nav-overlay-grid {
  display: grid; grid-template-columns: 1fr 320px;
  max-width: var(--max); min-height: 100%;
  margin: 0 auto; padding: 0 var(--gutter);
}
.nav-overlay-links { display: flex; flex-direction: column; padding: calc(var(--nav-h) + 3rem) 4rem 4rem 0; }
.nav-link-item {
  display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav-link-item:last-child { border-bottom: 1px solid var(--line); }
.nav-menu.active .nav-link-item { opacity: 1; transform: none; }
.nav-menu.active .nav-link-item:nth-child(2) { transition-delay: 50ms; }
.nav-menu.active .nav-link-item:nth-child(3) { transition-delay: 100ms; }
.nav-menu.active .nav-link-item:nth-child(4) { transition-delay: 150ms; }
.nav-menu.active .nav-link-item:nth-child(5) { transition-delay: 200ms; }
.nav-link-num, .settings-panel-num {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.4rem; height: 2.4rem;
  font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text-mute); border: 1.5px solid var(--line); border-radius: 50%;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.nav-link-body { display: flex; flex-direction: column; }
.nav-link-title {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  transition: color 0.2s ease, transform 0.45s var(--ease);
}
.nav-link-sub { margin-top: 0.35rem; color: var(--text-soft); }
.nav-link-arrow { display: flex; font-size: 1.3rem; color: var(--text-mute); transition: transform 0.45s var(--ease), color 0.2s ease; }
.nav-link-item:hover .nav-link-num { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.nav-link-item:hover .nav-link-title, .nav-link-item:hover .nav-link-arrow { color: var(--accent); }
.nav-link-item:hover .nav-link-title, .nav-link-item:hover .nav-link-arrow { transform: translateX(6px); }

.nav-overlay-info {
  display: flex; flex-direction: column; gap: 2rem;
  padding: calc(var(--nav-h) + 3rem) 0 4rem 4rem;
  border-left: 1px solid var(--line);
}
.nav-info-heading { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.nav-info-block { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-info-label { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.nav-info-value { line-height: 1.6; transition: color 0.2s ease; }
a.nav-info-value:hover { color: var(--accent); }
.nav-social { display: flex; gap: 1rem; margin-top: auto; padding-top: 2rem; }
.nav-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; font-size: 1rem;
  color: var(--text-soft); border: 1.5px solid var(--line); border-radius: 50%;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.nav-social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Settings overlay (markup injected by js/theme.js) */
.settings-overlay-grid {
  display: flex; flex-direction: column;
  max-width: 1080px; min-height: 100%;
  margin: 0 auto; padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem;
}
.settings-header { display: flex; flex-direction: column; gap: 0.6rem; padding-bottom: 3rem; }
.settings-kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.settings-title { font-size: clamp(2.2rem, 4.4vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.024em; }
.settings-intro { max-width: 56ch; color: var(--text-soft); }
.settings-panels { display: flex; flex-direction: column; }
.settings-panel {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem;
  padding: 2rem 0; border-top: 1px solid var(--line);
}
.settings-panel:last-child { border-bottom: 1px solid var(--line); }
.settings-panel-head { display: grid; grid-template-columns: 2.4rem 1fr; align-items: center; gap: 2rem; }
.settings-panel-title { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.settings-panel-sub { margin-top: 0.2rem; font-size: 0.9rem; color: var(--text-soft); }
.settings-segmented {
  display: inline-flex; gap: 2px; padding: 4px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
}
.settings-segment {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem; font-weight: 600; white-space: nowrap;
  color: var(--text-soft); background: transparent; border: none; border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.settings-segment:hover { color: var(--text); }
.settings-segment.is-active { color: var(--on-accent); background: var(--accent); }
.settings-size-glyph { font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.settings-size-glyph--sm { font-size: 0.85rem; }
.settings-size-glyph--md { font-size: 1.05rem; }
.settings-size-glyph--lg { font-size: 1.3rem; }
.settings-footer { display: flex; justify-content: flex-end; margin-top: 2rem; }
.settings-reset {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-soft); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.settings-reset:hover { color: var(--accent); border-color: var(--accent); }
.settings-reset .i { transition: transform 0.5s var(--ease); }
.settings-reset:hover .i { transform: rotate(-270deg); }


/* ================================================================
   7. HERO — «Gestaltung mit Kraft für …»
   Who (portrait + name) and what (a statement whose last word keeps
   changing). Headline in variable Archivo: the entry grows each
   letter from hairline to bold; afterwards the pointer acts as a
   soft lens (--w weight, --wd width per letter, js → initHero).
   ================================================================ */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 1.5rem) 0 6rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent) 0%, color-mix(in srgb, var(--accent) 7%, transparent) 38%, transparent 66%);
  transform: translate3d(var(--gx, 72vw), var(--gy, 38vh), 0) translate(-50%, -50%);
  pointer-events: none;
}
.hero-inner { will-change: transform; }
.hero-intro {
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: clamp(1.5rem, 4.5vh, 3.25rem);
  font-weight: 600; line-height: 1.25;
}
.hero-intro small { display: block; font-size: 0.85rem; font-weight: 400; color: var(--text-soft); }
.hero-avatar { width: 3.2rem; height: 3.2rem; flex-shrink: 0; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line); }
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.hero-title {
  --col: calc(min(100vw, var(--max)) - 2 * var(--gutter));
  --fs: min(calc(var(--col) / 6.4), calc((100vh - 19rem) / 2.85));
  font-size: var(--fs);
  font-weight: 800; line-height: 0.96; letter-spacing: -0.03em;
}
@supports (height: 100svh) {
  .hero-title { --fs: min(calc(var(--col) / 6.4), calc((100svh - 19rem) / 2.85)); }
}
.ht-line { display: block; white-space: nowrap; padding-bottom: 0.04em; }
.ht-line .c { display: inline-block; font-weight: var(--w, 800); font-stretch: var(--wd, 88%); }

/* the changing word: stacked in one grid cell, the box width follows the word */
.ht-rotor { color: var(--accent); }
.rotor-box { position: relative; display: inline-grid; vertical-align: bottom; transition: width 0.9s var(--ease); }
.rotor-word { grid-area: 1 / 1; justify-self: start; width: max-content; white-space: nowrap; }
.rotor-word .c { font-weight: 800; transition: transform 0.75s var(--ease), opacity 0.5s ease, font-weight 0.9s var(--ease); transition-delay: calc(var(--i) * 26ms); }
.rotor-word:not(.is-on) .c { opacity: 0; transform: translateY(0.42em); font-weight: 200; }
.rotor-word.is-out .c { opacity: 0; transform: translateY(-0.42em); font-weight: 200; }
.rotor-word.is-measure .c { font-weight: 800 !important; font-stretch: 88% !important; transition: none !important; }
html:not(.js) .rotor-word:not(.is-first) { display: none; }
html:not(.js) .rotor-word.is-first .c { opacity: 1; transform: none; font-weight: 800; }

/* hero subline */
.hero-sub {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-bottom: clamp(1.25rem, 3.5vh, 2.5rem);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-soft);
}
.hero-sub::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }
.js .hero-sub { opacity: 0; }
.js.fonts-ready .hero-sub { animation: fadeUp 0.9s var(--ease) 0.1s both; }

/* the arrow circle sits on the seam between hero and welcome; the
   colour burst opens out of it (js → initWelcome) */
.intro { position: relative; isolation: isolate; }
.intro-cue { position: relative; z-index: 3; display: flex; justify-content: center; height: 0; }
.hero-cue {
  display: grid; place-items: center;
  width: 3.8rem; height: 3.8rem; margin-top: -1.9rem;
  font-size: 1.2rem; color: var(--on-field); background: var(--field);
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--field) 35%, transparent);
  animation: cueRing 2.8s ease-out infinite;
  transition: background-color 0.3s ease;
}
.hero-cue:hover { background: var(--accent-strong); }
.hero-cue .i { animation: cueBob 2.4s var(--ease-io) infinite; }
@keyframes cueBob { 50% { transform: translateY(4px); } }
@keyframes cueRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--field) 35%, transparent); } 100% { box-shadow: 0 0 0 1.4rem transparent; } }

/* entry: letters grow from hairline to bold, then the word and the dot */
.js .ht-line:not(.ht-rotor) .c, .js .hero-cue, .js .hero-glow { opacity: 0; }
.js.fonts-ready .ht-line:not(.ht-rotor) .c {
  animation: chIn 1.35s var(--ease-io) both;
  animation-delay: calc(0.35s + var(--i) * 32ms);
}
@keyframes chIn {
  0%   { opacity: 0; font-weight: 200; font-stretch: 100%; transform: translateY(0.16em); }
  40%  { opacity: 1; }
  100% { opacity: 1; font-weight: 800; font-stretch: 88%; transform: none; }
}
.hero.is-ready .ht-line:not(.ht-rotor) .c { animation: none; opacity: 1; transform: none; }
.js.fonts-ready .hero-intro { animation: fadeUp 0.9s var(--ease) 0.1s both; }
.js.fonts-ready .hero-glow  { animation: glowIn 2.4s ease 0.4s both; }
@keyframes glowIn { to { opacity: 1; } }
.js.fonts-ready @keyframes dotDrop {
  0%   { opacity: 0; transform: translate3d(0, -1.4em, 0) scale(0.5); }
  45%  { opacity: 1; transform: none; scale: 1.3 0.72; }
  70%  { transform: translate3d(0, -0.06em, 0); scale: 0.92 1.1; }
  100% { opacity: 1; transform: none; scale: 1; }
}
.js.fonts-ready .hero-cue { animation: fadeUp 1s var(--ease) 2.2s both, cueRing 2.8s ease-out 3.2s infinite; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }


/* ================================================================
   7b. WILLKOMMEN — the purple panel slides in from the side; once it
   has landed the greeting rises word by word (weight fade)
   ================================================================ */
.welcome { overflow: hidden; overflow: clip; }
.welcome-panel { padding-block: clamp(6rem, 12vw, 10rem); color: var(--on-field); background: var(--field); }
.welcome-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); }
.welcome-portrait { width: clamp(7rem, 12vw, 11rem); aspect-ratio: 1; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--on-field) 40%, transparent); }
.welcome-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
/* the greeting sits on a card: a fine outline on the purple ground */
.welcome-card {
  justify-self: start; max-width: 50rem;
  padding: clamp(2rem, 4.5vw, 4rem) clamp(1.75rem, 4.5vw, 4.25rem);
  background: color-mix(in srgb, var(--on-field) 5%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--on-field) 38%, transparent);
  border-radius: 2rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.welcome-title { font-size: clamp(2.1rem, 4.6vw, 5.2rem); line-height: 0.98; letter-spacing: -0.03em; color: var(--on-field); }
.wl { display: block; white-space: nowrap; }       /* fixed breaks: «Grafikdesign für / den Alltag. / Und für Neues.» */
.wt { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.04em 0.2em; margin: -0.06em -0.04em -0.2em; }
.wt > span { display: inline-block; }
.welcome-text { max-width: 40ch; margin-top: 1.75rem; font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.45; color: color-mix(in srgb, var(--on-field) 86%, transparent); }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
/* calm buttons (the v28 language): flat, 12 px radius, the arrow glides */
.btn-calm {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.5rem;
  font-weight: 600; line-height: 1;
  color: var(--field); background: var(--on-field);
  border: 1px solid var(--on-field); border-radius: 12px;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn-calm .i { transition: transform 0.35s var(--ease); }
.btn-calm:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--on-field) 22%, transparent); }
.btn-calm:hover .i-arrow-right { transform: translateX(4px); }
.btn-calm:hover .i-arrow-down { transform: translateY(3px); }
.btn-calm--ghost { color: var(--on-field); background: transparent; border-color: color-mix(in srgb, var(--on-field) 45%, transparent); }
.btn-calm--ghost:hover { background: color-mix(in srgb, var(--on-field) 10%, transparent); border-color: var(--on-field); box-shadow: none; }
.btn-calm--band { color: var(--band); background: var(--on-band); border-color: var(--on-band); cursor: pointer; }
.btn-calm--band:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--on-band) 22%, transparent); }
/* on the light page ground */
.btn-calm--accent { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.btn-calm--accent:hover { box-shadow: 0 0 0 4px var(--accent-soft); }
.btn-calm--line { color: var(--text); background: transparent; border-color: var(--line); }
.btn-calm--line:hover { border-color: var(--accent); box-shadow: none; }

/* ---- the colour burst: four rings of the brand palette bloom from the
   portrait, one after another; the last one stays as the panel ---- */
.welcome-panel { position: relative; }
.welcome-inner { position: relative; z-index: 2; }
.burst { display: none; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.js .intro.is-armed .burst { display: block; }
.burst i { position: absolute; inset: 0; }
.burst i:nth-child(1) { background: #eadcff; }
.burst i:nth-child(2) { background: #b77cf2; }
.burst i:nth-child(3) { background: #3d1566; }
.burst i:nth-child(4) {
  background:
    radial-gradient(80% 60% at var(--ox, 50%) var(--oy, 50%), color-mix(in srgb, var(--field) 72%, #ffffff) 0%, transparent 60%),
    radial-gradient(90% 90% at 100% 100%, color-mix(in srgb, var(--field) 70%, #000000) 0%, transparent 60%),
    var(--field);
}
[data-mode="freak"] .burst i:nth-child(1) { background: var(--freak-c); }
[data-mode="freak"] .burst i:nth-child(2) { background: var(--freak-a); }
[data-mode="freak"] .burst i:nth-child(3) { background: var(--freak-b); }
.js .welcome.is-armed .welcome-panel { background: transparent; }
/* scroll-driven: js sets each ring's radius (--r) from the scroll position */
.js .intro.is-armed .burst i { clip-path: circle(var(--r, 0px) at var(--ox, 50%) var(--oy, 50%)); }

.js .welcome.is-armed .wt > span { transform: translateY(110%); font-weight: 300; }
.js .welcome.is-armed .welcome-portrait { opacity: 0; transform: scale(0.6); }
.js .welcome.is-armed .welcome-card { border-color: transparent; background: transparent; transition: border-color 0.5s ease, background-color 0.5s ease; }
.js .welcome.is-armed.is-landed .welcome-card { border-color: color-mix(in srgb, var(--on-field) 38%, transparent); background: color-mix(in srgb, var(--on-field) 5%, transparent); }
.js .welcome.is-armed .welcome-text, .js .welcome.is-armed .welcome-actions { opacity: 0; transform: translateY(1.25rem); }
.js .welcome.is-armed .wt > span { opacity: 0; transition: transform 0.4s ease, opacity 0.3s ease, font-weight 0.4s ease; }
.js .welcome.is-armed.is-landed .wt > span {
  opacity: 1; transform: none; font-weight: 800;
  /* a small jump: rises past its line and settles, while gaining weight */
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease, font-weight 1.1s var(--ease-io);
  transition-delay: calc(var(--k) * 0.07s);
}
.js .welcome.is-armed.is-landed .welcome-portrait { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.3, 1.4, 0.5, 1); }
/* text and buttons follow right away, they do not wait for the title's jump */
.js .welcome.is-armed.is-landed .welcome-text    { opacity: 1; transform: none; transition: opacity 0.4s ease 0.1s, transform 0.45s var(--ease) 0.1s; }
.js .welcome.is-armed.is-landed .welcome-actions { opacity: 1; transform: none; transition: opacity 0.4s ease 0.18s, transform 0.45s var(--ease) 0.18s; }


/* ================================================================
   8. LEISTUNGEN
   ================================================================ */
.h-display--long { font-size: clamp(2rem, 4.6vw, 5.2rem); line-height: 1; }
.h-display--long > span { display: block; }

/* Accordion in the v28 language: numbered dots on a thread, icon, title
   with a Laufend/Neu chip, tagline; tags stay visible when closed */
.svc-list { --dot: 2.4rem; --gap: clamp(1.25rem, 2.6vw, 2.5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.svc { position: relative; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--dot) / 2); width: 1px; background: var(--line); pointer-events: none; }
.svc-row {
  display: grid; grid-template-columns: var(--dot) var(--dot) minmax(0, 1fr) auto;
  align-items: center; gap: var(--gap);
  width: 100%; padding: clamp(1.5rem, 2.6vw, 2.25rem) 0 1.1rem;
  text-align: left; background: none; border: 0;
}
.svc-dot {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: var(--dot); height: var(--dot);
  font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text-mute); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 50%;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.svc-icon { display: flex; font-size: 1.7rem; color: var(--text-mute); transition: color 0.3s ease, transform 0.45s var(--ease); }
.svc-head { min-width: 0; }
.svc-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem;
  font-family: var(--font-head); font-stretch: 88%; font-weight: 800;
  font-size: clamp(1.6rem, 3.3vw, 3.1rem); line-height: 1.08; letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.svc-chip {
  padding: 0.22rem 0.7rem;
  font-family: var(--font); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px;
  transform: translateY(-0.1em);
}
.svc-chip--new { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.svc-tagline { display: block; margin-top: 0.35rem; color: var(--text-soft); }
.svc-plus { display: flex; font-size: 1.4rem; color: var(--text-mute); transition: transform 0.5s var(--ease-io), color 0.3s ease; }
.svc-tags { padding: 0 0 clamp(1.5rem, 2.4vw, 2rem) calc(var(--dot) * 2 + var(--gap) * 2); }
.svc-row:hover .svc-title { color: var(--accent); }
.svc-row:hover .svc-icon, .svc.is-open .svc-icon { color: var(--accent); }
.svc-row:hover .svc-dot, .svc.is-open .svc-dot { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.svc.is-open .svc-plus { transform: rotate(135deg); color: var(--accent); }

.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease); }
.svc.is-open .svc-body { grid-template-rows: 1fr; }
.svc-inner {
  display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); column-gap: clamp(1.5rem, 3.5vw, 3rem);
  min-height: 0; overflow: hidden;
  padding-left: calc(var(--dot) * 2 + var(--gap) * 2);
}
.svc-inner > * { opacity: 0; transform: translateY(-0.75rem); transition: opacity 0.4s ease, transform 0.6s var(--ease); }
.svc.is-open .svc-inner > * { opacity: 1; transform: none; transition-delay: 0.12s; }
.svc-thumb { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1rem; margin-bottom: 2.5rem; }
.svc-text { max-width: 62ch; padding-bottom: 2.5rem; }
.svc-text p { color: var(--text-soft); }
.svc-text p + p { margin-top: 0.9rem; }


/* ================================================================
   9. WAS SIE DAVON HABEN
   ================================================================ */
.gains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); margin-top: clamp(3rem, 6vw, 5rem); }
.gains--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gains--three .gain h3 { font-size: clamp(1.8rem, 2.9vw, 3.2rem); }
.gain { display: grid; align-content: start; gap: 0.9rem; padding: clamp(1.75rem, 3vw, 2.75rem) 0; border-top: 1px solid var(--line); }
.gain h3 { font-size: clamp(2rem, 4.4vw, 4.6rem); line-height: 0.96; letter-spacing: -0.028em; }
.gain h3::after { content: "."; color: var(--accent); }
.gain p { max-width: 38ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--text-soft); }


/* ================================================================
   10. ARBEITEN — grid (v29 layout) with v30 cards + clients
   ================================================================ */
.works-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.75rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.works-grid .work--featured { grid-column: 1; grid-row: 1 / 3; }
.works-grid .work:not(.work--featured) { aspect-ratio: 1; }
.works-grid--pair { margin-top: 0.75rem; }
@media (min-width: 1025px) {
  .works-grid--pair { grid-template-columns: repeat(3, 1fr); }
  .works-grid--pair .work--featured    { grid-column: 2 / 4; grid-row: 1 / 3; }
  .works-grid--pair .work:nth-child(2) { grid-column: 1; grid-row: 1; }
  .works-grid--pair .work:nth-child(3) { grid-column: 1; grid-row: 2; }
}

.work {
  position: relative; display: block; overflow: hidden;
  padding: 0; text-align: left;
  color: #fff; background: var(--bg-alt);
  border: 0; border-radius: 1rem;
  isolation: isolate;
}
.work img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.work:hover img, .work:focus-visible img { transform: scale(1.07); }
.work::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 8, 12, 0.72) 0%, rgba(10, 8, 12, 0.2) 34%, transparent 58%);
  transition: opacity 0.5s ease;
}
.work-cap {
  position: absolute; left: clamp(1rem, 2vw, 1.75rem); right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.6rem);
  z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.2rem 1rem;
}
.work-label { grid-column: 1; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.work-title { grid-column: 1; font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.work--featured .work-title { font-size: clamp(1.4rem, 2.6vw, 2.5rem); }
.work-arrow {
  grid-column: 2; grid-row: 1 / 3;
  display: grid; place-items: center;
  width: 2.8rem; height: 2.8rem; font-size: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 50%;
  transition: transform 0.5s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
}
.work:hover .work-arrow, .work:focus-visible .work-arrow { transform: rotate(-45deg); background: var(--field); border-color: var(--field); }

.clients { padding-top: clamp(6rem, 11vw, 9rem); }
.clients-title { font-size: clamp(2rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -0.024em; }
.clients-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--line); border: 1px solid var(--line);
}
.clients-grid li { display: grid; place-items: center; padding: 0.5rem 1.5rem; background: var(--bg); transition: background-color 0.4s ease; }
.clients-grid li:hover { background: var(--surface); }
/* logo files are black marks on white → multiply on light, invert + screen on dark */
.clients-grid img { width: 100%; aspect-ratio: 566.93 / 340.16; mix-blend-mode: multiply; opacity: 0.8; transition: opacity 0.4s ease; }
.clients-grid li:hover img { opacity: 1; }
[data-theme="dark"] .clients-grid img { filter: invert(1); mix-blend-mode: screen; }
.clients-you a { display: flex; align-items: center; gap: 0.6rem; font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.clients-you a .i { transition: transform 0.4s var(--ease); }
.clients-you a:hover .i { transform: translate(3px, -3px); }


/* ================================================================
   11. ZUSAMMENARBEIT
   ================================================================ */
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 6vw, 7rem); align-items: start; }
.process-head { position: sticky; top: 7rem; display: grid; gap: 1.5rem; }
.process .h-display { font-size: clamp(2.2rem, 4.6vw, 5.4rem); }
.steps { --p: 0; position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0.55rem; top: 3.1rem; bottom: 3.1rem; width: 1px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--p)); }
.step { position: relative; display: grid; grid-template-columns: 1.1rem 1fr; gap: 2rem; padding: 2.25rem 0; }
.step-dot {
  position: relative; z-index: 1; margin-top: 0.85rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--line);
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease);
}
/* the steps are always fully readable; only line and dots react to the scroll */
.step h3 { font-size: clamp(1.8rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -0.024em; }
.step p { max-width: 44ch; margin-top: 0.9rem; color: var(--text-soft); }
.step.is-active .step-dot { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
html:not(.js) .step-dot { background: var(--accent); border-color: var(--accent); }
.process-note { max-width: 40ch; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--text-soft); }


/* ================================================================
   12. WEBSITES — teaser on the home page + the offers page (/websites/)
   ================================================================ */
/* home: a compact teaser that leads to the offers page */
.teaser-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem clamp(2rem, 6vw, 7rem); align-items: center; }
.teaser-text { display: grid; justify-items: start; gap: 1.75rem; }
.teaser .h-display { font-size: clamp(2.2rem, 4.6vw, 5.4rem); }
.teaser-media { overflow: hidden; border-radius: 1.25rem; background: var(--bg-alt); }
.teaser-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* offers page: short intro, three offers, a note, examples, contact */
.wp .h-display { font-size: clamp(2.2rem, 4.6vw, 5.4rem); }
.wp-hero { padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(3.5rem, 7vw, 6rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: 0.9rem; color: var(--text-soft); }
.crumbs a { font-weight: 600; color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--text-mute); }
.wp-title { font-size: clamp(2.4rem, 6.6vw, 7.2rem); font-weight: 800; line-height: 0.94; letter-spacing: -0.03em; }
.wp-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: center; }
.wp-visual { margin: 0; }
.wp-visual img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1.5rem; }
.wp-visual figcaption { margin-top: 0.8rem; font-size: 0.85rem; color: var(--text-soft); }
.wp-visual figcaption a { color: var(--text); font-weight: 600; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1.5px no-repeat; }
.wp-lead { max-width: 46ch; margin-top: clamp(1.75rem, 3vw, 2.5rem); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.5; color: var(--text-soft); }
.wp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); }
.tier {
  position: relative; display: flex; flex-direction: column; gap: 1.1rem;
  padding: 2rem 2rem 2.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.5rem;
  transition: border-color 0.35s ease, box-shadow 0.45s ease;
}
.tier:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--shadow); }
.tier-title { font-size: clamp(1.45rem, 2.1vw, 2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
@media (min-width: 1025px) { .tier-title { min-height: 2.1em; } }
.tier-price { font-size: clamp(2.6rem, 4.2vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.032em; color: var(--accent); }
.tier-price small { display: block; margin-bottom: 0.5rem; font-family: var(--font); font-stretch: 100%; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }
.tier-desc { color: var(--text-soft); }
.tier-list { display: grid; gap: 0.55rem; margin-bottom: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.98rem; }
.tier-list li { position: relative; padding-left: 1.5rem; }
.tier-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.8rem; height: 1.5px; background: var(--accent); }
.tier-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: auto; padding: 1rem 1.3rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.tier-cta .i { transition: transform 0.4s var(--ease); }
.tier-cta:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.tier-cta:hover .i { transform: translateX(4px); }
.offers-note { max-width: 60ch; margin-top: 2.5rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-soft); }

.care { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 7rem); align-items: start; }
.care .h-display { font-size: clamp(2.2rem, 4.6vw, 5.4rem); }
.care-text { display: grid; gap: 1.1rem; max-width: 52ch; padding-top: 0.5rem; }
.care-text p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-soft); }
.care-text p:first-child { color: var(--text); }

.wp-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.wp-works .work { aspect-ratio: 4 / 3; }
.sites-live { margin-top: clamp(3rem, 6vw, 5rem); }
.sites-live-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); font-family: var(--font); font-stretch: 100%; }
.site-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 1.25rem; border-bottom: 1px solid var(--line); }
.site-links li { border-top: 1px solid var(--line); }
.site-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-head); font-stretch: 88%; font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.site-note { margin-left: 0.5rem; font-family: var(--font); font-stretch: 100%; font-size: 0.42em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); vertical-align: 0.35em; white-space: nowrap; }
.site-link .i { flex-shrink: 0; font-size: 0.7em; color: var(--accent); transition: transform 0.4s var(--ease); }
.site-link:hover { color: var(--accent); }
.site-link:hover .i { transform: translate(3px, -3px); }
.wp-more { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2.5rem; }
.sites-foot a, .link { color: var(--text); font-weight: 600; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1.5px no-repeat; }
.link .i { margin-left: 0.35rem; color: var(--accent); transition: transform 0.35s var(--ease); }
.link:hover .i { transform: translateX(3px); }
.svc-link { margin-top: 1.25rem; }


/* ================================================================
   13. ÜBER MICH
   ================================================================ */
.about { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem clamp(2rem, 7vw, 8rem); align-items: start; }
.about-media { position: relative; padding-bottom: 18%; }
.about-media figure { overflow: hidden; border-radius: 1.25rem; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait { width: 74%; aspect-ratio: 723 / 1000; }
.about-building { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 2 / 3; border: 0.5rem solid var(--bg); }
.about-text { display: grid; gap: 1.75rem; padding-top: 1rem; }
.about .h-display { font-size: clamp(2.3rem, 5.6vw, 6.2rem); }
.about-lead { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; }
.timeline { border-bottom: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 0.4rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.timeline b { font-size: 1.1rem; }
.timeline span { color: var(--text-soft); }
.quote p { padding-left: 1.4rem; font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; border-left: 3px solid var(--accent); }


/* ================================================================
   14. KONTAKT — the brief writes itself
   ================================================================ */
.contact { padding-block: clamp(6rem, 12vw, 10rem) clamp(5rem, 9vw, 8rem); }
.contact-title { margin-top: 1.5rem; font-size: clamp(3.6rem, 13.5vw, 15rem); line-height: 0.86; letter-spacing: -0.028em; }
.contact-title .ln:nth-child(2) { padding-left: 0.9em; color: var(--accent-band); }
.contact-lead { max-width: 46ch; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem clamp(2rem, 6vw, 7rem); margin-top: clamp(3rem, 7vw, 6rem); align-items: start; }
.brief-sentence { font-size: clamp(1.45rem, 2.9vw, 2.9rem); font-weight: 500; line-height: 1.6; letter-spacing: -0.02em; }
.field { position: relative; display: inline-block; max-width: 100%; vertical-align: baseline; }
.field input, .field select {
  width: var(--w, 8ch); max-width: 100%;
  padding: 0 0.12em;
  font: inherit; font-weight: 600; letter-spacing: inherit;
  color: var(--accent-band); background: transparent;
  border: 0; border-bottom: 2px solid color-mix(in srgb, var(--on-band) 28%, transparent); border-radius: 0;
  transition: border-color 0.3s ease;
}
.field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 1.1em; text-overflow: ellipsis; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a472e0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.05em center / 0.7em no-repeat;
}
.field option { color: #141216; background: #fff; font-size: 1rem; }
.field input::placeholder { color: color-mix(in srgb, var(--on-band) 34%, transparent); font-weight: 500; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--accent-band); }
.field.is-invalid input { border-bottom-color: #ff7a7a; }
.brief-package { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1.5rem; padding: 0.8rem 1rem; font-size: 0.95rem; color: var(--on-band-soft); border: 1px solid var(--line-band); border-radius: 0.9rem; }
.brief-package b { color: var(--on-band); font-weight: 600; }
.brief-package button { padding: 0.25rem 0; font-size: 0.85rem; font-weight: 600; color: var(--accent-band); background: none; border: 0; border-bottom: 1px solid currentColor; }
.brief-more { display: grid; gap: 0.7rem; margin-top: 2.5rem; font-size: 0.95rem; color: var(--on-band-soft); }
.brief-more textarea {
  width: 100%; min-height: 7rem; padding: 1rem 1.2rem;
  font-size: 1.05rem; line-height: 1.5;
  color: var(--on-band); background: color-mix(in srgb, var(--on-band) 4%, transparent);
  border: 1px solid var(--line-band); border-radius: 1rem; resize: vertical;
  transition: border-color 0.3s ease;
}
.brief-more textarea::placeholder { color: color-mix(in srgb, var(--on-band) 34%, transparent); }
.brief-more textarea:focus { outline: none; border-color: var(--accent-band); }
.brief-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.brief-foot [type="submit"][disabled] { opacity: 0.6; pointer-events: none; }
.brief-result { color: var(--on-band-soft); }
.brief-result.is-ok { color: #7ee2a8; }
.brief-result.is-error { color: #ff9a9a; }

.direct { display: grid; }
.direct-label { margin-bottom: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-band-soft); }
.direct-link {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  padding: 1rem 0; font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600;
  border-top: 1px solid var(--line-band); transition: color 0.3s ease;
}
.direct-link small { grid-column: 1 / -1; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-band-soft); }
.direct-link .i { color: var(--accent-band); transition: transform 0.4s var(--ease); }
.direct-link:hover { color: var(--accent-band); }
.direct-link:hover .i { transform: translate(3px, -3px); }
.direct-address { padding-top: 1.2rem; border-top: 1px solid var(--line-band); line-height: 1.55; color: var(--on-band-soft); }


/* ================================================================
   15. FOOTER
   ================================================================ */
.footer { padding-bottom: 2rem; border-top: 1px solid var(--line-band); }
.footer-mark { display: block; padding-top: clamp(3rem, 6vw, 5rem); color: var(--on-band); }
.footer-mark svg { width: 100%; height: auto; aspect-ratio: 111.19 / 41.71; transition: color 0.5s ease; }
.footer-mark:hover svg { color: var(--accent-band); }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 2rem; padding-top: 1.5rem;
  font-size: 0.9rem; color: var(--on-band-soft); border-top: 1px solid var(--line-band);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { transition: color 0.3s ease; }
.footer-links a:hover { color: var(--on-band); }


/* ================================================================
   16. CASE VIEW — project popup
   ================================================================ */
.case { position: fixed; inset: 0; z-index: var(--z-modal); }
.case-backdrop { position: absolute; inset: 0; background: rgba(12, 10, 14, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.5s ease; }
.case-panel {
  position: absolute; inset: 1rem;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  overflow: hidden;
  color: var(--text); background: var(--surface); border-radius: 1.5rem;
  opacity: 0; transform: translateY(6%);
  transition: opacity 0.5s ease, transform 0.8s var(--ease);
}
.case.is-open .case-backdrop { opacity: 1; }
.case.is-open .case-panel { opacity: 1; transform: none; }
.case-close {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 3;
  display: grid; place-items: center; width: 3rem; height: 3rem; font-size: 1.2rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 50%;
  transition: transform 0.5s var(--ease), background-color 0.3s ease, color 0.3s ease;
}
.case-close:hover { transform: rotate(90deg); color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.case-media { position: relative; overflow: hidden; background: var(--bg-alt); }
.case-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.06; transition: opacity 0.6s ease, scale 1.2s var(--ease); }
.case-slides img.is-on { opacity: 1; scale: 1; }
.case-slider-nav {
  position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2;
  display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem;
  color: #141216; background: rgba(251, 250, 246, 0.92); border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.case-slider-nav button { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: inherit; background: transparent; border: 0; border-radius: 50%; transition: background-color 0.3s ease, color 0.3s ease; }
.case-slider-nav button:hover { color: #fff; background: #141216; }
.case-count { min-width: 3.2rem; font-size: 0.8rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.case-media.is-single .case-slider-nav { display: none; }
.case-body { display: flex; flex-direction: column; gap: 1.3rem; padding: clamp(4.5rem, 6vw, 5.5rem) clamp(2rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem); overflow-y: auto; overscroll-behavior: contain; }
.case-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.case-title { font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -0.024em; }
.case-text p { color: var(--text-soft); }
.case-text p + p { margin-top: 1rem; }
.case-text a { color: var(--text); font-weight: 600; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1.5px no-repeat; }
.case-nextproject {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: auto; padding: 1.2rem 0 0;
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--line);
}
.case-nextproject .i { transition: transform 0.4s var(--ease); }
.case-nextproject:hover { color: var(--accent); }
.case-nextproject:hover .i { transform: translateX(6px); }
.case-body > * { transition: opacity 0.35s ease, transform 0.5s var(--ease); }
.case.is-swapping .case-body > * { opacity: 0; transform: translateY(0.75rem); }


/* ================================================================
   17. SUB-PAGES
   ================================================================ */
/* ---- Legal ---- */
.page-hero { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem); }
.page-back { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-weight: 600; color: var(--accent); }
.page-back .i { transition: transform 0.4s var(--ease); }
.page-back:hover .i { transform: translateX(-4px); }
.legal-body { max-width: 72ch; padding-bottom: clamp(5rem, 10vw, 8rem); }
.legal-body h2 { margin: 2.8rem 0 0.8rem; font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; }
.legal-body h3 { margin: 1.8rem 0 0.5rem; font-size: 1.15rem; }
.legal-body p, .legal-body li { color: var(--text-soft); }
.legal-body p + p { margin-top: 0.9rem; }
.legal-body ul { display: grid; gap: 0.4rem; margin: 0.9rem 0; padding-left: 1.2rem; list-style: disc; }
.legal-body a { color: var(--text); font-weight: 600; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1.5px no-repeat; }
.legal-body strong { color: var(--text); }

/* ---- /services — personal mailing page (du / Sie) ---- */
[data-v="sie"] { display: none; }
[data-anrede="sie"] [data-v="du"] { display: none; }
[data-anrede="sie"] [data-v="sie"] { display: revert; }
.lp-hero { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 2rem) 0 4rem; }
.lp-greeting {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 500; color: var(--accent);
  opacity: 0; transform: translateY(0.75rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html:not(.js) .lp-greeting, .lp-greeting.is-visible { opacity: 1; transform: none; }
.lp-title { margin-top: 1.25rem; font-size: clamp(3rem, 10vw, 11rem); line-height: 0.9; letter-spacing: -0.036em; }
.lp-title .dot { color: var(--accent); }
.lp-sub { max-width: 42ch; margin-top: 2rem; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.45; color: var(--text-soft); }
.lp-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 7rem); align-items: start; }
.lp-block h2 { font-size: clamp(2.2rem, 4.8vw, 5.2rem); line-height: 0.95; letter-spacing: -0.028em; }
.lp-lead { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; }
.lp-body { margin-top: 1.25rem; color: var(--text-soft); }
.lp-list-label { margin-top: 2rem; font-weight: 600; }
.lp-list { display: grid; gap: 0; margin-top: 0.75rem; border-top: 1px solid var(--line); }
.lp-list li { position: relative; padding: 0.85rem 0 0.85rem 1.8rem; border-bottom: 1px solid var(--line); }
.lp-list li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }
.lp-closing { margin-top: 1.75rem; font-weight: 500; }
.lp-cta-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.lp-cta {
  display: grid; gap: 0.3rem; padding: 1.6rem 1.7rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}
.lp-cta:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.lp-cta { color: var(--text); }
.lp .contact-title { font-size: clamp(2.8rem, 8vw, 8.5rem); }
.lp-cta-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }
.lp-cta-value { font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 700; letter-spacing: -0.01em; }
.lp-cta .i { margin-top: 0.8rem; color: var(--accent); transition: transform 0.4s var(--ease); }
.lp-cta:hover .i { transform: translateX(5px); }
.lp-cta--primary { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.lp-cta--primary .lp-cta-label { color: color-mix(in srgb, var(--on-accent) 75%, transparent); }
.lp-cta--primary .i { color: var(--on-accent); }

/* Workform — its own brand world (paper · grid · red · mono); ignores the Kraftsy theme */
.lp-wf-intro { max-width: 50ch; margin-bottom: 2rem; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; }
.wf {
  --wf-paper: #f1ede3; --wf-ink: #1a1a17; --wf-red: #d62b1a; --wf-line: rgba(26, 26, 23, 0.09);
  --wf-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  color: var(--wf-ink); background-color: var(--wf-paper);
  border: 1px solid rgba(26, 26, 23, 0.18);
}
.wf::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--wf-line) 1px, transparent 1px), linear-gradient(90deg, var(--wf-line) 1px, transparent 1px);
  background-size: 64px 64px;
}
.wf::after { content: ""; position: absolute; top: 12px; left: 12px; width: 14px; height: 14px; border-top: 2px solid var(--wf-red); border-left: 2px solid var(--wf-red); pointer-events: none; }
.wf-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: clamp(2rem, 6vw, 3rem); padding-bottom: 1rem; border-bottom: 1px solid rgba(26, 26, 23, 0.16); }
.wf-tag { font-family: var(--wf-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.wf-tag--muted { color: rgba(26, 26, 23, 0.7); }
.wf-mark { margin-bottom: 1rem; font-size: clamp(2.25rem, 8vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.wf-mark-dot { color: var(--wf-red); }
.wf-sig { margin-bottom: clamp(2rem, 6vw, 3rem); font-family: var(--wf-mono); font-size: 0.8rem; letter-spacing: 0.04em; color: rgba(26, 26, 23, 0.72); }
.wf-title { max-width: 26ch; margin-bottom: 1rem; font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.2; }
.wf-text { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 2.75rem); line-height: 1.8; color: rgba(26, 26, 23, 0.82); }
.wf-cta {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.4rem;
  font-family: var(--wf-mono); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background-color: var(--wf-red); border: 1px solid var(--wf-red);
  transition: background-color 0.2s ease;
}
.wf-cta .i { font-size: 0.85em; transition: transform 0.2s ease; }
.wf-cta:hover { background-color: #b8230f; border-color: #b8230f; }
.wf-cta:hover .i { transform: translateX(4px); }

/* ---- /portfolio — 9-slot mosaic ---- */
.pf-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; padding-bottom: clamp(5rem, 10vw, 8rem); }
.pf-grid .work { aspect-ratio: 1; }
@media (min-width: 641px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) {
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
  .pf-grid .work:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
  .pf-grid .work:nth-child(2) { grid-column: 3; grid-row: 1; }
  .pf-grid .work:nth-child(3) { grid-column: 3; grid-row: 2; }
  .pf-grid .work:nth-child(4) { grid-column: 2 / 4; grid-row: 3 / 5; aspect-ratio: auto; }
  .pf-grid .work:nth-child(5) { grid-column: 1; grid-row: 3; }
  .pf-grid .work:nth-child(6) { grid-column: 1; grid-row: 4; }
  .pf-grid .work:nth-child(7) { grid-column: 1 / 3; grid-row: 5 / 7; aspect-ratio: auto; }
  .pf-grid .work:nth-child(8) { grid-column: 3; grid-row: 5; }
  .pf-grid .work:nth-child(9) { grid-column: 3; grid-row: 6; }
  .pf-grid .work:is(:nth-child(1), :nth-child(4), :nth-child(7)) .work-title { font-size: clamp(1.4rem, 2.6vw, 2.5rem); }
}
.pf-intro { display: grid; gap: 1.2rem; max-width: 62ch; margin-top: 2rem; }
.pf-intro p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; }
.pf-intro p + p { color: var(--text-soft); }


/* ================================================================
   18. THEME DETAILS
   ================================================================ */
[data-contrast="high"] .svc, [data-contrast="high"] .gain, [data-contrast="high"] .timeline li { border-width: 2px; }
[data-contrast="high"] .work::after { background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 70%); }

/* Freak: neon colours only (solid, so transformed lines stay crisp) */
[data-mode="freak"] .h-display,
[data-mode="freak"] .lp-title,
[data-mode="freak"] .clients-title { color: var(--freak-b); }
[data-mode="freak"] .gain h3,
[data-mode="freak"] .step.is-active h3 { color: var(--freak-a); }
[data-mode="freak"] .eyebrow::before { background: var(--freak-c); }
[data-mode="freak"] .gain h3::after { color: var(--freak-c); }
[data-mode="freak"] .svc-row:hover .svc-title { color: var(--freak-a); }
[data-mode="freak"] .contact-title .ln:first-child { color: var(--freak-b); }


/* ================================================================
   19. RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .nav-overlay-grid { grid-template-columns: 1fr; }
  .nav-overlay-info { display: none; }
  .nav-overlay-links { padding: calc(var(--nav-h) + 2.5rem) 0 4rem; }
  .nav-link-title { font-size: 1.8rem; }
  .sec-head--split > :last-child { grid-column: 1 / -1; }
  .gains--three { grid-template-columns: minmax(0, 1fr); }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .works-grid .work--featured { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; }
  .works-grid .work:not(.work--featured) { grid-column: auto; grid-row: auto; }
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .process-head { position: static; }
  /* offers stacked, starting with the first one */
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
  .teaser-grid, .care { grid-template-columns: minmax(0, 1fr); }
  .teaser-media { max-width: 30rem; }
  .wp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .wp-visual { max-width: 34rem; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { max-width: 36rem; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-panel { inset: 0; border-radius: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: 52vh auto; overflow-y: auto; }
  .case-body { overflow: visible; padding-top: 2rem; }
  .lp-block { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --nav-h: 4.5rem; }
  .site-nav .logo svg { height: 2.1rem; }
  .hero-title { --fs: calc(var(--col) / 5.6); }
  .hero-intro { font-size: 0.95rem; }
  .welcome-inner { grid-template-columns: minmax(0, 1fr); }
  .welcome-portrait { width: 7rem; }
  .paths, .gains, .gains--three { grid-template-columns: minmax(0, 1fr); }
  .svc-list { --dot: 2.2rem; --gap: 1rem; }
  .svc-row { grid-template-columns: var(--dot) minmax(0, 1fr) auto; }
  .svc-icon { display: none; }
  .svc-tags, .svc-inner { padding-left: calc(var(--dot) + var(--gap)); }
  .svc-inner { grid-template-columns: minmax(0, 1fr); }
  .svc-thumb { max-width: 16rem; margin-bottom: 1.5rem; }
  .works-grid, .works-grid--pair { grid-template-columns: minmax(0, 1fr); }
  .works-grid .work, .works-grid .work--featured { aspect-ratio: 4 / 3; }
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .contact-title .ln:nth-child(2) { padding-left: 0; }
  .brief-sentence { line-height: 1.7; }
  .settings-panel { grid-template-columns: 1fr; gap: 1rem; }
  .settings-segmented { display: flex; width: 100%; }
  .settings-segment { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0.45rem 0.6rem; font-size: 0.78rem; }
  .lp-cta-row { grid-template-columns: minmax(0, 1fr); }
  .nav-actions { gap: 0.6rem; }
  .nav-cta { padding: 0 0.95rem; font-size: 0.86rem; }
  .nav-cta .i { display: none; }
  .wp-works, .site-links { grid-template-columns: minmax(0, 1fr); }
}
/* narrow phones + larger text: long German words in titles may hyphenate instead of overflowing */
@media (max-width: 480px) {
  .svc-title, .gain h3, .step h3, .tier-title, .clients-title, .case-title, .care-text p { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
}
/* very narrow phones: the bar is sized in px, so a larger text setting cannot push it wider */
@media (max-width: 400px) {
  .site-nav .logo svg, .site-nav.is-scrolled .logo svg { height: 28px; }
  .nav-actions { gap: 4px; }
  .nav-cta { height: 40px; padding: 0 12px; font-size: 13px; }
  .settings-toggle { width: 40px; height: 40px; }
  .settings-segment { flex-direction: column; gap: 0.15rem; padding: 0.45rem 0.3rem; }
}


/* ================================================================
   20. REDUCED MOTION — everything static and visible
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-reveal] .ln > span,
  .js .ht-line:not(.ht-rotor) .c, .js .rotor-word.is-on .c, .js .hero-dot, .js .hero-intro, .js .hero-cue, .js .hero-glow,
  .js .welcome .wt > span, .js .welcome-portrait, .js .welcome-text, .js .welcome-actions {
    opacity: 1 !important; transform: none !important;
  }
  .js .ht-line .c, .js .welcome .wt > span { font-weight: 800; }
  .js .rotor-word:not(.is-on) { visibility: hidden; }
  [data-parallax] { translate: none !important; }
}
