/* Maid Umzüge – Design-System "freundlich & nahbar" */

/* Lokal eingebundene Schrift (kein Google-Fonts-Fremdaufruf, siehe Datenschutzerklärung) */
@font-face {
    font-family: 'Nunito';
    src: url('/core-assets/fonts/nunito-latin-variable.woff2') format('woff2-variations'),
         url('/core-assets/fonts/nunito-latin-variable.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Farben aus dem Stoiber-Logo (Schild/Löwe + Schriftzug) abgeleitet */
    --color-accent: #1A74B5;
    --color-accent-dark: #0F5E96;
    --color-accent-light: #29A3E0;
    --color-bg: #F7F9FB;
    --color-bg-alt: #EAF1F7;
    --color-sky: #DCEEFA;
    --color-card: #FFFFFF;
    --color-text: #1E2A33;
    --color-text-muted: #5C6B76;
    --color-border: #DCE6ED;
    --gradient: linear-gradient(135deg, #1A74B5 0%, #29A3E0 100%);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 8px 24px rgba(20, 34, 46, 0.08);
    --shadow-lift: 0 18px 40px rgba(15, 94, 150, 0.18);
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent-dark); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 { line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(29, 127, 196, 0.28);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: 0 14px 26px rgba(29, 127, 196, 0.34); }
.btn-outline {
    background: #fff;
    color: var(--color-accent-dark);
    border: 2px solid var(--color-accent);
    box-shadow: none;
}
.btn-outline:hover { background: var(--color-accent); color: #fff; }
.btn-white { background: #fff; color: var(--color-accent-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.btn-white:hover { background: var(--color-bg-alt); color: var(--color-accent-dark); }

.card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

/* Header */
.site-header {
    padding: 20px 0;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-text); flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; flex-shrink: 0; }
.brand-logo--placeholder { height: 44px; }
.brand-local-title {
    font-weight: 700; color: var(--color-text-muted); font-size: 0.82rem;
    white-space: nowrap; border-left: 2px solid var(--color-border); padding-left: 12px;
}
.brand-text { font-weight: 800; font-size: 1.1rem; line-height: 1.3; white-space: nowrap; }
.brand-text small { display: block; font-weight: 600; color: var(--color-text-muted); font-size: 0.78rem; white-space: nowrap; }
.header-phone { font-weight: 800; color: var(--color-accent-dark); text-decoration: none; font-size: 1.02rem; white-space: nowrap; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.main-nav a { text-decoration: none; color: var(--color-text); font-weight: 700; white-space: nowrap; }
.main-nav a:hover { color: var(--color-accent-dark); }
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    line-height: 1;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--color-text);
    flex-shrink: 0;
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    background: none; border: none; font: inherit; font-weight: 700; color: var(--color-text);
    cursor: pointer; padding: 0; display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.nav-dropdown-toggle:hover { color: var(--color-accent-dark); }
.nav-dropdown-menu {
    display: none; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; left: 0; margin-top: 14px;
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card); padding: 10px; min-width: 230px; z-index: 20;
}
.nav-dropdown-menu a { padding: 8px 10px; border-radius: 6px; }
.nav-dropdown-menu a:hover { background: var(--color-bg-alt); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }

/* Abschnitte & Überschriften */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-header h2 { margin: 10px 0 0; }
.section-header h2::after {
    content: ''; display: block; width: 56px; height: 4px; border-radius: 4px;
    background: var(--gradient); margin: 16px auto 0;
}
.section-header p { color: var(--color-text-muted); font-size: 1.05rem; margin: 16px 0 0; }
.eyebrow {
    display: inline-block; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--color-accent-dark); background: var(--color-sky); padding: 6px 14px; border-radius: 999px;
}

/* Hero */
.hero {
    position: relative; padding: 64px 0 88px; overflow: hidden;
    background:
        radial-gradient(700px 360px at 92% -8%, #D4EBFA 0%, transparent 62%),
        radial-gradient(520px 300px at -4% 108%, #E4F2FB 0%, transparent 60%);
}
.hero--compact { padding: 44px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero--no-media .hero-grid { grid-template-columns: 1fr; max-width: 760px; }
.hero h1 { margin: 16px 0 16px; font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.12; letter-spacing: -0.01em; }
.hero--compact h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.hero-lead { font-size: 1.12rem; color: var(--color-text-muted); max-width: 52ch; margin: 0; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.trust-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; }
.trust-badges li {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--color-border);
    border-radius: 999px; padding: 7px 14px 7px 8px; font-weight: 700; font-size: 0.88rem;
}
.trust-badges li::before {
    content: '✓'; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--gradient); color: #fff; font-size: 0.72rem;
}
.hero-visual { position: relative; }
.hero-visual::before {
    content: ''; position: absolute; inset: 18px -16px -18px 16px; border-radius: 32px;
    background: var(--gradient); opacity: 0.16; transform: rotate(2deg);
}
.hero-media {
    position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3;
    background: var(--color-sky); box-shadow: 0 26px 60px rgba(15, 94, 150, 0.24);
}
.hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 0.6s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-badge {
    position: absolute; left: -14px; bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 999px; padding: 10px 18px 10px 14px; font-weight: 800;
    box-shadow: var(--shadow-lift); animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.media-toggle {
    position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(15, 44, 66, 0.62); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.media-toggle:hover { background: rgba(15, 44, 66, 0.82); }
.media-toggle-pause { display: block; width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.media-toggle.is-paused .media-toggle-pause {
    width: 0; height: 0; border: solid transparent; border-width: 7px 0 7px 12px; border-left-color: #fff; margin-left: 3px;
}

/* Hero als Vollbild-Hintergrund (Bild, darüber das Video) */
.hero--cover {
    display: flex; align-items: center; min-height: clamp(560px, 78vh, 760px); padding: 72px 0 120px;
    background: #0B2A44; color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 30, 50, 0.84) 0%, rgba(8, 30, 50, 0.62) 48%, rgba(8, 30, 50, 0.18) 100%),
        linear-gradient(0deg, rgba(8, 30, 50, 0.45) 0%, transparent 38%);
}
.hero--cover .hero-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, 720px); width: 100%; }
.hero--cover h1 { color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35); }
.hero--cover .hero-lead { color: rgba(255, 255, 255, 0.92); max-width: 56ch; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
.hero--cover .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero--cover .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.08); }
.hero--cover .btn-outline:hover { background: #fff; color: var(--color-accent-dark); border-color: #fff; }
.hero--cover .trust-badges li {
    background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.32); color: #fff;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero--cover .media-toggle { right: 24px; bottom: 76px; }

/* Kennzahlen-Leiste */
.facts-section { margin-top: -44px; position: relative; z-index: 3; }
.facts-strip {
    list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-radius: 22px; box-shadow: var(--shadow-lift); border: 1px solid var(--color-border);
}
.fact { display: flex; align-items: center; gap: 14px; padding: 18px 20px; position: relative; }
.fact + .fact::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--color-border); }
.fact-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--color-sky); font-size: 1.4rem; }
.fact-text strong { display: block; font-size: 1.2rem; line-height: 1.2; color: var(--color-accent-dark); }
.fact-text span { display: block; font-size: 0.85rem; line-height: 1.3; color: var(--color-text-muted); }

