:root {
    --navy: #14345c;
    --navy-dark: #0f273f;
    --navy-mid: #1d4676;
    --gold: #c9a24b;
    --ink: #1b2430;
    --muted: #5a6472;
    --line: #dfe4ea;
    --bg: #ffffff;
    --bg-soft: #f4f6f9;
    --bg-alt: #eef1f6;
    --ok: #2f7a52;
    --err: #b23a3a;
    --shadow: 0 8px 28px rgba(15, 39, 63, 0.10);
    --radius: 10px;
    --maxw: 1140px;
    --font: system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-dark);
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--navy-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; color: var(--navy-dark); font-size: 1.15rem; }
.brand-sub { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--ink);
    font-size: .96rem;
    font-weight: 500;
    padding: 6px 2px;
}
.site-nav a:hover { color: var(--navy); text-decoration: none; }
.nav-cta {
    background: var(--navy);
    color: #fff !important;
    padding: 9px 18px !important;
    border-radius: 8px;
}
.nav-cta:hover { background: var(--navy-mid); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--navy-dark);
    transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    text-align: center;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-block { width: 100%; }

/* Hero */
.hero {
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(201,162,75,.18), transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #eef2f7;
    padding: 74px 0 84px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}
.hero h1 { color: #fff; }
.hero .lead { color: #cdd8e6; font-size: 1.12rem; max-width: 34em; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 .8rem;
}
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero-badges {
    list-style: none;
    margin: 0;
    padding: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    border-top: 1px solid rgba(255,255,255,.15);
}
.hero-badges li {
    font-size: .85rem;
    color: #bccadd;
    position: relative;
    padding-left: 18px;
}
.hero-badges li::before {
    content: "";
    position: absolute;
    left: 0; top: .55em;
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 2px;
}

.hero-panel { display: flex; justify-content: center; }
.panel-card {
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 22px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.panel-row {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    margin-bottom: 6px;
}
.panel-row .ok { color: var(--ok); font-weight: 600; }
.panel-row .pending { color: var(--gold); font-weight: 600; }
.panel-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 16px;
}
.panel-bar i { display: block; height: 100%; background: var(--navy-mid); }
.panel-foot { font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 46em; margin: 0 auto 44px; text-align: center; }
.section-intro { color: var(--muted); font-size: 1.05rem; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}
.section-alt .card { background: #fff; }

.service { border-top: 3px solid var(--navy); }
.service h3 { display: flex; align-items: center; gap: 10px; }
.service p { color: var(--muted); margin: 0; }

/* Two column */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.two-col.align-start { align-items: start; }

.stats {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.stats li {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.stats strong { display: block; font-size: 2rem; color: var(--navy); line-height: 1; }
.stats span { color: var(--muted); font-size: .9rem; }

/* Team */
.member { text-align: center; }
.avatar {
    width: 68px; height: 68px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: .04em;
}
.member .role { color: var(--gold); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.member p:last-child { color: var(--muted); margin: 0; font-size: .95rem; }

/* Branchen chips */
.chip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 18px;
    text-align: center;
    font-weight: 500;
    font-size: .95rem;
    color: var(--navy-dark);
}
.quote {
    margin: 44px auto 0;
    max-width: 42em;
    text-align: center;
    border-top: 1px solid var(--line);
    padding-top: 32px;
}
.quote p { font-size: 1.25rem; color: var(--navy-dark); font-style: italic; }
.quote cite { color: var(--muted); font-style: normal; font-size: .95rem; }

/* Forms */
.form { margin-top: 20px; }
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy-dark);
}
.field input,
.field textarea {
    width: 100%;
    font: inherit;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 3px rgba(29,70,118,.14);
}
.field input.invalid,
.field textarea.invalid { border-color: var(--err); }
.field textarea { resize: vertical; }

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}
.checkbox { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; }
.checkbox input { width: auto; }
.link-small { font-size: .88rem; }

.login-box {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}
.section.split { background: var(--bg); }

.form-note {
    margin: 14px 0 0;
    font-size: .92rem;
    min-height: 1.2em;
}
.form-note.ok { color: var(--ok); }
.form-note.err { color: var(--err); }

.portal-note h3 { color: var(--navy); }
.ticks, .hours { list-style: none; margin: 0; padding: 0; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--muted); }
.ticks li::before {
    content: "\2713";
    position: absolute;
    left: 0; top: 0;
    color: var(--ok);
    font-weight: 700;
}

.contact-box address { font-style: normal; }
.contact-box h4 { margin-top: 20px; color: var(--navy-dark); }
.hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px dashed var(--line);
    padding: 6px 0;
    font-size: .95rem;
}
.small { font-size: .84rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-dark); color: #c4d0e0; }
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 24px 32px;
    flex-wrap: wrap;
}
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; display: block; margin-bottom: 8px; }
.footer-brand .small { color: #93a4bc; max-width: 40em; }
.footer-nav { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.footer-nav a { color: #c4d0e0; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.10); }
.footer-bar .small { color: #8598b2; padding: 16px 0; margin: 0; }

/* 404 */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}
.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-panel { order: -1; }
    .two-col { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 74px;
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        display: none;
    }
    .site-nav.open { display: block; }
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 18px;
    }
    .site-nav li { border-bottom: 1px solid var(--line); }
    .site-nav li:last-child { border-bottom: none; margin-top: 10px; }
    .site-nav a { display: block; padding: 12px 0; }
    .nav-cta { text-align: center; }
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .hero { padding: 54px 0 60px; }
}
