@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* === DESIGN TOKENS === */
:root {
    --navy: #000033;
    --navy-light: #000055;
    --cyan: #0099cc;
    --cyan-light: #00bbee;
    --cyan-dark: #007799;
    --white: #ffffff;
    --bg: #f0f4f8;
    --bg-gradient: linear-gradient(135deg, #e8f0ff 0%, #f0f4f8 50%, #e8f0ff 100%);
    --text: #333333;
    --text-light: #666666;
    --border: #d0d8e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --max-width: 1100px;
    --font: 'Open Sans', Arial, Helvetica, sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-gradient);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--cyan-dark); text-decoration: none; }
a:hover { color: var(--cyan); text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--cyan); font-weight: 600; }
h1 { font-size: 22px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
h2 { font-size: 18px; margin: 20px 0 10px; }
h3 { font-size: 16px; margin: 15px 0 8px; }

ul, ol { padding-left: 20px; }
p { margin-bottom: 12px; }

/* === HEADER === */
.site-header {
    background: var(--white);
    padding: 20px 0;
    text-align: center;
    border-bottom: 3px solid var(--navy);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 100px;
    width: auto;
}

.header-text {
    text-align: left;
}

.header-text .name-label {
    font-size: 16px;
    color: var(--navy);
    font-weight: 400;
}

.header-text .name {
    font-size: 32px;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.1;
}

.header-text .sub-info {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    line-height: 1.4;
}

/* Burger Menu */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
    top: 20px;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--navy);
    margin: 5px 0;
    transition: 0.3s;
}

/* === MAIN NAVIGATION === */
.main-nav {
    background: var(--navy);
    position: relative;
    z-index: 100;
}

.main-nav ul {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 14px 20px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    background: var(--cyan);
    color: var(--white);
    text-decoration: none;
}

/* Dropdown */
.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy-light);
    min-width: 220px;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    list-style: none;
    padding: 0;
}

.main-nav li.has-dropdown:hover > .dropdown {
    display: block;
}

.main-nav .dropdown li a {
    display: block;
    padding: 10px 20px;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
}

.main-nav .dropdown li a:hover {
    background: var(--cyan);
    color: var(--white);
    text-decoration: none;
}

/* 3rd level dropdown */
.main-nav .dropdown .dropdown {
    top: 0;
    left: 100%;
}

/* === BANNER SLIDER === */
.banner-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.banner-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.banner-track {
    display: flex;
    animation: slide 24s infinite;
    width: 400%;
}

.banner-track img {
    width: 25%;
    flex-shrink: 0;
    object-fit: cover;
    height: 350px;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,51,0.6);
    color: var(--white);
    padding: 8px 20px;
    font-size: 13px;
    text-align: center;
}

