/* =========================================================
   Haustechnik PE — Stylesheet
   Light, modern, minimal
   ========================================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1f2937;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 .6em;
    letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Variables ---------- */
:root {
    --bg:         #ffffff;
    --bg-alt:     #f5f7fa;
    --bg-soft:    #eef2f7;
    --text:       #1f2937;
    --text-muted: #5b6675;
    --heading:    #0f172a;
    --accent:     #1d5ba3;
    --accent-dark:#154980;
    --accent-soft:#e6efff;
    --green:      #2f855a;
    --border:     #e5e9f0;
    --shadow-sm:  0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
    --shadow:     0 4px 14px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04);
    --shadow-lg:  0 18px 40px rgba(15, 23, 42, .08), 0 6px 14px rgba(15, 23, 42, .04);
    --radius-sm:  8px;
    --radius:     14px;
    --radius-lg:  22px;
}

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

section { padding: 96px 0; }
@media (max-width: 768px) {
    section { padding: 64px 0; }
}

.eyebrow {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(29, 91, 163, .25);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost {
    background: #fff;
    color: var(--accent);
    border-color: var(--accent-soft);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--heading);
}
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d5ba3 0%, #64748b 100%);
    color: #fff;
    font-weight: 800;
    font-size: .92rem;
    letter-spacing: .04em;
    box-shadow: 0 6px 14px rgba(29, 91, 163, .22);
    border: 1px solid rgba(255,255,255,.15);
}
.logo-mark-img {
    background: transparent;
    border: 0;
    box-shadow: 0 6px 14px rgba(29, 91, 163, .22);
    overflow: hidden;
    padding: 0;
}
.logo-mark-img img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
}
.logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--heading);
}
.logo-text strong { font-weight: 800; color: var(--accent); letter-spacing: .02em; }
.logo-sub {
    font-size: .72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-top: 2px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.primary-nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
}
.primary-nav a {
    font-size: .98rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 6px 0;
}
.primary-nav a:hover { color: var(--accent); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px; height: 44px;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--heading);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: absolute;
        top: 76px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 16px 24px 24px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform .25s ease, opacity .25s ease;
    }
    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
    }
    .primary-nav ul a {
        display: block;
        padding: 12px 4px;
        border-bottom: 1px solid var(--border);
    }
    .nav-cta { margin-top: 12px; align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 96px 0 80px;
    background:
        radial-gradient(1200px 480px at 90% -10%, rgba(29, 91, 163, .10), transparent 60%),
        radial-gradient(900px 360px at -10% 110%, rgba(47, 133, 90, .08), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-content h1 br { display: none; }
.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 28px;
}
.hero-actions {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 44px;
}
.hero-actions .btn-primary i { font-size: .95em; }

.hero-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
}
.hero-map-link i { font-size: 1rem; }
.hero-map-link:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-dark);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 36px;
    border-top: 1px solid var(--border);
    padding-top: 28px;
    max-width: 540px;
}
.hero-meta li { display: flex; flex-direction: column; gap: 4px; }
.hero-meta strong {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -0.02em;
}
.hero-meta span { font-size: .9rem; color: var(--text-muted); }

/* ---------- Hero: круговая схема услуг ---------- */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-circle {
    --n: 7;
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 1 / 1;
}
.service-circle-7 { --n: 7; }
.service-circle-8 { --n: 8; }
.service-circle::before {
    content: "";
    position: absolute;
    inset: 8%;
    border: 2px dashed rgba(29, 91, 163, .22);
    border-radius: 50%;
    pointer-events: none;
}
.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid rgba(29, 91, 163, .35);
    display: grid;
    place-items: center;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(29, 91, 163, .18),
                0 2px 8px rgba(15, 23, 42, .05);
    z-index: 2;
}
.logo-center img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.service-item {
    --radius: 235px;
    --angle: calc(var(--i) * (360deg / var(--n)));

    position: absolute;
    top: 50%;
    left: 50%;
    width: 92px;
    height: 92px;
    background: #fff;
    color: var(--accent);
    border: 2px solid rgba(29, 91, 163, .2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(29, 91, 163, .12);
    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translateY(calc(var(--radius) * -1))
        rotate(calc(var(--angle) * -1));
    transition: transform .35s cubic-bezier(.2, .7, .3, 1.4),
                background .25s ease, color .25s ease,
                box-shadow .25s ease, border-color .25s ease;
}
.service-item i {
    font-size: 1.55rem;
    margin-bottom: 4px;
}
.service-item span {
    font-size: .68rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    padding: 0 4px;
}
.service-item:hover,
.service-item:focus-visible {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 16px 30px rgba(29, 91, 163, .4);
    z-index: 3;
    outline: none;
    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translateY(calc(var(--radius) * -1))
        rotate(calc(var(--angle) * -1))
        scale(1.18);
}

.service-item-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 14px 26px rgba(29, 91, 163, .35);
}
.service-item-accent::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: .35;
    pointer-events: none;
    animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: .35; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero-meta strong { font-size: 1.3rem; }
    .service-circle { max-width: 420px; margin: 0 auto; }
    .service-item {
        --radius: 188px;
        width: 78px;
        height: 78px;
    }
    .service-item i { font-size: 1.3rem; }
    .service-item span { font-size: .62rem; }
    .logo-center { width: 220px; height: 220px; padding: 22px; }
}
@media (max-width: 480px) {
    .service-circle { max-width: 320px; }
    .service-item {
        --radius: 142px;
        width: 64px;
        height: 64px;
    }
    .service-item i { font-size: 1.05rem; margin-bottom: 2px; }
    .service-item span { font-size: .55rem; }
    .logo-center { width: 168px; height: 168px; padding: 16px; }
}

