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

html,
body {
    overflow-x: clip;
}

html {
    background-color: #ffffff;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
p,
a,
button {
    overflow-wrap: anywhere;
}

h2 {
    font-size: 30px !important;
    line-height: 1.1 !important;
    color: var(--text) !important;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Modal styles */
.contact-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(26,61,46,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-modal-content {
  background: var(--bg);
  border-radius: 14px;
  padding: 32px 24px 24px 24px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
}
.contact-modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 28px;
  color: #1a3d2e;
  cursor: pointer;
}
.contact-form label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  color: #1a3d2e;
  font-weight: 600;
}
.contact-form input {
  width: 100%;
  padding: 10px;
  border-radius: 7px;
  border: 1px solid #d6dde0;
  margin-bottom: 10px;
  font-size: 15px;
}
.contact-form button {
  margin-top: 12px;
  width: 100%;
}
/* =========================
   BASISPALETTE UND VARIABLEN
   ========================= */

:root {
    /* Base */
    --bg: #ffffff;
    --bg-soft: #f6f8f7;
    --text: #0f172a;
    --muted: #475569;
    --border: #d6dde0;

    /* Primary (Green) */
    --primary: #0f3d2e;
    --primary-hover: #1e6f5c;
    --primary-soft: rgba(15, 61, 46, 0.08);

    /* Accent (Gold) */
    --accent: #B6BFB9;
    --accent-soft: rgba(182, 191, 185, 0.28);

    /* Footer */
    --footer: #0b1f18;
    --footer-text: #e7efe9;

    /* Typography scale */
    --text-h1: clamp(36px, 4vw, 52px);
    --text-h2: 30px;
    --text-h3: 22px;
    --text-body: 16px;
    --text-small: 13px;
    --text-label: 12px;
    --text-button: 15px;
    --line-heading: 1.1;
    --line-body: 1.6;
    --line-small: 1.45;

    /* Spacing scale */
    --space-2xs: 6px;
    --space-xs: 10px;
    --space-sm: 14px;
    --space-md: 20px;
    --space-lg: 28px;
    --space-xl: 44px;
    --space-2xl: 60px;
    --section-space: 60px;
    --page-gutter: 40px;
}

/* =========================
   GRUNDEINSTELLUNGEN
   ========================= */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text);
}

main {
    flex: 1;
}

/* =========================
   HEADER
   ========================= */

header {
    padding: 20px 0;
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    min-width: 0;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

.breadcrumbs-section {
    background: var(--bg-soft);
    padding: 14px 0 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span[aria-current="page"] {
    color: var(--text);
    font-weight: 700;
}

.breadcrumbs__separator {
    color: rgba(15, 23, 42, 0.36);
}

.breadcrumbs-section + .services {
    padding-top: 34px;
}

.breadcrumbs-section + .legal-content {
    padding-top: 34px;
}

/* Expand info block */

.header-expand {
    position: absolute;
    left: calc(50% + 150px);
    --collapsed-h: 32px;
    top: 0;
    transform: none;
    width: 210px;
    height: var(--collapsed-h);
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 9999;
}

.header-expand:hover {
    height: 126px;
    background: var(--bg);
    border: 1px solid var(--border);
    z-index: 9999;
}

.header-expand span,
.header-expand a,
.header-email,
.header-hours {
    font-size: 12px;
    color: var(--muted);
    overflow-wrap: normal;
    white-space: nowrap;
}

.header-expand a {
    text-decoration: none;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-expand a:hover {
    color: var(--text);
    font-weight: 600;
}

.header-expand a svg {
    height: 12px;
    width: 12px;
}

.header-expand-list{
    z-index: 9999;
    min-width: 0;
}

.header-expand-icon-container {
    border: 1px solid var(--border);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: 8px;
}

.header-expand-icon-container svg {
    transition: transform 0.3s ease;
}

.header-expand:hover .header-expand-icon-container svg {
    transform: rotate(180deg);
}

.header-separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

@media (min-width: 771px) {
    .header-inner {
        justify-content: center;
        position: relative;
    }

    .header-expand {
        position: absolute;
        right: 40px;
        left: auto;
        top: 0;
        margin-left: 0;
    }
}

@media (max-width: 770px) {
    header {
        padding: clamp(10px, 2.2vw, 14px) 0;
    }

    .header-inner {
        justify-content: flex-start;
        min-height: clamp(34px, 6vw, 42px);
    }

    .logo {
        font-size: clamp(15px, 2.4vw, 17px);
    }

    .logo_img {
        width: clamp(27px, 4.5vw, 31px);
        height: clamp(27px, 4.5vw, 31px);
        margin-right: 7px;
    }

    .header-expand {
        right: var(--page-gutter, 20px);
        left: auto;
        top: 0;
        transform: none;
        width: clamp(142px, 28vw, 188px);
        --collapsed-h: clamp(28px, 5vw, 32px);
        height: var(--collapsed-h);
        padding: 5px 8px;
        align-items: flex-start;
        background: transparent;
    }

    .header-expand:hover,
    .header-expand:focus-within {
        height: 116px;
        align-items: flex-start;
        background: var(--bg);
        border: 1px solid var(--border);
    }

    .header-expand span,
    .header-expand a,
    .header-email,
    .header-hours {
        font-size: clamp(10.5px, 1.8vw, 12px);
    }

    .header-item:first-child > span {
        display: none;
    }

    .header-item:first-child::before {
        content: "Service";
        display: inline-block;
        font-size: clamp(10.5px, 1.8vw, 12px);
        color: var(--muted);
        white-space: nowrap;
    }

    .header-expand-icon-container {
        width: 22px;
        height: 22px;
        margin-left: 6px;
    }

    .header-expand-icon-container svg {
        width: 14px;
        height: 14px;
    }
}

/* =========================
   NAVBAR
   ========================= */

.navbar {
    position: relative;
    z-index: 100;
    min-height: 62px;
    /* Hauptfarbe */
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.025),
            rgba(0, 0, 0, 0.035)),
        var(--primary);

    /* Mikroformular */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        0 1px 2px rgba(0, 0, 0, 0.05);

    color: #ffffff;
}

.nav-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 62px;
}

.nav-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-nav-dialog {
    display: none;
}

.navbar.is-sticky .nav-logo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 771px) {
    .nav-logo {
        display: none;
    }

    .navbar {
        position: sticky !important;
        top: 0;
        z-index: 1000;
    }
}

