/* ==========================================================================
   damann.solutions – Stylesheet
   Plain CSS, mobile-first. Farbpalette aus dem Referenz-Screenshot:
   Lime #cdf546 / Fast-Schwarz #0e100c / Off-White #f4f4f0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Farben */
    --accent:        #cdf546;
    --accent-dark:   #b6dd2f;
    --accent-ink:    #14190a;

    --ink:           #0e100c;
    --ink-soft:      #191c15;
    --ink-line:      rgba(255, 255, 255, .12);

    --paper:         #f4f4f0;
    --paper-alt:     #ecece6;
    --card:          #ffffff;

    --text:          #14160f;
    --text-muted:    #6d7168;
    --text-on-dark:  #f2f3ee;
    --text-on-dark-muted: rgba(242, 243, 238, .66);

    --line:          rgba(20, 22, 15, .12);
    --line-soft:     rgba(20, 22, 15, .07);

    --danger:        #c0392b;
    --success:       #2f7d4f;

    /* Typografie */
    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

    --fs-xs:   .78rem;
    --fs-sm:   .875rem;
    --fs-base: 1rem;
    --fs-lg:   1.075rem;

    --fs-h1: clamp(2.6rem, 7.2vw, 5.6rem);
    --fs-h2: clamp(1.9rem, 3.7vw, 3.1rem);
    --fs-h3: clamp(1.15rem, 1.7vw, 1.4rem);

    /* Abstände */
    --shell:       1180px;
    --shell-pad:   clamp(1.1rem, 4vw, 2.5rem);
    --section-y:   clamp(4rem, 9vw, 7.5rem);
    --section-y-t: clamp(3rem, 6vw, 5rem);
    --gap:         clamp(1rem, 2.2vw, 1.75rem);

    /* Form */
    --radius-sm:  10px;
    --radius:     18px;
    --radius-lg:  26px;
    --radius-xl:  34px;
    --radius-pill: 999px;

    --shadow-sm:  0 1px 2px rgba(14, 16, 12, .05);
    --shadow:     0 12px 32px -18px rgba(14, 16, 12, .28);
    --shadow-lg:  0 30px 70px -40px rgba(14, 16, 12, .45);

    --header-h: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

/* Weiches Scrollen erst nach dem Laden (Klasse setzt main.js). Sonst würde
   der Browser beim Aufruf mit Anker, etwa nach dem Absenden des Formulars,
   erst oben starten und dann sichtbar nach unten gleiten. */
html.has-smooth-scroll { scroll-behavior: smooth; }

.contact__form-wrap:focus,
.contact__form-wrap .alert:focus { outline: none; }

body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img { height: auto; }

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button { cursor: pointer; }

h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -.025em;
    text-wrap: balance;
}

p { text-wrap: pretty; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
    outline: 3px solid var(--accent-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

.icon {
    width: 1em;
    height: 1em;
    flex: none;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: .8rem 1.2rem;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--shell-pad);
}

.shell--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-t); }
.section--paper { background: var(--paper); }

.section--dark {
    background: var(--ink);
    color: var(--text-on-dark);
    border-radius: var(--radius-xl);
    margin-inline: clamp(.5rem, 1.6vw, 1.25rem);
}

