/* ==========================================================================
   Reinstein Möbel — gemeinsames Stylesheet
   Startseite + Impressum + Datenschutz + AGB
   Keine externen Schriften (DSGVO) — ausschliesslich System-Fonts.
   ========================================================================== */

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ========== TOKENS ========== */
:root {
    /* Marke — unverändert */
    --green-dark: #1a3a1a;
    --green-mid:  #2a5a2a;
    --gold:       #c8a84e;
    --gold-light: #dcc374;

    /* Rollen */
    --ink:         #14140f;
    --muted:       #6f6b63;
    --white:       #ffffff;
    --surface:     #ffffff;
    --surface-alt: #faf8f4;
    --line:        #e6e1d8;
    --on-dark:     rgba(255,255,255,0.78);

    /* Typografie */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;

    /* Abstände (4px-Basis) */
    --sp-1: 0.5rem;
    --sp-2: 0.75rem;
    --sp-3: 1rem;
    --sp-4: 1.5rem;
    --sp-5: 2rem;
    --sp-6: 2.5rem;
    --sp-7: 3.5rem;
    --sp-8: 5rem;
    --sp-9: 7rem;

    /* Form */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(20,20,15,0.06);
    --shadow: 0 6px 24px rgba(20,20,15,0.08);
    --shadow-lg: 0 18px 48px rgba(20,20,15,0.14);
    --ring: 0 0 0 3px rgba(200,168,78,0.35);
    --transition: color 0.25s ease, background-color 0.25s ease,
                  border-color 0.25s ease, transform 0.25s ease,
                  box-shadow 0.25s ease, opacity 0.25s ease;

    /* Layout */
    --max-width: 1160px;
    --nav-h: 72px;
    --z-nav: 1000;
}

/* ========== BASIS ========== */
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    font-size: 16.5px;
    color: var(--ink);
    line-height: 1.68;
    background: var(--surface-alt);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--green-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* Sichtbarer Fokus für Tastaturbedienung */
:focus-visible {
    outline: 2px solid var(--green-dark);
    outline-offset: 2px;
    border-radius: 2px;
}
.nav :focus-visible,
.hero :focus-visible,
.about :focus-visible,
.shop-teaser :focus-visible,
.footer :focus-visible { outline-color: var(--gold); }

/* Sprungmarke zum Inhalt */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--sp-3);
    z-index: 10000;
    background: var(--green-dark);
    color: var(--white);
    padding: var(--sp-2) var(--sp-4);
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 600;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-nav);
    background: rgba(26, 58, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 24px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
    background: rgba(26, 58, 26, 0.99);
    box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 42px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; list-style: none; gap: 32px; }
.nav-links a {
    color: rgba(255,255,255,0.82);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav .nav-cta {
    background: var(--gold);
    color: var(--green-dark);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--gold-light); color: var(--green-dark); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 26px; height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: var(--nav-h);
    background: #11100e;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 38%;
}
/* Neutraler Scrim — kein Grün, kein brightness-Filter.
   Zwei Ebenen: links kräftig (dort steht der Text), rechts auslaufend,
   dazu ein Verlauf nach unten. Das Foto bleibt rechts ein Foto. */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(10,10,9,0.58) 0%,
            rgba(10,10,9,0.50) 38%,
            rgba(10,10,9,0.32) 60%,
            rgba(10,10,9,0.06) 80%,
            rgba(10,10,9,0.00) 92%),
        linear-gradient(180deg,
            rgba(12,12,10,0.38) 0%,
            rgba(12,12,10,0.16) 28%,
            rgba(12,12,10,0.52) 66%,
            rgba(12,12,10,0.88) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px clamp(3.5rem, 9vh, 7rem);
    color: var(--white);
}
.hero-copy { max-width: 760px; }
.hero-badge {
    display: inline-block;
    background: rgba(200,168,78,0.14);
    border: 1px solid rgba(200,168,78,0.55);
    color: var(--gold-light);
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: var(--sp-4);
}
.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-4);
    font-weight: 700;
    text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255,255,255,0.88);
    margin-bottom: var(--sp-6);
    max-width: 560px;
}
.hero-buttons { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
/* Kleiner, zurückhaltender Hinweis auf dem Hero-Foto */
.ai-badge {
    position: absolute;
    top: calc(var(--nav-h) + 16px);
    right: 24px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(10,10,9,0.52);
    border: 1px solid rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.88);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}
.ai-badge svg {
    width: 13px;
    height: 13px;
    fill: var(--gold-light);
    flex-shrink: 0;
}
.ai-badge:hover,
.ai-badge:focus-visible {
    background: rgba(10,10,9,0.78);
    border-color: rgba(200,168,78,0.7);
    color: var(--white);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    padding: 15px 32px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}
.btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--gold);
    color: var(--green-dark);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(200,168,78,0.30);
}
.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--white);
    border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.16);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========== SECTION-GRUNDGERÜST ========== */