@media (max-width: 770px) {
    .navbar,
    .nav-wrap {
        min-height: clamp(52px, 8vw, 60px);
    }

    .navbar.is-sticky {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    body.has-sticky-navbar main {
        padding-top: var(--navbar-sticky-offset, 62px);
    }

    .nav-logo {
        left: var(--page-gutter, 20px);
        right: auto;
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        position: absolute;
        right: var(--page-gutter, 20px);
        top: 50%;
        transform: translateY(-50%);
        display: inline-flex;
        width: clamp(34px, 6vw, 38px);
        height: clamp(34px, 6vw, 38px);
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.08);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 0;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: clamp(16px, 3vw, 18px);
        height: 2px;
        border-radius: 999px;
        background: #ffffff;
        transition: transform 0.2s ease, opacity 0.2s ease;
        transform-origin: center;
    }

    .mobile-menu-toggle.is-open span:nth-child(1) {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 18px;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-open span:nth-child(3) {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 18px;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .mobile-nav-dialog {
        position: fixed;
        top: var(--mobile-menu-top, 76px);
        right: 0;
        left: 0;
        bottom: auto;
        z-index: 2147483647;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: calc(100dvh - var(--mobile-menu-top, 76px) - 16px);
        overflow: auto;
        padding: 10px var(--page-gutter, 18px) 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(10, 65, 46, 0.99);
        box-shadow: 0 18px 34px rgba(7, 25, 19, 0.22);
        color: #ffffff;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transform-origin: top center;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .mobile-nav-dialog.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

html.has-mobile-nav-open,
body.has-mobile-nav-open {
    overflow: hidden;
}

html.has-portfolio-open,
body.has-portfolio-open {
    overflow: hidden;
    height: 100%;
}

    .mobile-nav-dialog__links {
        display: grid;
        gap: 6px;
        margin-top: 0;
    }

    .mobile-nav-dialog__links a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        color: #ffffff;
        text-decoration: none;
        font-size: clamp(16px, 3.8vw, 18px);
        line-height: 1.15;
        font-weight: 600;
    }

    body.has-sticky-navbar header .logo {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
}

.logo {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    min-width: 0;
    white-space: nowrap;
}

.logo_img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

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

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    min-width: 175px;
    padding: 24px 10px;
    letter-spacing: 0.01em;
    opacity: 0.9;
    text-align: center;
}

.nav a:hover {
    opacity: 1;
    background-color: transparent;
    box-shadow: inset 0 -2px 0 #1D9E75;
}

.btn-top {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 6px;
}

/* =========================
   HERO
   ========================= */

body.page-home {
    --hero-image: url('img/home_hero.png');
}

body.page-kitchen {
    --hero-image: url('img/kuechenservice_hero.png');
    --service-help-image: url('img/service-help-card-img/service-help-card-kuechenservice.png');
}

body.page-furniture {
    --hero-image: url('img/moebelservice_hero.png');
    --service-help-image: url('img/service-help-card-img/service-help-card-moebelservice.png');
}

body.page-trades {
    --hero-image: url('img/handwerk_hero.png');
    --service-help-image: url('img/service-help-card-img/service-help-card-handwerk.png');
}

body.page-garden {
    --hero-image: url('img/garetnservice_hero.png');
    --service-help-image: url('img/service-help-card-img/service-help-card-garten.png');
}

body.page-kitchen,
body.page-furniture,
body.page-trades,
body.page-garden {
    --hero-height: 430px;
    --hero-height-mobile: 390px;
}

body.page-calculate {
    --hero-image: url('img/calculate_hero.png');
}

.hero {
    position: relative;
    min-height: var(--hero-height, 600px);
    width: 100%;
    padding: 0;
    margin: 0;
    background: none;
}
.hero-bg {
    position: relative;
    width: 100%;
    min-height: var(--hero-height, 600px);
    background: var(--hero-image, url('img/hero.png')) center/cover no-repeat;
    display: flex;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
}

.hero-overlay {
        position: absolute;
        left: 0; top: 0; right: 0; bottom: 0;
        background: linear-gradient(
            to right,
            rgba(15, 30, 18, 0.97) 0%,
            rgba(15, 30, 18, 0.85) 35%,
            rgba(15, 30, 18, 0.30) 60%,
            rgba(15, 30, 18, 0.00) 100%
        );
        z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    min-height: var(--hero-height, 600px);
    width: 100%;
    min-width: 0;
    max-width: 620px;
    padding: 0;
}

.hero-eyebrow {
    color: #5DCAA5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-kicker {
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(18px, 1.9vw, 25px);
    line-height: 1.25;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-title {
    color: #fff;
    font-size: clamp(32px, 3.8vw, 52px);
    font-weight: 600;
    margin: 0 0 18px 0;
    line-height: 1.02;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    color: rgba(255,255,255,0.82);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.45;
    margin-bottom: 12px;
    max-width: 480px;
    font-weight: 600;
}

.hero-area {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 28px;
}

.hero-area::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(93, 202, 165, 0.16);
}

.btn-main {
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    border: none;
    font-weight: 500;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s;
}

.btn-main:hover {
    background: #159a6b;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

.btn-secondary:hover {
    border-color: #1d9e75;
    background: rgba(29, 158, 117, 0.16);
}

.hero-trust {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 34px;
    padding-top: 18px;
}

.hero-trust-stars {
    color: #1D9E75;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-trust-score {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    font-weight: 500;
    margin-left: 10px;
}

.hero-trust-separator {
    color: rgba(255,255,255,0.42);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
}

.hero-trust-desc {
    color: rgba(255,255,255,0.68);
    font-size: 15px;
    margin-top: 0;
    font-weight: 500;
    letter-spacing: 0;
}

/* =========================
   SECTION KICKER
   ========================= */

.section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #58c39b;
}

/* =========================
   HOW IT WORKS
   ========================= */

.how-it-works {
    padding: 60px 0;
    background: var(--bg-soft);
}

.how-it-works h2 {
    margin: 0 0 30px;
    font-size: 32px;
    line-height: 1.1;
    color: var(--text);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 40px 1fr 40px 1fr;
    align-items: start;
    gap: 24px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.step-link {
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 14px;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.step-link:hover,
.step-link:focus-visible {
    transform: translateY(-2px);
}

.step-link:focus-visible {
    outline: 2px solid rgba(29, 158, 117, 0.45);
    outline-offset: 8px;
}

.step-link:hover .step-badge,
.step-link:focus-visible .step-badge {
    background: #159a6b;
    box-shadow: 0 10px 20px rgba(15, 61, 46, 0.22);
}

.step-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 8px 16px rgba(15, 61, 46, 0.18);
}

.step-content h3 {
    margin: 2px 0 8px;
    font-size: 22px;
    line-height: 1.1;
    color: var(--text);
}

.step-content p {
    margin: 0;
    max-width: 320px;
    font-size: 16px;
    line-height: 1.5;
    color: #7b8087;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 28px;
    color: #b9b9b9;
    transform: translateY(4px);
}

.page-service-overview {
    --hero-height: 430px;
    --hero-height-mobile: 390px;
}

.page-service-overview .hero-title {
    max-width: 760px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    text-wrap: balance;
}

.page-service-overview .hero-subtitle {
    max-width: 560px;
}

.page-price-overview {
    --hero-image: url('img/preis-berechnen.png');
}

.page-offer-overview {
    --hero-image: url('img/angebot-anfordern.png');
}

.service-overview {
    padding-top: clamp(34px, 5vw, 54px);
}

.service-overview-groups {
    display: grid;
    gap: clamp(34px, 5vw, 56px);
}

.service-overview-group {
    display: grid;
    gap: 18px;
}

.service-overview-group__head {
    display: block;
}

.service-overview-group__head h3 {
    margin: 0;
    font-size: clamp(21px, 1.8vw, 27px);
    line-height: 1.16;
    font-weight: 600;
    color: var(--text);
}

/* =========================
   REFERENCES
   ========================= */

.references {
    padding: 60px 0;
    background: var(--bg-soft);
}

.references-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.references h2 {
    margin: 0;
}

.references-link {
    margin-top: 18px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: #00a56a;
    white-space: nowrap;
}

.references-link:hover {
    color: var(--primary-hover);
}

.references-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.references-swipe-hint {
    display: none;
}

.references-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
}

.reference-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #1c3028;
    min-height: 70px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.reference-card-large {
    min-height: 80px;
}

.reference-card-small {
    min-height: 40px;
}

.reference-card img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    filter: saturate(0.9);
}

.reference-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(15, 61, 46, 0.18) 0%,
            rgba(15, 61, 46, 0.38) 55%,
            rgba(11, 31, 24, 0.78) 100%);
}