/* Leistungs-Karten */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
/* Feste Spaltenzahl statt auto-fit, damit eine ungerade letzte Zeile nie schief/gestreckt wirkt */
.service-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.service-grid > .service-card { flex: 0 1 calc((100% - 66px) / 4); min-width: 0; }
.service-grid--thirds > .service-card { flex-basis: calc((100% - 44px) / 3); }
.service-card {
    display: flex; flex-direction: column; position: relative; overflow: hidden; text-decoration: none; color: var(--color-text);
    border: 1px solid var(--color-border); border-radius: 22px; padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient);
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: #B9DBF2; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--color-sky);
    font-size: 1.7rem; margin-bottom: 16px; transition: transform 0.25s ease, background 0.25s ease;
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); background: #C9E5F8; }
.service-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.service-card p { margin: 0; flex: 1; color: var(--color-text-muted); font-size: 0.95rem; }
.service-card--photo { padding: 0; }
.service-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-sky); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card--photo:hover .service-photo img { transform: scale(1.06); }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 0 22px 24px; }
.service-card--photo .service-icon {
    width: 52px; height: 52px; margin: -26px 0 14px; font-size: 1.5rem; border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(15, 94, 150, 0.18);
}
.service-card:not(.service-card--photo) .service-body { padding: 0; }
.card-more { margin-top: 18px; font-weight: 800; font-size: 0.9rem; color: var(--color-accent-dark); }

