/* DPM Schwimmen und Retten 2026 - Stylesheet v3.0 */
/* CI: Angelehnt an polizei.brandenburg.de */

:root {
    --primary: #003056;
    --primary-light: #004070;
    --primary-dark: #001e38;
    --accent-red: #e30613;
    --accent-red-dark: #c00511;
    --light-gray: #f4f5f7;
    --medium-gray: #dcdfe3;
    --border-gray: #c8cdd3;
    --dark-gray: #555e68;
    --text-dark: #1e2328;
    --text-mid: #4a5260;
    --text-light: #6c7580;
    --white: #ffffff;
    --success: #2e7d32;
    --warning: #ef6c00;
    --danger: #c62828;
    --link: #003056;
    --link-hover: #e30613;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.65;
    background-color: var(--white);
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    padding: 5px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.85); text-decoration: none; }
.top-bar a:hover { color: #fff; text-decoration: none; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 15px; }
.notruf-badge { background: var(--accent-red); color: #fff; padding: 2px 10px; border-radius: 3px; font-weight: 700; font-size: 0.75rem; }

/* ========== HEADER ========== */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo-section { display: flex; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.logo-link:hover { text-decoration: none; }
.header-logo { height: 48px; width: auto; object-fit: contain; }
.logo-polizei { height: 46px; }
.logo-dpsk { height: 42px; }
.logo-dpm { height: 38px; }
.title-container h1 { color: var(--primary); font-size: 1.25rem; margin-bottom: 1px; font-weight: 700; }
.subtitle { color: var(--text-light); font-size: 0.78rem; font-weight: 400; }
.auth-section .user-info, .auth-section .auth-links { display: flex; align-items: center; gap: 10px; }
.user-greeting { font-size: 0.85rem; color: var(--text-mid); }
.mobile-menu-btn { display: none; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius); padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }

/* ========== NAVIGATION ========== */
.main-nav {
    background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M5 0h1L0 5V4zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    margin: 0 -20px;
    padding: 0 20px;
}
.main-nav ul { display: flex; list-style: none; overflow-x: auto; }
.main-nav li { flex-shrink: 0; }
.main-nav a { display: block; padding: 11px 18px; color: rgba(255,255,255,0.88); text-decoration: none; font-weight: 400; font-size: 0.88rem; transition: background 0.2s, color 0.2s; white-space: nowrap; border-bottom: 2px solid transparent; }
.main-nav a:hover { background-color: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.main-nav a.active { border-bottom-color: var(--accent-red); color: #fff; font-weight: 600; }

/* ========== BUTTONS ========== */
.btn { display: inline-block; padding: 8px 18px; background-color: var(--primary); color: var(--white); border: 1px solid var(--primary); border-radius: var(--radius); text-decoration: none; font-weight: 500; cursor: pointer; transition: all 0.2s; font-size: 0.88rem; }
.btn:hover { background-color: var(--primary-light); border-color: var(--primary-light); color: var(--white); text-decoration: none; }
.btn-outline { background-color: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: var(--white); }
.btn-red { background-color: var(--accent-red); border-color: var(--accent-red); }
.btn-red:hover { background-color: var(--accent-red-dark); border-color: var(--accent-red-dark); }
.btn-small { padding: 5px 12px; font-size: 0.8rem; }
.btn-success { background-color: var(--success); border-color: var(--success); }
.btn-danger { background-color: var(--danger); border-color: var(--danger); }
.btn-download { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: var(--white); padding: 10px 22px; border-radius: var(--radius); border: 1px solid var(--primary); font-weight: 500; text-decoration: none; transition: all 0.2s; }
.btn-download:hover { background: var(--primary-light); color: var(--white); text-decoration: none; }

/* ========== HERO ========== */
.hero {
    background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M5 0h1L0 5V4zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--white);
    padding: 45px 0 50px;
    text-align: center;
    position: relative;
    border-bottom: 3px solid var(--accent-red);
}
.hero .container { position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); padding: 5px 18px; border-radius: 3px; font-size: 0.85rem; font-weight: 500; margin-bottom: 18px; }
.hero h2 { font-size: 2.2rem; margin-bottom: 8px; font-weight: 700; color: #fff; }
.hero h2 span { display: block; font-size: 1.2rem; font-weight: 400; opacity: 0.85; margin-top: 5px; }
.hero-date { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); padding: 12px 24px; border-radius: var(--radius); margin-top: 20px; font-size: 1.1rem; font-weight: 600; }
.hero-date i { color: rgba(255,255,255,0.7); }
.hero-location { font-size: 0.95rem; opacity: 0.75; margin-top: 12px; }
.hero-location i { margin-right: 5px; }
.hero-stats { display: flex; justify-content: center; gap: 50px; margin-top: 30px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 1.6rem; font-weight: 700; color: #fff; }
.stat-label { font-size: 0.82rem; opacity: 0.7; }

/* ========== SECTIONS ========== */
.section { padding: 50px 0; }
.bg-light { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }
.section-title { color: var(--primary); margin-bottom: 30px; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.section-title.centered { justify-content: center; text-align: center; }
.section-title i { color: var(--accent-red); font-size: 0.9em; }

/* ========== CARDS ========== */
.card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--medium-gray); overflow: hidden; transition: box-shadow 0.2s; }
.card:hover { box-shadow: var(--shadow); }
.card-header { padding: 14px 20px; background: var(--primary); color: var(--white); }
.card-header h3 { font-size: 1.05rem; color: #fff; }
.card-header i { color: rgba(255,255,255,0.7); margin-right: 8px; }
.card-body { padding: 20px; }

.info-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--medium-gray); overflow: hidden; margin-bottom: 20px; }
.info-card .card-header { padding: 14px 20px; }
.info-card .card-body { padding: 20px; }
.info-card .card-body p { margin-bottom: 10px; color: var(--text-mid); }
.info-card .card-body p:last-child { margin-bottom: 0; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.article-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--medium-gray); overflow: hidden; transition: box-shadow 0.2s; }
.article-card:hover { box-shadow: var(--shadow); }
.article-header { padding: 16px 20px; background: var(--primary); color: var(--white); }
.article-header h3 { font-size: 1.1rem; margin-bottom: 6px; color: #fff; }
.article-meta { font-size: 0.82rem; opacity: 0.7; }
.article-body { padding: 20px; color: var(--text-mid); }
.article-body p { margin-bottom: 12px; }
.read-more { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 0.88rem; color: var(--accent-red); }
.read-more:hover { color: var(--accent-red-dark); }

/* ========== PAGE HEADER ========== */
.page-header {
    background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M5 0h1L0 5V4zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--white);
    padding: 28px 0;
    border-bottom: 3px solid var(--accent-red);
}
.page-header h1 { font-size: 1.6rem; color: #fff; }
.page-header p { opacity: 0.75; font-size: 0.92rem; margin-top: 4px; }
.page-header i { margin-right: 8px; color: rgba(255,255,255,0.6); }
.page-content { padding: 35px 0 50px; }

/* ========== TABLES ========== */
.wk-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.wk-table thead th { background: var(--primary); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.3px; }
.wk-table tbody td { padding: 10px 14px; border-bottom: 1px solid var(--medium-gray); vertical-align: top; }
.wk-table tbody tr:hover { background-color: var(--light-gray); }

/* ========== BADGES ========== */
.badge { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-vorlauf { background: #e3edf7; color: #1a5276; }
.badge-finale { background: #fdebd0; color: #7e5109; }
.badge-entscheidung { background: #d5f5e3; color: #1e8449; }
.badge-rmk { background: #f9ebea; color: #922b21; }

/* ========== ABSCHNITT HEADERS ========== */
.abschnitt-header { background: var(--light-gray); border-left: 4px solid var(--accent-red); padding: 14px 18px; margin: 25px 0 15px; font-weight: 600; color: var(--primary); font-size: 1rem; }

/* ========== TERMINE ========== */
.termine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.termin-item { padding: 14px 18px; border-left: 3px solid var(--accent-red); background: var(--light-gray); border-radius: 0 var(--radius) var(--radius) 0; }
.termin-item .date { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.termin-item .label { color: var(--text-mid); font-size: 0.88rem; margin-top: 3px; }

/* ========== TIMELINE ========== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--medium-gray); }
.timeline-item { position: relative; margin-bottom: 22px; padding: 16px 20px; background: var(--white); border: 1px solid var(--medium-gray); border-radius: var(--radius-md); }
.timeline-item::before { content: ''; position: absolute; left: -24px; top: 20px; width: 10px; height: 10px; background: var(--accent-red); border-radius: 50%; border: 2px solid var(--white); }
.timeline-time { font-weight: 700; color: var(--primary); font-size: 0.92rem; }
.timeline-label { color: var(--text-mid); font-size: 0.88rem; margin-top: 2px; }
.timeline-day-header { background: var(--primary); color: var(--white); padding: 12px 20px; border-radius: var(--radius-md); margin-bottom: 18px; margin-top: 10px; font-weight: 600; }

/* ========== DOWNLOADS ========== */
.downloads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.download-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--white); border: 1px solid var(--medium-gray); border-radius: var(--radius-md); transition: border-color 0.2s; }
.download-item:hover { border-color: var(--border-gray); box-shadow: var(--shadow-sm); }
.download-icon { width: 44px; height: 44px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.1rem; flex-shrink: 0; }
.download-info h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.download-info p { font-size: 0.82rem; color: var(--text-light); }

/* ========== HOTELS ========== */
.hotel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.hotel-card { background: var(--white); border: 1px solid var(--medium-gray); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow 0.2s; }
.hotel-card:hover { box-shadow: var(--shadow); }
.hotel-header { padding: 14px 18px; background: var(--primary); color: var(--white); }
.hotel-header h3 { font-size: 1rem; color: #fff; }
.hotel-stars { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 2px; }
.hotel-body { padding: 18px; }
.hotel-body p { margin-bottom: 8px; font-size: 0.88rem; color: var(--text-mid); }
.hotel-price { display: inline-block; background: var(--light-gray); border-left: 3px solid var(--accent-red); padding: 8px 14px; font-weight: 600; color: var(--primary); font-size: 0.9rem; margin-top: 8px; }

/* ========== GALLERY ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--medium-gray); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item-info { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: var(--white); padding: 20px 12px 10px; font-size: 0.82rem; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.88rem; color: var(--text-dark); }
.form-control { width: 100%; padding: 9px 14px; border: 1px solid var(--border-gray); border-radius: var(--radius); font-size: 0.92rem; font-family: inherit; background: var(--white); transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(44,62,80,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required { color: var(--accent-red); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ========== ALERTS ========== */
.alert { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert i { margin-right: 8px; }
.alert-success { background: #d5f5e3; color: #1e8449; border-left: 4px solid var(--success); }
.alert-error { background: #f9ebea; color: #922b21; border-left: 4px solid var(--danger); }
.alert-info { background: #e3edf7; color: #1a5276; border-left: 4px solid var(--primary); }

/* ========== AUTH ========== */
.auth-container { display: flex; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--medium-gray); border-radius: var(--radius-md); overflow: hidden; }

/* ========== EMPTY STATE ========== */
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-light); }
.empty-state i { color: var(--medium-gray); margin-bottom: 15px; }

/* ========== DASHBOARD ========== */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 30px; }
.dashboard-stat { background: var(--white); border: 1px solid var(--medium-gray); border-radius: var(--radius-md); padding: 18px; display: flex; align-items: center; gap: 14px; }
.dashboard-stat-icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.1rem; flex-shrink: 0; }
.dashboard-stat-number { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.dashboard-stat-label { font-size: 0.82rem; color: var(--text-light); }

/* ========== FOOTER ========== */
.footer-accent { height: 3px; background: var(--accent-red); }
.footer {
    background-color: var(--primary-dark);
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M5 0h1L0 5V4zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    color: rgba(255,255,255,0.8);
    padding: 35px 0 0;
    font-size: 0.88rem;
}
.footer h3 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; font-weight: 600; }
.footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-bottom: 25px; }
.footer-section p { margin-bottom: 6px; }
.footer-section p i { color: rgba(255,255,255,0.4); margin-right: 6px; width: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a::before { content: "› "; color: rgba(255,255,255,0.3); }
.footer-logos { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.footer-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 1; }
.footer-logo-round { border-radius: 50%; filter: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 14px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ========== SCROLL TO TOP ========== */
#scrollToTopBtn { position: fixed; bottom: 25px; right: 25px; width: 40px; height: 40px; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius); cursor: pointer; display: none; z-index: 999; font-size: 0.9rem; }
#scrollToTopBtn:hover { background: var(--primary-light); }

/* ========== COOKIE BANNER ========== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary-dark); color: rgba(255,255,255,0.9); padding: 18px 0; z-index: 9998; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); font-size: 0.88rem; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 280px; line-height: 1.5; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 8px 20px; border-radius: var(--radius); font-weight: 600; font-size: 0.85rem; cursor: pointer; border: 1px solid rgba(255,255,255,0.3); transition: all 0.2s; font-family: inherit; }
.cookie-btn-accept { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
.cookie-btn-accept:hover { background: var(--accent-red-dark); }
.cookie-btn-decline { background: transparent; color: rgba(255,255,255,0.85); }
.cookie-btn-decline:hover { background: rgba(255,255,255,0.1); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .main-nav { display: none; margin: 0; padding: 0; }
    .main-nav.show { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .main-nav a.active { border-bottom-color: var(--accent-red); }
    .header-top { flex-wrap: wrap; gap: 10px; }
    .auth-section { display: none; }
    .top-bar { display: none; }
    .hero h2 { font-size: 1.6rem; }
    .hero-stats { gap: 25px; }
    .page-header h1 { font-size: 1.3rem; }
    .downloads-grid, .hotel-grid, .articles-grid, .termine-grid, .form-row { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .cookie-banner .container { flex-direction: column; text-align: center; }
    .cookie-buttons { justify-content: center; }
}
@media (max-width: 480px) {
    .hero h2 { font-size: 1.3rem; }
    .hero-date { font-size: 0.95rem; padding: 10px 16px; }
    .title-container h1 { font-size: 1rem; }
    .dashboard-grid, .gallery-grid { grid-template-columns: 1fr; }
}