.reference-overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
}

.reference-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #7fe3bb;
    background: rgba(20, 91, 66, 0.65);
    border: 1px solid rgba(127, 227, 187, 0.28);
}

.reference-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.reference-card:hover {
    transform: translateY(-2px);
    transition: transform 0.18s ease;
}

/* =========================
   PORTFOLIO DIALOG
   ========================= */

.portfolio-dialog {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: clamp(14px, 3vw, 28px);
    background: rgba(6, 18, 14, 0.72);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

html.has-portfolio-open,
body.has-portfolio-open {
    overflow: hidden;
    height: 100%;
}

.portfolio-dialog.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.portfolio-dialog__panel {
    width: min(1180px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #f7faf8;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    transform: translateY(14px) scale(0.985);
    transition: transform 0.22s ease;
}

.portfolio-dialog.is-open .portfolio-dialog__panel {
    transform: translateY(0) scale(1);
}

.portfolio-dialog__topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 16px;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(15, 61, 46, 0.1);
    background: rgba(255, 255, 255, 0.82);
}

.portfolio-dialog__eyebrow {
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portfolio-dialog__title {
    margin: 0;
    color: var(--text);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.08;
}

.portfolio-dialog__back,
.portfolio-dialog__close {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(15, 61, 46, 0.14);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.portfolio-dialog__back {
    opacity: 0;
    pointer-events: none;
}

.portfolio-dialog__back.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-dialog__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 24px;
}

.portfolio-category-grid,
.portfolio-project-grid,
.portfolio-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.portfolio-category-card,
.portfolio-project-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.1);
}

.portfolio-category-card img,
.portfolio-project-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.portfolio-category-card:hover img,
.portfolio-project-card:hover img {
    transform: scale(1.04);
}

.portfolio-category-card__shade,
.portfolio-category-card::after,
.portfolio-project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 61, 46, 0.04) 0%, rgba(15, 61, 46, 0.48) 48%, rgba(7, 24, 18, 0.86) 100%);
}

.portfolio-category-card__count,
.portfolio-category-card strong,
.portfolio-category-card small,
.portfolio-project-card span,
.portfolio-project-card strong,
.portfolio-project-card small,
.portfolio-project-card p {
    position: relative;
    z-index: 1;
}

.portfolio-category-card,
.portfolio-project-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 20px;
}

.portfolio-category-card__count,
.portfolio-project-card span {
    align-self: flex-start;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(19, 168, 124, 0.84);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portfolio-category-card strong,
.portfolio-project-card strong {
    font-size: 22px;
    line-height: 1.12;
}

.portfolio-category-card small,
.portfolio-project-card small,
.portfolio-project-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.45;
}

.portfolio-project-card p {
    margin: 4px 0 0;
}

.portfolio-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.portfolio-filter {
    border: 1px solid rgba(15, 61, 46, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.portfolio-filter.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.portfolio-project-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 24px;
    align-items: start;
}

.portfolio-gallery__stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    border-radius: 18px;
    background: #10251d;
}

.portfolio-gallery__stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-gallery__nav {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    cursor: pointer;
    font-size: 30px;
    transform: translateY(-50%);
}

.portfolio-gallery__nav--prev {
    left: 16px;
}

.portfolio-gallery__nav--next {
    right: 16px;
}

.portfolio-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.portfolio-gallery__thumbs button {
    overflow: hidden;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.portfolio-gallery__thumbs button.is-active {
    border-color: var(--accent);
}

.portfolio-gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-project-info {
    border-radius: 18px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.08);
}

.portfolio-project-info__meta {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-project-info h3 {
    margin: 8px 0 12px;
    color: var(--text);
    font-size: 28px;
    line-height: 1.12;
}

.portfolio-project-info p,
.portfolio-project-info li,
.portfolio-detail-list span {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.portfolio-project-info h4 {
    margin: 22px 0 10px;
    color: var(--text);
    font-size: 16px;
}

.portfolio-project-info ul {
    margin: 0;
    padding-left: 18px;
}

.portfolio-detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-detail-list span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f0f5f2;
}

.portfolio-empty {
    display: grid;
    place-items: center;
    min-height: 320px;
    text-align: center;
}

.portfolio-empty h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 24px;
}

.portfolio-empty p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.portfolio-skeleton-card {
    min-height: 260px;
    border-radius: 18px;
    background: linear-gradient(90deg, #edf3ef 25%, #f8faf8 50%, #edf3ef 75%);
    background-size: 220% 100%;
    animation: portfolioSkeleton 1.2s ease-in-out infinite;
}

@keyframes portfolioSkeleton {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* =========================
   SERVICES
   ========================= */

.services {
    padding: 60px 0;
    background: var(--bg-soft);
}

.services > .container {
    padding-top: 0;
    padding-bottom: 0;
}

.services-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.services-copy {
    min-width: 0;
    width: 100%;
    max-width: 620px;
}

.services h2 {
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 500;
    color: var(--text);
}

.services-subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
}

/* =========================
   SERVICE AREA
   ========================= */

.service-area-section {
    padding: 22px 0 58px;
    background: var(--bg-soft);
}

.service-area-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 34px;
    align-items: center;
    padding: 26px 0 26px 22px;
    border-left: 3px solid rgba(16, 185, 129, 0.55);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.service-area-copy {
    max-width: 760px;
}

.service-area-copy h2 {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 500;
    color: var(--text);
}

.service-area-copy p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.service-area-copy p + p {
    margin-top: 12px;
}

.service-area-places {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.service-area-places span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* =========================
   CATEGORY SEO TEXT
   ========================= */

.category-seo {
    padding: 0 0 54px;
    background: var(--bg-soft);
}

.category-seo-content {
    max-width: 980px;
    padding: 26px 0 0 22px;
    border-left: 3px solid rgba(16, 185, 129, 0.55);
}

.category-seo-content h2 {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 500;
    color: var(--text);
}

.category-seo-content p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.category-seo-content p + p {
    margin-top: 12px;
}

.category-seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-start;
    margin-top: 18px;
}

.category-seo-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 61, 46, 0.06);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* =========================
   SERVICE DETAIL SEO
   ========================= */

.service-detail-seo {
    padding: 0 0 58px;
    background: var(--bg-soft);
}

.service-detail-seo__head {
    max-width: 760px;
    margin-bottom: 22px;
}

.service-detail-seo__head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 500;
    color: var(--text);
}

.service-detail-seo__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-detail-seo__item {
    padding: 22px 22px 20px;
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.service-detail-seo__item h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 600;
}

