:root {
    --font-display: "Playfair Display", serif;
    --font-body: "Manrope", sans-serif;
    --brand-navy: #1c2f45;
    --brand-blue: #2b4c6f;
    --brand-blue-soft: #dbe7f2;
    --brand-mist: #f4f7fb;
    --brand-accent: #7ba1c7;
    --text-dark: #152231;
    --text-muted: #4a5b6c;
    --white: #ffffff;
    --shadow-soft: 0 18px 40px rgba(28, 47, 69, 0.12);
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at top left, #f0f5fb 0%, var(--brand-mist) 45%, #eef2f7 100%);
    color: var(--text-dark);
    padding-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--brand-blue);
}

a:hover {
    color: var(--brand-navy);
}

#header {
    background: rgba(28, 47, 69, 0.92);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 24px rgba(13, 25, 39, 0.25);
}

#header .logo {
    font-family: var(--font-display);
    letter-spacing: 0.03em;
}

#header>nav>a[href="#menu"]:before {
    content: none;
}

#header>nav>a[href="#menu"] {
    padding-right: 0;
}

#header .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-right: 0;
}

#header .menu-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

#header .menu-icon svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#menu {
    background: rgba(28, 47, 69, 0.98);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--brand-accent);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.hero {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(28, 47, 69, 0.95), rgba(44, 76, 111, 0.9));
    color: var(--white);
}

.hero--compact {
    padding: 4.5rem 0 3.5rem;
}

.hero--single .hero-inner {
    grid-template-columns: 1fr;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 161, 199, 0.35) 0%, rgba(123, 161, 199, 0) 70%);
    top: -180px;
    right: -140px;
}

.hero::after {
    width: 520px;
    height: 520px;
    top: auto;
    bottom: -240px;
    left: -200px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
}

.hero-content h1,
.hero-content p {
    color: var(--white);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

ul.actions {
    list-style: none;
    margin: 1.75rem 0 0;
    padding-left: 0;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

ul.actions li {
    padding-left: 0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.hero-card p,
.hero-card a {
    color: rgba(255, 255, 255, 0.9);
}

.hero-card a:hover {
    color: #ffffff;
}

.hero-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-preise .hero-inner {
    gap: 4rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.page-preise .hero-content {
    padding-right: 0.5rem;
}

.page-preise .hero-content h1 {
    font-size: clamp(2.2rem, 3.2vw, 3.2rem);
    line-height: 1.08;
}

.page-preise .hero-content p {
    max-width: 560px;
}

.page-preise .hero-card {
    align-self: center;
    justify-self: end;
    max-width: 360px;
}

.hero-card--solid {
    background: #ffffff;
    border: 1px solid rgba(28, 47, 69, 0.12);
    color: var(--text-dark);
}

.hero-card--solid p,
.hero-card--solid a,
.hero-card--solid .hero-card__title {
    color: var(--text-dark);
}

.section {
    padding: 4.5rem 0;
}

.section--accent {
    background: var(--brand-blue-soft);
}

.section--tight {
    padding: 3rem 0;
}

.section--mist {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
}

.section-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.section-title--left {
    text-align: left;
    margin: 0 0 2rem;
}

.section-title h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.section-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, rgba(123, 161, 199, 0), rgba(43, 76, 111, 0.5), rgba(123, 161, 199, 0));
    margin: 1.2rem auto 0;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.trust-pill {
    background: #ffffff;
    border: 1px solid rgba(28, 47, 69, 0.12);
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    color: var(--brand-navy);
    box-shadow: 0 12px 30px rgba(28, 47, 69, 0.08);
}

.split {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}

.split-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(28, 47, 69, 0.1);
    box-shadow: var(--shadow-soft);
}

.stat-grid,
.step-grid,
.quote-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card,
.step-card,
.quote-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem;
    border: 1px solid rgba(28, 47, 69, 0.08);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    color: var(--brand-navy);
    margin-bottom: 0.25rem;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    margin: 0;
}

.step-number {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--brand-accent);
    text-transform: uppercase;
}

.quote-card p {
    font-style: italic;
}

.quote-card::before {
    content: "“";
    position: absolute;
    top: -10px;
    right: 18px;
    font-size: 3.5rem;
    color: rgba(123, 161, 199, 0.3);
    font-family: var(--font-display);
}