.section--contact { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

/* Section-Kopf: Überschrift und Einleitung untereinander, bündig mit dem
   Inhalt darunter. Keine Label-Spalte – die Überschrift trägt den Abschnitt. */
.section-head {
    display: grid;
    gap: 1rem clamp(1rem, 2.5vw, 2.5rem);
    margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

.section-head__body { max-width: 62ch; }

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: .7rem;
}

.section-lead {
    color: var(--text-muted);
    font-size: var(--fs-lg);
    max-width: 58ch;
}

.section-head--on-dark .section-lead { color: var(--text-on-dark-muted); }

.section-head--split {
    grid-template-columns: 1fr;
    align-items: end;
}

@media (min-width: 860px) {
    .section-head--split {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
}

/* --------------------------------------------------------------------------
   4. Labels / Tags / Buttons
   -------------------------------------------------------------------------- */

/* Text-Label über einer Überschrift.
   Bewusst sparsam: nur wo es Information trägt, die die Überschrift nicht
   schon hat (Hero-Ortsbezug, Fehlercode) – nicht über jedem Abschnitt.
   Kein Kasten, kein Punkt, keine Versalien. */
.eyebrow {
    width: fit-content;
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -.005em;
    color: var(--text-muted);
}

.eyebrow--on-dark { color: var(--accent); }

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.tag {
    padding: .3rem .7rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--ink-line);
    font-size: var(--fs-xs);
    font-weight: 500;
}

.tag-row--light .tag {
    background: var(--paper-alt);
    border-color: var(--line-soft);
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .72rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--text-on-dark);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .2s var(--ease), background-color .2s var(--ease),
                color .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__icon {
    font-size: 1.05em;
    transition: transform .25s var(--ease);
}
.btn:hover .btn__icon { transform: translate(2px, -2px); }

.btn--accent {
    background: var(--accent);
    color: var(--accent-ink);
}
.btn--accent:hover { background: var(--accent-dark); }

.btn--dark { background: var(--ink); color: var(--text-on-dark); }
.btn--dark:hover { background: var(--ink-soft); }

.btn--ghost {
    background: transparent;
    border-color: currentColor;
    color: inherit;
    opacity: .9;
}
.btn--ghost:hover { opacity: 1; background: rgba(255, 255, 255, .08); }

.section--paper .btn--ghost:hover { background: rgba(20, 22, 15, .06); }

.btn--sm { padding: .55rem 1rem; font-size: var(--fs-xs); }
.btn--lg { padding: .95rem 1.7rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* Ladezustand beim Absenden: Pfeil weicht drei pulsierenden Punkten */
.btn__dots { display: none; align-items: center; gap: 4px; }

.btn__dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: btn-dots 1s var(--ease) infinite;
}

.btn__dots i:nth-child(2) { animation-delay: .15s; }
.btn__dots i:nth-child(3) { animation-delay: .3s; }

.btn.is-loading { cursor: progress; transform: none; }
.btn.is-loading:disabled { opacity: 1; }
.btn.is-loading .btn__icon { display: none; }
.btn.is-loading .btn__dots { display: inline-flex; }

@keyframes btn-dots {
    0%, 80%, 100% { opacity: .3; transform: translateY(0); }
    40%           { opacity: 1;  transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .btn__dots i { animation: none; opacity: .7; }
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: var(--fs-sm);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    width: fit-content;
    transition: opacity .2s var(--ease);
}
.inline-link:hover { opacity: .65; }
.inline-link__icon { font-size: .95em; }

/* --------------------------------------------------------------------------
   5. Sticky Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: .7rem var(--shell-pad);
    background: transparent;
    transition: padding .3s var(--ease);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: var(--shell);
    margin-inline: auto;
    padding: .55rem .6rem .55rem 1.1rem;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--text-on-dark);
    border: 1px solid var(--ink-line);
    box-shadow: var(--shadow);
    transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}

.site-header.is-stuck .site-header__inner {
    background: rgba(14, 16, 12, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.02rem;
    letter-spacing: -.03em;
    margin-right: auto;
}

.brand__mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--accent);
    position: relative;
    flex: none;
}
.brand__mark::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 3px;
    background: var(--ink);
}

.brand__text { white-space: nowrap; }
.brand__text strong { font-weight: 700; }

.site-nav__list {
    display: flex;
    align-items: center;
    gap: .15rem;
}

.site-nav__link {
    display: block;
    white-space: nowrap;
    padding: .5rem .8rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-on-dark-muted);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--text-on-dark);
    background: rgba(255, 255, 255, .09);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    padding: .5rem .85rem;
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .06);
    color: var(--text-on-dark);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.nav-toggle__bars {
    display: grid;
    gap: 3px;
    width: 16px;
}
.nav-toggle__bars i {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(14, 16, 12, .5);
    backdrop-filter: blur(3px);
}

@media (max-width: 1199px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        position: fixed;
        inset: calc(var(--header-h) + .6rem) var(--shell-pad) auto;
        z-index: 95;
        padding: .6rem;
        border-radius: var(--radius-lg);
        background: var(--ink);
        border: 1px solid var(--ink-line);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .25s var(--ease), transform .25s var(--ease);
    }

    .site-nav.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .site-nav__link {
        padding: .75rem 1rem;
        border-radius: var(--radius-sm);
        font-size: var(--fs-base);
    }

    .site-header__actions .btn { display: none; }
}

@media (max-width: 420px) {
    .nav-toggle__label { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: .5rem; padding-bottom: clamp(2rem, 4vw, 3.5rem); }

.hero__card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(460px, 72vh, 680px);
    padding: clamp(1.4rem, 3.4vw, 2.75rem);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--ink);
    color: var(--text-on-dark);
}

/* Generierter Hero-Hintergrund (siehe includes/hero-backdrop.php) ---------- */
.backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--ink);
}

/* Ebenen sind höher als der Rahmen, damit die Parallax-Verschiebung
   keine Kanten freilegt. */
.backdrop__layer {
    position: absolute;
    left: -6%;
    top: -18%;
    width: 112%;
    height: 136%;
    display: block;
    will-change: transform;
    backface-visibility: hidden;
}

/* 1. Lichtstimmung – die Lime-Aufhellung sitzt rechts hinter den Ringen,
      damit die Headline links auf ruhigem, dunklem Grund bleibt. */
