/* ABM Tischlertechnik – Startseite */
/* Manrope (SIL Open Font License, siehe assets/fonts/OFL.txt) – lokal eingebunden, keine Verbindung zu Google */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
    --lime: #a1c51a;
    --lime-dark: #86a614;
    --lime-soft: #f1f6df;
    --lime-text: #5a720c;
    --charcoal: #575656;
    --ink: #2b2a2a;
    --text: #3d3c3c;
    --muted: #6f6d6b;
    --bg: #ffffff;
    --bg-alt: #f6f5f2;
    --line: #e7e5e0;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(43,42,42,.18);
    --nav-h: 84px;
    --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--lime-text); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--lime); }
.eyebrow--light { color: #dbe9a6; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 700; font-size: 15px; text-decoration: none;
    transition: background .2s, color .2s, transform .2s var(--ease), border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { background: #b2d62b; }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Navigation */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50;
    height: var(--nav-h);
    transition: background .3s, box-shadow .3s, height .3s;
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__brand {
    display: flex; align-items: center;
    background: #fff; border-radius: 12px; padding: 8px 12px;
    transition: padding .3s, box-shadow .3s;
}
.nav__brand img { height: 42px; width: auto; transition: height .3s; }
.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__menu a {
    color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
    padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav__menu a:hover { background: rgba(255,255,255,.14); }
.nav__menu a.nav__cta { background: var(--lime); color: var(--ink); margin-left: 8px; }
.nav__menu a.nav__cta:hover { background: #b2d62b; }

.nav.is-scrolled { height: 68px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled .nav__brand { padding: 0; }
.nav.is-scrolled .nav__brand img { height: 36px; }
.nav.is-scrolled .nav__menu a { color: var(--ink); }
.nav.is-scrolled .nav__menu a:hover { background: var(--bg-alt); }
.nav.is-scrolled .nav__menu a.nav__cta:hover { background: #b2d62b; }

.nav__toggle {
    display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
    background: #fff; cursor: pointer; padding: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav.is-scrolled .nav__toggle { background: var(--bg-alt); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slide {
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.06);
    transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
    background:
        linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,0) 28%),
        linear-gradient(0deg, rgba(20,20,20,.82) 0%, rgba(20,20,20,.35) 45%, rgba(20,20,20,0) 75%);
}
.hero__content { position: relative; padding-bottom: clamp(72px, 12vh, 140px); padding-top: 140px; }
.hero__title { color: #fff; font-size: clamp(42px, 7vw, 88px); font-weight: 800; letter-spacing: -.035em; max-width: 12ch; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; margin: 22px 0 32px; color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__dots { position: absolute; right: 24px; bottom: 32px; display: flex; gap: 8px; }
.hero__dots button {
    width: 28px; height: 4px; border: 0; padding: 0; border-radius: 4px; cursor: pointer;
    background: rgba(255,255,255,.4); transition: background .3s, width .3s;
}
.hero__dots button.is-active { background: var(--lime); width: 44px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding-top: 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 24px; }
.section__title--light { color: #fff; }
.lead { font-size: 19px; color: var(--text); }
.muted { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__card {
    background: var(--bg-alt); border-radius: var(--radius); padding: 40px;
    border: 1px solid var(--line);
}
.stat { display: flex; align-items: baseline; gap: 14px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.stat__num { font-size: 64px; font-weight: 800; line-height: 1; color: var(--charcoal); letter-spacing: -.04em; }
.stat__label { font-weight: 600; color: var(--muted); max-width: 12ch; line-height: 1.35; }
.about__card-title { font-size: 18px; margin-bottom: 16px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 36px; font-weight: 500; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: 3px;
    width: 22px; height: 22px; border-radius: 6px; background: var(--lime);
}
.checklist li::after {
    content: ""; position: absolute; left: 6px; top: 9px; width: 10px; height: 6px;
    border-left: 2.4px solid #fff; border-bottom: 2.4px solid #fff; transform: rotate(-45deg);
}

/* Areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area {
    position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
    text-decoration: none; color: #fff; background: var(--ink);
}
.area img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,20,20,.7), rgba(20,20,20,0) 55%); }
.area__label {
    position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 24px; font-weight: 800; letter-spacing: -.02em;
}
.area__arrow {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--lime); color: var(--ink); font-size: 18px;
    transition: transform .3s var(--ease);
}
.area:hover img { transform: scale(1.06); }
.area:hover .area__arrow { transform: translateX(4px); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
    position: relative; background: #fff; border-radius: var(--radius); padding: 40px 34px 34px;
    box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -16px rgba(43,42,42,.25); }
.service__step { position: absolute; top: 30px; right: 32px; font-weight: 800; font-size: 14px; color: #c9c6c0; letter-spacing: .08em; }
.service__icon {
    width: 60px; height: 60px; border-radius: 16px; background: var(--lime-soft);
    display: grid; place-items: center; margin-bottom: 24px;
}
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--lime-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 23px; margin-bottom: 14px; }
.service p { color: var(--muted); font-size: 16px; margin: 0; }

/* Contact */
.contact {
    background: var(--ink); color: #fff; border-radius: 28px;
    padding: clamp(40px, 6vw, 72px);
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
    position: relative; overflow: hidden;
}
.contact::before {
    content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
    border-radius: 40px; background: var(--lime); opacity: .12; transform: rotate(12deg);
}
.contact .section__title { margin: 0; }
.contact__links { display: grid; gap: 14px; position: relative; }
.contact__item {
    display: flex; align-items: center; gap: 18px; text-decoration: none;
    padding: 20px 22px; border-radius: 16px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.contact__item:hover { background: rgba(255,255,255,.1); border-color: var(--lime); transform: translateX(4px); }
.contact__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--lime); display: grid; place-items: center; }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.6); font-weight: 600; }
.contact__value { display: block; font-size: clamp(17px, 2vw, 21px); font-weight: 700; word-break: break-word; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 15px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { text-decoration: none; font-weight: 600; color: var(--text); }
.footer__links a:hover { color: var(--lime-text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Focus */
a:focus-visible, button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* Responsive */
@media (max-width: 960px) {
    .about, .contact { grid-template-columns: 1fr; }
    .services { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
    .areas { grid-template-columns: 1fr 1fr; }
    .areas .area:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
}
@media (max-width: 820px) {
    :root { --nav-h: 72px; }
    .nav__brand img { height: 34px; }
    .nav__toggle { display: flex; }
    .nav__menu {
        position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    }
    .nav__menu a, .nav.is-scrolled .nav__menu a { color: var(--ink); padding: 14px 16px; border-radius: 12px; }
    .nav__menu a:hover { background: var(--bg-alt); }
    .nav__menu a.nav__cta { margin: 6px 0 0; text-align: center; }
    .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
    .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .areas { grid-template-columns: 1fr; }
    .areas .area:last-child { aspect-ratio: 4 / 3; }
    .about__card { padding: 28px 24px; }
    .service { padding: 32px 24px 28px; }
    .hero__dots { display: none; }
    .footer__inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0s !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Unterseiten ---------- */
.nav__menu a[aria-current="page"]:not(.nav__cta) { box-shadow: inset 0 -2px 0 var(--lime); border-radius: 0; }
@media (max-width: 820px) {
    .nav__menu a[aria-current="page"]:not(.nav__cta) { box-shadow: inset 3px 0 0 var(--lime); background: var(--bg-alt); border-radius: 0 12px 12px 0; }
}

.page-hero { position: relative; min-height: 62vh; min-height: 62svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink) center / cover no-repeat; }
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,0) 30%),
        linear-gradient(0deg, rgba(20,20,20,.8) 0%, rgba(20,20,20,.2) 60%, rgba(20,20,20,0) 85%);
}
.page-hero--small { min-height: 40vh; min-height: 40svh; }
.page-hero__content { position: relative; padding-top: 130px; padding-bottom: clamp(48px, 8vh, 88px); }
.page-hero__title { color: #fff; font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -.035em; }
.page-hero__lead { margin: 16px 0 0; max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.88); }

.prose p, .prose li { color: var(--muted); }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose h4 { font-size: 17px; margin: 22px 0 8px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--lime-dark); font-weight: 700; }
.prose strong, .prose b { color: var(--ink); }
.prose a { color: var(--lime-text); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Text + Bild */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split + .split { margin-top: clamp(64px, 9vw, 112px); }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media::after {
    content: ""; position: absolute; z-index: -1; width: 46%; height: 46%; right: -18px; bottom: -18px;
    border-radius: var(--radius); background: var(--lime-soft);
}
.split--reverse .split__media::after { right: auto; left: -18px; }
.caption { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn .arrow { margin-left: 10px; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Funktionstüren */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.feature {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px; text-align: left;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
    font: inherit; color: inherit; cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature h3 { font-size: 18px; }
.feature__more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--lime-text); }

/* Info-Karten */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 8px; }
.card h3 { font-size: 17px; color: var(--charcoal); margin-bottom: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.card p { color: var(--muted); }
.card .btn { align-self: flex-start; margin-top: auto; }

/* Versprechen */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 8px 0 0; }
.promise { background: var(--bg-alt); border-radius: var(--radius); padding: 30px 28px; }
.promise .service__icon { width: 52px; height: 52px; margin-bottom: 18px; background: #fff; }
.promise h3 { font-size: 19px; margin-bottom: 8px; }
.promise p { color: var(--muted); margin: 0; font-size: 16px; }
.note { text-align: center; max-width: 720px; margin: 48px auto 0; font-size: 18px; }

/* Galerie */
.gallery { position: relative; }
.gallery__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    border-radius: var(--radius); scrollbar-width: none; background: var(--ink);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; position: relative; }
.gallery__slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery__slide figcaption {
    position: absolute; left: 20px; bottom: 18px; padding: 6px 14px; border-radius: 999px;
    background: rgba(20,20,20,.6); backdrop-filter: blur(6px); color: #fff; font-size: 14px; font-weight: 600;
}
.gallery--contain .gallery__track { background: #fff; border: 1px solid var(--line); }
.gallery--contain .gallery__slide img { object-fit: contain; aspect-ratio: 4 / 3; padding: 24px; }
.gallery--square .gallery__slide img { aspect-ratio: 4 / 3; }
.gallery__btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.18);
    display: grid; place-items: center; font-size: 20px; transition: background .2s, transform .2s;
}
.gallery__btn:hover { background: var(--lime); }
.gallery__btn--prev { left: 16px; }
.gallery__btn--next { right: 16px; }
.gallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.gallery__dots button { width: 8px; height: 8px; border-radius: 8px; border: 0; padding: 0; cursor: pointer; background: #d4d1cb; transition: width .3s, background .3s; }
.gallery__dots button.is-active { width: 28px; background: var(--lime); }

.gallery__slide img { cursor: zoom-in; }

/* Vollbild-Ansicht */
.lightbox {
    width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(15,15,15,.96); color: #fff;
}
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox[open] { animation: lightboxIn .25s var(--ease); }
@keyframes lightboxIn { from { opacity: 0; } }
.lightbox .gallery { height: 100%; }
.lightbox .gallery__track { height: 100%; border-radius: 0; background: transparent; }
.lightbox .gallery__slide { height: 100%; display: flex; align-items: center; justify-content: center; padding: 72px 80px 64px; }
.lightbox .gallery__slide img { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 8px; cursor: default; }
.lightbox .gallery__dots { position: absolute; left: 0; right: 0; bottom: 24px; margin: 0; }
.lightbox .gallery__dots button { background: rgba(255,255,255,.35); }
.lightbox .gallery__dots button.is-active { background: var(--lime); }
.lightbox__close { position: absolute; top: 16px; right: 16px; z-index: 2; }
@media (max-width: 680px) {
    .lightbox .gallery__slide { padding: 64px 12px 56px; }
    .lightbox .gallery__btn { top: auto; bottom: 10px; transform: none; }
}

/* Dialog */
.modal {
    width: min(860px, calc(100% - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
    padding: 0; border: 0; border-radius: 24px; color: var(--text);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.modal::backdrop { background: rgba(20,20,20,.6); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal__head {
    position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 28px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-size: 24px; }
.modal__close {
    flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--bg-alt); color: var(--ink); font-size: 22px; line-height: 1; transition: background .2s;
}
.modal__close:hover { background: var(--lime); }
.modal__body { padding: 28px clamp(24px, 5vw, 48px) 40px; }
.modal__body > img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; margin-bottom: 24px; }
.modal__body .gallery { margin: 20px 0 28px; }
.modal__body .gallery__btn { width: 40px; height: 40px; font-size: 17px; }
.def { display: grid; gap: 12px; margin: 0 0 1em; }
.def > div { background: var(--bg-alt); border-radius: 12px; padding: 16px 18px; }
.def b { display: block; margin-bottom: 2px; }
.def p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0 !important; }
.chips li { margin: 0; background: var(--lime-soft); color: var(--ink) !important; font-weight: 600; padding: 8px 14px; border-radius: 999px; font-size: 15px; }
body.has-modal { overflow: hidden; }

.credit { font-size: 14px; color: var(--muted); margin-top: 40px; }
.credit a { color: var(--muted); }

/* Rechtliches */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h3 { font-size: 18px; }
.legal p { color: var(--text); }
.legal-card { background: var(--bg-alt); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 8px; }
.legal-card p:last-child { margin: 0; }
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.legal-grid div { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.legal-grid span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.legal-grid strong { color: var(--ink); }

@media (max-width: 1060px) {
    .features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .split, .cards { grid-template-columns: 1fr; }
    .split--reverse > :first-child { order: 0; }
    .split__media::after { display: none; }
    .promises { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .features { grid-template-columns: 1fr 1fr; }
    .legal-grid { grid-template-columns: 1fr; }
    .gallery__btn { width: 40px; height: 40px; font-size: 17px; }
    .gallery__btn--prev { left: 10px; }
    .gallery__btn--next { right: 10px; }
    .gallery__slide img { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
    .features { grid-template-columns: 1fr; }
    .feature { flex-direction: row; align-items: center; padding: 18px; }
    .feature .service__icon { margin: 0; width: 52px; height: 52px; flex: none; }
    .feature__more { display: none; }
    .modal { width: 100%; max-height: 100dvh; border-radius: 20px 20px 0 0; margin-bottom: 0; }
    .modal__head { padding: 16px 20px; }
    .modal__head h2 { font-size: 20px; }
}

/* Referenzen */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.filters button {
    font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
    padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    transition: background .2s, border-color .2s, color .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ref { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ref[hidden] { display: none; }
.ref .gallery__track { border-radius: 0; }
.ref .gallery__slide img, .ref__placeholder { aspect-ratio: 4 / 3; }
.ref .gallery__dots { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; }
.ref .gallery__dots button { background: rgba(255,255,255,.6); }
.ref .gallery__dots button.is-active { background: var(--lime); }
.ref .gallery__btn { width: 38px; height: 38px; font-size: 16px; opacity: 0; transition: opacity .2s, background .2s; }
.ref:hover .gallery__btn, .ref .gallery__btn:focus-visible { opacity: 1; }
@media (hover: none) { .ref .gallery__btn { opacity: 1; } }
.ref__placeholder {
    display: grid; place-items: center; width: 100%;
    background: repeating-linear-gradient(135deg, var(--bg-alt) 0 14px, #eeece7 14px 28px);
    color: var(--muted); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
}
.ref__body { padding: 24px 26px 28px; }
.ref__tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime-text); background: var(--lime-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.ref h3 { font-size: 21px; margin-bottom: 4px; }
.ref__meta { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.ref__body p:last-child { color: var(--muted); font-size: 16px; margin: 0; }
@media (max-width: 960px) { .refs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .refs { grid-template-columns: 1fr; } }