.service-detail-seo__item p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.service-detail-seo__item a {
    display: inline-flex;
    margin-top: 16px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.service-detail-seo__item a:hover {
    color: var(--primary-hover);
}

/* =========================
   FAQ
   ========================= */

.faq {
    padding: 60px 0;
    background: var(--bg-soft);
}

.faq-head {
    max-width: 680px;
    margin-bottom: 32px;
}

.faq-head h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 32px;
    line-height: 1.15;
    font-weight: 500;
}

.faq-head p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 40px;
    align-items: start;
}

.faq--service-page {
    padding-top: 0;
}

.faq-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.faq-category {
    min-width: 0;
}

.faq-category h3 {
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
    font-size: 21px;
    line-height: 1.25;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    position: relative;
    display: block;
    padding: 18px 44px 18px 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before,
.faq-item summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.faq-item summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(0);
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.faq-answer {
    padding: 0 44px 18px 0;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

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

@media (max-width: 770px) {
    .faq {
        padding: var(--section-space, 48px) 0;
    }

    .faq-head {
        margin-bottom: var(--space-lg, 24px);
    }

    .faq-head h2 {
        font-size: var(--text-h2, 24px);
        line-height: var(--line-heading, 1.15);
    }

    .faq-head p {
        font-size: var(--text-body, 15px);
        line-height: var(--line-body, 1.55);
    }

    .faq-grid {
        gap: var(--space-lg, 24px);
    }

    .faq-category h3 {
        padding-bottom: 11px;
        font-size: var(--text-h3, 19px);
    }

    .faq-item summary {
        padding: 15px 38px 15px 0;
        font-size: var(--text-body, 15px);
    }

    .faq-answer {
        padding: 0 38px 15px 0;
    }

    .faq-answer p {
        font-size: var(--text-small, 13.5px);
        line-height: var(--line-body, 1.55);
    }
}

/* =========================
   SERVICES NAV
   ========================= */

.services-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 640px;
}

.services-nav-item {
    appearance: none;
    border: 1px solid #cfd8d2;
    background: #fff;
    color: var(--primary);
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 150px;
}

.services-nav-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.services-nav-item.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 22px rgba(15, 61, 46, 0.18);
}

/* =========================
   SERVICES LAYOUT
   ========================= */

.services-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}


/* =========================
   SMALL CARDS GRID
   ========================= */

.services-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
}

.service-card {
    position: relative;
    display: block;
    min-height: 222px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background: #24362f;
    box-shadow: 0 10px 24px rgba(15, 61, 46, 0.07);
}

.service-card::before {
    content: "Preis berechnen / Angebot anfordern";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 61, 46, 0.68);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0;
    transition: opacity 0.25s ease;
    white-space: nowrap;
    pointer-events: none;
}

.service-card--offer-only::before {
    content: "Angebot anfordern";
}

.service-card--appointment::before {
    content: "Besichtigungstermin vereinbaren";
}

.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: saturate(0.92) brightness(1.02);
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(25, 48, 38, 0.04) 0%,
            rgba(25, 48, 38, 0.10) 34%,
            rgba(13, 30, 23, 0.74) 100%
        );
}

.service-card:hover .service-card-bg {
    transform: scale(1.04);
}

.service-card-copy {
    position: absolute;
    left: 20px;
    right: 88px;
    bottom: 20px;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.service-card-title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.18;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.service-card-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.88);
}

.service-card-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.service-card-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

.service-card:hover .service-card-arrow {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.28);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-card-bg {
    filter: blur(2px) saturate(0.8) brightness(0.72);
}

.service-card:hover .service-card-copy,
.service-card:hover .service-card-arrow {
    opacity: 0;
}

/* =========================
   SERVICES BOTTOM CTA
   ========================= */

.services-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 16px 18px 16px 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 61, 46, 0.08);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(15, 61, 46, 0.06);
}

.services-bottom-cta__text {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text);
}

.services-bottom-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 320px;
    padding: 16px 28px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    box-shadow: 0 12px 24px rgba(15, 61, 46, 0.16);
    transition: background 0.2s ease, transform 0.2s ease;
}

.services-bottom-cta__button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    cursor: pointer;
}

.services-bottom-cta__arrow {
    font-size: 24px;
    line-height: 1;
    transform: translateY(-1px);
}

/* =========================
   SERVICE HELP CTA
   ========================= */

.service-help {
    padding: 0 0 60px;
    background: var(--bg-soft);
}

.service-help-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 180px;
    display: flex;
    align-items: center;
    padding: 38px 36px;
    background: var(--service-help-image) right center/cover no-repeat;
    box-shadow: 0 12px 24px rgba(15, 61, 46, 0.08);
}

.service-help-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(245, 248, 247, 0.96) 0%,
        rgba(245, 248, 247, 0.93) 40%,
        rgba(245, 248, 247, 0.78) 60%,
        rgba(245, 248, 247, 0.38) 100%
    );
}

.service-help-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.service-help-title {
    margin: 0 0 10px;
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.12;
    color: var(--text);
}

.service-help-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

.service-help-actions {
    margin-top: 22px;
}

.service-help-actions .btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 250px;
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 17px;
    box-shadow: 0 10px 20px rgba(15, 61, 46, 0.2);
}

.service-help-points {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
}

.service-help-point {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: var(--text);
}

.service-help-point::before {
    content: "✓";
    margin-right: 8px;
    color: #5cbf92;
    font-size: 17px;
    font-weight: 700;
}

/* =========================
   CUSTOM REQUEST FORM
   ========================= */

.custom-request {
    padding: 0 0 64px;
    background: var(--bg-soft);
}

.custom-request-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 36px;
    align-items: start;
    padding: 34px;
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.025);
}

.custom-request-copy h2 {
    margin: 8px 0 12px;
    max-width: 480px;
}

.custom-request-copy p {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.custom-request-form {
    min-width: 0;
}

.custom-request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.custom-request-field {
    min-width: 0;
}

.custom-request-field--full {
    grid-column: 1 / -1;
}

.custom-request-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.custom-request-field input,
.custom-request-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    line-height: 1.35;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-request-field input {
    height: 44px;
    padding: 0 13px;
}

.custom-request-field textarea {
    resize: vertical;
    min-height: 116px;
    padding: 12px 13px;
}

.custom-request-field input:focus,
.custom-request-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.1);
}

.custom-request-field.is-invalid input,
.custom-request-field.is-invalid textarea {
    border-color: rgba(191, 69, 69, 0.55);
    box-shadow: 0 0 0 3px rgba(191, 69, 69, 0.10);
}

.custom-request-validation {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.35;
    color: #a83d3d;
}

.custom-request-privacy {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.custom-request-privacy input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.custom-request-privacy a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.custom-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    margin-top: 18px;
}

.custom-request-actions .btn-main {
    min-width: 190px;
    border: 0;
    box-shadow: 0 10px 20px rgba(15, 61, 46, 0.16);
}

.custom-request-actions .btn-main:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
    background: #8fa49b;
    box-shadow: none;
}