.backdrop__layer--glow {
    background:
        radial-gradient(50% 46% at 74% 30%, rgba(205, 245, 70, .38), transparent 64%),
        radial-gradient(38% 38% at 92% 6%, rgba(205, 245, 70, .20), transparent 68%),
        radial-gradient(46% 50% at 14% 90%, rgba(126, 196, 255, .12), transparent 70%),
        linear-gradient(158deg, #181e11 0%, #0c0f08 54%, #121808 100%);
}

/* 2. Raster */
.backdrop__layer--grid {
    background-image:
        linear-gradient(to right, rgba(242, 243, 238, .08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(242, 243, 238, .08) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(84% 82% at 58% 34%, #000 6%, transparent 78%);
            mask-image: radial-gradient(84% 82% at 58% 34%, #000 6%, transparent 78%);
}

/* 3. + 4. SVG-Ebenen */
.backdrop__layer--rings,
.backdrop__layer--wire {
    width: 112%;
    height: 136%;
}

.backdrop__layer--rings { opacity: 1; }

.backdrop__layer--wire {
    opacity: .75;
    -webkit-mask-image: linear-gradient(260deg, #000 20%, transparent 74%);
            mask-image: linear-gradient(260deg, #000 20%, transparent 74%);
}

/* 5. Punktmatrix */
.backdrop__layer--dots {
    background-image: radial-gradient(rgba(205, 245, 70, .55) 1.1px, transparent 1.2px);
    background-size: 30px 30px;
    opacity: .7;
    -webkit-mask-image: radial-gradient(54% 48% at 26% 74%, #000 0%, transparent 70%);
            mask-image: radial-gradient(54% 48% at 26% 74%, #000 0%, transparent 70%);
}

/* 6. Körnung */
.backdrop__layer--grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* 7. Abdunkelung: hält die Headline lesbar, ohne den Verlauf zu ersticken */
.backdrop__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 16, 12, .8) 0%, rgba(14, 16, 12, .44) 32%, rgba(14, 16, 12, 0) 66%),
        linear-gradient(180deg, rgba(14, 16, 12, .34) 0%, rgba(14, 16, 12, 0) 26%, rgba(14, 16, 12, .58) 100%);
}

/* Anforderung: Text im Page-Header linksbündig */
.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: clamp(1.2rem, 3vw, 2rem);
    height: 100%;
    justify-content: space-between;
    flex: 1;
}

.hero__eyebrow {
    align-self: flex-start;
    font-size: var(--fs-base);
}

.hero__title {
    font-size: var(--fs-h1);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: .96;
    margin-top: auto;
}

.hero__title span { display: block; }

.hero__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    padding-top: clamp(1rem, 2.5vw, 1.6rem);
    border-top: 1px solid var(--ink-line);
}

.hero__lead {
    max-width: 44ch;
    color: var(--text-on-dark-muted);
    font-size: var(--fs-lg);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

/* --------------------------------------------------------------------------
   7. Über mich + Fakten
   -------------------------------------------------------------------------- */
.about {
    display: grid;
    gap: clamp(1.5rem, 3.5vw, 3rem);
}

@media (min-width: 900px) {
    .about { grid-template-columns: minmax(280px, 400px) 1fr; align-items: start; }
}

.about__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.about__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 25%;
}

.about__body {
    display: grid;
    gap: 1.1rem;
    align-content: start;
    font-size: var(--fs-lg);
    color: var(--text-muted);
}

.about__body p { max-width: 62ch; }

.facts {
    display: grid;
    gap: 1px;
    margin-top: 1rem;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

@media (min-width: 620px) {
    .facts { grid-template-columns: repeat(3, 1fr); }
}

.fact {
    padding: 1.3rem 1.25rem;
    background: var(--card);
}

.fact__value {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -.04em;
    color: var(--text);
    line-height: 1;
}

.fact__suffix { color: var(--accent-dark); }

.fact__label {
    margin-top: .55rem;
    display: grid;
    gap: .1rem;
    font-size: var(--fs-sm);
}
.fact__label strong { color: var(--text); font-weight: 600; }
.fact__label span { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   8. Projekt-Strip (Startseite)
   -------------------------------------------------------------------------- */
.project-strip {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.project-card {
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--line-soft);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.project-card__link {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    position: relative;
}

.project-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-alt);
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
    transition: transform .5s var(--ease);
}

.project-card:hover .project-card__media img { transform: scale(1.05); }

.project-card__body {
    display: grid;
    gap: .2rem;
    padding: 1rem 1.15rem 1.2rem;
}

.project-card__title { font-weight: 600; letter-spacing: -.02em; }

.project-card__meta {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.project-card__arrow {
    position: absolute;
    top: .8rem;
    right: .8rem;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: .9rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.project-card:hover .project-card__arrow,
.project-card__link:focus-visible .project-card__arrow {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   9. Leistung (dunkle Sektion mit Accordion)
   -------------------------------------------------------------------------- */
.services {
    display: grid;
    gap: clamp(1.5rem, 3.5vw, 3rem);
}

@media (min-width: 940px) {
    .services { grid-template-columns: minmax(260px, 400px) 1fr; align-items: start; }
}

.services__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--ink-line);
    background: var(--ink-soft);
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}

/* Generierte Illustration: Ebenen stehen 12 % über, damit die
   Parallax-Verschiebung keine Kanten freilegt. */
.illus {
    aspect-ratio: 4 / 3;
    max-width: 100%;
    isolation: isolate;
    background: var(--ink);
}

.illus__layer {
    position: absolute;
    left: -12%;
    top: -12%;
    width: 124%;
    height: 124%;
    max-width: none;
    display: block;
    will-change: transform;
    backface-visibility: hidden;
}

.illus__layer--glow {
    background:
        radial-gradient(46% 50% at 62% 42%, rgba(205, 245, 70, .26), transparent 66%),
        radial-gradient(40% 44% at 12% 92%, rgba(126, 196, 255, .1), transparent 70%),
        linear-gradient(158deg, #181e11 0%, #0c0f08 58%, #121808 100%);
}

.illus__layer--grid {
    background-image:
        linear-gradient(to right, rgba(242, 243, 238, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(242, 243, 238, .07) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(70% 70% at 55% 45%, #000 10%, transparent 80%);
            mask-image: radial-gradient(70% 70% at 55% 45%, #000 10%, transparent 80%);
}

/* Farben hängen an Variablen je Motiv. Flächen bleiben deckend,
   damit dahinterliegende Ebenen nicht durchscheinen. */
.illus__part {
    --line: .16;
    --fill: .04;
    --accent: rgba(242, 243, 238, .22);
    --edge: rgba(242, 243, 238, .14);
}

/* Alle Leistungen zu: alle Motive in neutraler Helligkeit */
.illus:not([data-focus]) .illus__part {
    --line: .28;
    --fill: .07;
    --accent: rgba(242, 243, 238, .4);
    --edge: rgba(242, 243, 238, .22);
}

/* Geöffnete Leistung: passendes Motiv tritt hervor und leuchtet in Lime */
.illus[data-focus="0"] [data-part="0"],
.illus[data-focus="1"] [data-part="1"],
.illus[data-focus="2"] [data-part="2"],
.illus[data-focus="3"] [data-part="3"],
.illus[data-focus="4"] [data-part="4"] {
    --line: .38;
    --fill: .09;
    --accent: #cdf546;
    --edge: rgba(205, 245, 70, .75);
}

.illus__panel  { fill: #141810; stroke: var(--edge); stroke-width: 2; }
.illus__stroke { fill: none; stroke: rgba(242, 243, 238, var(--line)); stroke-width: 2.5; }
.illus__soft   { fill: rgba(242, 243, 238, var(--fill)); }
.illus__dim    { fill: rgba(242, 243, 238, var(--line)); }
.illus__accent { fill: var(--accent); }
.illus__signal { fill: none; stroke: var(--accent); }
.illus__code   { fill: var(--accent); font: 600 26px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }

.illus__panel,
.illus__stroke,
.illus__soft,
.illus__dim,
.illus__accent,
.illus__signal,
.illus__code {
    transition: fill .45s var(--ease), stroke .45s var(--ease);
}

.illus__grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@media (max-width: 939px) {
    .services__media { position: relative; top: auto; }
}

.service-list { border-top: 1px solid var(--ink-line); }

.service-list__item { border-bottom: 1px solid var(--ink-line); }

.service-list__head { font-size: inherit; font-weight: inherit; }

.service-list__trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.35rem .25rem;
    background: none;
    border: 0;
    text-align: left;
    color: var(--text-on-dark);
    transition: color .2s var(--ease);
}

.service-list__no {
    font-size: var(--fs-xs);
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .08em;
    flex: none;
}

.service-list__title {
    flex: 1;
    font-size: var(--fs-h3);
    font-weight: 600;
    letter-spacing: -.025em;
}

.service-list__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ink-line);
    font-size: .9rem;
    flex: none;
    transition: transform .3s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}

.service-list__trigger:hover .service-list__icon {
    background: rgba(255, 255, 255, .08);
}

.service-list__item.is-open .service-list__icon {
    transform: rotate(45deg);
    background: var(--accent);
    color: var(--accent-ink);
    border-color: transparent;
}

.service-list__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s var(--ease);
}

.service-list__item.is-open .service-list__panel { grid-template-rows: 1fr; }

.service-list__panel > * { overflow: hidden; }

.service-list__panel-inner {
    display: grid;
    gap: .9rem;
    padding-right: 3rem;
    color: var(--text-on-dark-muted);
}

.service-list__item.is-open .service-list__panel-inner { padding-bottom: 1.5rem; }

@media (max-width: 560px) {
    .service-list__panel-inner { padding-right: 0; }
}

/* --------------------------------------------------------------------------
   10. Bento-Grid (Warum ich)
   -------------------------------------------------------------------------- */
.bento {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.bento__card {
    display: grid;
    align-content: start;
    gap: .7rem;
    padding: clamp(1.3rem, 2.4vw, 1.9rem);
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--line-soft);
}

.bento__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--paper-alt);
    font-size: 1.25rem;
    margin-bottom: .3rem;
}

.bento__title { font-size: var(--fs-h3); }

.bento__text { color: var(--text-muted); font-size: var(--fs-sm); }

.bento__card--accent {
    background: var(--accent);
    border-color: transparent;
    color: var(--accent-ink);
}
.bento__card--accent .bento__text { color: rgba(20, 25, 10, .78); }
.bento__card--accent .bento__icon { background: rgba(20, 25, 10, .12); }

.bento__card--quote {
    background: var(--ink);
    color: var(--text-on-dark);
    border-color: transparent;
    align-content: space-between;
    gap: 1.4rem;
}

.bento__quote-icon { font-size: 1.6rem; color: var(--accent); }

.bento__card--quote blockquote p {
    font-size: clamp(1.1rem, 1.9vw, 1.45rem);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.bento__quote-foot {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ink-line);
}

.bento__quote-foot img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
}

.bento__quote-foot span { display: grid; font-size: var(--fs-sm); line-height: 1.3; }
.bento__quote-foot em { color: var(--text-on-dark-muted); font-style: normal; font-size: var(--fs-xs); }

.bento__card--audience { grid-column: 1 / -1; }

@media (min-width: 900px) {
    .bento { grid-template-columns: repeat(4, 1fr); }
    .bento__card--quote { grid-column: span 2; grid-row: span 1; }
    .bento__card--audience { grid-column: span 2; }
}

.check-list { display: grid; gap: .55rem; margin-top: .3rem; }

.check-list li {
    display: flex;
    align-items: start;
    gap: .6rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.check-list__icon {
    font-size: .95em;
    margin-top: .35em;
    color: var(--accent-dark);
    flex: none;
}

/* --------------------------------------------------------------------------
   11. Ablauf / Steps
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    counter-reset: step;
}

.step {
    position: relative;
    display: grid;
    align-content: start;
    gap: .55rem;
    padding: clamp(1.3rem, 2.3vw, 1.8rem);
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--line-soft);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.step__no {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: .3rem;
}

.step__title { font-size: var(--fs-h3); }
.step__text { color: var(--text-muted); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   12. Preise
   -------------------------------------------------------------------------- */
.plans {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    align-items: stretch;
}

@media (min-width: 880px) {
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
}

.plan {
    display: grid;
    align-content: start;
    gap: .55rem;
    padding: clamp(1.5rem, 2.6vw, 2.1rem);
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--line-soft);
}

.plan--featured {
    background: var(--accent);
    border-color: transparent;
    color: var(--accent-ink);
}

.plan__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.plan__name {
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.plan--featured .plan__name { color: rgba(20, 25, 10, .7); }

.plan__badge {
    padding: .3rem .7rem;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--accent);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.plan__price {
    display: flex;
    align-items: baseline;
    gap: .15rem;
    margin-top: .4rem;
}

.plan__amount {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1;
}

.plan__currency {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
}

.plan__unit {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: .6rem;
}
.plan--featured .plan__unit { color: rgba(20, 25, 10, .7); }

.plan__text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--line-soft);
}
.plan--featured .plan__text {
    color: rgba(20, 25, 10, .8);
    border-color: rgba(20, 25, 10, .15);
}

.check-list--plan { margin-bottom: 1.2rem; }
.plan--featured .check-list li { color: rgba(20, 25, 10, .85); }
.plan--featured .check-list__icon { color: var(--accent-ink); }

.plan .btn { margin-top: auto; }

.plans__note {
    display: flex;
    align-items: start;
    gap: .55rem;
    margin-top: 1.4rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    max-width: 70ch;
}

.plans__note-icon { font-size: 1.05em; margin-top: .3em; flex: none; color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   Angebot: Webseite mit KI (direkt unter dem Hero)
   Weiße Karte wie die Preis-Pläne, rechts das Lime-Panel des hervorgehobenen
   Plans. Keine neue Farbe, keine neue Radius-Stufe.
   -------------------------------------------------------------------------- */
.offer-section { padding-bottom: clamp(1rem, 2vw, 1.5rem); }

.offer {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(1.1rem, 2.4vw, 1.6rem);
    border-radius: var(--radius-xl);
    background: var(--card);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
}

@media (min-width: 940px) {
    .offer { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); align-items: stretch; }
}

.offer__body {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 1rem;
    padding: clamp(.4rem, 2.2vw, 1.6rem);
}

.offer__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--text);
    font-weight: 600;
}

.offer__eyebrow-icon { color: var(--accent-dark); font-size: 1.05em; }

.offer__title {
    font-size: var(--fs-h2);
    letter-spacing: -.04em;
    max-width: 20ch;
}

.offer__lead {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    max-width: 56ch;
}

.offer__points { gap: .65rem; margin-top: .2rem; }
.offer__points li { font-size: var(--fs-base); color: var(--text); }

.offer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: .6rem;
}

/* Lime-Panel mit Preis */
.offer__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: var(--accent-ink);
}

