:root {
    --blue-dark: #062b68;
    --blue: #0648a7;
    --blue-bright: #1175d7;
    --blue-light: #eaf3ff;

    --text: #13202c;
    --muted: #647180;

    --bg: #ffffff;
    --soft: #f5f8fc;
    --border: #dce5ef;

    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;

    border-radius: 10px;
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 15px;
}

.brand-text span {
    margin-top: 4px;
    font-size: 10px;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    font-size: 13px;
    font-weight: 650;

    text-decoration: none;
}

.main-nav a:hover {
    color: var(--blue);
}

.main-nav .nav-contact {
    padding: 9px 17px;

    background: var(--blue-dark);
    color: white;

    border-radius: 999px;
}


/* HERO */

.hero {
    padding: 62px 0 70px;

    background:
        radial-gradient(
            circle at 80% 12%,
            rgba(17,117,215,.12),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7fbff 100%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;

    gap: 58px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 15px;

    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .12em;

    font-size: 11px;
    font-weight: 800;
}

.hero h1 {
    max-width: 720px;

    margin: 0 0 22px;

    font-size: clamp(44px, 6vw, 70px);
    line-height: .98;
    letter-spacing: -.045em;
}

.hero h1 span {
    color: var(--blue);
}

.hero-text {
    max-width: 650px;

    margin-bottom: 27px;

    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 29px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 11px 21px;

    border-radius: 999px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 750;

    transition:
        transform .18s ease,
        background .18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--blue-dark);
    color: white;
}

.button-outline {
    border: 1px solid var(--border);
    background: white;
}

.button-light {
    flex-shrink: 0;

    background: white;
    color: var(--blue-dark);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 600;
}


/* SERVICES PANEL */

.services-panel {
    overflow: hidden;

    background: var(--blue-dark);
    color: white;

    border-radius: 22px;

    box-shadow:
        0 25px 60px rgba(6,43,104,.15);
}

.services-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 22px 24px;

    background: var(--blue);
}

