
/* ==========================================================
   ÖSBV Website Design System
   zentrale Gestaltung
   ========================================================== */

:root {
    --oesbv-blue: #005691;
    --oesbv-dark: #003f6b;
    --oesbv-red: #e30613;
    --oesbv-text: #172033;
    --oesbv-muted: #5e6c7b;
    --oesbv-line: #d5e0e8;
    --oesbv-soft: #eef5f9;
    --oesbv-white: #ffffff;

    --oesbv-radius: 22px;
    --oesbv-radius-small: 16px;

    --oesbv-shadow:
        0 12px 32px rgba(15,23,42,.07);
}

/* Grundelemente */
.oesbv-page {
    color: var(--oesbv-text);
}

.oesbv-card {
    background: var(--oesbv-white);
    border: 1px solid var(--oesbv-line);
    border-radius: var(--oesbv-radius);
    box-shadow: var(--oesbv-shadow);
    overflow: hidden;
}

.oesbv-card:hover {
    transform: translateY(-3px);
}

/* Überschriften */
.oesbv-title {
    color: var(--oesbv-dark);
    font-family: var(--font-display, Arial, sans-serif);
    text-transform: uppercase;
}

.oesbv-kicker {
    color: var(--oesbv-red);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Icon-Aktionen */
.oesbv-icon-action {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--oesbv-blue);
    color: white;
    text-decoration: none;
}

/* Kartenkopf */
.oesbv-card-header {
    padding: 20px;
}

/* Modal */
.oesbv-modal {
    border: 0;
    border-radius: var(--oesbv-radius);
    box-shadow: 0 28px 80px rgba(0,0,0,.3);
}

.oesbv-modal::backdrop {
    background: rgba(5,20,32,.72);
}

.oesbv-modal-header {
    padding: 20px;
    background: var(--oesbv-dark);
    color: white;
}

/* Informationsfelder */
.oesbv-info-box {
    padding: 16px;
    border-radius: var(--oesbv-radius-small);
    background: var(--oesbv-soft);
    border: 1px solid var(--oesbv-line);
}

/* Mobile */
@media(max-width:700px) {
    .oesbv-card {
        border-radius: 18px;
    }

    .oesbv-icon-action {
        width: 42px;
        height: 42px;
    }
}

/* Optimized pass */


#main-content{scroll-margin-top:90px;}


:focus-visible{outline:3px solid #005fcc;outline-offset:2px;}

/* Zusammengeführt aus assets/css/footer.css */
.oesbv-global-footer {
    width: 100%;
    padding: 46px 20px 34px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    color: #fff;
    background: rgba(10, 14, 22, .98);
    font-family: var(--font-body, "Inter", Arial, sans-serif);
}

.oesbv-global-footer *,
.oesbv-global-footer *::before,
.oesbv-global-footer *::after {
    box-sizing: border-box;
}

.oesbv-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.oesbv-footer-logo-wrap {
    margin-bottom: 22px;
}

.oesbv-footer-logo {
    display: inline-block;
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.oesbv-footer-title {
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--font-display, "Oswald", Arial, sans-serif);
    font-size: 1.25rem;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.oesbv-footer-address {
    max-width: 720px;
    margin: 0 auto 24px;
    color: #cbd5e1;
    font-size: .95rem;
    font-style: normal;
    line-height: 1.65;
}

.oesbv-footer-address a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.oesbv-footer-address a:hover {
    color: #ff5b66;
}

.oesbv-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 0 0 24px;
    padding: 0;
}

.oesbv-footer-links a {
    color: #fff;
    font-family: var(--font-display, "Oswald", Arial, sans-serif);
    font-size: .95rem;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease;
}

.oesbv-footer-links a:hover,
.oesbv-footer-links a:focus-visible {
    color: #ff5b66;
}

.oesbv-footer-address a:focus-visible,
.oesbv-footer-links a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
    border-radius: 2px;
}

.oesbv-footer-support {
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    color: #aeb9c8;
    font-size: .88rem;
    line-height: 1.6;
}

