

/* =========================================================
   Einheitlicher GDfB-Datenportal-Header
   ========================================================= */

#portal-header {
    position: relative;
    width: 100%;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

#portal-header-top {
    box-sizing: border-box;
    height: 92px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e1e4e8;
}

#portal-branding {
    box-sizing: border-box;
    width: calc(100% - 64px);
    max-width: 1280px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    min-width: 0;
}

#portal-logo {
    display: block;
    width: auto;
    height: 58px;
    flex: 0 0 auto;
}

#portal-agency-name {
    margin-left: 22px;
    color: #111111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

#portal-brand-divider {
    width: 1px;
    height: 54px;
    margin: 0 30px;
    background: #c8ccd0;
    flex: 0 0 auto;
}

#portal-text {
    min-width: 0;
    color: #111111;
}

#portal-title {
    color: #111111;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

#portal-subtitle {
    margin-top: 3px;
    color: #111111;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
}

#portal-header-bottom {
    box-sizing: border-box;
    width: 100%;
    height: 56px;
    background: #a32035;
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

@media (max-width: 750px) {

    #portal-header-top {
        height: 82px;
    }

    #portal-branding {
        width: calc(100% - 32px);
        margin: 0 16px;
    }

    #portal-logo {
        width: 190px;
        height: 64px;
        object-fit: contain;
        object-position: left center;
    }

    #portal-agency-name,
    #portal-brand-divider,
    #portal-text {
        display: none;
    }

    #portal-header-bottom {
        height: 60px;
    }
}



:root {
    --gdfb-red: #a32035;
    --gdfb-red-dark: #7f1626;
    --gdfb-red-light: #c63a4e;
    --bg: #f5f6f8;
    --surface: #ffffff;
    --text: #20242a;
    --muted: #626a73;
    --border: #d8dde3;
    --info: #eef5ff;
    --warning: #fff7e6;
    --danger: #fdecec;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}
a { color: var(--gdfb-red); }
.layout {
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 94px);
    display: grid;
    grid-template-columns: 270px 1fr;
}
.sidebar {
    background: #fff;
    border-right: 1px solid var(--border);
    padding: 22px 16px;
}
.sidebar strong {
    display: block;
    margin: 0 10px 10px;
    color: var(--muted);
    font-size: .9rem;
    text-transform: uppercase;
}
.nav a {
    display: block;
    padding: 9px 10px;
    margin-bottom: 3px;
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
}
.nav a:hover, .nav a.active {
    color: #fff;
    background: var(--gdfb-red);
}
.content {
    background: #fff;
    padding: 32px 42px 60px;
    min-width: 0;
}
.content-inner { max-width: 920px; }
h2 {
    margin-top: 34px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--gdfb-red);
    color: var(--gdfb-red);
}
h3 { margin-top: 24px; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
    gap: 15px;
}
.card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 17px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
}
.card:hover {
    border-color: var(--gdfb-red);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.callout {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-left: 6px solid var(--gdfb-red);
    border-radius: 4px;
    background: #f8f9fa;
}
.callout.warning { background: var(--warning); border-left-color: #d99a00; }
.callout.danger { background: var(--danger); border-left-color: #b42318; }
.callout.info { background: var(--info); border-left-color: #3975b9; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 18px 46px;
}
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--gdfb-red);
    font-weight: bold;
}
.screenshot {
    margin: 14px 0 22px;
    min-height: 150px;
    display: grid;
    place-items: center;
    border: 2px dashed #b9c0c8;
    border-radius: 6px;
    color: var(--muted);
    background: #fafbfc;
    text-align: center;
    padding: 20px;
}
code {
    padding: 2px 5px;
    border-radius: 3px;
    background: #eef0f2;
}
.footer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .9rem;
}
.hidden { display: none !important; }
@media (max-width: 820px) {
    .header-inner { align-items: stretch; flex-direction: column; }
    .layout { grid-template-columns: 1fr; }
    .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
    .content { padding: 24px 20px 45px; }
}
@media print {
    #portal-header, .sidebar, .search { display: none; }
    .layout { display: block; }
    .content { padding: 0; }
}

/* BreVIA – Kartenlegende */

.brevia-legende {
    display: grid;
    gap: 14px;
    margin: 14px 0;
}

.brevia-legende-zeile {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
}

.brevia-legende-farbe {
    display: block;
    width: 38px;
    height: 26px;
    margin-top: 2px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 3px;
}

.brevia-legende-gruen {
    background: rgb(64, 164, 88);
}

.brevia-legende-gelb {
    background: rgb(236, 190, 70);
}