/* Feines Raster und Ring, gleiche Bildsprache wie der Hero */
.offer__panel::before,
.offer__panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.offer__panel::before {
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(20, 25, 10, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(20, 25, 10, .07) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(80% 70% at 100% 0%, #000 10%, transparent 75%);
            mask-image: radial-gradient(80% 70% at 100% 0%, #000 10%, transparent 75%);
}

.offer__panel::after {
    width: 340px;
    height: 340px;
    right: -150px;
    top: -150px;
    border-radius: 50%;
    border: 1.5px solid rgba(20, 25, 10, .16);
}

.offer__label {
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(20, 25, 10, .7);
}

.offer__price {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    margin-top: .2rem;
    line-height: 1;
}

.offer__prefix { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }

.offer__amount {
    font-size: clamp(4rem, 9vw, 6.5rem);
    font-weight: 600;
    letter-spacing: -.06em;
    font-variant-numeric: tabular-nums;
}

.offer__currency { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 600; letter-spacing: -.03em; }

.offer__note {
    font-size: var(--fs-xs);
    color: rgba(20, 25, 10, .7);
    max-width: 34ch;
}

/* Beispiel-Skizze: Wunsch als Sprechblase, darunter der Entwurf.
   Bewusst ohne Eingabefeld-, Button- oder Cursor-Optik, damit nichts
   klickbar wirkt. */
.offer__demo {
    display: grid;
    gap: .45rem;
    margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}

@media (min-width: 940px) {
    .offer__demo { margin-top: auto; }
}

.offer__demo-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(20, 25, 10, .6);
}

.offer__demo-label:not(:first-child) { margin-top: .6rem; }

.offer__wish {
    position: relative;
    width: fit-content;
    max-width: 100%;
    padding: .75rem 1rem;
    border-radius: var(--radius) var(--radius) var(--radius) 4px;
    background: rgba(255, 255, 255, .55);
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.45;
    color: var(--accent-ink);
}

.offer__result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem .6rem;
    padding: .9rem 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .35);
}

