@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #0d47a1;
    --color-primary-dark: #082e6b;
    --color-primary-light: #4c76c4;
    --color-text: #1c1f24;
    --color-text-muted: #5b6472;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f6f9;
    --color-border: #e1e5eb;
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Oswald', 'Segoe UI', system-ui, sans-serif;
    --radius: 10px;
    --shadow: 0 4px 16px rgba(13, 71, 161, 0.12);
    --header-height: 68px;
    --color-bg-page: #eef1f6;
    --section-gap: 2.5rem;
    --shell-max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg-page);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(13, 71, 161, 0.07), transparent 42%),
        radial-gradient(circle at 88% 30%, rgba(13, 71, 161, 0.05), transparent 46%),
        linear-gradient(180deg, rgba(13, 71, 161, 0.04), transparent 260px);
}

img { max-width: 100%; display: block; }

body.has-open-modal { overflow: hidden; }

.leistung-item__panel-inner img,
.news-card__content img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--color-primary);
    margin-bottom: 0.25em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    text-align: center;
    font-size: 1.05rem;
}

.section-intro p { margin: 0 0 1rem; }

.section-hint {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 0;
    margin-bottom: 2rem;
}

a { color: var(--color-primary); }

.btn {
    display: inline-block;
    padding: 0.75em 1.75em;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.92rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn--small { padding: 0.5em 1.25em; font-size: 0.9rem; }

.section-frame {
    max-width: var(--shell-max);
    margin: 0 auto var(--section-gap);
    padding: clamp(2.25rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
    background: var(--color-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stack-anchor { height: 0; margin: 0; padding: 0; pointer-events: none; }

.is-stacking > .section-frame { position: sticky; top: calc(var(--header-height) + 1rem); }

/* A sticky section is its own stacking context, so the article modal inside the
   news section must lift the whole section above the later sections while open. */
.is-stacking > .section-frame:has(.news-modal.is-open) { z-index: 300; }

.section-frame:first-of-type { margin-top: calc(var(--header-height) + 2rem); }
.section-frame:last-of-type { margin-bottom: var(--section-gap); }

.section-frame--hero {
    background-image: linear-gradient(135deg, rgba(21, 101, 192, 0.55) 0%, rgba(76, 118, 196, 0.6) 100%), var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.section-frame--hero h1,
.section-frame--hero .hero__text {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.kernwerte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.wer-wir-sind .section-intro { margin-bottom: 0; }
.wer-wir-sind .section-intro p:last-child { margin-bottom: 0; }

.wer-wir-sind .kernwerte-grid {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.kernwerte-item h3 { color: var(--color-primary); margin-bottom: 0.4em; }
.kernwerte-item p { color: var(--color-text-muted); margin: 0; }

.kernwerte-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

.kernwerte-item__icon svg { width: 100%; height: 100%; }

.kernwerte-item__icon--gruen { color: #5cb85c; }
.kernwerte-item__icon--blau { color: #29abe2; }
.kernwerte-item__icon--orange { color: #e2662a; }

.single-page {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
}

.site-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}