.quote-author {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.references-section .inner {
    max-width: 1100px;
}

.references-section .section-title {
    margin-bottom: 3rem;
}

.references-quotes {
    margin-bottom: 3.5rem;
}

.references-divider {
    width: 120px;
    height: 2px;
    margin: 0 auto 3.5rem;
    background: linear-gradient(90deg, rgba(123, 161, 199, 0), rgba(43, 76, 111, 0.45), rgba(123, 161, 199, 0));
}

.references-grid {
    margin-top: 3.5rem;
}

.references-section .quote-grid,
.references-section .card-grid {
    gap: 2.25rem;
}

.section-note {
    margin-top: 1.5rem;
    color: var(--text-muted);
    text-align: center;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(28, 47, 69, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card {
    position: relative;
    padding-top: 2.5rem;
    background: linear-gradient(160deg, #ffffff 0%, #f4f8fd 100%);
    overflow: hidden;
}

.service-card .service-icon {
    color: var(--brand-blue);
    margin-bottom: 0.75rem;
    background: rgba(123, 161, 199, 0.18);
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.service-card .service-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card:hover {
    border-color: rgba(43, 76, 111, 0.2);
}

.service-card:hover .service-icon {
    background: rgba(123, 161, 199, 0.3);
    transform: translateY(-2px);
}

.service-card::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(123, 161, 199, 0.35) 0%, rgba(123, 161, 199, 0) 70%);
    opacity: 0.6;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(28, 47, 69, 0.16);
}

.section .card-grid .card {
    animation: fadeUp 0.7s ease both;
}

.section .card-grid .card:nth-child(2) {
    animation-delay: 0.05s;
}

.section .card-grid .card:nth-child(3) {
    animation-delay: 0.1s;
}

.section .card-grid .card:nth-child(4) {
    animation-delay: 0.15s;
}

.section .card-grid .card:nth-child(5) {
    animation-delay: 0.2s;
}

.section .card-grid .card:nth-child(6) {
    animation-delay: 0.25s;
}

.trust-list,
.advantage-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.trust-list li,
.advantage-list li {
    margin-bottom: 0.5rem;
}

.checklist {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0;
}

.checklist li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-blue);
    font-weight: 700;
}

.metrics {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.metric {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
}

.metric h3 {
    margin-bottom: 0.25rem;
}

.cta-band {
    background: var(--brand-navy);
    color: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.cta-band::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(123, 161, 199, 0.35) 0%, rgba(123, 161, 199, 0) 70%);
    opacity: 0.8;
}

.cta-band > * {
    position: relative;
}

.cta-band h2,
.cta-band p {
    color: var(--white);
}

.contact-choice .contact-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    border: 1px solid rgba(28, 47, 69, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(160deg, #ffffff 0%, #f4f8fd 100%);
}

.contact-card__cta {
    font-weight: 600;
    color: var(--brand-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-card__cta::after {
    content: "→";
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.contact-choice .contact-card:hover .contact-card__cta::after {
    transform: translateX(4px);
}

.contact-choice .contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(28, 47, 69, 0.14);
}

.reference-card {
    position: relative;
    overflow: hidden;
}

.reference-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(43, 76, 111, 0.08), rgba(123, 161, 199, 0.2));
    opacity: 0.7;
}

.reference-card > * {
    position: relative;
}

.reference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.reference-tag {
    background: var(--brand-blue-soft);
    color: var(--brand-navy);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, background 0.2s ease;
}

.reference-card:hover .reference-tag {
    background: #cfe0f2;
    transform: translateY(-2px);
}

.form-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.form-card {
    border-top: 4px solid rgba(43, 76, 111, 0.25);
    background: linear-gradient(180deg, #ffffff 0%, #f2f7fd 100%);
    position: relative;
    overflow: hidden;
}

.form-card:focus-within {
    box-shadow: 0 30px 60px rgba(28, 47, 69, 0.2);
    border-top-color: rgba(43, 76, 111, 0.45);
}

.form-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(123, 161, 199, 0.35) 0%, rgba(123, 161, 199, 0) 70%);
    opacity: 0.8;
}

.form-card > * {
    position: relative;
}

.form-info {
    border-top: 4px solid rgba(43, 76, 111, 0.25);
    background: #ffffff;
}

.form-info p,
.form-info a {
    color: var(--text-dark);
    line-height: 1.6;
}

.form-card label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-card h2 {
    margin-top: 0;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card select,
.form-card textarea {
    background: #f8fbff;
    border-radius: 0.75rem;
    border: 1px solid rgba(28, 47, 69, 0.15);
    color: var(--text-dark);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(123, 161, 199, 0.2);
}

.form-card textarea {
    min-height: 240px;
}

.field-message {
    margin-top: 1.5rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid--message {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
    grid-template-areas:
        "name email message"
        "phone objekt message"
        "standort start message";
    align-items: start;
}

.form-grid--message .field-name {
    grid-area: name;
}

.form-grid--message .field-email {
    grid-area: email;
}

.form-grid--message .field-phone {
    grid-area: phone;
}

.form-grid--message .field-objekt {
    grid-area: objekt;
}

.form-grid--message .field-standort {
    grid-area: standort;
}

.form-grid--message .field-start {
    grid-area: start;
}

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

.form-grid--message .field-message {
    grid-area: message;
}

.form-grid--message .field-adresse {
    grid-area: objekt;
}

.form-grid--message .field-wohnung {
    grid-area: standort;
}

.form-grid--message .field-anliegen {
    grid-area: start;
}

.form-errors,
.form-success {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.75rem;
}

.form-errors {
    background: #fff1f1;
    border: 1px solid #f4b6b6;
}

.form-success {
    background: #ecf8f0;
    border: 1px solid #9ed6b0;
}

.consent-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.placeholder-media {
    border: 2px dashed rgba(43, 76, 111, 0.25);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    color: var(--brand-blue);
    background: #ffffff;
    margin-top: 1.5rem;
}

.placeholder-media--tall {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card {
    border-top: 4px solid rgba(43, 76, 111, 0.25);
    background: linear-gradient(180deg, #ffffff 0%, #f2f7fd 100%);
    position: relative;
    overflow: hidden;
}

.pricing-card--featured {
    border-top-color: rgba(28, 47, 69, 0.55);
    box-shadow: 0 26px 60px rgba(28, 47, 69, 0.18);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(123, 161, 199, 0.2);
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.badge--dark {
    background: var(--brand-navy);
    color: #ffffff;
}

.pricing-meta {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--brand-blue);
}

.button {
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    height: auto;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    background: transparent;
    color: var(--brand-blue);
    box-shadow: inset 0 0 0 1px rgba(43, 76, 111, 0.35);
}

.button.primary {
    background: var(--brand-blue);
    color: var(--white);
    box-shadow: none;
}

.button.primary:hover {
    background: var(--brand-navy);
    color: var(--white);
}

.button:hover {
    background: rgba(43, 76, 111, 0.08);
    box-shadow: inset 0 0 0 1px rgba(43, 76, 111, 0.55);
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.hero .button {
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.hero .button:hover {
    background: rgba(255, 255, 255, 0.12);
}

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

#footer {
    background: var(--brand-navy);
    color: #e6edf5;
}

#footer .inner p,
#footer .inner a,
#footer .icons .label {
    color: #e6edf5;
}

#footer .icons a {
    background: rgba(230, 237, 245, 0.1);
    border-radius: 50%;
    padding: 0.35rem;
}

#footer ul.icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

#footer ul.icons li {
    padding: 0;
}

#footer ul.icons a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(230, 237, 245, 0.35);
}

#footer .footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#footer .footer-icon svg {
    width: 18px;
    height: 18px;
    stroke: #e6edf5;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-links a {
    color: #e6edf5;
    border-bottom-color: rgba(230, 237, 245, 0.6);
}

.footer-links a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.footer-contact p {
    color: #e6edf5;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-card {
    animation: fadeUp 0.8s ease both;
}

.hero-card {
    animation-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-card,
    .section .card-grid .card {
        animation: none;
    }
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .cta-band {
        flex-direction: column;
        text-align: center;
    }

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

    .form-layout {
        grid-template-columns: 1fr;
    }

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

    .form-grid--message {
        grid-template-columns: 1fr;
        grid-template-areas:
            "name"
            "email"
            "phone"
            "objekt"
            "standort"
            "start"
            "message";
    }

    .form-grid--three {
        grid-template-columns: 1fr;
    }

    .references-section .section-title {
        margin-bottom: 2.5rem;
    }

    .references-quotes,
    .references-grid {
        margin-top: 0;
        margin-bottom: 2rem;
    }

    .references-divider {
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .section {
        padding: 3.5rem 0;
    }

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

    .hero-actions .button {
        width: 100%;
    }

    .cta-band {
        padding: 2rem;
    }

    .quote-grid,
    .card-grid,
    .stat-grid,
    .step-grid {
        grid-template-columns: 1fr;
    }

    .section-title::after {
        width: 90px;
    }

    .trust-pill {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .placeholder-media {
        padding: 1.5rem;
    }
}