.offer__result span {
    display: block;
    height: .5rem;
    border-radius: var(--radius-pill);
    background: rgba(20, 25, 10, .16);
}

/* Skizze der erzeugten Seite: Überschrift, zwei Zeilen, zwei Kacheln */
.offer__result span:nth-child(-n+3) { grid-column: 1 / -1; }
.offer__result span:first-child { width: 46%; height: .8rem; background: rgba(20, 25, 10, .5); }
.offer__result span:nth-child(2) { width: 88%; }
.offer__result span:nth-child(3) { width: 64%; margin-bottom: .35rem; }
.offer__result span:nth-child(n+4) { height: 3.2rem; border-radius: var(--radius-sm); background: rgba(20, 25, 10, .09); }

/* --------------------------------------------------------------------------
   Angebotsseite „Webseite mit KI“
   Nutzt die Bausteine der Startseite (Bento-Karten, Steps, Plans, Kontakt)
   und ergänzt nur Raster und die dunkle SEO-/Landingpage-Sektion.
   -------------------------------------------------------------------------- */
.offer-section--page { padding-top: clamp(.75rem, 2vw, 1.5rem); padding-bottom: 0; }

.ki-features {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 960px) {
    .ki-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ki-focus {
    display: grid;
    gap: 1px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-line);
}

