@font-face {
    font-family: 'Roboto';
    src: url('/fonts/roboto-v51-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('/fonts/roboto-v51-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('/fonts/roboto-v51-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('/fonts/roboto-v51-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blau:       #1d4e89;
    --blau-hell:  #2d6db5;
    --blau-bg:    #e8f0f8;
    --text:       #2c3e50;
    --text-leicht:#555;
    --grau-bg:    #f5f7fa;
    --weiss:      #ffffff;
    --rand:       #d0dde9;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--weiss);
}

a { color: var(--blau-hell); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: .875rem; }

header {
    position: relative;
    overflow: hidden;
    background: var(--blau);
    color: var(--weiss);
    max-width: 1000px;
    margin: 0 auto;
}

header > img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 0;
}

.header-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    min-height: 64px;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--weiss);
    text-decoration: none;
    white-space: nowrap;
}
.site-title span {
    font-weight: 300;
    font-size: .9em;
    opacity: .85;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
}

nav a {
    display: block;
    color: rgba(255,255,255,.88);
    padding: .45rem .75rem;
    border-radius: 4px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    letter-spacing: .02em;
    transition: background .2s, color .2s;
}
nav a:hover, nav a.aktiv {
    background: rgba(255,255,255,.18);
    color: var(--weiss);
    text-decoration: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(5,15,50,.70) 0%,
        rgba(5,15,50,.30) 45%,
        transparent 75%);
    z-index: 1;
}

main {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--blau);
    border-bottom: 2px solid var(--blau-bg);
    padding-bottom: .6rem;
    margin-bottom: 2rem;
}

.hinweis-box {
    background: var(--blau-bg);
    border-left: 4px solid var(--blau);
    border-radius: 0 6px 6px 0;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.hinweis-box h2 {
    font-size: 1.05rem;
    color: var(--blau);
    margin-bottom: .75rem;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
}

.hinweis-box address {
    font-style: normal;
    line-height: 1.9;
    font-size: 1rem;
}

.text-block { margin-bottom: 2rem; }
.text-block p { margin-bottom: 1rem; }
.text-block p:last-child { margin-bottom: 0; }

.intro-brief {
    font-size: 1.05rem;
    background: var(--grau-bg);
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    line-height: 1.9;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.leistung-card {
    background: var(--grau-bg);
    border: 1px solid var(--rand);
    border-radius: 6px;
    padding: 1.5rem;
}

.leistung-card h2 {
    font-size: 1.05rem;
    color: var(--blau);
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--rand);
}

.leistung-card h3 {
    font-size: .9rem;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-leicht);
    margin: .75rem 0 .4rem;
}

.leistung-card ul {
    margin-left: 1.1rem;
    line-height: 1.9;
    font-size: 1rem;
}

.leistung-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-leicht);
    margin-top: .5rem;
}

.kontakt-alt {
    font-style: normal;
    line-height: 2;
    font-size: 1rem;
}

.kontakt-alt + .hinweis-box {
    margin-top: 2rem;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.kontakt-card {
    background: var(--grau-bg);
    border: 1px solid var(--rand);
    border-radius: 6px;
    padding: 1.5rem;
}

.kontakt-card h2 {
    font-size: 1rem;
    color: var(--blau);
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--rand);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.kontakt-card address {
    font-style: normal;
    line-height: 2;
    font-size: 1rem;
}

.kontakt-card .label {
    font-size: .875rem;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-leicht);
    display: block;
    margin-top: .6rem;
}

.kontakt-card a {
    color: var(--blau-hell);
}

.prose h2 {
    font-size: 1.15rem;
    color: var(--blau);
    margin: 2rem 0 .65rem;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.prose h3 {
    font-size: 1rem;
    color: var(--text);
    margin: 1.4rem 0 .5rem;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.prose p, .prose address {
    margin-bottom: .9rem;
    font-style: normal;
    line-height: 1.85;
}
.prose ul { margin: .5rem 0 .9rem 1.5rem; line-height: 1.9; }

footer {
    background: var(--blau);
    color: rgba(255,255,255,.75);
    padding: 1.5rem 1.5rem;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: .9rem;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

footer nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: .1rem;
}

footer nav a {
    color: rgba(255,255,255,.75);
    padding: .25rem .6rem;
    font-size: .9rem;
}
footer nav a:hover {
    color: var(--weiss);
    background: rgba(255,255,255,.12);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 5px;
    cursor: pointer;
    padding: .45rem .55rem;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--weiss);
    border-radius: 2px;
    transition: opacity .2s;
}
.hamburger:hover { border-color: rgba(255,255,255,.75); }

#mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 200;
}
#mobile-menu.hidden { display: none; }

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(280px, 82vw);
    height: 100%;
    background: var(--blau);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    box-shadow: -4px 0 16px rgba(0,0,0,.35);
    overflow-y: auto;
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--weiss);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: .25rem .5rem;
    opacity: .8;
    margin-bottom: 1.5rem;
}
.mobile-menu-close:hover { opacity: 1; }

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.mobile-nav-list a {
    display: block;
    color: rgba(255,255,255,.9);
    font-size: 1.05rem;
    padding: .75rem 1rem;
    border-radius: 5px;
    transition: background .2s;
    text-decoration: none;
    font-weight: 500;
}
.mobile-nav-list a:hover,
.mobile-nav-list a.aktiv {
    background: rgba(255,255,255,.15);
    color: var(--weiss);
}

.mobile-nav-footer {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.2);
}
.mobile-nav-footer a {
    display: block;
    color: rgba(255,255,255,.6);
    font-size: .875rem;
    padding: .5rem 1rem;
    border-radius: 5px;
    transition: background .2s;
    text-decoration: none;
}
.mobile-nav-footer a:hover { background: rgba(255,255,255,.1); color: var(--weiss); }

@media (max-width: 720px) {
    header nav { display: none; }
    .hamburger { display: flex; }

    .site-title { font-size: 1.05rem; }

    main { padding: 1.75rem 1rem 3rem; }
    .page-title { font-size: 1.4rem; }

    .hinweis-box { padding: 1.1rem 1.2rem; }
    .intro-brief { padding: 1.1rem 1.2rem; }

    .footer-inner { flex-direction: column; text-align: center; }
    footer nav ul { justify-content: center; }
}

.hinweis-geschlossen {
    margin-top: .9rem;
    font-size: .875rem;
    color: var(--text-leicht);
}

.kontakt-card--neu {
    border-color: var(--blau);
    background: var(--blau-bg);
}

.intro-hinweis {
    margin-bottom: 1.5rem;
    color: var(--text-leicht);
}