section { padding: clamp(4rem, 9vw, 7rem) 24px; }
section[id] { scroll-margin-top: var(--nav-h); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4vw, 3rem);
    color: var(--green-dark);
    margin-bottom: var(--sp-3);
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: var(--sp-7);
}
.section-subtitle.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title.center, .section-label.center { text-align: center; }

/* ========== LEISTUNGEN ========== */
.services { background: var(--surface); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-4);
}
.service-card {
    position: relative;
    background: var(--surface-alt);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 52px; height: 52px;
    background: var(--green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-4);
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 2; }
.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--green-dark);
    margin-bottom: var(--sp-2);
}
.service-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }

/* ========== ARBEITSWEISE ========== */
.process { background: var(--surface-alt); }
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    position: relative;
}
.process-step { text-align: center; position: relative; }
.process-number {
    width: 58px; height: 58px;
    background: var(--surface);
    border: 2px solid var(--gold);
    color: var(--green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto var(--sp-4);
    font-family: var(--font-serif);
    position: relative;
    z-index: 1;
}
.process-step h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--green-dark);
    margin-bottom: var(--sp-1);
}
.process-step p { font-size: 0.92rem; color: var(--muted); }
.process-connector {
    position: absolute;
    top: 29px;
    left: calc(50% + 40px);
    right: calc(-50% + 40px);
    height: 1px;
    background: linear-gradient(90deg, rgba(200,168,78,0.45) 0%, rgba(200,168,78,0.45) 100%);
}

/* ========== ÜBER UNS ========== */
.about { background: var(--green-dark); color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-text .section-label { color: var(--gold); }
.about-text .section-title { color: var(--white); }
.about-text > p { color: var(--on-dark); margin-bottom: var(--sp-3); max-width: 56ch; }
.about-text strong { color: var(--white); }
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
    margin-top: var(--sp-6);
    padding-top: var(--sp-5);
    border-top: 1px solid rgba(255,255,255,0.12);
}
.stat { text-align: left; }
.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.6vw, 2.7rem);
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--on-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--sp-1);
}
.about-image-wrapper { display: flex; align-items: center; justify-content: center; }
.polaroid {
    position: relative;
    background: var(--surface-alt);
    padding: 14px 14px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: rotate(-1.2deg);
    transition: var(--transition);
    max-width: 460px;
    width: 100%;
    margin: 0;
}
.polaroid:hover { transform: rotate(0deg) scale(1.015); }
.polaroid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
}
.polaroid figcaption {
    padding: var(--sp-3) var(--sp-2) var(--sp-4);
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--green-dark);
    font-size: 0.98rem;
    line-height: 1.45;
}
.polaroid figcaption small {
    display: block;
    margin-top: var(--sp-1);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* ========== KONTAKT ========== */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 5vw, 4rem); }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-5); }
.contact-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.contact-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; stroke: var(--green-dark); fill: none; stroke-width: 2; }
.contact-item h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 2px;
}
.contact-item p { font-size: 0.98rem; color: var(--ink); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.form-group { display: flex; flex-direction: column; }
.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--surface);
    transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a8a49c; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: var(--ring);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-checkbox { display: flex; gap: 10px; align-items: flex-start; }