@media (min-width: 860px) {
    .ki-focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ki-focus__block {
    display: grid;
    align-content: start;
    gap: .75rem;
    padding: clamp(1.5rem, 3.2vw, 2.5rem);
    background: var(--ink-soft);
}

.ki-focus__no {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.ki-focus__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.035em; }

.ki-focus__text { color: var(--text-on-dark-muted); max-width: 48ch; }

.ki-focus__list { gap: .7rem; margin-top: .4rem; }
.ki-focus__list li { color: var(--text-on-dark); font-size: var(--fs-base); }
.ki-focus__list .check-list__icon { color: var(--accent); }

@media (min-width: 1100px) {
    .ki-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ki-price {
    display: grid;
    gap: var(--gap);
}

@media (min-width: 860px) {
    .ki-price { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: stretch; max-width: 980px; }
}

.ki-price__prefix { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; margin-right: .25rem; }

.ki-price .plan--featured .plan__amount { font-size: clamp(3.2rem, 7vw, 4.8rem); }

.ki-price__extras { align-content: start; }

.ki-price__extras-title { font-size: var(--fs-h3); margin-bottom: .2rem; }

.ki-price__extras .inline-link { margin-top: auto; }

/* Technologie-Leiste
   Gruppierte Pills statt einer losen Liste. Dasselbe Raster wie
   .section-head: Titel in der schmalen Spalte (bündig mit den
   Abschnitts-Pills), Gruppen in der Inhaltsspalte (bündig mit den
   Überschriften). Pills in derselben Form wie Filter und Tags. */
.stack {
    display: grid;
    gap: 1.1rem clamp(1rem, 2.5vw, 2.5rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(1.6rem, 3vw, 2.4rem);
    border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
    .stack {
        grid-template-columns: minmax(170px, 210px) 1fr;
        align-items: start;
    }
}

.stack__title {
    font-size: var(--fs-lg);
    line-height: 1.3;
    letter-spacing: -.02em;
    /* optisch auf die Pill-Zeile der Gruppen ausrichten */
    padding-top: .15rem;
}

/* Gruppen nehmen ihre natürliche Breite ein und brechen erst um,
   wenn der Platz fehlt – auf dem Desktop je Gruppe eine Zeile. */
.stack__groups {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem clamp(1.5rem, 3.5vw, 3rem);
}

.stack__group {
    display: grid;
    gap: .55rem;
    align-content: start;
    min-width: 0;
}

.stack__label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.stack__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.stack__chip {
    padding: .45rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--card);
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
/* Nach Themen gruppiert statt als Kartenstapel: Gruppentitel links, Fragen
   rechts. Eine kräftigere Linie pro Gruppe, feine Linien nur zwischen den
   Fragen einer Gruppe. */
.faq {
    display: grid;
    /* Voraussetzung für das sanfte Auf- und Zuklappen (siehe unten) */
    interpolate-size: allow-keywords;
}

.faq__group {
    display: grid;
    gap: .25rem clamp(1rem, 2.5vw, 2.5rem);
    padding-block: 1.1rem .6rem;
    border-top: 1px solid var(--line);
}

.faq__group:last-child { padding-bottom: 0; }

/* Mobil: Gruppentitel als ruhige Kategorie über der Liste – klein und
   gedämpft, damit er nicht wie eine weitere Frage wirkt. */
.faq__group-title {
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-muted);
}

@media (min-width: 860px) {
    .faq__group {
        grid-template-columns: minmax(200px, 1fr) 2.2fr;
        align-items: start;
        padding-block: .6rem;
    }

    /* Desktop: eigene Spalte trennt Titel und Fragen – hier darf er
       als Anker kräftiger sein und steht auf Höhe der ersten Frage. */
    .faq__group-title {
        padding-top: 1.05rem;
        font-size: var(--fs-lg);
        font-weight: 600;
        letter-spacing: -.02em;
        line-height: 1.3;
        color: var(--text);
    }
}

.faq__item + .faq__item { border-top: 1px solid var(--line-soft); }

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-block: .95rem;
    font-weight: 600;
    font-size: var(--fs-lg);
    line-height: 1.35;
    letter-spacing: -.02em;
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: .85rem;
    flex: none;
    transition: transform .3s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}

.faq__question:hover .faq__icon { border-color: var(--text); }

/* Lime nur für den geöffneten Zustand – die Farbe zeigt, was offen ist. */
.faq__item[open] .faq__icon {
    transform: rotate(45deg);
    background: var(--accent);
    border-color: transparent;
    color: var(--accent-ink);
}

.faq__answer {
    max-width: 68ch;
    padding: 0 3.5rem 1.2rem 0; /* rechts frei, damit Text nicht unter das Symbol läuft */
    color: var(--text-muted);
}

@media (max-width: 560px) {
    .faq__answer { padding-right: 0; }
}

/* Auf- und Zuklappen animieren, wo der Browser ::details-content kennt.
   Andere Browser klappen ohne Übergang auf – der Inhalt bleibt erreichbar. */
.faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}

.faq__item[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
    /* Die globale Regel erfasst dieses Pseudo-Element nicht. */
    .faq__item::details-content { transition: none; }
}

/* --------------------------------------------------------------------------
   14. Kontakt
   -------------------------------------------------------------------------- */
.contact {
    display: grid;
    gap: clamp(1.5rem, 3.5vw, 3rem);
}

@media (min-width: 940px) {
    .contact { grid-template-columns: minmax(250px, 340px) 1fr; align-items: start; }
}

.contact__list { display: grid; gap: 1px; background: var(--ink-line); border-radius: var(--radius); overflow: hidden; }

.contact__list li {
    display: flex;
    gap: .9rem;
    padding: 1.15rem 1.2rem;
    background: var(--ink-soft);
}