/* Ablauf in Schritten */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step {
    position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: 22px;
    padding: 34px 24px 26px; box-shadow: var(--shadow-card);
}
.step-number {
    position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 800;
    box-shadow: 0 8px 18px rgba(29, 127, 196, 0.35);
}
.step:not(:last-child)::after { content: ''; position: absolute; top: 2px; left: 72px; right: -26px; border-top: 2px dashed #B9DBF2; }
.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* Text + Checkliste (Leistungsseiten) */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }
.split-text h2 { margin: 14px 0 14px; }
.split-text p { font-size: 1.05rem; }
.feature-card { border: 1px solid var(--color-border); position: sticky; top: 24px; }
.feature-card h3 { margin: 0; }
.feature-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.feature-list li::before {
    content: '✓'; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
    background: var(--gradient); color: #fff; font-size: 0.75rem; margin-top: 1px;
}

/* Differentiators */
.differentiators-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.differentiator {
    background: #fff; border: 1px solid var(--color-border); border-radius: 22px; padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.differentiator:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.differentiator .icon {
    width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px;
    background: var(--color-sky); font-size: 1.6rem; margin-bottom: 14px;
}
.differentiator h3 { margin: 0 0 6px; font-size: 1.05rem; }
.differentiator p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* Location info */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.hours-table td:last-child { text-align: right; font-weight: 700; }

