/*
 * Theme „Kontor“ – seriöses Business-Theme.
 * Farben, Schriften und Maße kommen als CSS-Variablen aus den Design-Optionen (Admin → Design & Themes);
 * die Werte hier sind nur Rückfallwerte. Buttons haben bewusst keine Hover-Effekte.
 */

/* ---------- Tokens ---------- */
:root {
    --brand: #2346c8;
    --on-brand: #fff;
    --accent: #e0862f;
    --ink: #0e1a2b;
    --bg: #fff;
    --surface: #f4f6f9;
    --text: #1b2433;
    --muted: #5a6577;
    --line: #e2e6ed;
    --f-heading: 'Manrope', system-ui, sans-serif;
    --f-body: 'Inter', system-ui, sans-serif;
    --h-weight: 700;
    --fs-base: 17px;
    --h-scale: 1;
    --logo-h: 36px;
    --container: 1200px;
    --section-space: 104px;
    --radius: 14px;
    --shadow-k: 1;

    --gutter: clamp(20px, 4vw, 40px);
    --brand-soft: color-mix(in srgb, var(--brand) 10%, var(--bg));
    --card: var(--bg);
    --card-flat: var(--surface);
    --line-2: var(--line);
    --field: var(--bg);
    --shadow: 0 1px 2px rgb(15 23 42 / calc(.05 * var(--shadow-k))), 0 10px 30px -12px rgb(15 23 42 / calc(.18 * var(--shadow-k)));
    --btn-radius: 10px;
    --header-h: 72px;
}
:root[data-mode="dark"] {
    --shadow: 0 1px 2px rgb(0 0 0 / calc(.3 * var(--shadow-k))), 0 12px 32px -12px rgb(0 0 0 / calc(.6 * var(--shadow-k)));
    color-scheme: dark;
}
.shape-pill { --btn-radius: 999px; }
.shape-square { --btn-radius: 2px; }