.custom-request-status {
    min-height: 20px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.custom-request-status--success {
    color: var(--primary);
    font-weight: 600;
}

.custom-request-status--error {
    color: #b91c1c;
    font-weight: 600;
}

/* =========================
   SERVICES RESPONSIVE
   ========================= */

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

    .services-feature {
        height: 500px;
    }

    .service-detail-seo__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner,
    .container {
        width: 100vw;
        max-width: 100vw;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero,
    .hero-bg,
    .hero-inner {
        min-height: var(--hero-height-mobile, 420px);
    }

    .hero-title {
        font-size: clamp(34px, 11vw, 44px);
    }

    .page-service-overview .hero-title {
        max-width: 12.5em;
        font-size: clamp(28px, 7.4vw, 36px);
        line-height: 1.12;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-bg > .container,
    .hero-inner,
    .services-head,
    .services-copy,
    .services-list,
    .service-card,
    .references-head,
    .references-grid,
    .reference-card,
    .steps-grid,
    .step-item,
    .service-help-content,
    .service-help-card,
    .calc-layout,
    .calc-card {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        min-width: 0;
    }

    .hero-title,
    .hero-subtitle,
    .services h2,
    .services-subtitle,
    .how-it-works h2,
    .references h2,
    .step-content h3,
    .step-content p {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .hero-trust-stars {
        flex-wrap: wrap;
    }

    .services {
        padding: 44px 0;
    }

    .services > .container {
        padding-top: 0;
        padding-bottom: 0;
        border-radius: 20px;
    }

    .services-head {
        margin-bottom: 22px;
    }

    .services h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .services-subtitle {
        font-size: 15px;
        line-height: 1.55;
    }

    .services-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .services-nav-item {
        min-width: unset;
        flex: 1 1 calc(50% - 10px);
        padding: 12px 14px;
        font-size: 14px;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .services-feature {
        height: 420px;
    }

    .services-feature-content {
        padding: 24px 20px;
        max-width: 100%;
    }

    .services-feature-title {
        font-size: 32px;
    }

    .services-feature-text {
        font-size: 15px;
        line-height: 1.45;
    }

    .services-feature-actions {
        margin-top: 18px;
        gap: 8px;
    }

    .services-feature-link {
        min-width: 100%;
        font-size: 16px;
    }

    .service-card {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr) 38px;
        align-items: center;
        min-height: 98px;
        border: 1px solid rgba(15, 61, 46, 0.08);
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(15, 61, 46, 0.06);
    }

    .service-card-copy {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        min-width: 0;
        padding: 12px 10px 12px 14px;
    }

    .service-card-title {
        margin: 0 0 4px;
        color: var(--text);
        font-size: 15px;
        line-height: 1.22;
    }

    .service-card-desc {
        display: -webkit-box;
        overflow: hidden;
        color: var(--muted);
        font-size: 12.5px;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .service-card-bg {
        position: relative;
        inset: auto;
        width: 86px;
        height: 100%;
        min-height: 98px;
        border-radius: 14px 0 0 14px;
    }

    .service-card-arrow {
        position: relative;
        right: auto;
        bottom: auto;
        width: 34px;
        height: 34px;
        border-color: rgba(15, 61, 46, 0.10);
        background: rgba(15, 61, 46, 0.07);
        color: var(--primary);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .service-card-arrow svg {
        width: 15px;
        height: 15px;
    }

    .service-card-arrow svg path {
        stroke: currentColor;
    }

    .service-card::after,
    .service-card::before {
        display: none;
    }

    .service-help {
        padding: 0 0 44px;
    }

    .service-help-card {
        min-height: 210px;
        padding: 24px 20px;
        border-radius: 16px;
        background-position: 65% center;
    }

    .service-help-content {
        max-width: 100%;
    }

    .service-help-title {
        font-size: 28px;
    }

    .service-help-text {
        font-size: 15px;
        line-height: 1.5;
    }

    .service-help-actions {
        margin-top: 18px;
    }

    .service-help-actions .btn-main {
        min-width: 100%;
    }

    .service-help-points {
        gap: 10px 18px;
    }

    .service-help-point {
        font-size: 15px;
    }

    .custom-request {
        padding: 0 0 42px;
    }

    .custom-request-card {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .custom-request-copy h2 {
        margin-bottom: 10px;
        font-size: 24px !important;
    }

    .custom-request-copy p {
        font-size: 14px;
        line-height: 1.55;
    }

    .custom-request-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .custom-request-field label,
    .custom-request-privacy {
        font-size: 12px;
    }

    .custom-request-field input {
        height: 42px;
        font-size: 14px;
    }

    .custom-request-field textarea {
        min-height: 104px;
        font-size: 14px;
    }

    .custom-request-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .custom-request-actions .btn-main {
        width: 100%;
        min-width: 0;
    }

    .custom-request-status {
        font-size: 13px;
    }
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
    padding: 30px 0 20px;
    background: var(--footer);
    color: var(--footer-text);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.8fr) minmax(150px, 0.7fr);
    gap: 42px;
    align-items: start;
}

.footer-brand {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    width: 22px;
    height: 22px;
}

.footer-description,
.footer-area,
.footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.55;
}

.footer-description {
    margin-top: 10px;
}

.footer-area {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.footer-title {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.footer-copy {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
    opacity: 0.85;
}

.footer-links a:hover {
    opacity: 1;
}

@media (max-width: 770px) {
    .site-footer {
        padding: 28px 0 18px;
    }

    .footer-inner {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 13px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-description {
        margin-top: 8px;
    }

    .footer-area {
        margin-top: 10px;
    }

    .footer-links {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .footer-title {
        display: none;
    }

    .footer-links a {
        display: inline-flex;
        align-items: center;
    }

    .footer-links a:not(:last-child)::after {
        content: "·";
        margin: 0 8px;
        color: rgba(255, 255, 255, 0.4);
    }

    .footer-copy {
        width: 100%;
        padding-top: 12px;
        text-align: center;
    }
}

/* =========================
   LEGAL PAGES
   ========================= */

.page-legal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-soft);
}

.page-legal main {
    flex: 1;
}

.legal-header {
    position: relative;
    min-height: clamp(260px, 30vw, 400px);
    padding: clamp(54px, 8vw, 96px) 0;
    background: url('img/datenschutz.PNG') center 68% / cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.legal-header::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to right,
        rgba(8, 31, 23, 0.94) 0%,
        rgba(8, 31, 23, 0.78) 42%,
        rgba(8, 31, 23, 0.28) 72%,
        rgba(8, 31, 23, 0.12) 100%
    );
    content: "";
}

.legal-header__eyebrow {
    margin-bottom: 10px;
    color: #61d1ad;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.legal-header h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    text-wrap: balance;
}

.legal-header__title-short,
.legal-header__subtitle {
    display: none;
}

.legal-content {
    padding: clamp(36px, 6vw, 72px) 0;
}

.legal-document {
    max-width: 900px;
    color: var(--text);
}

.legal-document section + section {
    margin-top: clamp(30px, 4vw, 46px);
}

.legal-document h2 {
    margin: 0 0 14px;
    font-size: clamp(20px, 2.3vw, 26px);
    line-height: 1.25;
}

.legal-document p,
.legal-document li,
.legal-document address {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.7;
}

.legal-document p {
    margin: 0 0 14px;
}

.legal-document address {
    margin: 0;
    font-style: normal;
}

.legal-document ul {
    margin: 12px 0 18px;
    padding-left: 22px;
}

.legal-document li + li {
    margin-top: 6px;
}

.legal-document a {
    color: var(--primary-hover);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .legal-header {
        min-height: clamp(220px, 68vw, 290px);
        padding: 44px 0;
        background-position: 62% center;
    }

    .legal-header::before {
        background: rgba(8, 31, 23, 0.7);
    }

    .legal-header h1.legal-header__title--compact {
        max-width: 320px;
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1;
    }

    .legal-header__title-full {
        display: none;
    }

    .legal-header__title-short,
    .legal-header__subtitle {
        display: block;
    }

    .legal-header__subtitle {
        max-width: 300px;
        margin: 8px 0 0;
        color: rgba(255, 255, 255, 0.88);
        font-size: clamp(15px, 4vw, 17px);
        font-weight: 600;
        line-height: 1.25;
    }

    .footer-inner {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-description {
        margin-top: 10px;
    }

    .footer-area {
        margin-top: 14px;
    }

    .footer-links {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .footer-title {
        display: none;
    }

    .footer-links a {
        display: inline-flex;
        align-items: center;
    }

    .footer-links a:not(:last-child)::after {
        content: "·";
        margin: 0 8px;
        color: rgba(255, 255, 255, 0.4);
    }

    .footer-copy {
        width: 100%;
        padding-top: 18px;
        text-align: center;
    }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
    .grid {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }

    .nav {
        display: none;
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
    .how-it-works h2,
    .references h2 {
        /* h2-Stil wird global definiert */
    }

    .step-content h3 {
        font-size: 22px;
    }

    .step-content p,
    .references-link {
        font-size: 16px;
    }
}

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

    .step-arrow {
        display: none;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .references-side {
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
    }

    .reference-card-large {
        min-height: 90px;
    }

    .reference-card-small {
        min-height: 50px;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 44px 0;
    }

    .references {
        padding: 44px 0;
    }

    .how-it-works h2,
    .references h2 {
        /* h2-Stil wird global definiert */
    }

    .references-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .references-link {
        margin-top: 0;
    }

    .references-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 0 12px;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0;
        -webkit-overflow-scrolling: touch;
    }

    .references-side {
        display: contents;
    }

    .reference-card {
        flex: 0 0 100%;
        width: 100%;
        min-height: clamp(230px, 64vw, 300px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .reference-card-large,
    .reference-card-small {
        min-height: clamp(230px, 64vw, 300px);
    }

    .reference-card img {
        height: 100%;
        aspect-ratio: 4 / 3;
    }

    .references-grid::-webkit-scrollbar {
        display: none;
    }

    .references-grid {
        scrollbar-width: none;
    }

    .references-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 10px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 600;
    }

    .references-swipe-hint__dots {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .references-swipe-hint__dots span {
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: rgba(15, 61, 46, 0.24);
        transition: width 0.18s ease, background 0.18s ease;
    }

    .references-swipe-hint__dots span.is-active {
        width: 18px;
        background: var(--primary);
    }

    .step-item {
        gap: 14px;
    }

    .step-badge {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

    .step-content h3 {
        font-size: 20px;
    }

    .step-content p {
        font-size: 15px;
    }
}

/* =========================
   MOBILE TYPOGRAPHY SYSTEM
   322px - 770px
   ========================= */

@media (min-width: 322px) and (max-width: 770px) {
    :root {
        --text-h1: clamp(30px, 6.2vw, 40px);
        --text-h2: clamp(23px, 4.8vw, 30px);
        --text-h3: clamp(18px, 3.6vw, 22px);
        --text-body: clamp(15px, 2.35vw, 16.5px);
        --text-small: clamp(13px, 2vw, 14.5px);
        --text-label: clamp(11px, 1.75vw, 12.5px);
        --text-button: clamp(14.5px, 2.2vw, 15.5px);
        --line-heading: 1.14;
        --line-body: 1.62;
        --line-small: 1.5;
        --space-2xs: clamp(6px, 1.8vw, 9px);
        --space-xs: clamp(9px, 2.4vw, 12px);
        --space-sm: clamp(13px, 3.5vw, 18px);
        --space-md: clamp(18px, 4.8vw, 26px);
        --space-lg: clamp(24px, 5.4vw, 34px);
        --space-xl: clamp(34px, 7.4vw, 52px);
        --space-2xl: clamp(42px, 9vw, 62px);
        --section-space: clamp(42px, 7vw, 56px);
        --section-join-space: clamp(20px, 4vw, 28px);
        --page-gutter: clamp(18px, 5.5vw, 32px);
    }

    body {
        font-size: var(--text-body);
        line-height: var(--line-body);
    }

    .header-inner,
    .container {
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }

    .hero-bg > .container,
    .hero-inner,
    .hero-title,
    .hero-subtitle,
    .services-head,
    .services-copy,
    .services-list,
    .service-card,
    .references-head,
    .references-grid,
    .reference-card,
    .steps-grid,
    .step-item,
    .service-help-content,
    .service-help-card,
    .calc-layout,
    .calc-card {
        width: 100%;
        max-width: 100%;
    }

    .hero,
    .hero-bg,
    .hero-inner {
        min-height: clamp(400px, 80vw, 485px);
    }

    .hero-inner {
        justify-content: center;
        gap: 0;
    }

    .hero-eyebrow,
    .section-kicker,
    .reference-tag {
        font-size: var(--text-label);
        line-height: var(--line-small);
        margin-bottom: var(--space-sm);
    }

    .section-kicker {
        font-size: clamp(10px, 1.7vw, 11.5px);
        letter-spacing: 0.1em;
        margin-bottom: var(--space-xs);
    }

    .reference-tag {
        padding: clamp(4px, 1.1vw, 5px) clamp(8px, 2vw, 10px);
        margin-bottom: var(--space-xs);
        font-size: clamp(9.5px, 1.7vw, 11px);
        letter-spacing: 0.04em;
        border-width: 1px;
    }

    .hero-title {
        font-size: clamp(30px, 6.1vw, 40px);
        line-height: 1.06;
        margin-bottom: var(--space-sm);
        text-wrap: balance;
    }

    .hero-kicker {
        font-size: clamp(16px, 3vw, 20px);
        line-height: 1.25;
        margin-bottom: var(--space-xs);
    }

    .hero-subtitle {
        width: auto;
        max-width: 100%;
        font-size: clamp(13.5px, 2.45vw, 15.5px);
        line-height: 1.4;
        margin-bottom: var(--space-sm);
        white-space: normal;
    }

    .hero-area {
        min-height: 30px;
        padding: 6px 10px;
        font-size: clamp(12.5px, 2.2vw, 14px);
        margin-bottom: var(--space-md);
    }

    .hero-trust {
        margin-top: var(--space-lg);
        padding-top: var(--space-sm);
    }

    .hero-trust-stars {
        gap: var(--space-xs);
        font-size: clamp(16px, 3vw, 20px);
    }

    .hero-trust-score,
    .hero-trust-desc {
        font-size: var(--text-small);
        line-height: var(--line-small);
    }

    .btn-main,
    .btn-secondary,
    .services-bottom-cta__button,
    .service-help-actions .btn-main {
        font-size: var(--text-button);
        line-height: 1.25;
        padding: clamp(13px, 2.4vw, 15px) clamp(22px, 4vw, 28px);
    }

    .how-it-works {
        padding-top: var(--section-space);
        padding-bottom: var(--section-join-space);
    }

    .references,
    .services,
    .service-area-section {
        padding-top: var(--section-join-space);
        padding-bottom: var(--section-space);
    }

    .hero + .services {
        padding-top: var(--space-lg);
    }

    .service-help {
        padding-bottom: var(--section-space);
    }

    h2,
    .services h2,
    .how-it-works h2,
    .references h2,
    .service-help-title {
        font-size: var(--text-h2) !important;
        line-height: var(--line-heading) !important;
        width: 100%;
        max-width: 100%;
        margin-bottom: var(--space-sm);
        text-wrap: balance;
    }

    .services-subtitle,
    .service-help-text,
    .step-content p,
    .reference-title,
    .service-card-desc,
    .services-bottom-cta__text {
        font-size: var(--text-body);
        line-height: var(--line-body);
    }

    .steps-grid {
        gap: var(--space-md);
    }

    .service-area-card {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        padding: clamp(22px, 6vw, 30px);
        border-radius: 16px;
    }

    .service-area-copy h2 {
        font-size: var(--text-h2) !important;
        line-height: var(--line-heading) !important;
        margin-bottom: var(--space-sm);
    }

    .service-area-copy p {
        font-size: var(--text-body);
        line-height: var(--line-body);
    }

    .service-area-places {
        justify-content: flex-start;
        gap: 8px;
    }

    .service-area-places span {
        min-height: 32px;
        padding: 7px 11px;
        font-size: var(--text-small);
    }

    .category-seo {
        padding-bottom: var(--section-space);
    }

    .category-seo-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding-top: var(--space-lg);
    }

    .category-seo-content h2 {
        font-size: var(--text-h2) !important;
        line-height: var(--line-heading) !important;
        margin-bottom: var(--space-sm);
    }

    .category-seo-content p {
        font-size: var(--text-body);
        line-height: var(--line-body);
    }

    .category-seo-tags {
        justify-content: flex-start;
        gap: 8px;
    }

    .category-seo-tags span {
        min-height: 30px;
        padding: 7px 10px;
        font-size: var(--text-small);
    }

    .service-detail-seo {
        padding-bottom: var(--section-space);
    }

    .service-detail-seo__head {
        margin-bottom: var(--space-md);
    }

    .service-detail-seo__head h2 {
        font-size: var(--text-h2) !important;
        line-height: var(--line-heading) !important;
    }

    .service-detail-seo__list {
        gap: var(--space-sm);
    }

    .service-detail-seo__item {
        padding: var(--space-md);
    }

    .service-detail-seo__item h3 {
        font-size: var(--text-h3);
        line-height: var(--line-heading);
    }

    .service-detail-seo__item p {
        font-size: var(--text-body);
        line-height: var(--line-body);
    }

    .step-item {
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .step-content {
        flex: 1;
        min-width: 0;
        width: auto;
        max-width: 100%;
    }

    .step-content h3,
    .service-card-title {
        font-size: var(--text-h3);
        line-height: 1.18;
        width: auto;
        max-width: 100%;
        margin-bottom: var(--space-2xs);
        text-wrap: balance;
    }

    .step-content p {
        width: auto;
        max-width: 34em;
    }

    .references-head,
    .services-head {
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }

    .services-list {
        gap: var(--space-md);
    }

    .references-grid {
        gap: var(--space-md);
    }

    .service-card {
        grid-template-columns: clamp(76px, 22vw, 92px) minmax(0, 1fr) 36px;
        min-height: clamp(88px, 25vw, 106px);
        border-radius: 14px;
    }

    .service-card-copy {
        left: auto;
        right: auto;
        bottom: auto;
        padding: 10px 9px 10px 12px;
    }

    .service-card-bg {
        width: clamp(76px, 22vw, 92px);
        min-height: clamp(88px, 25vw, 106px);
        border-radius: 14px 0 0 14px;
    }

    .service-card-title {
        font-size: clamp(14px, 3.7vw, 15.5px);
        line-height: 1.2;
    }

    .service-card-desc {
        font-size: clamp(11.5px, 3.2vw, 13px);
        line-height: 1.32;
    }

    .service-card-arrow {
        right: auto;
        bottom: auto;
        width: 32px;
        height: 32px;
    }

    .service-help-card {
        min-height: clamp(270px, 72vw, 380px);
        padding: var(--space-lg) var(--space-md);
    }

    .service-help-actions {
        margin-top: var(--space-md);
    }

    .service-help-points {
        margin-top: var(--space-md);
        gap: var(--space-xs) var(--space-md);
    }

    .service-help-point,
    .footer-links a {
        font-size: var(--text-small);
        line-height: var(--line-small);
    }

    .footer-brand {
        font-size: clamp(15px, 4vw, 16px);
        line-height: var(--line-small);
    }

    .services-bottom-cta {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .services-bottom-cta__button {
        min-width: 0;
        width: 100%;
    }

    .mobile-nav-dialog__links {
        gap: 6px;
        margin-top: 0;
    }

    .mobile-nav-dialog__links a {
        min-height: 48px;
        font-size: clamp(16px, 3.8vw, 18px);
        line-height: 1.15;
    }

    .portfolio-dialog {
        padding: 0;
    }

    .portfolio-dialog__panel {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .portfolio-dialog__topbar {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: var(--space-xs);
        padding: var(--space-sm) var(--page-gutter);
    }

    .portfolio-dialog__back,
    .portfolio-dialog__close {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 24px;
    }

    .portfolio-dialog__eyebrow,
    .portfolio-project-info__meta {
        font-size: var(--text-label);
        letter-spacing: 0.08em;
    }

    .portfolio-dialog__title {
        font-size: var(--text-h2);
        line-height: var(--line-heading);
    }

    .portfolio-dialog__body {
        padding: var(--space-md) var(--page-gutter) var(--space-lg);
    }

    .portfolio-category-grid,
    .portfolio-project-grid,
    .portfolio-skeleton-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .portfolio-category-card,
    .portfolio-project-card {
        min-height: clamp(190px, 52vw, 250px);
        border-radius: 16px;
        padding: var(--space-md);
    }

    .portfolio-category-card__count,
    .portfolio-project-card span {
        padding: 4px 8px;
        font-size: clamp(9px, 2.4vw, 10.5px);
        letter-spacing: 0.04em;
    }

    .portfolio-category-card strong,
    .portfolio-project-card strong {
        font-size: var(--text-h3);
    }

    .portfolio-category-card small,
    .portfolio-project-card small,
    .portfolio-project-card p {
        font-size: var(--text-small);
        line-height: var(--line-small);
    }

    .portfolio-filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: var(--space-xs);
        margin: 0 calc(-1 * var(--page-gutter)) var(--space-md);
        padding: 0 var(--page-gutter) 4px;
    }

    .portfolio-filter {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: var(--text-small);
    }

    .portfolio-project-detail {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .portfolio-gallery__stage {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    .portfolio-gallery__nav {
        width: 36px;
        height: 36px;
        font-size: 26px;
    }

    .portfolio-gallery__nav--prev {
        left: 10px;
    }

    .portfolio-gallery__nav--next {
        right: 10px;
    }

    .portfolio-gallery__thumbs {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
        gap: var(--space-xs);
    }

    .portfolio-gallery__thumbs button {
        height: 58px;
        border-radius: 10px;
    }

    .portfolio-project-info {
        border-radius: 16px;
        padding: var(--space-md);
    }

    .portfolio-project-info h3 {
        font-size: var(--text-h2);
        line-height: var(--line-heading);
    }

    .portfolio-project-info p,
    .portfolio-project-info li,
    .portfolio-detail-list span {
        font-size: var(--text-small);
        line-height: var(--line-small);
    }

    .portfolio-empty {
        min-height: 260px;
        padding: var(--space-lg) 0;
    }

    .portfolio-empty h3 {
        font-size: var(--text-h3);
    }
}

@media (max-width: 600px) {
    header {
        padding: 8px 0;
    }

    .header-inner {
        min-height: 34px;
    }

    .logo span,
    .nav-logo span {
        display: none;
    }

    .logo_img {
        width: 29px;
        height: 29px;
        margin-right: 0;
    }

    .header-expand {
        width: 42px;
        --collapsed-h: 34px;
        padding: 0;
        justify-content: center;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.7);
    }

    .header-expand:hover,
    .header-expand:focus-within {
        width: 184px;
        height: 112px;
        padding: 8px 10px;
        justify-content: space-between;
        border-radius: 10px;
        background: var(--bg);
    }

    .header-expand-list {
        width: 100%;
    }

    .header-item:first-child::before,
    .header-expand:not(:hover):not(:focus-within) .header-item:first-child > span,
    .header-expand:not(:hover):not(:focus-within) .header-phone span,
    .header-expand:not(:hover):not(:focus-within) .header-email,
    .header-expand:not(:hover):not(:focus-within) .header-hours,
    .header-expand:not(:hover):not(:focus-within) .header-separator,
    .header-expand:not(:hover):not(:focus-within) .header-expand-icon-container {
        display: none;
    }

    .header-expand:not(:hover):not(:focus-within) .header-phone {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        color: var(--primary);
    }

    .header-expand:not(:hover):not(:focus-within) .header-phone svg {
        width: 17px;
        height: 17px;
    }

    .header-expand:hover .header-item:first-child > span,
    .header-expand:focus-within .header-item:first-child > span {
        display: inline;
    }

    .navbar,
    .nav-wrap {
        min-height: 54px;
    }

    .mobile-menu-toggle {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        gap: 4px;
    }

    .mobile-menu-toggle span {
        width: 16px;
    }
}

@media (min-width: 361px) and (max-width: 430px) {
    :root {
        --text-h1: clamp(28px, 7.8vw, 32px);
        --text-h2: clamp(21px, 5.5vw, 23px);
        --text-h3: clamp(17px, 4.8vw, 19px);
        --text-body: clamp(14.5px, 4vw, 15.5px);
        --text-small: clamp(12.5px, 3.5vw, 13.5px);
        --text-label: clamp(10.5px, 3vw, 12px);
        --text-button: clamp(14px, 3.8vw, 15px);
        --line-heading: 1.12;
        --line-body: 1.54;
        --space-sm: clamp(11px, 3vw, 14px);
        --space-md: clamp(15px, 4vw, 20px);
        --space-lg: clamp(22px, 5.8vw, 28px);
        --space-xl: clamp(30px, 7.8vw, 38px);
        --section-space: clamp(38px, 9vw, 46px);
        --section-join-space: clamp(18px, 4.8vw, 22px);
        --page-gutter: clamp(16px, 4.8vw, 20px);
    }

    .hero,
    .hero-bg,
    .hero-inner {
        min-height: clamp(375px, 100vw, 435px);
    }

    .hero-title {
        max-width: 11.6em;
        font-size: clamp(27px, 7.2vw, 31px);
    }

    .page-service-overview .hero-title {
        max-width: 12.5em;
        font-size: clamp(25px, 6.4vw, 29px);
    }

    .hero-subtitle {
        display: block;
        overflow: visible;
    }

    .hero-trust {
        margin-top: var(--space-lg);
        padding-top: var(--space-sm);
    }

    .hero-trust-stars {
        font-size: clamp(18px, 4.7vw, 20px);
    }

    .btn-main,
    .btn-secondary,
    .services-bottom-cta__button,
    .service-help-actions .btn-main {
        padding: 12px 20px;
    }

    .how-it-works h2,
    .services h2,
    .references h2,
    .service-help-title {
        max-width: none;
        font-size: clamp(19px, 5.1vw, 20px) !important;
    }

    .section-kicker {
        font-size: clamp(9.5px, 2.5vw, 10.5px);
        letter-spacing: 0.09em;
        margin-bottom: 8px;
    }

    .reference-tag {
        padding: 4px 8px;
        font-size: clamp(9px, 2.4vw, 10px);
        letter-spacing: 0.035em;
    }

    .steps-grid {
        gap: var(--space-sm);
    }

    .step-badge {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 14px;
        box-shadow: 0 6px 12px rgba(15, 61, 46, 0.16);
    }

    .step-content p {
        font-size: clamp(13.5px, 3.7vw, 14.5px);
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 322px) and (max-width: 360px) {
    :root {
        --text-h1: clamp(28px, 8.8vw, 31px);
        --text-h2: clamp(20px, 6.2vw, 22px);
        --text-h3: clamp(17px, 5vw, 19px);
        --text-body: clamp(14.5px, 4.45vw, 15.5px);
        --text-small: clamp(12.5px, 3.9vw, 13.5px);
        --text-button: clamp(14px, 4.2vw, 15px);
        --line-heading: 1.12;
        --line-body: 1.54;
        --space-sm: clamp(11px, 3.4vw, 14px);
        --space-md: clamp(15px, 4.6vw, 19px);
        --space-lg: clamp(22px, 6.4vw, 26px);
        --section-space: clamp(36px, 11vw, 42px);
        --section-join-space: clamp(16px, 5vw, 20px);
        --page-gutter: clamp(16px, 5vw, 18px);
    }

    .hero,
    .hero-bg,
    .hero-inner {
        min-height: clamp(380px, 118vw, 430px);
    }

    .hero-title {
        max-width: 11.6em;
        font-size: clamp(26px, 8vw, 29px);
    }

    .page-service-overview .hero-title {
        max-width: 12.5em;
        font-size: clamp(24px, 7.2vw, 27px);
    }

    .hero-subtitle {
        display: block;
        overflow: visible;
    }

    .hero-trust {
        margin-top: var(--space-lg);
    }

    .how-it-works h2,
    .services h2,
    .references h2,
    .service-help-title {
        max-width: none;
        font-size: clamp(18.5px, 5.7vw, 19.5px) !important;
    }

    .section-kicker {
        font-size: 9.5px;
        letter-spacing: 0.08em;
        margin-bottom: 8px;
    }

    .reference-tag {
        padding: 4px 8px;
        font-size: 9px;
        letter-spacing: 0.03em;
    }

    .step-badge {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 13px;
        box-shadow: 0 6px 12px rgba(15, 61, 46, 0.16);
    }

    .step-content p {
        font-size: clamp(13px, 4vw, 14px);
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .btn-main,
    .btn-secondary,
    .services-bottom-cta__button,
    .service-help-actions .btn-main {
        padding: 12px 20px;
    }
}
