* {
    box-sizing: border-box;
}

:root {
    --page-bg: #f7f4ee;
    --text: #1f2933;
    --muted-text: #425466;
    --blue-dark: #18384f;
    --card-bg: #ffffff;
    --card-bg-27: #ffffff;
    --shadow: 0 24px 60px rgba(38, 50, 56, 0.18);
    --radius: 18px;

    /* Hero-Transparenz steuern: 0 = kein Layer, 1 = komplett dunkel. */
    --hero-overlay-opacity: 0.42;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.65;
}

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

.hero {
    position: relative;
    min-height: clamp(420px, 68svh, 620px);
    display: grid;
    place-items: center;
    overflow: hidden;
    text-align: center;
    background-image: url("images/hero-schweizer-almidylle-sm.png");
    background-repeat: no-repeat;
    background-position: 50% 24%;
    background-size: cover;
}

.hero::before {
    background-position: inherit;
}



.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(6, 18, 27, var(--hero-overlay-opacity));
}

.hero__content {
    margin-top: 10px;
    position: relative;
    z-index: 1;
    width: min(920px, calc(100% - 32px));
    padding: clamp(40px, 10vw, 72px) 0;
    color: #ffffff;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.45);
}

.hero__kicker {
    margin: 0 0 14px;
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.75rem, 12vw, 5rem);
    line-height: 0.98;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.hero__text {
    max-width: min(680px, 100%);
    margin: 22px auto 0;
    font-size: clamp(1rem, 3.6vw, 1.25rem);
    text-wrap: balance;
}

main {
    padding: clamp(36px, 8vw, 72px) 0;
}

.content-section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto clamp(42px, 9vw, 72px);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 5vw, 28px);
    align-items: center;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section__image,
.number-card {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card-bg);
}
.number-card-2027 {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card-bg-27);
}

.content-section__image img {
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.number-card {
    min-height: clamp(170px, 46vw, 240px);
    display: grid;
    place-items: center;
    padding: 16px;
    color: #ffffff;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 32%),
    linear-gradient(135deg, #d9232e, #8f1019);
    font-size: clamp(5.25rem, 28vw, 12rem);
    line-height: 0.8;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.number-card-2027 {
    min-height: clamp(170px, 46vw, 240px);
    display: grid;
    place-items: center;
    padding: 16px;
    color: #ffffff;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 32%),
    linear-gradient(135deg, #4c5b29, #a77a00);
    font-size: clamp(4.65rem, 24vw, 12rem);
    line-height: 0.8;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.content-section__text {
    padding: 0 4px;
}

/* Mobil: erst Text, dann Bild bzw. Zahl. */
.content-section__text {
    order: 1;
}

.content-section__image,
.number-card,
.number-card-2027 {
    order: 2;
}

.content-section__text h2 {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 7.5vw, 2.45rem);
    line-height: 1.08;
    color: var(--blue-dark);
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.content-section__text h3 {
    margin: 22px 0 0;
    font-size: clamp(1rem, 4.5vw, 1.35rem);
    line-height: 1.2;
    color: var(--blue-dark);
    letter-spacing: 0.08em;
}

.content-section__text p {
    margin: 0;
    font-size: clamp(1rem, 4vw, 1.15rem);
    color: var(--muted-text);
}

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

.content-section > div:not([class]) img,
.content-section > div[class=""] img {
    width: min(320px, 82vw);
    height: auto !important;
    margin: 0 auto;
}

.footer {
    padding: 34px 20px;
    text-align: center;
    color: var(--page-bg);
    background: var(--blue-dark);
}

.footer p {
    margin: 0;
}

@media (min-width: 780px) {
    :root {
        --radius: 28px;
    }

    .hero {
        min-height: 82vh;
        min-height: 82svh;
        background-image: url("images/hero-schweizer-almidylle.png");
        background-position: 50% 18%;
    }

    .hero h1 {
        font-size: clamp(4.6rem, 9vw, 7.6rem);
    }

    .hero__text {
        font-size: clamp(1.12rem, 2vw, 1.45rem);
    }

    .content-section {
        grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
        gap: clamp(28px, 5vw, 64px);
    }


    .content-section__image,
    .number-card,
    .number-card-2027,
    .content-section__text {
        order: initial;
    }

    .content-section__text {
        padding: clamp(10px, 2vw, 24px);
    }

    .content-section__text h2 {
        font-size: clamp(2.35rem, 4.2vw, 3.1rem);
    }

    .number-card {
        min-height: 360px;
    }

    .number-card-2027 {
        min-height: 360px;
    }

    .content-section__image img {
        aspect-ratio: 4 / 3;
    }

    .content-section > div:not([class]) img,
    .content-section > div[class=""] img {
        width: min(360px, 100%);
    }
}

@media (min-width: 1180px) {
    .hero {
        min-height: 88vh;
        background-position: 50% 14%;
    }
}

@media (max-width: 520px) {
    .hero {
        min-height: clamp(390px, 62svh, 520px);
        background-position: 51% 28%;
    }

    .hero__content {
        width: min(100% - 24px, 920px);
    }

    .content-section {
        width: min(100% - 24px, 1120px);
    }
}

.spacer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto clamp(30px, 7vw, 54px);
    padding-bottom: 0;
    text-align: center;
    color: var(--blue-dark);
}

.spacer h2 {
    margin: 0;
    font-size: clamp(1.95rem, 10vw, 5.2rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