/* ---------- Intro Banner ---------- */
.intro-banner {
    padding: 56px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.intro-banner h2 { margin-bottom: 14px; }
.intro-banner p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ---------- Benefits ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.benefit-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.benefit-icon {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 22px;
}
.benefit-icon svg { width: 28px; height: 28px; }
.benefit-card p { color: var(--text-muted); margin: 0; }

@media (max-width: 768px) {
    .benefits-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- About ---------- */
.about { background: var(--bg-alt); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: #fff;
    border-radius: var(--radius);
    padding: 14px 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.about-image-badge strong { color: var(--accent); font-weight: 700; }
.about-image-badge span { font-size: .85rem; color: var(--text-muted); }

.about-content .lead {
    font-size: 1.15rem;
    color: var(--heading);
    font-weight: 500;
}
.about-content p { color: var(--text-muted); }
.about-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}
.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--heading);
}
.about-list span {
    display: grid;
    place-items: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .85rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-list { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #d6dde7;
}
.service-card-highlight {
    border-color: rgba(29, 91, 163, .35);
    background: linear-gradient(180deg, #ffffff 0%, var(--accent-soft) 100%);
    position: relative;
}
.service-card-highlight::before {
    content: "Neu";
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.service-icon {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-soft), #f0f7ff);
    color: var(--accent);
    margin-bottom: 22px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card p { color: var(--text-muted); margin: 0; }

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Smart Home ---------- */
.smart-home { background: var(--bg-alt); }
.smart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.smart-content .lead {
    font-size: 1.15rem;
    color: var(--heading);
    font-weight: 500;
}
.smart-features {
    display: grid;
    gap: 14px;
    margin-bottom: 36px;
}
.smart-features li {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.smart-features strong {
    display: block;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 4px;
}
.compat-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.compat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.compat-list li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--heading);
    box-shadow: var(--shadow-sm);
}

.smart-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.smart-visual img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
    .smart-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--accent), #3a85d1);
    color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { margin: 0; opacity: .92; }
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-banner .btn-primary {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.cta-banner .btn-primary:hover { background: #f0f7ff; color: var(--accent-dark); }

/* ---------- Contact ---------- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.contact-card .contact-ico {
    margin-bottom: 14px;
}
.contact-card strong {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.contact-card a,
.contact-card span {
    color: var(--heading);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.45;
}
.contact-card a:hover { color: var(--accent); }

.contact-ico {
    flex: none;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
}
.contact-ico svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
    .contact-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .contact-cards { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding-top: 64px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 48px;
}
.footer-brand p { color: #94a3b8; max-width: 340px; margin-bottom: 12px; }
.footer-vat {
    font-size: .9rem;
    color: #cbd5e1;
    margin: 14px 0 0;
}
.footer-vat strong { color: #fff; font-weight: 600; letter-spacing: .02em; }
.logo-light { color: #fff; }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-text strong { color: #93c5fd; }
.logo-light .logo-sub { color: #94a3b8; }
.logo-light .logo-mark {
    background: linear-gradient(135deg, #4d8cd1 0%, #94a3b8 100%);
    border-color: rgba(255,255,255,.08);
}

.footer-col h4 {
    color: #fff;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .14em;
    margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #cbd5e1; }
.footer-col a:hover { color: #fff; }
.footer-contact li { line-height: 1.6; }
.footer-contact strong { color: #fff; font-weight: 600; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 22px 0;
    font-size: .9rem;
    color: #94a3b8;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */
.legal {
    padding: 80px 0;
    background: var(--bg);
}
.legal-content {
    max-width: 820px;
    margin: 0 auto;
}
.legal-content h1 { margin-bottom: 24px; }
.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 40px;
    margin-bottom: 12px;
    padding-top: 8px;
}
.legal-content h3 {
    font-size: 1.05rem;
    margin-top: 24px;
    margin-bottom: 8px;
}
.legal-content p,
.legal-content li {
    color: var(--text-muted);
    line-height: 1.75;
}
.legal-content ul {
    margin: 0 0 16px 22px;
    list-style: disc;
}
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 32px;
}
.legal-back:hover { color: var(--accent-dark); }

/* ---------- Qualifications list (About section) ---------- */
.qualifications-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    margin: 28px 0 14px;
}
.about-list.qualifications {
    grid-template-columns: 1fr;
    gap: 14px;
}
.about-list.qualifications li {
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.about-list.qualifications li > span {
    flex: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1rem;
    display: grid;
    place-items: center;
    margin-top: 2px;
}
.about-list.qualifications li > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.about-list.qualifications li strong {
    font-weight: 700;
    color: var(--heading);
    line-height: 1.35;
}
.about-list.qualifications li > div > span {
    display: block;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.5;
    place-items: initial;
}

/* ---------- Services note ---------- */
.services-note {
    margin: 36px auto 0;
    max-width: 720px;
    text-align: center;
    color: var(--text-muted);
    font-size: .95rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 22px;
}
.services-note i {
    color: var(--accent);
    margin-right: 8px;
}
.services-note a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

/* ---------- Begleitung (Mentoring & Baubegleitung) ---------- */
.begleitung,
.mentoring { background: var(--bg-alt); }
.begleitung {
    background:
        radial-gradient(800px 360px at 100% 0%, rgba(29, 91, 163, .08), transparent 60%),
        var(--bg-alt);
}
.begleitung-flow,
.mentoring-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 56px;
}
.flow-step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}
.flow-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.flow-step-num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    box-shadow: 0 6px 14px rgba(29, 91, 163, .25);
}
.flow-step h3 { margin-bottom: 8px; }
.flow-step p {
    color: var(--text-muted);
    font-size: .95rem;
    margin: 0;
}