@keyframes slide {
    0%, 20% { transform: translateX(0); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

/* === PAGE LAYOUT === */
.page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 30px 20px;
}

/* With sidebar (subpages) */
.page-wrapper.with-sidebar {
    grid-template-columns: 240px 1fr;
    gap: 30px;
}

/* === SIDEBAR (Left) === */
.sidebar-nav {
    background: rgba(0,153,204,0.08);
    border: 1px solid rgba(0,153,204,0.2);
    border-radius: 3px;
    padding: 15px 0;
    align-self: start;
    position: sticky;
    top: 20px;
}

.sidebar-nav h3 {
    padding: 0 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--navy);
    text-transform: uppercase;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li a {
    display: block;
    padding: 8px 15px;
    color: var(--cyan-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: rgba(0,153,204,0.12);
    border-left-color: var(--cyan);
    color: var(--navy);
    text-decoration: none;
}

/* === MAIN CONTENT === */
.main-content {
    background: var(--white);
    padding: 30px;
    border-radius: 3px;
    box-shadow: var(--shadow);
    min-height: 300px;
}

.main-content img.content-image {
    float: right;
    max-width: 280px;
    margin: 0 0 15px 20px;
    border-radius: 3px;
}

.main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.main-content table td,
.main-content table th {
    padding: 8px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.main-content table th {
    background: rgba(0,153,204,0.08);
    font-weight: 600;
}

/* === HOMEPAGE 3-COLUMN INFO === */
.info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.info-columns > div {
    background: var(--white);
    padding: 25px;
    border-radius: 3px;
    box-shadow: var(--shadow);
}

.info-columns h2 {
    color: var(--cyan);
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cyan);
}

/* === SIDEBAR RIGHT (Contact) === */
.contact-sidebar {
    background: var(--white);
    padding: 25px;
    border-radius: 3px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.contact-sidebar h3 {
    color: var(--navy);
    margin-bottom: 10px;
}

.contact-sidebar .sidebar-icon {
    color: var(--cyan);
    font-size: 20px;
    display: block;
    text-align: center;
    margin: 10px 0 5px;
}

.contact-sidebar p {
    text-align: center;
    margin-bottom: 8px;
}

.contact-sidebar .sidebar-separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

/* Activities list */
.activities-list {
    list-style: none;
    padding: 0;
}

.activities-list li {
    margin: 5px 0;
}

.activities-list li a {
    color: var(--cyan-dark);
    font-weight: 600;
    font-size: 13px;
}

.activities-list li a::before {
    content: '» ';
    color: var(--navy);
}

.activities-section {
    margin-top: 20px;
}

/* === HOMEPAGE COMBINED LAYOUT === */
.home-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px;
}

.home-main-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}

/* === FOOTER === */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 20px 20px;
    margin-top: 30px;
    font-size: 13px;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    margin: 0 8px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* === DOWNLOAD ITEMS === */
.download-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(0,153,204,0.05);
    border: 1px solid var(--border);
    border-radius: 3px;
    margin: 10px 0;
}

.download-info a { font-weight: 600; color: var(--cyan-dark); }
.download-size { color: var(--text-light); font-size: 13px; }

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: -300px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 30px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: bottom 0.4s ease;
}

.cookie-banner.visible { bottom: 0; }

.cookie-banner h4 { color: var(--navy); margin-bottom: 8px; }
.cookie-banner p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }

.cookie-buttons { display: flex; gap: 10px; }

.btn-reject {
    padding: 8px 20px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
}

.btn-accept {
    padding: 8px 20px;
    border: none;
    background: var(--cyan);
    color: var(--white);
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
}

.btn-reject:hover { background: #f0f0f0; }
.btn-accept:hover { background: var(--cyan-dark); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        position: relative;
    }

    .burger-menu { display: block; }

    .main-nav ul {
        flex-direction: column;
        display: none;
    }

    .main-nav.open ul { display: flex; }

    .main-nav > ul > li > a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav .dropdown {
        position: static;
        box-shadow: none;
        background: rgba(0,0,51,0.8);
    }

    .main-nav li.has-dropdown:hover > .dropdown { display: block; }

    .page-wrapper.with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-nav { display: none; }

    .info-columns { grid-template-columns: 1fr; }

    .home-main-grid { grid-template-columns: 1fr; }

    .banner-track img { height: 200px; }

    .header-text .name { font-size: 24px; }
}

/* === OSM MAP === */
.osm-map iframe {
    width: 100%;
    height: 350px;
    border: 1px solid var(--border);
    border-radius: 3px;
}

/* Separator */
.separator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--border);
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* RSS / Aktuelles */
.aktuelles-item {
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.aktuelles-item h3 { color: var(--navy); font-size: 15px; }
.aktuelles-date { color: var(--text-light); font-size: 12px; }
.aktuelles-excerpt { font-size: 14px; margin-top: 5px; }

/* Screenshot Gallery */
.screenshot-gallery {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.screenshot-gallery img {
    max-width: 48%;
    border: 1px solid var(--border);
    border-radius: 3px;
}

/* Formulare Button */
.btn-formulare {
    display: inline-block;
    padding: 14px 30px;
    background: var(--cyan);
    color: var(--white);
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
    font-size: 16px;
    margin-top: 25px;
    transition: background 0.2s;
}

.btn-formulare:hover {
    background: var(--cyan-dark);
    color: var(--white);
    text-decoration: none;
}