.form-checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.form-checkbox label { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.form-checkbox label a { text-decoration: underline; }
.form-submit {
    background: var(--green-dark);
    color: var(--white);
    border: 1px solid var(--green-dark);
    padding: 15px 36px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}
.form-submit:hover { background: var(--green-mid); border-color: var(--green-mid); transform: translateY(-2px); }
.form-status {
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    background: #fdf0ef;
    border: 1px solid #e6b3ae;
    color: #8a2b23;
    font-size: 0.92rem;
    line-height: 1.55;
}
.form-status:focus { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-note { font-size: 0.78rem; color: var(--muted); }

/* ========== SHOP-HINWEIS ========== */
.shop-teaser { background: var(--surface-alt); text-align: center; }
.shop-teaser .section-inner {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: clamp(2.5rem, 6vw, 4.5rem) 24px;
    box-shadow: var(--shadow-sm);
}
.shop-teaser .section-subtitle { margin-bottom: var(--sp-5); }
.shop-teaser .btn { margin-top: 0; }

/* ========== FOOTER ========== */
.footer {
    background: #14140f;
    color: var(--on-dark);
    padding: var(--sp-8) 24px var(--sp-4);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-6);
    padding-bottom: var(--sp-6);
    border-bottom: 1px solid rgba(255,255,255,0.09);
}
.footer-logo { height: 50px; width: auto; display: block; margin-bottom: var(--sp-3); }
.footer-brand p { font-size: 0.9rem; line-height: 1.65; }
.footer h4 {
    color: var(--gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: var(--sp-3);
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--on-dark); font-size: 0.9rem; }
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--sp-4);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: var(--sp-2);
}
.footer-bottom a { color: rgba(255,255,255,0.55); margin-left: var(--sp-3); }
.footer-bottom a:hover { color: var(--gold); }
.footer-ai {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-1) var(--sp-3);
    padding-top: var(--sp-4);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
}
.footer-ai .heart {
    color: #e2554f;
    font-size: 0.9em;
}
.footer-ai a {
    color: rgba(255,255,255,0.72);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-ai a:hover { color: var(--gold); }

/* ========== WHATSAPP-KONTAKT ==========
   Fester Kontakt-Knopf unten rechts. Dunkle Schrift auf dem WhatsApp-Gruen
   statt Weiss: Weiss auf #25d366 kaeme nur auf 1,99:1, dunkelgruen auf 7,3:1. */
.wa-btn {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 950;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px 13px 17px;
    background: #25d366;
    color: #06301a;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(11,20,15,0.28);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: var(--transition), bottom 0.3s ease;
}
.wa-btn svg { width: 24px; height: 24px; flex-shrink: 0; fill: currentColor; }
.wa-btn:hover {
    background: #1fbe5b;
    color: #06301a;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(11,20,15,0.34);
}
.wa-btn:active { transform: translateY(0); }
.wa-btn:focus-visible { outline-color: #25d366; }

@media (max-width: 600px) {
    .wa-btn { right: 16px; padding: 14px; }
    /* Platz, damit der feste Knopf den letzten Footer-Text nicht verdeckt */
    .footer { padding-bottom: 96px; }
    /* Text bleibt fuer Screenreader erhalten, wird nur visuell ausgeblendet */
    .wa-btn span {
        position: absolute;
        width: 1px; height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* ========== RECHTSSEITEN ========== */
.legal-header {
    background: var(--green-dark);
    color: var(--white);
    padding: var(--sp-6) 24px;
}
.legal-header-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
}
.legal-header img { height: 42px; width: auto; }
.legal-header span {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.legal-main { padding: clamp(2.5rem, 6vw, 4.5rem) 24px var(--sp-9); }
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 3.5rem);
    box-shadow: var(--shadow-sm);
}
.legal-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--green-dark);
    margin-bottom: var(--sp-2);
    padding-bottom: var(--sp-4);
    border-bottom: 2px solid var(--gold);
    overflow-wrap: break-word;
    hyphens: auto;
}
.legal-content .legal-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: var(--sp-6);
}
.legal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--green-dark);
    margin: var(--sp-6) 0 var(--sp-2);
}
.legal-content h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: var(--sp-4) 0 var(--sp-1);
}
.legal-content p { margin-bottom: var(--sp-3); color: #3a3a34; }
.legal-content ul, .legal-content ol { margin: 0 0 var(--sp-3) 1.3rem; }
.legal-content li { margin-bottom: var(--sp-1); color: #3a3a34; }
.legal-content p, .legal-content li, .legal-content em { overflow-wrap: break-word; }
.legal-content a { text-decoration: underline; }
.legal-content strong { color: var(--ink); }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    margin-top: var(--sp-6);
    padding: 11px 24px;
    background: var(--green-dark);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
}
.back-link:hover { background: var(--green-mid); color: var(--white); }

/* ========== ANIMATIONEN ==========
   Eingeblendet wird nur, wenn JavaScript laeuft (html.js). Ohne JS ist
   aller Inhalt sofort sichtbar — kein unsichtbarer Text bei Skriptfehler. */
.fade-in {
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc(var(--i, 0) * 70ms);
}
.js .fade-in { opacity: 0; transform: translateY(18px); }
.js .fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .process-steps { gap: var(--sp-3); }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    /* Schmaler Viewport: der Text laeuft weiter nach rechts,
       der horizontale Scrim muss deshalb breiter greifen. */
    .hero::after {
        background:
            linear-gradient(90deg,
                rgba(10,10,9,0.60) 0%,
                rgba(10,10,9,0.46) 55%,
                rgba(10,10,9,0.24) 100%),
            linear-gradient(180deg,
                rgba(12,12,10,0.44) 0%,
                rgba(12,12,10,0.26) 26%,
                rgba(12,12,10,0.58) 66%,
                rgba(12,12,10,0.90) 100%);
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--green-dark);
        padding: var(--sp-4) 24px;
        gap: var(--sp-3);
        border-bottom: 3px solid var(--gold);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.mobile-open a { font-size: 1rem; }
    .nav-links.mobile-open .nav-cta { width: 100%; text-align: center; }

    .about-grid { grid-template-columns: 1fr; }
    .about-image-wrapper { order: -1; }
    .contact-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-6); }
    .process-connector { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
    .process-steps { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; gap: var(--sp-3); text-align: left; }
    .form-submit { width: 100%; }
    .legal-header-inner { justify-content: center; text-align: center; }
    .ai-badge { top: calc(var(--nav-h) + 10px); right: 16px; font-size: 0.65rem; padding: 5px 10px; }
    .footer-ai { flex-direction: column; align-items: flex-start; }
}

/* Bewegung reduzieren respektieren */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in { opacity: 1; transform: none; }
    .js .fade-in { opacity: 1; transform: none; }
}