/* Kundenstimmen */
.testimonial-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.testimonial-grid > .testimonial { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; }
.stars { color: #E8A317; letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }
.testimonial > .stars { display: block; margin-bottom: 12px; position: relative; }
.review-summary {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px;
    margin: -20px auto 32px; font-size: 0.98rem; text-align: center;
}
.review-summary span:not(.stars) { color: var(--color-text-muted); }
.review-summary a { color: var(--color-accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.testimonial {
    position: relative; margin: 0; background: #fff; border: 1px solid var(--color-border); border-radius: 24px;
    padding: 46px 28px 26px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.testimonial::before {
    content: '\201C'; position: absolute; top: 4px; left: 22px; font-size: 5.5rem; line-height: 1;
    font-weight: 800; color: var(--color-sky); font-family: Georgia, 'Times New Roman', serif;
}
.testimonial blockquote { margin: 0; flex: 1; position: relative; }
.testimonial blockquote p { margin: 0; font-size: 1.04rem; }
.testimonial-source { display: inline-block; margin: 12px 0 18px; font-size: 0.85rem; font-weight: 700; color: var(--color-accent-dark); text-decoration: underline; text-underline-offset: 3px; position: relative; }
.testimonial-source:hover { color: var(--color-accent); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--color-border); padding-top: 18px; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: 0.02em; }
.tone-1 { background: linear-gradient(135deg, #1D7FC4, #29A3E0); }
.tone-2 { background: linear-gradient(135deg, #0F5E96, #1D7FC4); }
.tone-3 { background: linear-gradient(135deg, #2A9FB8, #4CC3D9); }
.tone-4 { background: linear-gradient(135deg, #3C6FB5, #6A9BE0); }
.testimonial-meta strong { display: block; }
.testimonial-meta span { font-size: 0.85rem; color: var(--color-text-muted); }

/* Einzugsgebiet */
.area-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.area-tag {
    background: #fff; border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 16px;
    font-size: 0.9rem; font-weight: 700; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.area-tag:hover { background: var(--color-sky); border-color: #B9DBF2; transform: translateY(-2px); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
    background: #fff; border: 1px solid var(--color-border); border-radius: 18px; padding: 0 22px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-card); border-color: #B9DBF2; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 800; font-size: 1.05rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px;
    display: grid; place-items: center; border-radius: 50%; background: var(--color-sky); color: var(--color-accent-dark); font-size: 1.2rem;
}
.faq-item[open] summary::after { content: '–'; background: var(--gradient); color: #fff; }
.faq-item p { margin: 0 0 20px; color: var(--color-text-muted); }

/* CTA-Band */
.cta-band {
    position: relative; overflow: hidden; border-radius: 32px; color: #fff; padding: 52px; text-align: center;
    background: linear-gradient(135deg, #0F5E96 0%, #1D7FC4 55%, #29A3E0 100%);
}
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.cta-band::before { width: 380px; height: 380px; right: -120px; top: -170px; }
.cta-band::after { width: 260px; height: 260px; left: -90px; bottom: -130px; }
.cta-band--image { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; text-align: left; }
.cta-copy { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255, 255, 255, 0.9); font-size: 1.08rem; margin: 0 0 24px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.cta-band--image .cta-actions { justify-content: flex-start; }
.cta-phone { color: #fff; text-decoration: none; font-weight: 600; opacity: 0.95; }
.cta-phone strong { text-decoration: underline; text-underline-offset: 3px; }
.cta-media {
    position: relative; z-index: 1; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); transform: rotate(1.5deg);
}
.cta-media img { width: 100%; height: 100%; object-fit: cover; }

/* Kontaktformular */
.contact-card { border: 1px solid var(--color-border); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-weight: 700; font-size: 0.9rem; }
.form-field input, .form-field select, .form-field textarea {
    padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 1rem; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(29, 127, 196, 0.18);
}
.phone-field { display: flex; gap: 8px; }
.phone-field select { flex: 0 0 90px; }
.phone-field input { flex: 1; }
.honeypot { position: absolute; left: -9999px; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 700; }
.form-alert.success { background: #E4F3E1; color: #2C6B23; }
.form-alert.error { background: #FBE4DE; color: #A5341A; }

/* Rich text */
.rich-text { max-width: 760px; margin: 0 auto; }
.rich-text h2 { margin-top: 1.5em; }
.page-heading { max-width: 760px; margin: 0 auto; }

/* Formular: kompakte Pflichtfelder, optionale Angaben, Hinweis, WhatsApp-Alternative */
.form-optional { border: 1px dashed var(--color-border); border-radius: var(--radius-sm); padding: 6px 18px 2px; margin: 4px 0 20px; background: #FAFCFE; }
.form-optional legend { padding: 0 8px; font-weight: 700; font-size: 0.86rem; color: var(--color-text-muted); }
.btn-block { width: 100%; justify-content: center; }
.form-hint { margin: 14px 0 0; font-size: 0.84rem; color: var(--color-text-muted); text-align: center; }
.form-hint a { text-decoration: underline; }
.form-alt { margin-top: 22px; text-align: center; padding: 22px; border-radius: var(--radius); background: #EAF7EF; }
.form-alt p { margin: 0 0 14px; }
.btn-whatsapp { background: #117A4B; }
.btn-whatsapp:hover { background: #0D6540; box-shadow: 0 14px 26px rgba(17, 122, 75, 0.32); }

/* Dauerhaft sichtbarer WhatsApp-Button */
.wa-fab {
    position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border-radius: 999px;
    background: #117A4B; color: #fff; font-weight: 800; font-size: 0.98rem; text-decoration: none;
    box-shadow: 0 10px 28px rgba(8, 50, 30, 0.38); transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.wa-fab:hover { background: #0D6540; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(8, 50, 30, 0.42); }
.wa-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #117A4B; }
.wa-fab svg { flex: none; }
@media print { .wa-fab { display: none; } }

/* Lesetext (Leistungsseiten, Ratgeber) */
.prose { max-width: 800px; margin: 0 auto; font-size: 1.04rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.9em 0 0.5em; font-size: 1.5rem; line-height: 1.25; }
.prose h3 { margin: 1.9em 0 0.5em; font-size: 1.25rem; }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--color-accent); font-weight: 800; }
.prose a { color: var(--color-accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--color-accent); }
.prose strong { color: var(--color-text); }
.prose .note {
    margin: 1.6em 0; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--color-sky);
    border-left: 5px solid var(--color-accent);
}
.prose .note > :last-child { margin-bottom: 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.prose th { background: var(--color-sky); font-weight: 800; }
.prose tr:last-child td { border-bottom: 0; }
.prose .checklist { list-style: none; padding-left: 0; }
.prose .checklist li { position: relative; padding-left: 32px; }
.prose .checklist li::before {
    content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--gradient); color: #fff; font-size: 0.72rem; display: grid; place-items: center; font-weight: 800;
}
.faq-group-title { max-width: 820px; margin: 34px auto 14px; font-size: 1.2rem; }
.faq-group-title:first-of-type { margin-top: 0; }
.faq-answer { padding-bottom: 8px; color: var(--color-text-muted); }
.faq-answer p { margin: 0 0 12px; }
.faq-answer a { color: var(--color-accent-dark); font-weight: 700; text-decoration: underline; }

/* Grounding page */
.grounding-facts { display: grid; grid-template-columns: 200px 1fr; gap: 10px 20px; }
.grounding-facts dt { font-weight: 800; color: var(--color-text-muted); }
.grounding-facts dd { margin: 0; }
.grounding-note { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 32px; }

/* Footer */
.site-footer { position: relative; background: #0F2C42; color: #C9DCEA; padding: 56px 0 24px; margin-top: 48px; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--gradient); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.site-footer a { color: #EAF1F7; }
.footer-title { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-logo-badge { background: #fff; border-radius: var(--radius-sm); padding: 12px 16px; display: inline-block; margin-bottom: 14px; }
.footer-logo-badge img { height: 40px; width: auto; display: block; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: #8FAEC3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; }
.back-to-top { font-weight: 700; }
.back-to-top:hover { color: #fff; }

/* Sanftes Einblenden beim Scrollen: .reveal setzt main.js nur auf Elemente unterhalb des sichtbaren Bereichs */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
    .facts-strip { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(3)::before { display: none; }
    .differentiators-list, .steps { grid-template-columns: repeat(2, 1fr); }
    .step::after { display: none; }
    .steps { gap: 34px 22px; }
}

@media (max-width: 860px) {
    .section { padding: 52px 0; }
    .hero { padding: 40px 0 72px; }
    .hero--cover { min-height: 0; padding: 56px 0 96px; }
    .hero-bg::after { background: linear-gradient(180deg, rgba(8, 30, 50, 0.7) 0%, rgba(8, 30, 50, 0.62) 55%, rgba(8, 30, 50, 0.78) 100%); }
    .hero-grid, .location-grid, .form-grid, .split { grid-template-columns: 1fr; }
    .hero-grid { gap: 36px; }
    .hero-badge { left: 12px; }
    .hero-visual::before { inset: 14px -8px -14px 8px; }
    .service-grid > .service-card, .service-grid--thirds > .service-card { flex-basis: calc((100% - 22px) / 2); }
    .testimonial-grid > .testimonial { flex-basis: 100%; }
    .feature-card { position: static; }
    .cta-band, .cta-band--image { padding: 36px 26px; }
    .cta-band--image { grid-template-columns: 1fr; text-align: center; }
    .cta-band--image .cta-actions { justify-content: center; }
    .site-header .container { flex-wrap: wrap; }
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 4px;
        order: 3;
        padding-top: 16px;
        margin-top: 12px;
        border-top: 1px solid var(--color-border);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 8px 0; }
    .nav-toggle { display: block; }

    .nav-dropdown-toggle { pointer-events: none; padding: 8px 0; }
    .nav-dropdown-menu {
        display: flex; position: static; margin: 0 0 0 14px; padding: 0;
        border: none; box-shadow: none; min-width: 0;
    }
    .nav-dropdown-menu a { padding: 6px 0; }
}

@media (max-width: 560px) {
    .differentiators-list, .steps { grid-template-columns: 1fr; }
    .service-grid > .service-card, .service-grid--thirds > .service-card { flex-basis: 100%; }
    .facts-strip { grid-template-columns: 1fr; }
    .fact + .fact::before { display: none; }
    .contact-card { padding: 22px; }
    .wa-fab { right: 14px; padding: 15px; }
    .wa-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-badge { animation: none; }
    .service-card, .service-card::before, .service-icon, .differentiator, .testimonial, .area-tag, .btn { transition: none; }
}