.begleitung-cases,
.mentoring-cases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.case-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.case-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.4rem;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.case-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}
.case-card p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
}

.begleitung-cta,
.mentoring-cta {
    text-align: center;
    margin-top: 48px;
}

@media (max-width: 900px) {
    .begleitung-flow,
    .mentoring-flow { grid-template-columns: 1fr 1fr; }
    .begleitung-cases,
    .mentoring-cases { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .begleitung-flow,
    .mentoring-flow { grid-template-columns: 1fr; }
}

/* ---------- Eyebrow accent variant (used on Begleitung "Herzstück") ---------- */
.eyebrow-accent {
    background: var(--accent);
    color: #fff;
}

/* ---------- Services CTA row ---------- */
.services-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 48px;
}

/* ---------- Tools section: distinguish from main services ---------- */
.tools-section { background: var(--bg-alt); }

/* ---------- Contact: WhatsApp hero card ---------- */
.contact-whatsapp-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin-bottom: 32px;
    box-shadow: 0 18px 40px rgba(37, 211, 102, .25);
    flex-wrap: wrap;
}
.contact-whatsapp-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.2rem;
    flex: none;
}
.contact-whatsapp-text {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.contact-whatsapp-text strong {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}
.contact-whatsapp-text span {
    color: rgba(255, 255, 255, .9);
    font-size: .98rem;
}
.contact-whatsapp-hero .contact-whatsapp-btn {
    background: #fff;
    color: #128c7e !important;
    border-color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    padding: 14px 26px;
}
.contact-whatsapp-hero .contact-whatsapp-btn:hover {
    background: #f0fdf4;
    color: #0e6b60 !important;
}

/* ---------- Contact: 2-column variant (E-Mail + Adresse) ---------- */
.contact-cards-2 { grid-template-columns: 1fr 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) {
    .contact-cards-2 { grid-template-columns: 1fr; }
    .contact-whatsapp-hero { padding: 24px; gap: 16px; }
    .contact-whatsapp-icon { width: 60px; height: 60px; font-size: 1.8rem; }
}

/* ---------- Contact: 3 columns + WhatsApp button card ---------- */
.contact-cards-3 { grid-template-columns: repeat(3, 1fr); }
.contact-card-whatsapp .contact-ico {
    background: #25d366;
    color: #fff;
}
.contact-whatsapp-btn {
    margin-top: 6px;
    background: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
}
.contact-whatsapp-btn:hover {
    background: #1ea854;
    color: #fff;
}
@media (max-width: 900px) {
    .contact-cards-3 { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    font-size: 1.7rem;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
    z-index: 80;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.04);
    background: #1ea854;
    box-shadow: 0 14px 30px rgba(37, 211, 102, .55);
}
.whatsapp-float i { line-height: 1; }

/* Move floating WhatsApp up while cookie banner is visible */
body.cookie-visible .whatsapp-float {
    bottom: calc(22px + var(--cookie-h, 140px));
}

/* ---------- Cookie / Privacy banner ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(15, 23, 42, .96);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
    transform: translateY(100%);
    transition: transform .35s ease;
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1 1 420px;
    min-width: 280px;
}
.cookie-banner-text strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 700;
}
.cookie-banner-text p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    color: #cbd5e1;
}
.cookie-banner-text a {
    color: #93c5fd;
    text-decoration: underline;
}
.cookie-banner-text a:hover { color: #fff; }
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.cookie-banner-actions .btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
}
.cookie-banner-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

@media (max-width: 600px) {
    .cookie-banner-inner { padding: 16px 18px; }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions .btn { flex: 1 1 auto; }
}

/* ---------- Footer WhatsApp link ---------- */
.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1 !important;
}
.footer-whatsapp i { color: #25d366; }
.footer-whatsapp:hover { color: #fff !important; }

/* ---------- Utility ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