.contact__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(205, 245, 70, .14);
    color: var(--accent);
    font-size: 1.05rem;
    flex: none;
}

.contact__meta { display: grid; gap: .15rem; font-size: var(--fs-sm); line-height: 1.5; }

.contact__meta em {
    font-style: normal;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-on-dark-muted);
}

.contact__address { font-style: normal; } /* <address>-Default zurücksetzen */

.contact__meta a { font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.contact__meta a:hover { border-color: currentColor; }

.contact__form-wrap {
    padding: clamp(1.3rem, 2.8vw, 2.2rem);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--text);
}

/* Formular */
.form { display: grid; gap: 1rem; }

.form__row { display: grid; gap: 1rem; }

@media (min-width: 620px) {
    .form__row { grid-template-columns: repeat(2, 1fr); }
}

.form__field { display: grid; gap: .4rem; }

.form__field label {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.form__field input,
.form__field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-size: var(--fs-sm);
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.form__field textarea { resize: vertical; min-height: 140px; }

.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(109, 113, 104, .75); }

.form__field input:focus,
.form__field textarea:focus {
    outline: none;
    border-color: var(--accent-dark);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(205, 245, 70, .35);
}

.form__field.has-error input,
.form__field.has-error textarea { border-color: var(--danger); }

.form__error { font-size: var(--fs-xs); color: var(--danger); font-weight: 500; }

.form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.checkbox {
    display: flex;
    align-items: start;
    gap: .65rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 400;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.checkbox__box {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: .15rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: transparent;
    font-size: .7rem;
    flex: none;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.checkbox input:checked + .checkbox__box {
    background: var(--accent);
    border-color: var(--accent-dark);
    color: var(--accent-ink);
}

.checkbox input:focus-visible + .checkbox__box {
    outline: 3px solid var(--accent-dark);
    outline-offset: 2px;
}

.checkbox__text a { border-bottom: 1px solid currentColor; font-weight: 600; color: var(--text); }

.alert {
    display: flex;
    align-items: start;
    gap: .7rem;
    padding: .95rem 1.1rem;
    margin-bottom: 1.2rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    border: 1px solid;
}

.alert__icon { font-size: 1.05em; margin-top: .25em; flex: none; }

.alert--success { background: rgba(47, 125, 79, .1);  border-color: rgba(47, 125, 79, .3);  color: var(--success); }
.alert--error   { background: rgba(192, 57, 43, .08); border-color: rgba(192, 57, 43, .28); color: var(--danger); }
.alert--info    { background: var(--paper-alt);       border-color: var(--line);            color: var(--text-muted); }

/* --------------------------------------------------------------------------
   15. Page-Hero (Unterseiten) – Text linksbündig
   -------------------------------------------------------------------------- */
.page-hero {
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
    text-align: left;
}

/* Lime-Schimmer der Unterseiten: sitzt auf dem Body statt auf dem Page-Hero,
   damit er ganz oben in der Ecke hinter dem schwebenden Header beginnt und
   ohne Kante ins Grau ausläuft. Hero und erste Folgesektion bleiben
   durchsichtig, sonst würde der Verlauf an ihren Rändern abgeschnitten. */
body:not(.page--home) {
    background:
        radial-gradient(max(110vw, 44rem) 46rem at 0 0, rgba(205, 245, 70, .42) 0%, rgba(205, 245, 70, .18) 32%, rgba(205, 245, 70, .05) 52%, rgba(205, 245, 70, 0) 66%) no-repeat,
        var(--paper);
}

body:not(.page--home) .page-hero + .section--paper { background: transparent; }

.page-hero .shell { display: grid; gap: 1rem; justify-items: start; }

.page-hero__title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    letter-spacing: -.045em;
    max-width: 18ch;
}

.page-hero__lead {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    max-width: 62ch;
}

.page-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }

.page-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.75rem;
    margin-top: 1.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    width: 100%;
}

.page-hero__facts dt {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1;
}

.page-hero__facts dd {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-top: .3rem;
}

/* --------------------------------------------------------------------------
   16. Portfolio
   -------------------------------------------------------------------------- */
.portfolio-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}

.filter { display: flex; flex-wrap: wrap; gap: .45rem; }

.filter__btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--card);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.filter__btn:hover { border-color: var(--text); }

.filter__btn.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--text-on-dark);
}

.filter__count {
    font-size: var(--fs-xs);
    font-variant-numeric: tabular-nums;
    padding: .05rem .4rem;
    border-radius: var(--radius-pill);
    background: var(--paper-alt);
    color: var(--text-muted);
}

.filter__btn.is-active .filter__count { background: rgba(205, 245, 70, .2); color: var(--accent); }

.portfolio-bar__status { font-size: var(--fs-sm); color: var(--text-muted); }

.portfolio {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

@media (min-width: 1000px) {
    .portfolio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.portfolio__item { display: flex; }
.portfolio__item.is-hidden { display: none; }

.work {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--line-soft);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.work__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--paper-alt);
    overflow: hidden;
}

.work__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
    transition: transform .5s var(--ease);
}

.work:hover .work__media img { transform: scale(1.04); }

.work__badges {
    position: absolute;
    top: .7rem;
    left: .7rem;
    display: flex;
    gap: .35rem;
}

.work__badge {
    padding: .3rem .65rem;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--accent-ink);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.work__badge--muted { background: rgba(14, 16, 12, .82); color: var(--text-on-dark); }

.work__body {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding: 1.15rem 1.25rem 1.35rem;
    flex: 1;
}

.work__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}

.work__title { font-size: var(--fs-h3); }

