/* Startseite: Hero mit Terminal, Prozess-Scroller, Scroll-Animationen.
   Effekte bleiben ruhig und respektieren prefers-reduced-motion. */

/* ---------- Scroll-Animation ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Abschnittsnummer ---------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: .875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: .8125rem;
    letter-spacing: .02em;
}

.kicker b {
    color: var(--brand);
    font-weight: 600;
}

.kicker::after {
    content: '';
    width: 2.5rem;
    height: 1px;
    background: var(--line-strong);
}

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem);
    border-bottom: 1px solid var(--line);
}

/* feines Punktraster, zur Mitte hin ausgeblendet */
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1.5px);
    background-size: var(--grid, 22px) var(--grid, 22px);
    mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
    opacity: .9;
}

.home-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 90%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent);
    filter: blur(20px);
    pointer-events: none;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.home-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.625rem);
    letter-spacing: -.035em;
}

.home-hero h1 em {
    font-style: normal;
    color: var(--brand);
}

.home-hero__lead {
    margin-top: 1.25rem;
    max-width: 34rem;
    color: var(--text-muted);
    font-size: 1.1875rem;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

/* Person direkt im Hero */
.person {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.person__photo {
    position: relative;
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
}

.person__photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.person__photo::after {
    content: '';
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: .75rem;
    height: .75rem;
    border: 2px solid var(--bg);
    border-radius: 50%;
    background: #22C55E;
}

.person__name {
    font-weight: 600;
}

.person__links {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    color: var(--text-muted);
    font-size: .9375rem;
}

.person__links a {
    color: var(--text-muted);
    text-decoration: none;
}

.person__links a:hover {
    color: var(--brand);
}

@media (max-width: 58rem) {
    .home-hero__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Terminal-Widget ---------- */
.term {
    --t-bg: #FBFCFD;
    --t-fg: #1A2028;
    --t-bar: #F3F6F8;
    --t-line: var(--line);
    --t-dot: #D5DBE2;
    --t-muted: #5B6573;
    --t-idle: #C5CCD4;
    --t-prompt: #007DB3;
    --t-ok: #16A34A;
    --t-key: #7C3AED;
    --t-cmd-bg: #F7F9FB;
    --t-btn: #2A3340;
    --t-btn-line: var(--line-strong);
    --t-btn-hover: #007DB3;
    --t-hint: #6B7582;
    --t-scroll: #D5DBE2;
    --t-shadow: 0 8px 28px rgba(20, 24, 31, .06);
    --t-busy: #B45309;
    --t-live: #15803D;
    --t-type: #007DB3;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--t-bg);
    color: var(--t-fg);
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.65;
    box-shadow: var(--t-shadow);
}

[data-theme="dark"] .term {
    --t-bg: #080B10;
    --t-fg: #D6DEE8;
    --t-bar: #10151C;
    --t-line: #1C232D;
    --t-dot: #2A323D;
    --t-muted: #7D8896;
    --t-idle: #3A4350;
    --t-prompt: #4CC9FF;
    --t-ok: #4ADE80;
    --t-key: #C4B5FD;
    --t-cmd-bg: #0E131A;
    --t-btn: #AFC0D2;
    --t-btn-line: #263040;
    --t-btn-hover: #fff;
    --t-hint: #5E6A78;
    --t-scroll: #2A323D;
    --t-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
    --t-busy: #F5B83D;
    --t-live: #22C55E;
    --t-type: #4CC9FF;
}

.term__bar {
    display: flex;
    align-items: center;
    gap: .375rem;
    height: 2.25rem;
    padding-inline: .875rem;
    border-bottom: 1px solid var(--t-line);
    background: var(--t-bar);
}

.term__bar i {
    width: .625rem;
    height: .625rem;
    border-radius: 50%;
    background: var(--t-dot);
}

.term__bar span {
    margin-left: .5rem;
    color: var(--t-muted);
    font-size: .75rem;
}

.term__status {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    color: var(--t-muted);
    font-size: .75rem;
    transition: color .3s;
}

.term__status::before {
    content: '';
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--t-idle);
    transition: background-color .3s;
}

.term.is-typing .term__status {
    color: var(--t-type);
}

.term.is-typing .term__status::before {
    background: var(--t-type);
    animation: term-blink 1s steps(2) infinite;
}

.term.is-busy .term__status {
    color: var(--t-busy);
}

.term.is-busy .term__status::before {
    background: var(--t-busy);
    animation: term-blink 1s steps(2) infinite;
}

.term.is-live .term__status {
    color: var(--t-live);
}

.term.is-live .term__status::before {
    background: var(--t-live);
}

.term__body {
    height: 17.5rem;
    overflow-y: auto;
    padding: 1rem 1.125rem;
    scrollbar-width: thin;
    scrollbar-color: var(--t-scroll) transparent;
}

.term__out {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font: inherit;
}

.term__out .p {
    color: var(--t-prompt);
}

.term__out .m {
    color: var(--t-muted);
}

.term__out .ok {
    color: var(--t-ok);
}

.term__out .k {
    color: var(--t-key);
}

.term__caret {
    display: inline-block;
    width: .55em;
    height: 1.1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: var(--t-prompt);
    animation: term-blink 1.1s steps(2) infinite;
}

.term__cmds {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    padding: .75rem 1rem;
    border-top: 1px solid var(--t-line);
    background: var(--t-cmd-bg);
}

.term__cmds button {
    padding: .3125rem .625rem;
    border: 1px solid var(--t-btn-line);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--t-btn);
    font: inherit;
    font-size: .8125rem;
    cursor: pointer;
    transition: border-color .15s, color .15s, background-color .15s;
}

.term__cmds button:hover,
.term__cmds button:focus-visible {
    border-color: var(--t-prompt);
    color: var(--t-btn-hover);
}

.term__cmds button:disabled {
    opacity: .45;
    cursor: default;
}

.term__cmds span {
    align-self: center;
    margin-right: .25rem;
    color: var(--t-hint);
    font-size: .75rem;
}

[data-theme="light"] .term__cmds button:hover,
[data-theme="light"] .term__cmds button:focus-visible {
    background: var(--brand-soft);
}

/* Erfolg: Lichtschimmer ueber den Rahmen, zwei Pulse */
.term::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        0 0 0 2px #22C55E,
        0 0 28px color-mix(in srgb, #22C55E 70%, transparent),
        0 0 90px color-mix(in srgb, #22C55E 45%, transparent);
    opacity: 0;
}

.term.is-flash::after {
    animation: term-flash 1.9s ease-out forwards;
}

@keyframes term-flash {
    0% { opacity: 0; }
    10% { opacity: 1; }
    38% { opacity: .35; }
    58% { opacity: 1; }
    100% { opacity: 0; }
}

.burst {
    position: fixed;
    z-index: 300;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    pointer-events: none;
    box-shadow: 0 0 10px currentColor;
    animation: burst 1.4s cubic-bezier(.15, .75, .25, 1) forwards;
}

@keyframes burst {
    to {
        transform: translate(var(--x), var(--y)) rotate(var(--r));
        opacity: 0;
    }
}

@keyframes term-blink {
    50% {
        opacity: 0;
    }
}

.term-hint {
    margin-top: .75rem;
    color: var(--text-muted);
    font-size: .875rem;
}

/* ---------- Ueber mich ---------- */
.intro {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.intro__portrait {
    position: relative;
    overflow: hidden;
    max-width: 22rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-subtle);
    aspect-ratio: 4 / 5;
}

.intro__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro__tag {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    padding: .375rem .625rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(6px);
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-muted);
}

.intro h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.intro p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

.intro p strong {
    color: var(--text);
    font-weight: 600;
}

.services {
    display: grid;
    gap: .75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.services li {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.125rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .2s, transform .2s var(--ease);
}

.services li:hover {
    border-color: var(--brand);
    transform: translateX(4px);
}

.services h3 {
    font-size: 1.0625rem;
    letter-spacing: -.005em;
}

.services p {
    margin: .125rem 0 0;
    font-size: .9375rem;
}

.services a {
    color: var(--brand);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 58rem) {
    .intro {
        grid-template-columns: 1fr;
    }

    .intro__portrait {
        max-width: 14rem;
    }
}

@media (max-width: 34rem) {
    .services li {
        grid-template-columns: 2.5rem minmax(0, 1fr);
    }

    .services a {
        grid-column: 2;
    }
}

/* ---------- Prozess: Schritte links, Code-Panel rechts (sticky) ---------- */
.process {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4.5rem);
}

.process__steps {
    position: relative;
    margin: 0;
    padding: 0 0 0 2rem;
    list-style: none;
}

/* Fortschrittslinie */
.process__steps::before,
.process__line {
    content: '';
    position: absolute;
    left: .4375rem;
    top: .5rem;
    bottom: .5rem;
    width: 2px;
    border-radius: 2px;
    background: var(--line);
}

.process__line {
    bottom: auto;
    height: calc(var(--p, 0) * (100% - 1rem));
    background: var(--brand);
    transition: height .15s linear;
}

.process__step {
    position: relative;
    min-height: 42vh;
    padding-bottom: 3rem;
    opacity: .45;
    transition: opacity .4s;
}

.process__step:last-child {
    min-height: 0;
    padding-bottom: 0;
}

.process__step.is-active,
.process__step.is-done {
    opacity: 1;
}

.process__step::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: .3rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    background: var(--bg);
    transition: border-color .3s, background-color .3s;
}