/* Abschnitte mit eigener Fläche definieren die Tokens lokal um, alle Bausteine passen sich an */
.bg-muted { --card: var(--bg); --card-flat: var(--bg); background: var(--surface); }
.bg-dark {
    --text: #e8edf5;
    --muted: #a3aec0;
    --line: rgb(255 255 255 / .12);
    --surface: rgb(255 255 255 / .05);
    --card: rgb(255 255 255 / .04);
    --card-flat: rgb(255 255 255 / .06);
    --brand-soft: rgb(255 255 255 / .08);
    --field: rgb(255 255 255 / .06);
    background: var(--ink);
    color: var(--text);
}
.bg-brand {
    --text: var(--on-brand);
    --muted: color-mix(in srgb, var(--on-brand) 78%, transparent);
    --line: color-mix(in srgb, var(--on-brand) 24%, transparent);
    --surface: color-mix(in srgb, var(--on-brand) 10%, transparent);
    --card: color-mix(in srgb, var(--on-brand) 8%, transparent);
    --card-flat: color-mix(in srgb, var(--on-brand) 12%, transparent);
    --brand-soft: color-mix(in srgb, var(--on-brand) 14%, transparent);
    --field: color-mix(in srgb, var(--on-brand) 10%, transparent);
    --accent: var(--on-brand);
    background: var(--brand);
    color: var(--text);
}
.bg-brand .btn-primary { background: var(--on-brand); color: var(--brand); }
.bg-brand .eyebrow, .bg-brand .text-link, .bg-brand .chip-icon { color: var(--on-brand); }
.bg-brand .hl { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--f-heading);
    font-weight: var(--h-weight);
    font-synthesis-weight: none;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-xs { width: 16px; height: 16px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; padding: .6rem 1rem; color: var(--on-brand); background: var(--brand); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.bg-brand :focus-visible { outline-color: var(--on-brand); }

/* Typografie */
.display { font-size: calc(clamp(2.3rem, 1.3rem + 3.6vw, 4rem) * var(--h-scale)); line-height: 1.06; letter-spacing: -.03em; }
.h2 { font-size: calc(clamp(1.75rem, 1.2rem + 1.9vw, 2.7rem) * var(--h-scale)); }
.h3 { font-size: calc(1.35rem * var(--h-scale)); }
.hl { color: var(--accent); }
.hero .display .hl { color: inherit; } /* Hero-Überschrift einfarbig */
.lead { font-size: 1.12em; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.bg-dark .eyebrow { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.tag {
    display: inline-block;
    padding: .15em .6em;
    font-size: .72rem;
    font-style: normal;
    font-weight: 650;
    letter-spacing: .04em;
    vertical-align: middle;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 999px;
}
.bg-dark .tag { color: #fff; }
.chip-icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: calc(var(--radius) * .7);
}
.bg-dark .chip-icon { color: color-mix(in srgb, var(--brand) 50%, #fff); }

/* Buttons – ohne Hover-Effekte */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: .85em 1.35em;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--btn-radius);
    cursor: pointer;
}
.btn-primary { color: var(--on-brand); background: var(--brand); }
.btn-ghost { color: var(--text); background: transparent; border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.btn-light { color: var(--brand); background: var(--on-brand); }
.btn-sm { padding: .6em 1em; font-size: .88rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--brand); text-decoration: none; }
.bg-dark .text-link { color: color-mix(in srgb, var(--brand) 50%, #fff); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 2rem; }
.actions:empty { display: none; }

/* Karten */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cards-shadow .card { border-color: transparent; box-shadow: var(--shadow); }
.cards-flat .card { border-color: transparent; background: var(--card-flat); }
.bg-dark .card, .bg-brand .card { box-shadow: none; }
.cards-shadow .bg-dark .card, .cards-shadow .bg-brand .card { border-color: var(--line); }

/* Raster */
.grid { display: grid; gap: 24px; }
.grid--1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Checkliste */
.checklist { display: grid; gap: .8rem; margin-top: 1.75rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist .icon {
    width: 22px;
    height: 22px;
    margin-top: .15em;
    padding: 4px;
    color: var(--on-brand);
    background: var(--brand);
    border-radius: 999px;
    stroke-width: 2.5;
}
.bg-brand .checklist .icon { color: var(--brand); background: var(--on-brand); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--bg); }
.header-sticky .site-header { position: sticky; top: 0; }
.header-solid .site-header { border-bottom: 1px solid var(--line); }
.header-minimal .site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-floating .site-header { padding-top: 12px; background: transparent; }
.header-floating .header-inner {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: calc(var(--container) + 2 * var(--gutter) - 24px);
    padding-inline: 18px 12px;
}
.is-home.header-floating .site-header { margin-bottom: calc(-1 * (var(--header-h) + 12px)); }
.is-home.header-floating .sec--hero { padding-top: calc(var(--header-h) + 12px + var(--section-space) * .6); }
.header-sticky.header-solid .site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; text-decoration: none; color: var(--text); }
.brand-logo { width: auto; height: var(--logo-h); max-width: 220px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--on-brand); background: var(--brand); border-radius: 10px; }
.brand-name { font-family: var(--f-heading); font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
[data-mode="dark"] .logo-light, :root:not([data-mode="dark"]) .logo-dark { display: none; }
.site-footer .brand { color: inherit; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { padding: .5rem .8rem; font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--muted); border-radius: 8px; }
.main-nav a[aria-current] { color: var(--text); }
.main-nav .nav-cta-mobile { display: none; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.nav-cta { margin-left: 10px; }
.mode-toggle, .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}
.lang-switch { margin-left: 0; }
.mode-toggle .icon-sun, [data-mode="dark"] .mode-toggle .icon-moon { display: none; }
[data-mode="dark"] .mode-toggle .icon-sun { display: block; }
.nav-toggle { display: none; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Abschnitte ---------- */
.sec { position: relative; padding-block: var(--section-space); }
.space-compact { padding-block: calc(var(--section-space) * .6); }
.space-airy { padding-block: calc(var(--section-space) * 1.35); }
.bg-default + .bg-default { padding-top: calc(var(--section-space) * .5); }
.bg-default + .bg-default.space-compact { padding-top: calc(var(--section-space) * .3); }

.sec-head { max-width: 760px; margin-bottom: 3rem; }
.sec-head .h2 + .lead, .sec-head .display + .lead { margin-top: 1.1rem; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 3rem; }
.sec-head-row .sec-head { margin-bottom: 0; }

/* Hero */
.sec--hero { padding-top: calc(var(--section-space) * .75); overflow: hidden; }
.sec--hero.bg-default::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 70% at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
        radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
    pointer-events: none;
}
.hero { position: relative; display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.hero--centered { max-width: calc(900px + 2 * var(--gutter)); text-align: center; }
.hero--centered .eyebrow, .hero--centered .actions, .hero--centered .trust { justify-content: center; }
.hero--centered .lead { margin-inline: auto; max-width: 680px; }
.hero .display + .lead { margin-top: 1.5rem; }
.hero .lead { max-width: 620px; }
.trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2.25rem; font-size: .9rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust .icon { color: var(--brand); stroke-width: 2.5; }

.sec--hero:has(.hero-bg) { display: grid; align-items: center; min-height: min(78vh, 760px); }
.hero-bg { position: absolute; inset: 0; background: var(--ink); }
.hero-bg { overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); filter: blur(var(--blur, 0)) grayscale(var(--gray, 0)); }
.hero-bg.is-blurred img { transform: scale(1.08); } /* verhindert helle, ausgefranste Ränder */
.hero-bg::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--ov, #080e1a) calc(var(--overlay) * 100%), transparent); }
.hero-bg.ov-side::after { background: linear-gradient(90deg, color-mix(in srgb, var(--ov) calc(var(--overlay) * 100%), transparent), color-mix(in srgb, var(--ov) calc(var(--overlay) * 60%), transparent)); }
.hero-bg.ov-bottom::after { background: linear-gradient(180deg, color-mix(in srgb, var(--ov) calc(var(--overlay) * 100%), transparent), color-mix(in srgb, var(--ov) calc(min(1, var(--overlay) + .2) * 100%), transparent)); }
.sec--hero:has(.bg-h-full) { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.is-home.header-floating .sec--hero:has(.bg-h-full) { min-height: 100vh; min-height: 100svh; }
.hero--image .hero-copy { max-width: 720px; }
/* Über dem Hintergrundbild: Text, Buttons und Merkmale einheitlich hell oder dunkel (--fg);
   Buttons deckend in --fg mit Schrift in --fg-inv. Kasten und Bild rechts behalten ihre Farben. */
.sec--hero:has(.tone-light) .hero-copy { --fg: #fff; --fg-inv: var(--ink); }
.sec--hero:has(.tone-dark) .hero-copy { --fg: var(--ink); --fg-inv: #fff; }
.sec--hero:has(.hero-bg) .hero-copy { --text: var(--fg); --muted: var(--fg); color: var(--fg); }
.sec--hero:has(.hero-bg) .hero-copy .eyebrow, .sec--hero:has(.hero-bg) .hero-copy .trust, .sec--hero:has(.hero-bg) .hero-copy .trust .icon { color: var(--fg); }
.sec--hero:has(.hero-bg) .hero-copy .btn { color: var(--fg-inv); background: var(--fg); border-color: var(--fg); box-shadow: none; }
/* Hero-Buttons immer deckend (auch der zweite, sonst durchsichtige Button) */
.sec--hero .btn-ghost { background: var(--bg); }
.sec--hero.bg-dark .btn-ghost { background: var(--ink); }
.sec--hero.bg-brand .btn-ghost { background: var(--brand); }

.hero-panel { padding: 10px; background: var(--card); box-shadow: var(--shadow); }
.hero-panel-label { padding: 14px 14px 8px; font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-panel li + li { border-top: 1px solid var(--line); }
.hero-panel a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-decoration: none; }
.hero-panel-title { flex: 1; font-weight: 600; line-height: 1.35; }
.hero-panel-arrow { color: var(--muted); }
.hero-image, .media { margin: 0; overflow: hidden; border-radius: var(--radius); }
.hero-image img, .media img { width: 100%; height: 100%; object-fit: cover; }
.hero-image { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }

/* Schwerpunkt */
.focus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.focus--left .focus-copy { order: 2; }
.focus--solo { grid-template-columns: minmax(0, 820px); }
.focus .sec-head { margin-bottom: 0; }
.focus .actions { margin-top: 2.25rem; }
.focus-items { margin-top: clamp(48px, 6vw, 80px); }
.feature { display: flex; flex-direction: column; gap: .65rem; padding: 26px; }
.feature h3 { margin-top: .5rem; font-size: 1.1rem; letter-spacing: -.01em; }
.feature p { font-size: .94rem; color: var(--muted); }

.chat { margin: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.bg-dark .chat { background: color-mix(in srgb, var(--ink) 60%, #1e2a40); }
.chat-bar { display: flex; align-items: center; gap: .6rem; padding: 14px 18px; font-size: .88rem; border-bottom: 1px solid var(--line); }
.chat-dot { width: 9px; height: 9px; background: #22c55e; border-radius: 999px; box-shadow: 0 0 0 4px rgb(34 197 94 / .18); }
.chat-status { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; font-size: .8rem; color: var(--muted); }
.chat-body { display: grid; gap: 14px; padding: 22px 18px; }
.chat-msg { max-width: 86%; padding: 12px 16px; font-size: .94rem; line-height: 1.55; border-radius: 14px; }
.chat-msg--q { justify-self: end; color: var(--on-brand); background: var(--brand); border-bottom-right-radius: 4px; }
.chat-msg--a { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-source { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; padding: 4px 10px; font-size: .8rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; }
.chat-foot { display: flex; align-items: center; gap: .5rem; padding: 12px 18px; font-size: .8rem; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .35rem; }
.stat dd { margin: 0; font-family: var(--f-heading); font-size: calc(clamp(2rem, 1.4rem + 1.8vw, 2.9rem) * var(--h-scale)); font-weight: var(--h-weight); font-synthesis-weight: none; line-height: 1; letter-spacing: -.03em; color: var(--brand); }
.bg-dark .stat dd, .bg-brand .stat dd { color: inherit; }
.stat dt { font-size: .92rem; color: var(--muted); }
.stats--band .stat { padding: 8px 28px; border-left: 1px solid var(--line); }
.stats--band .stat:first-child { padding-left: 0; border-left: 0; }
.stats--cards { gap: 20px; }
.stats--cards .stat { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cards-shadow .stats--cards .stat { border-color: transparent; box-shadow: var(--shadow); }
.cards-flat .stats--cards .stat { border-color: transparent; background: var(--card-flat); }

/* Leistungen */
.svc-card { display: flex; flex-direction: column; gap: .8rem; padding: 28px; text-decoration: none; color: inherit; }
.svc-card .svc-title { margin-top: .4rem; font-family: var(--f-heading); font-size: 1.18rem; font-weight: var(--h-weight); font-synthesis-weight: none; line-height: 1.25; letter-spacing: -.015em; }
.svc-card .svc-desc { font-size: .95rem; color: var(--muted); }
.svc-card .text-link { margin-top: auto; padding-top: .6rem; font-size: .92rem; }
.svc-card:focus-visible { outline-offset: 2px; }
.svc-grid--featured .is-featured { grid-column: span 2; grid-row: span 2; justify-content: flex-end; padding: 36px; background: var(--ink); border-color: transparent; color: #e8edf5; }
.svc-grid--featured .is-featured .svc-title { font-size: calc(1.7rem * var(--h-scale)); }
.svc-grid--featured .is-featured .svc-desc { color: #a3aec0; font-size: 1rem; }
.svc-grid--featured .is-featured .chip-icon { color: #fff; background: rgb(255 255 255 / .1); }
.svc-grid--featured .is-featured .tag { color: #fff; background: rgb(255 255 255 / .12); }
.svc-grid--featured .is-featured .text-link { color: #fff; }
.bg-dark .svc-grid--featured .is-featured { background: var(--brand); }

.svc-list { border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 0; text-decoration: none; }
.svc-no { font-family: var(--f-heading); font-size: 1.1rem; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.svc-list .svc-title { display: block; font-family: var(--f-heading); font-size: calc(1.4rem * var(--h-scale)); font-weight: var(--h-weight); font-synthesis-weight: none; letter-spacing: -.02em; }
.svc-list .svc-desc { display: block; max-width: 720px; margin-top: .35rem; color: var(--muted); }
.svc-arrow { display: grid; place-items: center; width: 44px; height: 44px; color: var(--brand); border: 1px solid var(--line); border-radius: 999px; }

/* Text/Bild-Raster (Über uns, Text mit Bild) */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--right { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split--right .split-media { order: 2; }
.split-copy .sec-head { margin-bottom: 0; }
.split .media { aspect-ratio: 4 / 3.4; }
.badge-box { padding: clamp(28px, 4vw, 44px); background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.cards-flat .badge-box { box-shadow: none; }
.badge-num { font-family: var(--f-heading); font-size: calc(clamp(4rem, 3rem + 4vw, 6.5rem) * var(--h-scale)); font-weight: var(--h-weight); font-synthesis-weight: none; line-height: .9; letter-spacing: -.05em; color: var(--brand); }
.badge-label { max-width: 26ch; margin-top: .9rem; font-weight: 600; }
.badge-box blockquote { margin: 1.75rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.badge-box blockquote p { font-family: var(--f-heading); font-size: 1.15rem; line-height: 1.5; letter-spacing: -.01em; }
.badge-box blockquote footer { margin-top: .8rem; font-size: .9rem; color: var(--muted); }
.badge-box > blockquote:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose > p + p { margin-top: 1em; }
.split-copy .prose { margin-top: 1.5rem; color: var(--muted); }

/* Vorgehen */
.process--steps { display: grid; grid-template-columns: repeat(min(var(--n), 4), minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.process--steps li { position: relative; display: grid; gap: 1.1rem; align-content: start; }
.process--steps li::before { content: ""; position: absolute; top: 22px; left: 56px; right: -24px; height: 1px; background: var(--line); }
.process--steps li:last-child::before, .process--steps li:nth-child(4n)::before { display: none; }
.process-no {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-family: var(--f-heading);
    font-weight: 700;
    color: var(--brand);
    background: var(--bg);
    border: 1.5px solid var(--brand);
    border-radius: 999px;
}
.bg-muted .process-no { background: var(--surface); }
.bg-dark .process-no, .bg-brand .process-no { color: inherit; background: transparent; border-color: currentColor; }
.process h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.process p { margin-top: .5rem; font-size: .95rem; color: var(--muted); }
.process--timeline { position: relative; display: grid; gap: 36px; max-width: 760px; }
.process--timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 21px; width: 1px; background: var(--line); }
.process--timeline li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 24px; }

/* Kundenstimmen */
.quote { display: flex; flex-direction: column; margin: 0; padding: 32px; }
.quote-mark { font-family: Georgia, serif; font-size: 4rem; line-height: .6; color: var(--accent); }
.quote blockquote { margin: 1rem 0 1.5rem; }
.quote blockquote p { font-size: 1.04rem; line-height: 1.65; }
.quote figcaption { display: grid; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; }
.quote figcaption span { color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq .sec-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--f-heading); font-size: 1.1rem; font-weight: 600; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--brand); transform: rotate(90deg); transition: transform .2s; }
.faq-list details[open] summary .icon { transform: rotate(-90deg); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--muted); }

/* Blog */
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.post-image img { width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; flex: 1; flex-direction: column; gap: .6rem; padding: 24px; }
.post-body time { font-size: .82rem; color: var(--muted); }
.post-body h3, .post-body h2 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }
.post-body h2 { font-size: calc(clamp(1.5rem, 1.1rem + 1.2vw, 2rem) * var(--h-scale)); }
.post-body h3 a, .post-body h2 a { text-decoration: none; }
.post-body p { font-size: .95rem; color: var(--muted); }
.post-body .text-link { margin-top: auto; padding-top: .4rem; font-size: .92rem; }
.post-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); overflow: hidden; }
.post-feature .post-image { aspect-ratio: auto; min-height: 340px; }
.post-feature .post-body { justify-content: center; padding: clamp(28px, 4vw, 52px); }
.post-feature .eyebrow { margin-bottom: 0; }
.post-feature .btn { align-self: flex-start; margin-top: 1rem; }
.posts-heading { margin: 4rem 0 1.5rem; }
.post-hero-image { margin-bottom: 2.5rem; aspect-ratio: 16 / 9; }
.post-back { margin-top: 3rem; }

/* Handlungsaufforderung */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta p { margin-top: .75rem; max-width: 640px; color: var(--muted); }
.cta .btn { flex: none; }
.cta--boxed { padding: clamp(32px, 5vw, 64px); color: var(--on-brand); background: var(--brand); border-radius: calc(var(--radius) + 6px); }
.cta--boxed p { color: color-mix(in srgb, var(--on-brand) 82%, transparent); }
.cta--boxed .btn-light { color: var(--brand); background: var(--on-brand); }
.bg-brand .cta--boxed { background: var(--ink); }
.cta--band { padding-block: 40px; border-block: 1px solid var(--line); }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact .sec-head { margin-bottom: 0; }
.contact-card { padding: clamp(24px, 3.5vw, 40px); }
.cards-flat .bg-muted .contact-card { background: var(--bg); }

/* Formular (partials/contact_form) */
.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.contact-form .field { display: grid; gap: .4rem; min-width: 0; }
.contact-form label { font-size: .88rem; font-weight: 600; }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea {
    width: 100%;
    padding: .75rem .9rem;
    font: inherit;
    font-size: .95rem;
    color: var(--text);
    background: var(--field);
    border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
    border-radius: min(var(--btn-radius), 12px);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.contact-form small { font-size: .82rem; color: var(--muted); }
.contact-form small a { color: var(--brand); }
.field.has-error input, .field.has-error textarea { border-color: #dc2626; }
.field-error { color: #dc2626 !important; }
.field-check { grid-template-columns: auto minmax(0, 1fr) !important; align-items: start; gap: .7rem !important; }
.field-check input { width: 18px; height: 18px; margin-top: .2em; accent-color: var(--brand); }
.field-check label { font-weight: 400; font-size: .88rem; color: var(--muted); }
.field-check label a { color: var(--brand); }
.field-check .field-error { grid-column: 2; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: .8rem 1rem; font-size: .92rem; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }
.form-success { display: grid; justify-items: center; gap: .6rem; padding: 32px 8px; text-align: center; }
.form-success h3 { font-size: 1.3rem; }
.form-success p { color: var(--muted); }
.success-icon { display: grid; place-items: center; width: 56px; height: 56px; color: #fff; background: #16a34a; border-radius: 999px; }

/* ---------- Unterseiten ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 64px); background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero .container > * { max-width: 820px; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; font-size: .85rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.page-title { font-size: calc(clamp(2rem, 1.4rem + 2.4vw, 3.2rem) * var(--h-scale)); line-height: 1.1; letter-spacing: -.03em; }
.page-hero .lead { margin-top: 1rem; }
.page-hero .eyebrow { margin-bottom: .75rem; }
.updated { margin-top: 3rem; font-size: .88rem; color: var(--muted); }

.prose { line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .6em; font-size: calc(1.6rem * var(--h-scale)); }
.prose h3 { margin: 1.8em 0 .5em; font-size: calc(1.25rem * var(--h-scale)); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose ol { padding-left: 1.3em; list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand); text-underline-offset: .18em; }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.25em; border-left: 3px solid var(--brand); color: var(--muted); }
.prose code { padding: .1em .35em; font-size: .9em; background: var(--surface); border-radius: 4px; }
.prose pre { overflow-x: auto; padding: 1rem 1.25rem; background: var(--surface); border-radius: 10px; }
.prose img { border-radius: var(--radius); }

.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.service-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; }
.aside-cta { padding: 28px; }
.aside-cta h2 { font-size: 1.2rem; line-height: 1.3; }
.aside-cta p { margin: .7rem 0 1.4rem; font-size: .93rem; color: var(--muted); }
.aside-links { display: grid; gap: 4px; }
.aside-links .footer-title { margin-bottom: .6rem; }
.aside-links a { display: flex; align-items: center; gap: .8rem; padding: 8px 0; font-size: .95rem; font-weight: 500; text-decoration: none; }
.aside-links .chip-icon { width: 34px; height: 34px; }

.not-found { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.not-found-code { font-family: var(--f-heading); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--brand-soft); -webkit-text-stroke: 1.5px var(--brand); }
.not-found .page-title { margin-top: 1rem; }
.not-found .lead { margin-top: 1rem; }
.not-found .actions { justify-content: center; }

/* ---------- Portfolio ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2.5rem; }
.filter-tabs a { padding: .55rem 1.15rem; font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; }
.project-grid { gap: 28px; }
.project-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; }
.project-media { display: block; }
.project-body { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: 24px 26px 28px; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; font-size: .85rem; color: var(--muted); }
.project-title { font-family: var(--f-heading); font-size: calc(1.3rem * var(--h-scale)); font-weight: var(--h-weight); font-synthesis-weight: none; line-height: 1.25; letter-spacing: -.02em; }
.project-summary { font-size: .96rem; color: var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .35rem; }
.project-tags span { padding: .22rem .62rem; font-size: .76rem; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }

/* Gerätebühne: Website im Browser, App als Smartphones */
.device-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; aspect-ratio: 16 / 10; overflow: hidden; padding: 7% 8% 0; isolation: isolate; }
.browser { width: 100%; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 8px; height: 8px; background: var(--line); border-radius: 50%; }
.browser-url { flex: 1; min-width: 0; margin: 0 10% 0 10px; padding: 2px 10px; overflow: hidden; font-size: .7rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); border-radius: 6px; }
.browser-view { aspect-ratio: 16 / 9; overflow: hidden; }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser-empty { display: grid; place-items: center; height: 100%; padding: 1rem; font-family: var(--f-heading); font-size: 1.4rem; text-align: center; color: var(--muted); }
.device-stage--app { padding: 8% 6% 0; }
.phones { display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.phone { position: relative; flex: none; height: 112%; aspect-ratio: 9 / 19.5; margin-bottom: -16%; padding: 5px; background: #0b0d12; border-radius: 24px; box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / .14); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 19px; }
.phones--2 .phone--0 { z-index: 2; transform: rotate(-4deg); }
.phones--2 .phone--1 { margin-left: -8%; transform: translateY(8%) rotate(5deg); }
.phones--3 .phone--0 { transform: translate(14%, 10%) rotate(-7deg); }
.phones--3 .phone--1 { z-index: 2; height: 118%; }
.phones--3 .phone--2 { transform: translate(-14%, 10%) rotate(7deg); }
.app-icon { position: absolute; top: 9%; left: 6%; z-index: 3; width: 17%; max-width: 76px; aspect-ratio: 1; object-fit: cover; border-radius: 22%; box-shadow: var(--shadow), 0 0 0 1px rgb(255 255 255 / .2); }
.app-icon--solo { position: static; align-self: center; width: 30%; max-width: 140px; margin-bottom: 8%; }
.device-stage--hero { aspect-ratio: auto; padding: clamp(32px, 6vw, 72px) clamp(20px, 9vw, 140px) 0; border-radius: calc(var(--radius) + 6px); }
.device-stage--hero.device-stage--app { height: clamp(360px, 48vw, 620px); }
.device-stage--hero .app-icon { top: 12%; left: 8%; max-width: 96px; }
.device-stage--hero .phone { border-radius: 34px; padding: 7px; }
.device-stage--hero .phone img { border-radius: 27px; }

/* Bühne: große Projekte im Wechsel */
.showcase { display: grid; gap: clamp(48px, 7vw, 104px); }
.showcase-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: center; color: inherit; text-decoration: none; }
.showcase-item.is-flipped { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.showcase-item.is-flipped .project-media { order: 2; }
.showcase-item .project-media { overflow: hidden; border-radius: calc(var(--radius) + 4px); }
.showcase-copy { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.showcase-title { font-family: var(--f-heading); font-size: calc(clamp(1.7rem, 1.2rem + 1.5vw, 2.6rem) * var(--h-scale)); font-weight: var(--h-weight); font-synthesis-weight: none; line-height: 1.1; letter-spacing: -.03em; }
.showcase-copy .text-link { margin-top: .5rem; }

/* Projektseite */
.project-stage { padding-top: clamp(32px, 5vw, 64px); }
.project-facts { display: grid; gap: 1.1rem; margin: 0; padding: 26px; }
.project-facts dt { font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.project-facts dd { margin: .2rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.project-facts .project-tags { margin-top: .5rem; }
.gallery-title { margin-bottom: 1.5rem; }
.gallery { display: grid; gap: 16px; }
.gallery--website { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--app { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gallery-item { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery--website .gallery-item { aspect-ratio: 16 / 10; }
.gallery--app .gallery-item { aspect-ratio: 9 / 19.5; border-radius: 22px; }
.next-project { display: flex; flex-direction: column; gap: .4rem; padding: clamp(28px, 4vw, 48px) 0; color: inherit; text-decoration: none; border-block: 1px solid var(--line); }
.next-project .eyebrow { margin: 0; }
.next-title { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-heading); font-size: calc(clamp(1.8rem, 1.2rem + 2vw, 3rem) * var(--h-scale)); font-weight: var(--h-weight); font-synthesis-weight: none; letter-spacing: -.035em; }
.next-title .icon { width: .8em; height: .8em; }

@media (max-width: 960px) {
    .showcase-item, .showcase-item.is-flipped { grid-template-columns: minmax(0, 1fr); }
    .showcase-item.is-flipped .project-media { order: 0; }
    .project-grid.grid--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .gallery--website { grid-template-columns: minmax(0, 1fr); }
    .gallery--app { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .device-stage--hero { padding-inline: 16px; }
    .phone { border-radius: 18px; padding: 4px; }
    .phone img { border-radius: 14px; }
}

/* Kontor: ruhige Flächen in der Projektfarbe */
.device-stage { --project: var(--brand); background: linear-gradient(160deg, color-mix(in srgb, var(--project) 20%, var(--surface)), color-mix(in srgb, var(--project) 6%, var(--surface))); }
.browser { background: var(--bg); }
.browser-bar { background: var(--surface); }
.browser-url { background: var(--bg); }
.filter-tabs a[aria-current] { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }
.project-card .project-media { border-bottom: 1px solid var(--line); }
.cards-flat .project-tags span, .bg-muted .project-tags span { background: var(--bg); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 72px 32px; font-size: .94rem; }
.footer-dark .site-footer { --text: #e8edf5; --muted: #a3aec0; --line: rgb(255 255 255 / .12); color: var(--text); background: var(--ink); }
.footer-light .site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { max-width: 34ch; margin-top: 1.1rem; color: var(--muted); }
.footer-title { margin-bottom: 1rem; font-family: var(--f-body); font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-list { display: grid; gap: .55rem; }
.footer-list a { text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 56px; padding-top: 24px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-dark .brand-mark { color: var(--ink); background: #fff; }

/* ---------- Einblenden ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process--steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process--steps li::before { display: none; }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    :root { --header-h: 64px; }
    .nav-toggle { display: inline-grid; }
    .nav-cta { display: none; }
    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        z-index: 49;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 12px var(--gutter) 24px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .header-floating .main-nav { inset: calc(var(--header-h) + 18px) 12px auto; border: 1px solid var(--line); border-radius: 16px; }
    .nav-open .main-nav { display: flex; }
    .main-nav a { padding: 14px 4px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav .nav-cta-mobile { display: flex; margin-top: 16px; padding: .9em 1.2em; color: var(--on-brand); border: 0; border-radius: var(--btn-radius); }
    .header-tools { margin-left: auto; }

    .hero--split, .focus, .split, .split--right, .contact, .faq, .service-layout, .post-feature { grid-template-columns: minmax(0, 1fr); }
    .focus--left .focus-copy, .split--right .split-media { order: 0; }
    .split .split-media { max-width: 560px; }
    .hero-image { aspect-ratio: 16 / 11; }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-grid--featured .is-featured { grid-row: auto; }
    .stats--band { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
    .stats--band .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
    .stats--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq .sec-head, .service-aside { position: static; }
    .cta { flex-direction: column; align-items: flex-start; }
    .sec-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4, .process--steps, .form-row { grid-template-columns: minmax(0, 1fr); }
    .svc-grid--featured .is-featured { grid-column: auto; }
    .svc-list a { grid-template-columns: 40px minmax(0, 1fr); }
    .svc-arrow { display: none; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .mode-toggle, .nav-toggle, .lang-switch { width: 38px; min-width: 38px; height: 38px; }
    .actions .btn { flex: 1 1 auto; }
    .sec-head { margin-bottom: 2.25rem; }
}