.work__excerpt { font-size: var(--fs-sm); color: var(--text-muted); }

.work__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px solid var(--line-soft);
}

.work__offline { font-size: var(--fs-xs); color: var(--text-muted); }

.work__more[aria-expanded="true"] .btn__icon { transform: rotate(45deg); }

.work__detail {
    padding-top: .3rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    animation: reveal .3s var(--ease);
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.portfolio__empty {
    display: flex;
    align-items: center;
    gap: .6rem;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* CTA-Band */
.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
}

.cta-band__title { font-size: var(--fs-h2); }
.cta-band__lead { color: var(--text-on-dark-muted); margin-top: .5rem; max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* --------------------------------------------------------------------------
   17. Rechtstexte
   -------------------------------------------------------------------------- */
.legal {
    display: grid;
    gap: clamp(1.6rem, 3vw, 2.4rem);
    padding: clamp(1.5rem, 3.5vw, 2.8rem);
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--line-soft);
}

.legal__block { display: grid; gap: .8rem; }

.legal__heading {
    font-size: var(--fs-h3);
    padding-bottom: .55rem;
    border-bottom: 2px solid var(--accent);
    width: fit-content;
}

.legal p { color: var(--text-muted); }
.legal a { border-bottom: 1px solid currentColor; font-weight: 500; color: var(--text); }
.legal a:hover { color: var(--accent-dark); }

.legal__address {
    display: grid;
    gap: .15rem;
    font-style: normal;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--paper);
    border-left: 3px solid var(--accent);
    font-size: var(--fs-sm);
}

.legal__contact { display: grid; gap: .55rem; font-size: var(--fs-sm); }
.legal__contact li { display: flex; align-items: center; gap: .6rem; }
.legal__contact-icon { color: var(--accent-dark); font-size: 1.05em; }

.check-list--legal li { color: var(--text-muted); }

.legal__back { padding-top: .5rem; }

.error-links {
    display: grid;
    gap: .6rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.error-links a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line-soft);
    font-weight: 600;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.error-links a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.error-links__icon { color: var(--accent-dark); font-size: 1.15em; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: var(--text-on-dark);
    padding-block: clamp(3rem, 6vw, 5rem) 2rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
    border-bottom: 1px solid var(--ink-line);
}

.footer-cta__headline {
    font-size: clamp(2rem, 5vw, 3.6rem);
    letter-spacing: -.045em;
    max-width: 14ch;
}

.footer-cta__lead { color: var(--text-on-dark-muted); margin-top: .6rem; max-width: 42ch; }

.footer-grid {
    display: grid;
    gap: clamp(1.8rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 780px) {
    .footer-grid { grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(120px, 1fr)); }
}

.brand--footer { margin-right: 0; margin-bottom: .7rem; }

.footer-brand__tagline {
    color: var(--text-on-dark-muted);
    font-size: var(--fs-sm);
    margin-bottom: 1.3rem;
    max-width: 34ch;
}

.footer-contact {
    display: grid;
    gap: .6rem;
    font-size: var(--fs-sm);
    font-style: normal; /* <address> kursiviert per Browser-Default */
}

.footer-contact__row { display: flex; align-items: center; gap: .6rem; color: var(--text-on-dark-muted); }
.footer-contact__icon { color: var(--accent); font-size: 1.05em; flex: none; }
.footer-contact a { transition: color .2s var(--ease); }
.footer-contact a:hover { color: var(--accent); }

.footer-col__title {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-on-dark-muted);
    margin-bottom: .9rem;
    font-weight: 600;
}

.footer-col__list { display: grid; gap: .5rem; font-size: var(--fs-sm); }
.footer-col__list a { transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-col__list a:hover { color: var(--accent); padding-left: .25rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ink-line);
    font-size: var(--fs-xs);
    color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   19. Zum Seitenanfang
   -------------------------------------------------------------------------- */
.to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 80;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: var(--shadow);
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.to-top:hover { transform: translateY(-3px); }
.to-top__icon { font-size: 1.15rem; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   20. Scroll-Reveal & Motion
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
    html.has-smooth-scroll { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   21. Print
   -------------------------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .to-top,
    .nav-overlay,
    .hero__actions { display: none !important; }

    body { background: #fff; color: #000; }
    .section--dark { background: #fff; color: #000; border: 1px solid #ccc; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* --------------------------------------------------------------------------
   22. Korrekturen / Feinschliff
   -------------------------------------------------------------------------- */

/* [hidden] muss die display-Regeln der Komponenten überstimmen */
[hidden] { display: none !important; }

/* Nur für Screenreader und Suchmaschinen – visuell ohne jede Auswirkung.
   Wird für den regionalen Zusatz in den H1-Überschriften verwendet. */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    .hero__card { min-height: clamp(420px, 78vh, 560px); }
    .hero__foot { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { flex: 1 1 auto; }

    /* Auf kleinen Schirmen kräftiger abdunkeln – der Text nimmt
       anteilig mehr Fläche ein. */
    .backdrop__scrim {
        background: linear-gradient(180deg,
            rgba(14, 16, 12, .58) 0%, rgba(14, 16, 12, .2) 40%, rgba(14, 16, 12, .88) 100%);
    }
}

/* Parallax nur bei Zeigergeräten mit Bewegungstoleranz;
   ohne JavaScript bleiben alle Ebenen an ihrem Platz. */
@media (prefers-reduced-motion: reduce) {
    .backdrop__layer,
    .illus__layer { transform: none !important; }
}

/* Kontakt-Spalte auf gleiche Höhe wie das Formular bringen */
@media (min-width: 940px) {
    .contact__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
