/* ==========================================================================
   TechHan – Stylesheet
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, DSGVO-konform) ---------- */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('../fonts/geist-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: 'Geist'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('../fonts/geist-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: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('../fonts/geist-mono-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: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('../fonts/geist-mono-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; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0B0D10;
  --blue: #0E8FD8;
  --blue-2: #3FB8F0;
  --red: #FF5A4E;
  --white: #FFFFFF;
  --bg-alt: #F6F7F8;
  --chip: #F3F4F6;
  --line: #ECEEF0;
  --line-2: #E2E5E8;
  --line-3: #D9DDE1;
  --text-2: #4A5057;
  --text-3: #5B6168;
  --text-4: #8A9098;
  --d-1: #12151A;
  --d-2: #1E2228;
  --d-3: #23272E;
  --d-4: #2A2F36;
  --d-text: #AEB4BB;
  --d-text-2: #9AA1A9;
  --d-text-3: #7A828C;
  --d-text-4: #D5D9DE;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec-y: clamp(72px, 9vw, 128px);
  --radius: 20px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 10px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--ink); color: #fff; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 420px)), 1fr)); }

/* ---------- Typography ---------- */
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; }
.bg-dark .eyebrow { color: var(--blue-2); }
.h-display { font-size: clamp(44px, 7vw, 104px); font-weight: 400; letter-spacing: -0.05em; line-height: 0.98; text-wrap: balance; }
.h-section { font-size: clamp(34px, 4.4vw, 60px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 620px; text-wrap: pretty; }
.body-l { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.bg-dark .body-l { color: var(--d-text-2); }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; border: 1px solid transparent; }
.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn-md { padding: 16px 28px; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #fff; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--blue); color: #fff; }
.btn-outline { border-color: var(--line-3); font-weight: 400; }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-dark { border-color: var(--d-4); font-weight: 400; color: #fff; }
.btn-outline-dark:hover { border-color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text-3); transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover { background: var(--chip); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; transition: border-color .2s; }
.menu-btn:hover { border-color: var(--ink); }
.menu-btn .bars { display: flex; flex-direction: column; gap: 4px; }
.menu-btn .bars span { display: block; height: 1.5px; background: var(--ink); width: 16px; }
.menu-btn .bars span + span { width: 10px; }
@media (max-width: 960px) { .main-nav { display: none; } }
@media (max-width: 520px) { .header-cta { display: none; } }

/* ---------- Overlay menu ---------- */
.menu-overlay { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: #fff; display: flex; flex-direction: column; overflow: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay .top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; width: 100%; }
.menu-close { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--d-4); font-size: 14px; color: #fff; }
.menu-close:hover { border-color: #fff; }
.menu-overlay .body { flex: 1; width: 100%; padding-top: clamp(32px, 6vh, 80px); padding-bottom: clamp(32px, 6vh, 80px); gap: 64px; align-items: end; }
.menu-list { display: flex; flex-direction: column; }
.menu-list a { display: flex; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--d-2); transition: color .2s, padding-left .2s; }
.menu-list a:hover { color: var(--blue); padding-left: 12px; }
.menu-list .n { font-family: var(--mono); font-size: 13px; color: var(--d-text-3); }
.menu-list .l { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.04em; line-height: 1; }
.menu-info { display: flex; flex-direction: column; gap: 32px; padding-bottom: 12px; }
.menu-info .grp { display: flex; flex-direction: column; gap: 8px; }
.menu-info .lbl { font-family: var(--mono); font-size: 12px; color: var(--d-text-3); letter-spacing: 0.08em; }
.menu-info .big { font-size: 22px; }
.menu-info .sm { font-size: 16px; color: #C9CED4; }
.menu-info .btn { align-self: flex-start; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 35%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 35%, #000 70%); }
.hero .wrap { position: relative; padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(48px, 6vw, 80px); }
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; font-family: var(--mono); font-size: 13px; color: var(--text-3); letter-spacing: 0.04em; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--blue); }
.hero h1 { font-size: clamp(48px, 8.4vw, 128px); font-weight: 400; letter-spacing: -0.055em; line-height: 0.95; max-width: 1100px; text-wrap: balance; }
.hero h1 span { color: var(--blue); }
.hero .row { --min: 360px; gap: 40px; margin-top: 56px; align-items: end; }
.hero .lead { max-width: 520px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 780px) { .hero .actions { justify-content: flex-start; } }

/* ---------- Leistungen-Slider ---------- */
.sec-head-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.tabs-wrap { display: flex; justify-content: center; margin: 40px 0 28px; }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--chip); flex-wrap: wrap; justify-content: center; }
.tabs button { padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-3); transition: background .2s, color .2s, box-shadow .2s; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11,13,16,.12); }
@media (max-width: 560px) { .tabs { border-radius: 22px; } }
.slider { background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; }
.slider .progress { height: 2px; background: var(--d-2); }
.slider .progress div { height: 2px; background: var(--blue); width: 0; }
.slide { --min: 400px; padding: clamp(28px, 5vw, 64px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.slide[hidden] { display: none; }
.slide .copy { display: flex; flex-direction: column; gap: 22px; }
.badge { align-self: flex-start; font-family: var(--mono); font-size: 12px; padding: 6px 12px; border: 1px solid var(--d-4); border-radius: 999px; color: var(--d-text); }
.slide h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.slide p { font-size: 16px; line-height: 1.65; color: var(--d-text); max-width: 480px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-d { font-size: 13px; padding: 7px 12px; border: 1px solid var(--d-4); border-radius: 12px; color: var(--d-text-4); }
.slide .btns { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.panel { background: var(--d-1); border: 1px solid var(--d-3); border-radius: var(--radius); padding: 28px; min-height: 400px; display: flex; flex-direction: column; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; font-size: 14px; font-weight: 500; }
.panel-head .st { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--blue-2); }
.panel-head .st i { width: 7px; height: 7px; border-radius: 999px; background: currentColor; display: block; }
.panel-head .st.rec { color: var(--red); }
.panel-head .st.ver { color: var(--d-text-3); }
.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.scores div { border: 1px solid var(--d-3); border-radius: 12px; padding: 16px 6px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.scores b { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.scores span { font-family: var(--mono); font-size: 10px; color: var(--d-text-3); }
.log { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--d-3); display: flex; flex-direction: column; gap: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--d-text-2); }
.log time { color: var(--text-3); margin-right: 10px; }
.log .ok { color: var(--blue-2); }
.swatches { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; height: 120px; }
.swatches div { border-radius: 12px; padding: 12px; display: flex; align-items: flex-end; font-family: var(--mono); font-size: 11px; }
.sw-1 { background: var(--blue); } .sw-2 { background: #fff; color: var(--ink); } .sw-3 { background: var(--ink); border: 1px solid var(--d-4); }
.typo { margin-top: 20px; border: 1px solid var(--d-3); border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 20px; }
.typo b { font-size: 56px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.typo div { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--d-text-2); }
.timeline { display: flex; flex-direction: column; gap: 14px; }
.timeline div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--d-text-2); }
.timeline i { display: block; height: 26px; background: #1A1E24; border-radius: 6px; position: relative; }
.timeline i::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); background: var(--c); border-radius: 6px; }
.panel-foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--d-3); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--d-text-3); }
.panel-foot b { color: #fff; font-weight: 400; }
@media (max-width: 480px) { .scores { grid-template-columns: repeat(2, 1fr); } .timeline div { grid-template-columns: 70px 1fr; } }

/* ---------- Pillars ---------- */
.split-head { --min: 420px; gap: 40px; align-items: end; margin-bottom: 56px; }
.split-head > div { display: flex; flex-direction: column; gap: 18px; }
.split-head p { max-width: 480px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 320px), calc(50% - 1px)), 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.pillar { background: #fff; padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 16px; min-height: 300px; transition: background .2s; }
.pillar:hover { background: #FBFCFC; }
.pillar .n { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.pillar h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin-top: auto; }
.pillar p { font-size: 15px; line-height: 1.6; color: var(--text-3); max-width: 440px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.tags span { font-family: var(--mono); font-size: 11.5px; padding: 6px 10px; border-radius: 999px; background: var(--chip); color: var(--text-2); }

/* ---------- Projekte (Start) ---------- */
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.row-head > div { display: flex; flex-direction: column; gap: 18px; }
.projects { --min: 480px; gap: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 32px); }
.project { display: flex; flex-direction: column; gap: 18px; }
.project:nth-child(even) { margin-top: clamp(0px, 6vw, 96px); }
@media (max-width: 1040px) { .project:nth-child(even) { margin-top: 0; } }
.project .meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.project .meta div { display: flex; flex-direction: column; gap: 6px; }
.project .name { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; }
.project .tag { font-size: 14px; color: var(--text-3); }
.arrow { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-3); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; transition: background .2s, color .2s, border-color .2s; }
.project:hover .arrow { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Bild-Platzhalter: Wenn das Bild fehlt, wird der Text aus data-ph angezeigt */
.shot { position: relative; border-radius: var(--radius); overflow: hidden; background: repeating-linear-gradient(135deg, #FAFBFB 0 10px, var(--chip) 10px 20px); aspect-ratio: 4 / 3; }
.shot::before { content: attr(data-ph); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-family: var(--mono); font-size: 13px; color: var(--text-4); }
.shot img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .shot img { transform: scale(1.03); }
.shot.r-16-10 { aspect-ratio: 16 / 10; }
.shot.r-21-9 { aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .shot.r-21-9 { aspect-ratio: 4 / 3; } }

/* ---------- Prozess ---------- */
.process { --min: 420px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.process-intro { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 120px; }
.process-intro p { max-width: 420px; }
.proc-counter { display: flex; align-items: baseline; gap: 14px; margin-top: 20px; }
.proc-counter b { font-size: clamp(64px, 7vw, 104px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; }
.proc-counter span { font-family: var(--mono); font-size: 13px; color: var(--d-text-3); }
.process-intro .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 900px) { .process-intro { position: static; } }
.steps { --off: clamp(56px, 6vw, 80px); --node: clamp(36px, 4vw, 48px); position: relative; padding-left: var(--off); }
.steps .rail, .steps .fill { position: absolute; left: calc(var(--node) / 2 - 1px); top: 8px; width: 2px; }
.steps .rail { bottom: 8px; background: var(--d-2); }
.steps .fill { height: 0; background: linear-gradient(180deg, var(--blue-2), var(--blue)); box-shadow: 0 0 18px rgba(14,143,216,.7); }
.step-list { list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding-bottom: clamp(72px, 10vh, 120px); transition: opacity .6s ease, transform .6s ease; }
.js .step:not(.on) { opacity: .28; transform: translateY(16px); }
.step:last-child { padding-bottom: 0; }
.step .node { position: absolute; left: calc(-1 * var(--off)); top: 0; width: var(--node); height: var(--node); border-radius: 999px; background: var(--ink); border: 1px solid var(--d-4); color: var(--d-text-3); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; transition: all .4s ease; }
.step.on .node { background: var(--blue); border-color: var(--blue-2); color: #fff; }
.step.cur .node { box-shadow: 0 0 0 6px rgba(14,143,216,.18), 0 0 24px rgba(14,143,216,.6); }
.step .time { font-family: var(--mono); font-size: 12px; color: var(--blue-2); letter-spacing: 0.04em; }
.step h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0 14px; }
.step p { font-size: 16px; line-height: 1.65; color: var(--d-text); max-width: 480px; }
.step .chips { margin-top: 20px; }
.step .chip-d { border-radius: 999px; }

/* ---------- Seiten-Intro ---------- */
.page-intro { padding-top: clamp(64px, 9vw, 120px); padding-bottom: 40px; }
.page-intro h1 { margin-top: 20px; max-width: 1000px; }
.page-intro .lead { margin-top: 28px; }

/* ---------- Leistungen-Seite ---------- */
.service { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.service-inner { --min: 440px; border-top: 1px solid var(--ink); padding-top: 36px; gap: clamp(32px, 5vw, 80px); }
.service .copy { display: flex; flex-direction: column; gap: 20px; }
.service .n { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.service h2 { font-size: clamp(32px, 3.8vw, 52px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.05; }
.service .body-l { max-width: 500px; }
.chip-l { font-size: 13px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--d-4); }
.service .btn { align-self: flex-start; margin-top: 8px; }
.sub-steps { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.sub-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sub-steps .n { color: var(--text-4); padding-top: 4px; }
.sub-steps div { display: flex; flex-direction: column; gap: 6px; }
.sub-steps b { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.sub-steps span { font-size: 15px; line-height: 1.55; color: var(--text-3); }

/* ---------- Referenzen-Seite ---------- */
.refs { padding-top: 40px; padding-bottom: clamp(72px, 9vw, 120px); display: flex; flex-direction: column; gap: clamp(56px, 7vw, 112px); }
.ref { --min: 420px; gap: clamp(28px, 4vw, 64px); align-items: center; }
.ref:nth-child(even) .shot { order: 2; }
@media (max-width: 900px) { .ref:nth-child(even) .shot { order: 0; } }
.ref .copy { display: flex; flex-direction: column; gap: 20px; }
.ref .num { font-family: var(--mono); font-size: 13px; color: var(--text-4); }
.ref h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.ref .body-l { max-width: 460px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.lbl { font-family: var(--mono); font-size: 11px; color: var(--text-4); letter-spacing: 0.06em; }
.ref .btn { align-self: flex-start; }

/* ---------- Über uns ---------- */
.about-text { --min: 420px; gap: clamp(32px, 5vw, 80px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.about-text h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; }
.about-text .body-l { display: flex; flex-direction: column; gap: 20px; line-height: 1.65; }
.values { --min: 280px; gap: clamp(24px, 3vw, 48px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.value { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--ink); padding-top: 24px; }
.value .n { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.value h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; }
.value p { font-size: 15px; line-height: 1.6; color: var(--text-3); }

/* ---------- Kontakt ---------- */
.contact-intro { --min: 420px; gap: 48px; align-items: end; padding-top: clamp(64px, 9vw, 120px); padding-bottom: 24px; }
.contact-intro h1 { margin-top: 20px; }
.contact-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.contact-facts div { display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
.contact-facts a:hover { color: var(--blue); }

/* ---------- Anfrage-Funnel ---------- */
.funnel-grid { --min: 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.funnel-intro { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.funnel-intro p { max-width: 420px; }
@media (max-width: 860px) { .funnel-intro { position: static; } }
.stepper { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.stepper li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-4); }
.stepper .dot { width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; background: #fff; color: var(--text-4); border: 1px solid var(--line-3); }
.stepper li.cur, .stepper li.done { color: var(--ink); }
.stepper li.cur .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper li.done .dot { background: var(--blue); border-color: var(--blue); color: #fff; font-size: 0; }
.stepper li.done .dot::after { content: "✓"; font-size: 12px; }
.funnel-card { border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); background: #fff; box-shadow: 0 30px 60px -40px rgba(11,13,16,.25); min-height: 520px; display: flex; flex-direction: column; }
.funnel-card form { display: flex; flex-direction: column; flex: 1; }
.funnel-card form[hidden] { display: none; }
.f-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; font-family: var(--mono); font-size: 12px; color: var(--text-4); }
.f-bar { width: 140px; height: 3px; background: var(--line); border-radius: 999px; }
.f-bar div { height: 3px; background: var(--blue); border-radius: 999px; width: 25%; transition: width .3s; }
.f-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .f-step:not(.is-active) { display: none; }
.no-js .f-step { margin-bottom: 40px; }
.no-js .f-top, .no-js .f-step-summary, .no-js .f-back { display: none; }
.f-step legend { padding: 0; font-size: 28px; font-weight: 400; letter-spacing: -0.03em; margin-bottom: 6px; }
.f-step .hint { font-size: 15px; color: var(--text-3); margin: 0 0 24px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.opts.col { grid-template-columns: 1fr; }
.opt { position: relative; padding: 18px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: border-color .15s, background .15s; }
.opts.col .opt { padding: 18px 20px; }
.opt:hover { border-color: var(--line-3); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .t { display: flex; flex-direction: column; gap: 4px; }
.opt b { font-size: 15px; font-weight: 500; }
.opts.col .opt b { font-size: 16px; }
.opt small { font-size: 12.5px; color: var(--text-3); }
.opt .box { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.opt .box.round { border-radius: 999px; }
.opt .box.round::after { content: ""; width: 10px; height: 10px; border-radius: 999px; }
.opt:has(input:checked) { border-color: var(--blue); background: #F1F8FD; }
.opt:has(input:checked) .box { border-color: var(--blue); }
.opt:has(input[type="checkbox"]:checked) .box { background: var(--blue); }
.opt:has(input[type="checkbox"]:checked) .box::after { content: "✓"; }
.opt:has(input[type="radio"]:checked) .box::after { background: var(--blue); }
.opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-3); }
.field.full { margin-top: 14px; }
.field input, .field textarea { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-3); font: inherit; font-size: 15px; color: var(--ink); outline: none; background: #fff; transition: border-color .15s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.summary { border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.summary dt { font-family: var(--mono); font-size: 11px; color: var(--text-4); letter-spacing: 0.06em; }
.summary dd { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.summary button { font-size: 13px; color: var(--blue); }
@media (max-width: 520px) { .summary div { grid-template-columns: 1fr auto; } .summary dt { grid-column: 1 / -1; } }
.legal-note { font-size: 12.5px; color: var(--text-4); margin-top: 18px; line-height: 1.5; }
.legal-note a { text-decoration: underline; }
.f-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 32px; }
.f-back { padding: 14px 4px; font-size: 15px; color: var(--text-3); }
.f-back[hidden] { display: inline-block; visibility: hidden; }
.f-next[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.f-next[aria-disabled="true"]:hover { background: var(--ink); }
.f-error { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #FFF1F0; color: #B42318; font-size: 14px; }
.f-error[hidden] { display: none; }
.f-done { display: flex; flex-direction: column; gap: 20px; }
.f-done[hidden] { display: none; }
.f-done .check { width: 48px; height: 48px; border-radius: 999px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.f-done h3 { font-size: 32px; font-weight: 400; letter-spacing: -0.03em; }
.f-done p { font-size: 16px; line-height: 1.6; color: var(--text-3); }
.booking { border: 1px dashed #C9CED4; border-radius: 12px; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: repeating-linear-gradient(135deg, #FAFBFB 0 10px, var(--chip) 10px 20px); font-family: var(--mono); font-size: 13px; color: var(--text-3); text-align: center; padding: 20px; }
.booking small { font-size: 11px; color: var(--text-4); }
.f-reset { align-self: flex-start; font-size: 14px; color: var(--text-3); text-decoration: underline; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; padding-top: clamp(64px, 9vw, 120px); padding-bottom: var(--sec-y); }
.legal h1 { margin: 20px 0 48px; }
.legal h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--blue); text-decoration: underline; }
.todo { background: #FFF7E0; border-radius: 4px; padding: 0 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.site-footer > .wrap { padding-top: clamp(72px, 9vw, 120px); padding-bottom: 40px; }
.foot-cta { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-bottom: 64px; border-bottom: 1px solid var(--d-3); }
.foot-cta h2 { font-size: clamp(40px, 6vw, 88px); font-weight: 400; letter-spacing: -0.05em; line-height: 1; max-width: 820px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 48px 0; }
.foot-cols .brand { font-size: 17px; align-self: start; }
.foot-cols .brand img { width: 30px; height: 30px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--d-text-2); }
.foot-col .lbl { color: var(--text-3); }
.foot-col a:hover { color: #fff; }
.copy-line { font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.notfound .btn { align-self: flex-start; }

/* ---------- WordPress ---------- */
.bg-white { background: #fff; }
.menu-info .muted { color: var(--d-text-2); }
.log-plain { border: 0; padding-top: 0; margin-top: 20px; }
.booking-frame { width: 100%; min-height: 640px; border: 1px solid var(--line-2); border-radius: 12px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-top: 40px; }
.prose h3 { font-size: 19px; font-weight: 500; margin-top: 28px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.prose a { color: var(--blue); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.2em; }
mark.todo, .todo { background: #FFF7E0; color: inherit; border-radius: 4px; padding: 0 4px; }
/* Core-Blöcke zwischen TechHan-Blöcken bekommen eine Textbreite */
.th-content > :not(.th-block):not(.wrap):not(script):not(style) { max-width: 820px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.th-content > :not(.th-block) + :not(.th-block) { margin-top: 20px; }
.th-content > :not(.th-block):is(p, ul, ol) { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.post-list { display: flex; flex-direction: column; gap: 32px; }
.post-item h2 { margin: 6px 0 8px; }
.post-item p { color: var(--text-3); }
.nav-links { display: flex; gap: 12px; margin-top: 40px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Cookie-Banner ---------- */
.cc { position: fixed; left: 16px; bottom: 16px; z-index: 150; width: min(560px, calc(100vw - 32px)); }
.cc[hidden] { display: none; }
.cc-box { background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(11,13,16,.35); padding: 24px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); overflow: auto; }
.cc h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.cc p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cc-cats { display: flex; flex-direction: column; gap: 8px; }
.cc-cats[hidden] { display: none; }
.cc-cat { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.cc-cat input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.cc-cat span { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.cc-cat small { color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.cc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-btns .btn { flex: 1 1 auto; }
.cc-btns .btn[hidden] { display: none; }
.cc-links { display: flex; gap: 16px; }
.cc-links a { font-size: 13px; color: var(--text-3); text-decoration: underline; }
@media (max-width: 520px) { .cc { left: 8px; bottom: 8px; width: calc(100vw - 16px); } .cc-box { padding: 18px; } }
.foot-link { text-align: left; color: inherit; font-size: 15px; padding: 0; }
.foot-link:hover { color: #fff; }
.consent-embed { border: 1px dashed #C9CED4; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--bg-alt); }
.consent-embed p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.consent-embed small { font-size: 12px; color: var(--text-4); }
.consent-embed[data-mounted] { padding: 0; border: 0; background: none; }
.consent-embed .booking-frame { width: 100%; }

/* ---------- Rechtstexte ---------- */
.legal .prose h2:first-child { margin-top: 0; }
.legal .lead-note { font-size: 14px; color: var(--text-3); margin-bottom: 32px; }
.legal address { font-style: normal; }
.legal .toc { list-style: none; padding: 0; margin: 0 0 40px; columns: 2 240px; column-gap: 32px; }
.legal .toc li { font-size: 14px; padding: 3px 0; }
.legal .toc a { color: var(--text-2); text-decoration: none; }
.legal .toc a:hover { color: var(--blue); }