.services-title span {
    color: rgba(255,255,255,.65);

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.services-title strong {
    font-size: 13px;
}

.services-panel > a {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;

    gap: 12px;

    min-height: 57px;
    padding: 10px 22px;

    border-bottom: 1px solid rgba(255,255,255,.10);

    text-decoration: none;
}

.services-panel > a:last-child {
    border-bottom: 0;
}

.services-panel > a:hover {
    background: rgba(255,255,255,.06);
}

.services-panel > a span {
    color: #69a9ee;

    font-size: 10px;
    font-weight: 800;
}

.services-panel > a strong {
    font-size: 13px;
}

.services-panel > a em {
    color: rgba(255,255,255,.52);

    font-size: 10px;
    font-style: normal;
}


/* ABOUT */

.about-section {
    padding: 70px 0;

    background: var(--soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;

    gap: 62px;
    align-items: center;
}

.about-photo {
    width: 100%;
}

.about-photo div {
    aspect-ratio: .86;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            145deg,
            var(--blue-dark),
            var(--blue)
        );

    color: rgba(255,255,255,.7);

    border-radius: 20px;

    font-size: 12px;
    letter-spacing: .15em;
    font-weight: 800;
}

.about-content {
    max-width: 760px;
}

.about-content h2 {
    margin: 0 0 20px;

    font-size: clamp(34px, 4.5vw, 50px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.about-content p {
    color: var(--muted);
}

.about-lead {
    color: var(--text) !important;
    font-size: 18px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-top: 28px;
}

.facts div {
    display: grid;
    gap: 3px;

    padding: 15px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.facts strong {
    color: var(--blue);
    font-size: 12px;
}

.facts span {
    color: var(--muted);
    font-size: 10px;
}


/* CTA */

.compact-cta {
    padding: 38px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 30px 34px;

    background:
        linear-gradient(
            110deg,
            var(--blue-dark),
            var(--blue)
        );

    color: white;

    border-radius: 18px;
}

.cta-inner > div {
    display: grid;
    gap: 4px;
}

.cta-inner span {
    color: rgba(255,255,255,.62);

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.cta-inner strong {
    font-size: 23px;
}


/* FOOTER */

.site-footer {
    padding: 28px 0;

    background: #071a34;
    color: white;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-inner > div {
    display: grid;
}

.footer-inner strong {
    font-size: 13px;
}

.footer-inner span {
    color: rgba(255,255,255,.45);
    font-size: 10px;
}

.footer-inner nav {
    display: flex;
    gap: 20px;
}

.footer-inner a {
    color: rgba(255,255,255,.65);

    text-decoration: none;
    font-size: 11px;
}


/* CONTACT PAGE */

.contact-hero {
    padding: 70px 0;
    background: var(--soft);
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .8fr;

    gap: 60px;
}

.contact-hero h1 {
    margin: 0 0 20px;

    font-size: clamp(44px, 6vw, 68px);
    line-height: .98;
    letter-spacing: -.04em;
}

.contact-hero h1 span {
    color: var(--blue);
}

.contact-hero p:not(.eyebrow) {
    color: var(--muted);
}

.contact-card {
    padding: 26px;

    background: var(--blue-dark);
    color: white;

    border-radius: 18px;
}

.contact-item {
    display: grid;
    gap: 3px;

    padding: 14px 0;

    border-bottom: 1px solid rgba(255,255,255,.1);
}

.contact-label {
    color: rgba(255,255,255,.5);
    font-size: 10px;
    text-transform: uppercase;
}

.availability {
    margin-top: 18px;
    font-size: 11px;
}

.contact-details,
.legal-wrapper {
    padding: 65px 0;
}

.contact-info-grid,
.legal-grid {
    display: grid;
    grid-template-columns: .8fr 1fr;

    gap: 65px;
}

.contact-data > div {
    display: grid;
    grid-template-columns: 140px 1fr;

    gap: 25px;

    padding: 15px 0;

    border-bottom: 1px solid var(--border);
}

.contact-data span {
    color: var(--muted);
    font-size: 11px;
}

.legal-wrapper {
    scroll-margin-top: 90px;
    background: var(--soft);
}

.legal-alt {
    background: white;
}

.legal-content h3 {
    margin-top: 30px;
}

.legal-content p {
    color: var(--muted);
}

.legal-note {
    margin-top: 30px;
    padding: 18px;

    border-left: 3px solid var(--blue);

    background: var(--blue-light);

    font-size: 12px;
}


/* MOBILE */

@media (max-width: 900px) {

    .hero-grid,
    .about-grid,
    .contact-hero-grid,
    .contact-info-grid,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 35px;
    }

    .about-grid {
        gap: 35px;
    }

    .about-photo {
        max-width: 260px;
    }

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


@media (max-width: 680px) {

    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .brand-text span {
        display: none;
    }

    .main-nav a:not(.nav-contact) {
        display: none;
    }

    .hero {
        padding: 45px 0 55px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-text {
        font-size: 16px;
    }

    .services-panel > a {
        grid-template-columns: 28px 1fr;
    }

    .services-panel > a em {
        display: none;
    }

    .about-section {
        padding: 55px 0;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-data > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* ===== LOGO HEADER FIX ===== */

.brand {
    gap: 10px;
}

.brand-logo {
    width: 64px;
    height: 48px;
    object-fit: contain;
    border-radius: 0;
}

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

@media (max-width: 680px) {
    .brand-logo {
        width: 54px;
        height: 42px;
    }
}


/* ===== TYPOGRAPHY BALANCE ===== */

/* Hero чуть спокойнее */
.hero h1 {
    font-size: clamp(40px, 5.2vw, 60px);
    line-height: 1.02;
}

/* Подзаголовок hero немного плотнее */
.hero-text {
    font-size: 17px;
    line-height: 1.55;
}

/* Заголовок панели Leistungen заметнее */
.services-title {
    padding: 20px 24px;
}

.services-title span {
    font-size: 12px;
}

.services-title strong {
    font-size: 16px;
}

/* Сами услуги крупнее */
.services-panel > a {
    min-height: 64px;
    padding: 12px 24px;
}

.services-panel > a strong {
    font-size: 15px;
    line-height: 1.25;
}

.services-panel > a span {
    font-size: 11px;
}

.services-panel > a em {
    font-size: 11px;
}

/* Über mich тоже немного ближе к масштабу hero */
.about-content h2 {
    font-size: clamp(32px, 4vw, 44px);
}

.about-lead {
    font-size: 17px;
}


/* ===== SMALL TEXT SIZE BALANCE ===== */

/* Логотип / регион в шапке */
.brand-text strong {
    font-size: 16px;
}

.brand-text span {
    font-size: 12px;
    line-height: 1.3;
}

/* Навигация */
.main-nav a {
    font-size: 14px;
}

/* Верхняя подпись Energieeffizienz-Experte */
.eyebrow {
    font-size: 13px;
}

/* Маленькие преимущества под кнопками */
.trust-row {
    font-size: 13px;
}

/* Leistungen */
.services-title span {
    font-size: 13px;
}

.services-title strong {
    font-size: 17px;
}

.services-panel > a span {
    font-size: 13px;
}

.services-panel > a strong {
    font-size: 16px;
}

.services-panel > a em {
    font-size: 13px;
}

/* Текст Über mich */
.about-content p {
    font-size: 16px;
}

.about-lead {
    font-size: 18px;
}

/* Маленькие карточки EEE / TGA / Region */
.facts strong {
    font-size: 14px;
}

.facts span {
    font-size: 13px;
}

/* CTA */
.cta-inner span {
    font-size: 13px;
}

/* Footer */
.footer-inner strong {
    font-size: 15px;
}

.footer-inner span {
    font-size: 12px;
}

.footer-inner a {
    font-size: 13px;
}

/* Кнопки */
.button {
    font-size: 14px;
}


/* ===== FOOTER TEXT LARGER ===== */

.site-footer {
    padding: 32px 0;
}

.footer-inner strong {
    font-size: 17px;
    line-height: 1.3;
}

.footer-inner span {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.footer-inner nav {
    gap: 26px;
}

.footer-inner a {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