.oesbv-footer-support strong {
    color: #fff;
    font-family: var(--font-display, "Oswald", Arial, sans-serif);
    font-size: .9rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.oesbv-footer-copy {
    margin: 0;
    color: #aeb9c8;
    font-size: .84rem;
    letter-spacing: .02em;
}

@media (max-width: 720px) {
    .oesbv-global-footer {
        padding: 38px 18px 30px;
    }

    .oesbv-footer-logo {
        width: 58px;
        height: 58px;
    }

    .oesbv-footer-title {
        font-size: 1.05rem;
    }

    .oesbv-footer-address {
        font-size: .9rem;
    }

    .oesbv-footer-links {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .oesbv-footer-links a {
        display: flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oesbv-footer-links a {
        transition: none;
    }
}

/* Gemeinsame Qualitätsbasis für alle öffentlichen Seiten */
html { color-scheme: light; scroll-behavior: smooth; text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { overflow-wrap: break-word; }
main { min-width: 0; }
img, svg, video { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, [type="button"], [type="submit"], [role="button"] { touch-action: manipulation; }
a, button { text-underline-offset: .18em; }

.skip-link {
    position: fixed;
    z-index: 100000;
    top: 10px;
    left: 10px;
    transform: translateY(-160%);
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff;
    color: var(--oesbv-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 700px) {
    input, select, textarea { font-size: 16px; }
    main { overflow-x: clip; }
}

@media (prefers-contrast: more) {
    :root { --oesbv-muted: #374151; --oesbv-line: #8392a5; }
}

.oesbv-footer-internal {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 auto 24px;
    padding: 12px 18px;
    border: 1px solid rgba(101, 183, 235, .42);
    border-radius: 14px;
    background: rgba(0, 86, 145, .22);
    color: #fff;
    font-family: var(--font-body, "Inter", Arial, sans-serif);
    font-size: .9rem;
}
.oesbv-footer-internal strong { color: #9ed8fa; font: inherit; font-weight: 900; }
.oesbv-footer-internal a { color: #fff; font: inherit; font-weight: 750; text-decoration: none; }
.oesbv-footer-internal a:hover,.oesbv-footer-internal a:focus-visible { color: #ff7a83; text-decoration: underline; }

/* Aus includes/header.php zentral ausgelagerte Gestaltung */
/* Lokale ÖSBV-Schriften – Dateien liegen unter /fonts/ */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-v20-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-v20-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-v20-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-v20-latin-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('/fonts/oswald-v57-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('/fonts/oswald-v57-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('/fonts/oswald-v57-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('/fonts/oswald-v57-latin-700.woff2') format('woff2');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --red: #e30613;
    --blue: #005691;
    --blue-dark: #003f6b;
    --dark: #0b0f19;
    --white: #ffffff;
    --text: #1a2530;
    --muted: #4a5568;
    --light: #f8f9fa;
    --border: #e2e8f0;
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container: 1200px;
}

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

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background: #ffffff;
    color: var(--text);
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

.skip-link {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.skip-link:focus {
    left: 10px !important;
    top: 10px !important;
    width: auto !important;
    height: auto !important;
    background-color: var(--red) !important;
    color: var(--white) !important;
    padding: 10px 15px !important;
    z-index: 99999 !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(10, 14, 22, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
}

.nav-backdrop {
    position: fixed;
    inset: 70px 0 0;
    z-index: 990;
    display: none;
    width: 100%;
    height: calc(100dvh - 70px);
    padding: 0;
    border: 0;
    background: rgba(2, 12, 23, .48);
    backdrop-filter: blur(2px);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(255,255,255,0.12);
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-lines::before {
    top: -7px;
}

.nav-toggle-lines::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a,
.nav-menu button {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 9px 11px;
    border-radius: 3px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    background: transparent;
    border: 0;
    font-weight: 600;
}

.nav-menu a:hover,
.nav-menu button:hover,
.nav-menu li:hover > a,
.nav-menu li:hover > button,
.nav-menu a:focus-visible,
.nav-menu button:focus-visible {
    color: var(--red);
    background: rgba(255,255,255,0.06);
    outline: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a0e16;
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 2px solid var(--red);
    list-style: none;
    padding: 6px 0;
    margin: 4px 0 0 0;
    min-width: 190px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.is-expanded .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 0;
    display: block;
    white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: rgba(223, 6, 19, 0.1);
    color: var(--white);
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    display: inline-block;
}

.hero {
    position: relative;
    min-height: clamp(560px, 72vh, 780px);
    background: #0b0f19;
    color: var(--white);
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.60), rgba(0,0,0,0.40));
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 60px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-main {
    text-align: center;
    max-width: 900px;
}

.hero-pretitle {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.4rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    margin: 0 0 30px 0;
}

.hero-main h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.8rem);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.12em;
}

.hero-subtitle {
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #00a8e8;
    margin: 30px 0 40px 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.25s;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    padding: 14px 28px;
    font-size: 0.95rem;
    border: none;
}

.btn-primary:hover {
    background: var(--white);
    color: var(--red);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 14px 24px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
}

.nav-menu a[aria-current="page"] {
    color: var(--red);
    background: rgba(255,255,255,0.08);
}

.content-without-hero {
    padding-top: 72px;
}

@media (max-width: 980px) {
    .nav-menu a,
    .nav-menu button {
        font-size: 0.82rem;
        padding: 8px 8px;
        letter-spacing: 0.06em;
    }
}

@media (max-width: 820px) {
    .site-nav {
        height: 70px;
    }

    .nav-inner {
        height: 70px;
        padding: 0 16px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-logo img {
        height: 50px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        height: calc(100dvh - 70px);
        background: rgba(10, 14, 22, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 16px max(32px, env(safe-area-inset-bottom));
        overflow-y: auto;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-backdrop.is-visible {
        display: block;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu a,
    .nav-menu button {
        width: 100%;
        justify-content: flex-start;
        font-size: 1.05rem;
        padding: 15px 12px;
        border-radius: 6px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .hero {
        min-height: 70vh;
        padding-top: 70px;
    }

    .hero-bg img {
        object-position: 15% center;
    }

    .hero-inner {
        padding: 35px 18px 45px;
    }

    .hero-pretitle {
        margin-bottom: 18px;
    }

    .hero-main h1 {
        letter-spacing: 0.07em;
    }

    .hero-subtitle {
        letter-spacing: 0.16em;
        margin: 20px 0 30px 0;
    }

    .hero-actions {
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        padding: 13px 20px;
        font-size: 0.85rem;
    }

    .content-without-hero {
        padding-top: 70px;
    }
}

@media (min-width: 821px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .nav-logo img {
        height: 46px;
    }

    .hero {
        min-height: 64vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
