/* =========================================
   1. CORE STYLES & TYPOGRAPHY
   ========================================= */
:root {
    --primary-color: #1a3c34; /* Dein KAZA-Grün */
    --accent-color: #cfa348;  /* Dein KAZA-Gold */
    --text-dark: #2c3e50;
    --text-light: #ffffff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

h1, h2, h3 { color: #1a3c34; }

/* =========================================
   2. NAVIGATION & HEADER
   ========================================= */
header {
    background: #1a3c34;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.logo { font-weight: 800; font-size: 1.6rem; letter-spacing: 1px; }
.logo a { color: white; text-decoration: none; }
.logo span { color: var(--accent-color); }

.nav-menu { 
    list-style: none; 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
    margin: 0; 
    padding: 0; 
}

.nav-menu a { 
    color: white; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.3s; 
}

.nav-menu a:hover { color: var(--accent-color); }

/* --- Dropdown Logic --- */
.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    z-index: 1001;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-top: 3px solid var(--accent-color);
    border-radius: 0 0 4px 4px;
    top: 100%;
    left: 0;
}

.dropdown-content li a { 
    color: #1a3c34 !important; 
    padding: 12px 20px; 
    display: block; 
    font-size: 0.9rem; 
    text-align: left;
}

.dropdown-content li a:hover { 
    background-color: #f1f1f1; 
    color: var(--accent-color) !important; 
}

.dropdown:hover .dropdown-content { display: block; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

/* =========================================
   3. LAYOUT COMPONENTS
   ========================================= */
.section-padding { padding: 4rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.content-wrapper { max-width: 900px; margin: 0 auto; }

/* Hero Sections */
.hero {
    background: linear-gradient(rgba(26,60,52,0.8), rgba(26,60,52,0.8)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 1.5rem;
}
.hero-small { background: #1a3c34; color: white; text-align: center; padding: 3rem 1rem; }

/* Quick Facts & Disclaimers */
.quick-facts { 
    background: #fdf6e7; 
    border-left: 5px solid var(--accent-color); 
    padding: 1.5rem; 
    margin: 2rem 0; 
    border-radius: 4px; 
}

.disclaimer-box {
    background-color: #f8f9fa !important;
    border-left: 5px solid #6c757d !important;
}

.disclaimer-box h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #343a40;
    margin-top: 0;
}

.warning-icon { width: 28px; height: auto; display: inline-block; }

/* =========================================
   4. INTERACTIVE ELEMENTS
   ========================================= */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.map-responsive iframe { left: 0; top: 0; height: 100%; width: 100%; position: absolute; }

.quick-finder-container {
    background: #fdfaf3;
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    border: 1px solid #e9dcc0;
}

.filter-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }

.border-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.border-table th, .border-table td { padding: 14px 15px; border-bottom: 1px solid #ddd; text-align: left; }
.border-table th { background-color: #1a3c34; color: white; text-transform: uppercase; }
.border-table tr:nth-child(even) { background-color: #f9f9f9; }

/* =========================================
   5. SILO GRID
   ========================================= */
.silo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin: 3rem 0; }

.silo-card {
    background: #f9f9f9;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    border-bottom: 5px solid var(--accent-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.silo-card:hover { transform: translateY(-8px); box-shadow: 0 12px 20px rgba(0,0,0,0.1); background: #ffffff; }
.silo-link { color: var(--accent-color); font-weight: bold; text-transform: uppercase; font-size: 0.85rem; }
.silo-link::after { content: ' →'; transition: margin-left 0.3s; }
.silo-card:hover .silo-link::after { margin-left: 10px; }

/* =========================================
   6. BUTTONS & VISA PROMO (STARTSEITE)
   ========================================= */
.cta-button {
    background-color: var(--accent-color);
    color: white !important;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.cta-button:hover {
    background-color: #b38b3a;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white !important;
}

.cta-button.secondary:hover {
    background: white;
    color: #1a3c34 !important;
}

/* VISA PROMO SECTION FIX */
.visa-promo-section {
    background-color: #fdfaf3;
    padding: 3rem 1.5rem;
    margin: 4rem auto;
    border-radius: 12px;
    max-width: 1100px;
    border: 1px solid #e9dcc0;
    border-bottom: 5px solid var(--accent-color);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.visa-promo-content {
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   7. COOKIE BANNER & IMPACT
   ========================================= */
.cookie-container {
    position: fixed;
    bottom: 20px; left: 20px; right: 20px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 12px;
    z-index: 9999;
    display: none;
    border-left: 6px solid var(--accent-color);
}
.cookie-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1100px; margin: 0 auto; }
.cookie-btn.accept { background: #1a3c34; color: white; }

.climate-box {
    border-left: 5px solid #3498db !important;
    background-color: #f0f7fd;
}

/* =========================================
   8. FOOTER
   ========================================= */
.main-footer { background: #1a3c34; color: white; padding: 4rem 1.5rem 2rem; margin-top: 4rem; text-align: center; }
.footer-nav { margin: 2rem 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: #ecf0f1; text-decoration: none; }

/* =========================================
   9. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .nav-toggle-label { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; background: #1a3c34;
        width: 100%; flex-direction: column; display: none; padding: 1.5rem;
    }
    .nav-toggle:checked ~ .nav-menu { display: flex; }
    .dropdown-content { position: static; display: none; background: #142e28; width: 100%; }
    .dropdown-content li a { color: white !important; }
}

.kaza-map-overview {
    padding: 60px 0;
}

.map-container img {
    transition: transform 0.5s ease;
}

/* Subtiler Zoom-Effekt beim Drüberfahren */
.map-container:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .kaza-map-overview {
        padding: 40px 0;
    }
}

/* =========================================
   HERO SECTION (überarbeitet)
   ========================================= */
.hero {
    background: linear-gradient(rgba(26,60,52,0.85), rgba(26,60,52,0.85)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 1.5rem;
}

.hero h1 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

/* =========================================
   MAP SECTION (überarbeitet)
   ========================================= */
.map-section {
    padding: 50px 20px;
    background: #f9f9f9;
}

.map-section-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.map-intro {
    margin-bottom: 25px;
    color: #555;
}

.map-wrapper {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    background: white;
    padding: 10px;
}

.map-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.map-wrapper:hover img {
    transform: scale(1.02);
}

.map-caption {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* =========================================
   DESTINATION CARDS (überarbeitet)
   ========================================= */
.destination-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card-header {
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px 12px 0 0;
}

.card-flag {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 3px solid white;
    position: absolute;
    top: 30px;
    left: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.card-body {
    padding: 35px 1.5rem 1.5rem;
}

.card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.card-highlight {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-body p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* =========================================
   FOOTER (überarbeitet)
   ========================================= */
.main-footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-tagline {
    color: rgba(255,255,255,0.8);
    margin: 15px 0 20px;
    font-size: 0.9rem;
}

.footer-nav {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin: 0;
}

/* =========================================
   COOKIE BANNER (überarbeitet)
   ========================================= */
.cookie-container {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 12px;
    z-index: 9999;
    border-left: 6px solid var(--accent-color);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--accent-color);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: var(--primary-color);
    color: white;
}

.cookie-btn.accept:hover {
    background: #142e28;
}

.cookie-btn.decline {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
}

.cookie-btn.decline:hover {
    border-color: #999;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
