/* ==========================================================================
   1. GLOBALE VARIABLEN & DESIGN-SYSTEM
   ========================================================================== */
:root {
    --primary: #003366;       /* Deep Navy */
    --secondary: #4a7c59;     /* Naturgrün */
    --accent: #d4af37;        /* Goldgelb */
    --text-color: #333333;    /* Dunkelgrau */
    --bg-color: #fafafa;      /* Helles Grau */
    --card-bg: #ffffff;      
    
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   2. RESET & BASIS-STYLING
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==========================================================================
   3. TYPOGRAFIE
   ========================================================================== */
h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0 0 5px 0;
}

p {
    margin-bottom: 15px;
}

ul {
    margin-bottom: 15px;
}

li {
    margin-bottom: 5px;
}

strong {
    color: #000;
}

/* ==========================================================================
   4. HEADER & NAVI (Passend zu components.js)
   ========================================================================== */
.header-banner {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.95)), url('images/bremerhaven-main-banner.webp') no-repeat center/cover;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.header-content h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.header-content p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.main-nav {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav-link, .dropbtn {
    display: block;
    padding: 18px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover, .dropbtn:hover, .nav-link.active, .dropbtn.active {
    color: var(--primary);
    background-color: #f8fafc;
}

/* Dropdown Logik */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: #555;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-content a:hover, .dropdown-content a.active {
    background-color: #f1f5f9;
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ==========================================================================
   5. LAYOUT-GRID (Responsive)
   ========================================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

/* ==========================================================================
   6. STANDARDELEMENTE & KOMPONENTEN
   ========================================================================== */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card-list {
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Karten-Rahmenvarianten */
.border-primary { border-top: 5px solid var(--primary); }
.border-secondary { border-top: 5px solid var(--secondary); }
.border-accent { border-top: 5px solid var(--accent); }

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.3);
    filter: brightness(1.1);
}

.btn-full {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.btn-bg-secondary { background-color: var(--secondary); }
.btn-bg-accent { background-color: var(--accent); color: #000 !important; }

/* Tags / Badges */
.tag {
    display: inline-block;
    background-color: #eee;
    color: #555;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.tag-familie { background-color: #e3f2fd; color: #0d47a1; }
.tag-alter   { background-color: #fff3e0; color: #e65100; }
.tag-all     { background-color: #e8f5e9; color: #1b5e20; }

/* Info-Box */
.info-box {
    background-color: var(--primary);
    color: #ffffff;
    border-radius: var(--radius);
    padding: 35px;
    margin: 50px 0;
    box-shadow: var(--shadow);
}

.info-box h2, .info-box h3 {
    color: #ffffff;
    margin-top: 0;
}

/* ==========================================================================
   7. GEMEINSAME GLOBALE LAYOUT-KLASSEN
   ========================================================================== */

/* Top-Banner */
.page-banner-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.page-banner-img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Highlight- / Story-Box */
.highlight-box {
    background: linear-gradient(135deg, #f5f8fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: var(--radius);
    margin: 40px 0;
    border-left: 6px solid var(--primary);
    box-shadow: var(--shadow);
}

.highlight-box.accent-edge {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, #fdfbf7 0%, #ffffff 100%);
}

.box-inner-title {
    text-align: center;
    margin-bottom: 25px;
}

/* Trennlinien */
.section-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 30px 0;
}

/* In-Card Bilder */
.card-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
}

/* Zentrierungs-Utility */
.cta-center {
    text-align: center;
    margin: 40px 0;
}

/* Untere Verlinkungen / Teaser */
.more-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.more-section h2 {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 0;
}

.teaser-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 15px;
    padding: 15px !important;
}

.teaser-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.teaser-link {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.teaser-link:hover {
    text-decoration: underline;
}

/* Text-Link im <summary> Element */
.read-more-btn {
    color: var(--primary);
    font-weight: bold;
    text-decoration: underline;
}

/* ==========================================================================
   8. FOOTER STYLING (Passend zu components.js)
   ========================================================================== */
.main-footer {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-content strong {
    color: #fff;
}

.footer-greeting {
    display: block;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.footer-nav {
    margin-top: 15px;
}

.footer-nav a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: #fff;
}