.process__step.is-active::before,
.process__step.is-done::before {
    border-color: var(--brand);
    background: var(--brand);
}

.process__num {
    display: block;
    margin-bottom: .5rem;
    color: var(--brand);
    font-family: var(--font-mono);
    font-size: .875rem;
    font-weight: 600;
}

.process__step h3 {
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
}

.process__step p {
    margin-top: .75rem;
    max-width: 30rem;
    color: var(--text-muted);
}

.process__step ul {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.process__panel {
    position: sticky;
    top: 6rem;
    align-self: start;
}

.code {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: .8125rem;
    line-height: 1.7;
}

.code__tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    background: var(--bg-subtle);
}

.code__tabs button {
    padding: .625rem 1rem;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: .75rem;
    cursor: pointer;
}

.code__tabs button[aria-selected="true"] {
    background: var(--surface);
    color: var(--text);
    box-shadow: inset 0 -2px 0 var(--brand);
}

.code__pane {
    min-height: 19rem;
    padding: 1.125rem 1.25rem;
    margin: 0;
    white-space: pre;
    overflow-x: auto;
    color: var(--text);
}

.code__pane[hidden] {
    display: none;
}

.code__pane.is-in {
    animation: pane-in .45s var(--ease);
}

.code .c { color: var(--text-muted); }
.code .k { color: #8B5CF6; }
.code .s { color: #0E9F6E; }
.code .n { color: var(--brand); }
.code .ok { color: #16A34A; font-weight: 600; }

[data-theme="dark"] .code .k { color: #C4B5FD; }
[data-theme="dark"] .code .s { color: #6EE7B7; }
[data-theme="dark"] .code .ok { color: #4ADE80; }

.code__foot {
    display: flex;
    justify-content: space-between;
    padding: .5rem 1.25rem;
    border-top: 1px solid var(--line);
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: .6875rem;
}

@keyframes pane-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

@media (max-width: 58rem) {
    .process {
        grid-template-columns: 1fr;
    }

    .process__step {
        min-height: 0;
        opacity: 1;
    }

    .process__panel {
        position: static;
    }
}

/* ---------- Kontakt-Teaser zwischen den Abschnitten ---------- */
.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--brand) 9%, transparent), transparent 60%),
        var(--surface);
}

.cta-band p {
    font-size: 1.125rem;
    font-weight: 600;
}

.cta-band p span {
    display: block;
    color: var(--text-muted);
    font-size: .9375rem;
    font-weight: 400;
}

/* Bild in Case-Karten leicht zoomen */
.case-card__media img {
    transition: transform .6s var(--ease);
}

.case-card:hover .case-card__media img {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .process__step {
        opacity: 1;
    }
}

/* ---------- Hero zentriert: Logo + Taetigkeiten ---------- */
.home-hero--center {
    text-align: center;
}

.home-hero--center::before {
    mask-image: radial-gradient(60% 65% at 50% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(60% 65% at 50% 40%, #000 0%, transparent 75%);
}

.home-hero--center::after {
    left: 20%;
    right: auto;
    top: -10%;
    width: 60%;
    height: 80%;
}

.hero-logo {
    width: min(62%, 17rem);
    margin: 0 auto clamp(1.25rem, 3vw, 2rem);
}

.hero-logo img {
    width: 100%;
    height: auto;
}

.home-hero--center h1 {
    max-width: 46rem;
    margin-inline: auto;
    font-size: clamp(2rem, 4.4vw, 3.25rem);
}

.home-hero--center .home-hero__lead {
    margin-inline: auto;
    max-width: 38rem;
}

.home-hero--center .home-hero__actions {
    justify-content: center;
}

.caps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.caps button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4375rem .875rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    color: var(--text-muted);
    font-size: .9375rem;
    font-weight: 500;
    transition: color .4s, border-color .4s, background-color .4s;
}

.caps button::before {
    content: '';
    width: .4375rem;
    height: .4375rem;
    border-radius: 50%;
    background: var(--line-strong);
    transition: background-color .4s, box-shadow .4s;
}

.caps button.is-on {
    border-color: color-mix(in srgb, var(--brand) 55%, transparent);
    background: var(--brand-soft);
    color: var(--text);
}

.caps button.is-on::before {
    background: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}

.home-hero--center .person {
    justify-content: center;
    max-width: 34rem;
    margin-inline: auto;
    text-align: left;
}

/* Ueber mich mit Terminal rechts */
.intro--term {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
}

/* ---------- Morph-Ueberschrift ---------- */
.morph-h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1em;
}

.morph.morph--lead {
    color: var(--text);
}

.morph {
    position: relative;
    display: block;
    width: 100%;
    height: 1.2em;
    color: var(--brand);
    filter: url(#nm-morph) blur(.4px);
}

.morph__a,
.morph__b {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    user-select: none;
}

.morph-filter {
    position: absolute;
    width: 0;
    height: 0;
}

/* Logo: leichter Schwebe-Effekt beim Scrollen */
.hero-logo img {
    will-change: transform, opacity;
    transform: translateY(calc(var(--sy, 0) * -.12px)) scale(calc(1 - var(--sy, 0) * .00025));
    opacity: calc(1 - var(--sy, 0) * .0012);
}

.process > * {
    min-width: 0;
}

.term__bar > span:not(.term__status) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 58rem) {
    .intro--term {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .morph {
        filter: none;
    }

    .hero-logo img {
        transform: none;
        opacity: 1;
    }
}

/* ---------- Feinschliff mobil ---------- */
.person__name small {
    display: block;
    color: var(--text-muted);
    font-size: .8125rem;
    font-weight: 400;
}

/* Befehle immer in einer Zeile, seitlich wischbar */
.term__cmds {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.term__cmds::-webkit-scrollbar {
    display: none;
}

.term__cmds button,
.term__cmds span {
    flex: none;
}

/* Archiv-Karte: ruhige Grafik statt alter Screenshot */
.archive-art {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.25rem 1.5rem;
    background:
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(135deg, var(--brand-soft), var(--bg-subtle));
    font-family: var(--font-mono);
}

.archive-art strong {
    color: var(--brand);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -.02em;
}

.archive-art span {
    color: var(--text-muted);
    font-size: .8125rem;
    line-height: 1.8;
}

/* Prozess mobil: Beispiel je Schritt zum Aufklappen, kein Sticky-Panel */
.step-code {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.step-code summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .625rem .875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    list-style: none;
    cursor: pointer;
}

.step-code summary::-webkit-details-marker {
    display: none;
}

.step-code summary::after {
    content: '+';
    color: var(--brand);
    font-size: 1rem;
}

.step-code[open] summary {
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.step-code[open] summary::after {
    content: '−';
}

.step-code pre {
    min-height: 0;
    padding: .875rem;
    font-size: .75rem;
}

@media (min-width: 58.01rem) {
    .step-code {
        display: none;
    }
}

@media (max-width: 58rem) {
    .process__panel {
        display: none;
    }

    .process__step {
        padding-bottom: 2.25rem;
    }

    .term__body {
        height: 13rem;
    }

    .term__cmds span {
        display: none;
    }

    .facts {
        grid-template-columns: repeat(3, minmax(0, auto));
        gap: .75rem 1.5rem;
    }

    .facts strong {
        font-size: 1.125rem;
    }

    .facts span {
        font-size: .75rem;
    }

    .product__actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 30rem) {
    .term__cmds {
        gap: .3125rem;
        padding: .625rem .75rem;
    }

    .term__cmds button {
        padding: .3125rem .5rem;
        font-size: .75rem;
    }
}

@media (max-width: 58rem) {
    .facts {
        gap: .75rem 1rem;
    }

    .facts span {
        white-space: nowrap;
    }
}

/* ---------- Direktkontakt im Hero (vor allem mobil) ---------- */
.quick {
    display: none;
}

@media (max-width: 52rem) {
    .quick {
        display: block;
        max-width: 26rem;
        margin: 1.5rem auto 0;
    }

    .quick__main {
        width: 100%;
    }

    .quick__alt {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: .375rem 1rem;
        margin-top: .875rem;
        color: var(--text-muted);
        font-size: .875rem;
    }

    .quick__alt a {
        display: inline-flex;
        align-items: center;
        gap: .375rem;
        color: var(--text-muted);
        font-weight: 500;
        text-decoration: none;
    }

    .quick__alt a:hover {
        color: var(--brand);
    }

    .quick__alt svg {
        width: .9375rem;
        height: .9375rem;
    }

    /* Button "Projekt anfragen" steht mobil schon oben */
    .home-hero__actions {
        display: none;
    }

    /* Telefon und Mail stehen schon in den Buttons */
    .home-hero .person__links {
        display: none;
    }

    /* Header kommt erst nach dem Einstieg, kein doppeltes Logo */
    body.home .site-header {
        position: fixed;
        left: 0;
        right: 0;
        transform: translateY(-100%);
        transition: transform .3s var(--ease);
    }

    body.home .site-header.is-shown {
        transform: none;
    }

    body.home .home-hero {
        padding-top: 2.5rem;
    }

    /* brandbill: Bild oben wie bei den Projekt-Karten */
    .product__media {
        order: -1;
        padding: 1rem 1rem 0;
        border-top: 0;
        border-bottom: 1px solid var(--line);
    }

    .product__media .frame {
        border-right: 1px solid var(--line);
        border-radius: var(--radius) var(--radius) 0 0;
    }
}

@media (max-width: 26rem) {
    .quick__label {
        display: none;
    }
}

/* ---------- Spotlight: Raster leuchtet um den Mauszeiger auf ---------- */
.home-hero {
    --grid: 22px;
}

.hero-spot {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s;
    background:
        radial-gradient(240px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
        radial-gradient(circle, var(--brand) 1.25px, transparent 1.75px) 0 0 / var(--grid) var(--grid);
    mask-image: radial-gradient(170px circle at var(--mx, 50%) var(--my, 30%), #000 0%, rgba(0, 0, 0, .3) 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(170px circle at var(--mx, 50%) var(--my, 30%), #000 0%, rgba(0, 0, 0, .3) 50%, transparent 100%);
}

.home-hero.is-lit .hero-spot {
    opacity: 1;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
    .hero-spot {
        display: none;
    }
}

/* Taetigkeiten: anklickbar, Info darunter */
.caps button {
    font: inherit;
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
}

.caps button:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.cap-info {
    position: relative;
    max-width: 36rem;
    min-height: 4.75rem;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: .9375rem;
}

.cap-info__body {
    animation: pane-in .4s var(--ease);
}

.cap-info__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem 1.25rem;
    margin-top: .375rem;
    font-size: .875rem;
    font-weight: 600;
}

.cap-info__links a:not(.link-arrow) {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: .2em;
}

@media (max-width: 52rem) {
    .cap-info {
        min-height: 6.5rem;
        padding-inline: .5rem;
    }
}

/* ---------- FAQ + Anfrage-Builder ---------- */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.faq-grid .faq {
    max-width: none;
}

.builder {
    position: sticky;
    top: 6rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.builder__bar {
    display: flex;
    justify-content: space-between;
    padding: .625rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: .75rem;
}

.builder__hint {
    color: var(--brand);
}

.builder__body {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.builder__title {
    font-size: 1.125rem;
    font-weight: 600;
}

.builder__q {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.builder__q legend {
    width: 100%;
    margin-bottom: .375rem;
    padding: 0;
    color: var(--text-muted);
    font-size: .8125rem;
    font-weight: 600;
}

.builder__q button {
    padding: .375rem .75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
    transition: color .15s, border-color .15s, background-color .15s;
}

.builder__q button:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.builder__q button[aria-pressed="true"] {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}

.builder__out {
    margin: 0;
    padding: .875rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-subtle);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: .8125rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.builder__out .k { color: #8B5CF6; }
.builder__out .s { color: #0E9F6E; }
.builder__out .m { color: var(--text-muted); }
[data-theme="dark"] .builder__out .k { color: #C4B5FD; }
[data-theme="dark"] .builder__out .s { color: #6EE7B7; }

.builder__go:disabled {
    opacity: .5;
    cursor: default;
}

@media (max-width: 58rem) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .builder {
        position: static;
    }
}

/* Builder kompakter */
.builder__body { gap: .75rem; padding: 1rem; }
.builder__q { gap: .3125rem; }
.builder__q legend { margin-bottom: .25rem; font-size: .75rem; }
.builder__q button { padding: .25rem .625rem; font-size: .8125rem; }
.builder__out { padding: .625rem .75rem; font-size: .75rem; line-height: 1.6; }
.builder__go { justify-self: start; min-height: 2.25rem; font-size: .875rem; }

/* Morph-Zeilen: laengste Zeile ("digitale Plattformen.") muss auf schmale Handys passen */
@media (max-width: 30rem) {
    .home-hero h1.morph-h1 {
        font-size: min(2.25rem, 8vw);
    }
}
