/* ==========================================================================
   Miriam Roetzel – Raumgestaltung
   ========================================================================== */

/* ---------- Schriften (lokal eingebunden, DSGVO-konform) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

/* ---------- Design-Tokens ---------- */
:root {
    --bg: #faf7f2;
    --bg-tint: #f2ebe1;
    --surface: #ffffff;
    --ink: #221d1a;
    --ink-soft: #4a423c;
    --muted: #7a7067;
    --line: #e4dbcf;
    --accent: #9a5a3c;
    --accent-dark: #7b4429;
    --accent-soft: #ecdccf;
    --deep: #262120;
    --deep-ink: #efe8df;

    --font-serif: "Cormorant Garamond", "Times New Roman", serif;
    --font-sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px -24px rgba(50, 30, 15, .35);
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(72px, 10vw, 140px);
    --header-h: 84px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(16px, 1.05vw + 10px, 18px);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--accent-dark); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
strong { font-weight: 500; color: var(--ink); }

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -.01em;
    margin: 0 0 .5em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2vw, 1.85rem); }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
p { margin: 0 0 1.1em; text-wrap: pretty; }

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

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tint { background: var(--bg-tint); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.3vw, 1.25rem); color: var(--ink-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 30px; border: 1px solid var(--btn-bg); border-radius: 999px;
    background: var(--btn-bg); color: #fff;
    font: 500 .95rem/1 var(--font-sans); letter-spacing: .04em; text-decoration: none;
    cursor: pointer; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { --btn-bg: var(--accent); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-small { padding: 12px 22px; font-size: .88rem; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .92rem; letter-spacing: .04em; color: var(--ink); }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
/* Unschärfe auf Pseudo-Element, damit das mobile Menü (position: fixed) den ganzen Bildschirm füllen kann */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(250, 247, 242, .82);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 30px -20px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .header-inner { height: 68px; }
.brand img { width: clamp(160px, 16vw, 210px); height: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
    position: relative; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 400; padding-block: 6px;
}
.main-nav ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav ul a:hover::after, .main-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav ul a[aria-current="page"] { color: var(--accent-dark); }

.nav-toggle { display: none; }

@media (max-width: 1020px) {
    .nav-toggle {
        display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
        background: none; border: 0; cursor: pointer; color: var(--ink); position: relative; z-index: 60;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
        display: block; width: 26px; height: 1.5px; background: currentColor; border-radius: 2px;
        transition: transform .35s var(--ease), background .2s;
    }
    .nav-toggle-bars { position: relative; }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -8px; }
    .nav-toggle-bars::after { top: 8px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

    .main-nav {
        position: fixed; inset: 0; z-index: 55;
        flex-direction: column; justify-content: center; align-items: flex-start; gap: 36px;
        padding: 100px var(--gutter) 40px;
        background: var(--bg);
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .main-nav ul { flex-direction: column; gap: 10px; }
    .main-nav ul a { font-family: var(--font-serif); font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 500; line-height: 1.2; }
    .main-nav .btn { font-size: 1rem; padding: 16px 32px; }
    body.nav-open { overflow: hidden; }
    .brand { position: relative; z-index: 60; }
}

/* ---------- Hero (Startseite) ---------- */
.hero { padding-block: clamp(40px, 6vw, 90px) var(--section); position: relative; }
.hero::before {
    content: ""; position: absolute; right: 0; top: 0; width: 42%; height: 88%;
    background: var(--bg-tint); border-bottom-left-radius: 200px; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.hero-text h1 { margin-bottom: .35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 2em 0 2.6em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 32px; list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--line); font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-media { position: relative; aspect-ratio: 4 / 4.6; }
.hero-img { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-main { inset: 0 18% 8% 0; border-top-left-radius: 200px; }
.hero-img-small { width: 40%; aspect-ratio: 3 / 4; right: 0; bottom: 0; border: 8px solid var(--bg); }
.hero-img-main img { animation: slowzoom 18s ease-out both; }
.hero-badge {
    position: absolute; left: -26px; bottom: 16%;
    display: grid; place-items: center; text-align: center;
    width: 132px; height: 132px; border-radius: 50%;
    background: var(--ink); color: var(--deep-ink);
    font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
    box-shadow: var(--shadow);
}
.hero-badge span { align-self: end; }
.hero-badge strong { align-self: start; color: #fff; font: italic 400 1.5rem/1.1 var(--font-serif); letter-spacing: 0; text-transform: none; }

@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Über mich ---------- */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-portrait { position: relative; }
.about-portrait img { border-radius: 240px 240px var(--radius) var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }
.about-portrait::after {
    content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1;
    border: 1px solid var(--accent-soft); border-radius: 240px 240px var(--radius) var(--radius);
}
.about-portrait { z-index: 0; isolation: isolate; }
.motto {
    margin: 2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--accent);
    font: italic 400 clamp(1.5rem, 2.3vw, 2rem)/1.3 var(--font-serif); color: var(--ink);
}
.motto p { margin: 0; }
.signature { display: flex; align-items: flex-end; gap: 14px; margin-top: 1.5em; color: var(--muted); font-style: italic; font-family: var(--font-serif); font-size: 1.3rem; }
.signature img { width: 190px; }

/* ---------- Leistungen ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.service-card {
    display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: inherit;
    border: 1px solid var(--line);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.service-card figure { aspect-ratio: 4 / 3.3; overflow: hidden; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-body { position: relative; padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.service-body p { font-size: .98rem; flex: 1; }
.service-no { display: block; margin-bottom: 6px; font: italic 400 1.15rem/1 var(--font-serif); color: var(--accent); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.service-card:hover img { transform: scale(1.06); }
.service-card:hover .link-arrow { color: var(--accent); }
.service-card:hover .link-arrow::after { transform: translateX(6px); }

/* ---------- Ablauf ---------- */
.process { background: var(--deep); color: var(--deep-ink); }
.process h2, .process h3 { color: #fff; }
.process .eyebrow { color: #d9a98c; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.step p { color: rgba(239, 232, 223, .75); font-size: .98rem; margin: 0; }
.step-no {
    display: block; font: italic 400 3.6rem/1 var(--font-serif); color: #d9a98c; margin-bottom: 18px;
}

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 17vw, 240px); gap: clamp(12px, 1.6vw, 20px); }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); display: block; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.gallery-item::after {
    content: "+"; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.4rem; font-weight: 300;
    opacity: 0; transform: scale(.7); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.gallery-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(200px, 22vw, 300px); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
    background: rgba(20, 16, 14, .92); padding: 24px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img { max-width: min(1400px, 100%); max-height: 86vh; width: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-btn {
    position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.08); color: #fff; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center;
    transition: background .2s;
}
.lightbox-btn:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: .9rem; padding-inline: 80px; }

/* ---------- Unterseiten ---------- */
.page-hero { padding-block: clamp(32px, 5vw, 70px) clamp(40px, 6vw, 90px); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.page-hero-img { border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; animation: slowzoom 18s ease-out both; }
.page-hero .btn { margin-top: 1em; }
.page-hero-compact { padding-bottom: 0; }
.page-hero-compact .lead { max-width: 680px; }

.breadcrumb { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 28px; letter-spacing: .03em; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.feature-list { display: grid; gap: clamp(72px, 10vw, 140px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature-reverse .feature-img { order: 2; }
.feature-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-img-tall { aspect-ratio: 4 / 5; }

.check-list { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); font-weight: 400; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 500; }

.tag-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tag-cloud li {
    padding: 12px 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
    color: var(--ink); font-size: .98rem; transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.tag-cloud li:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }

/* ---------- Kontakt ---------- */
.contact { background: var(--bg-tint); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-cards { list-style: none; margin: 2.2em 0 0; padding: 0; display: grid; gap: 12px; }
.contact-card {
    display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
    transition: border-color .3s, transform .3s var(--ease);
}
a.contact-card:hover { border-color: var(--accent); transform: translateX(4px); color: var(--ink); }
.contact-card svg { width: 44px; height: 44px; padding: 11px; flex: none; border-radius: 50%; background: var(--accent-soft); fill: none; stroke: var(--accent-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-card span { display: flex; flex-direction: column; line-height: 1.35; font-weight: 400; word-break: break-word; }
.contact-card small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

.contact-form {
    background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px);
    box-shadow: var(--shadow); display: grid; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: .85rem; font-weight: 500; color: var(--ink); letter-spacing: .02em; padding: 0; margin-bottom: 8px; }
.field label { margin-bottom: 0; }
.field input, .field textarea {
    width: 100%; font: inherit; font-weight: 400; color: var(--ink);
    padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .82rem; font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
    font-size: .88rem; font-weight: 400; color: var(--ink-soft); cursor: pointer; transition: all .2s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip span:hover { border-color: var(--accent); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; line-height: 1.55; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent.has-error { color: #b3261e; }

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

.form-status { margin: 0; font-size: .95rem; font-weight: 400; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 14px 18px; border-radius: var(--radius-sm); background: #e8f1e6; color: #2f5a2a; }
.form-status.is-error { padding: 14px 18px; border-radius: var(--radius-sm); background: #f8e5e2; color: #8a2a1f; }

.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Rechtstexte ---------- */
.section-legal { padding-top: clamp(40px, 5vw, 64px); }
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.note { color: var(--muted); font-size: .92rem; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(239, 232, 223, .7); font-size: .95rem; padding-top: clamp(56px, 7vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { width: 200px; filter: invert(1) hue-rotate(180deg); margin-bottom: 22px; }
.footer-brand p { max-width: 380px; }
.footer-title { font: 500 .78rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(239, 232, 223, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
    padding-block: 26px; padding-right: calc(var(--gutter) + 60px); border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; }

/* ---------- Scroll-Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .hero-grid, .page-hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero::before { width: 100%; height: 55%; top: auto; bottom: 0; border-radius: 160px 0 0 0; }
    .hero-media { max-width: 560px; width: 100%; margin-inline: auto; }
    .hero-badge { left: 0; }
    .page-hero-img { max-width: 520px; aspect-ratio: 4 / 3.6; }
    .about-portrait { max-width: 460px; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .service-grid > :last-child { grid-column: 1 / -1; }
    .service-grid > :last-child figure { aspect-ratio: 16 / 7; }
    .steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    :root { --header-h: 70px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-grid > :last-child figure { aspect-ratio: 4 / 3.3; }
    .feature, .feature-reverse { grid-template-columns: 1fr; }
    .feature-reverse .feature-img { order: 0; }
    .form-row { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
    .gallery .gallery-item:nth-child(n+7) { display: none; }
    .gallery-3 { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .hero-badge { width: 104px; height: 104px; font-size: .62rem; }
    .hero-badge strong { font-size: 1.2rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
    .lightbox-caption { bottom: 84px; padding-inline: 16px; }
}
