/* ==================================================
   MODERNES CSS FÜR USKANA WEBSITE - 2024
   Minimalistisch, elegant, responsive
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Crimson+Text:wght@400;600&display=swap');

:root {
    /* Neues Farbschema: Sanfte, natürliche Töne */
    --primary-color: #1a1a1a;
    --secondary-color: #d4a574; /* Warmes Gold */
    --accent-color: #6b8e5a;    /* Sanftes Oliv */
    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-light: #8a8a8a;
    --bg-primary: #fafafa;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --border-color: #e8e8e8;
    
    /* Sanfte Schatten */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* Spacing */
    --section-padding: clamp(4rem, 10vh, 8rem);
    --container-padding: clamp(1.5rem, 5vw, 3rem);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #f0f0f0;
        --text-primary: #f0f0f0;
        --text-secondary: #b0b0b0;
        --text-light: #909090;
        --bg-primary: #121212;
        --bg-secondary: #1a1a1a;
        --bg-card: #1e1e1e;
        --border-color: #2a2a2a;
        --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
        --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
        --shadow-lg: 0 8px 24px rgba(0,0,0,0.35);
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Albanische Flagge als dezenter Hintergrund für die gesamte Seite */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/3/36/Flag_of_Albania.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.03; /* Sehr transparent: 3% Sichtbarkeit */
    z-index: -1;
    pointer-events: none; /* Verhindert Interaktion mit dem Hintergrund */
}

/* ==========================================================================
   SPRACHUMSCHALTER - Minimal & Elegant
   ========================================================================== */
.language-switcher {
    position: fixed;
    top: clamp(1rem, 3vw, 1.5rem);
    right: clamp(1rem, 3vw, 1.5rem);
    z-index: 1000;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 2px;
}

.language-switcher button {
    background: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
}

.language-switcher button.active {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-xs);
}

.language-switcher button:hover:not(.active) {
    color: var(--text-primary);
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .language-switcher {
        top: 1rem;
        right: 4rem; /* Platz für Hamburger-Menü */
        padding: 3px;
    }
    
    .language-switcher button {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   HERO - Cinematic & Minimal
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: 
        radial-gradient(circle at center, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.9) 100%),
        url('https://images.unsplash.com/photo-1508804052814-cd3ba865a116?w=1920&h=1080&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    isolation: isolate;
}

.hero-content {
    max-width: 800px;
    padding: 0 var(--container-padding);
    z-index: 1;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content h1 {
    font-family: 'Crimson Text', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ==========================================================================
   NAGIVATION - Modern & Stilvoll
   ========================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 998;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    flex-wrap: wrap;
}

.navbar a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icon vor jedem Link */
.navbar a::before {
    content: '';
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Spezifische Icons für jeden Link */
.navbar a[href="#geschichte"]::before { content: '📜'; }
.navbar a[href="#grenzen"]::before { content: '🗺️'; }
.navbar a[href="#geografie"]::before { content: '🗾'; }
.navbar a[href="#kultur"]::before { content: '🎭'; }
.navbar a[href="#archaeologie"]::before { content: '⛏️'; }
.navbar a[href="#doerfer"]::before { content: '🏘️'; }
.navbar a[href="#timeline"]::before { content: '⏳'; }
.navbar a[href="#guide"]::before { content: '📍'; }
.navbar a[href="#newsletter"]::before { content: '✉️'; }

.navbar a:hover::before {
    opacity: 1;
}

.navbar a:hover {
    color: var(--accent-color);
    background: rgba(107, 142, 90, 0.1);
    transform: translateY(-2px);
}

/* Aktiver Link */
.navbar a.active {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-xs);
}

.navbar a.active:hover {
    transform: none;
}

/* Unterstreichungseffekt */
.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar a:hover::after {
    width: 70%;
}

.navbar a.active::after {
    display: none;
}

/* Mobile Menü Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    cursor: pointer;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   MOBILE MENU OVERLAY - Vollbild-Navigation
   ========================================================================== */

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        z-index: 999;
        box-shadow: none;
        border-bottom: none;
        padding: 2rem 0;
    }

    .navbar.active {
        left: 0;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
        padding: 2rem;
        max-width: 400px;
    }

    .navbar a {
        font-size: 1.8rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        justify-content: center;
        border-radius: var(--radius-md);
        background: rgba(0, 0, 0, 0.02);
    }

    .navbar a::before {
        font-size: 1.5em;
        margin-right: 1rem;
    }

    .navbar a::after {
        bottom: 0;
        height: 3px;
    }

    .navbar a:hover {
        background: var(--accent-color);
        color: white;
        transform: translateY(-3px);
    }

    .navbar a:hover::after {
        display: none;
    }

    .navbar a.active {
        background: var(--accent-color);
        color: white;
    }
}

/* Overlay-Hintergrund wenn Menü aktiv */
body.nav-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }
}

/* ==========================================================================
   HAUPTINHALT - Elegant & Spacing
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    margin: var(--section-padding) 0;
    padding: var(--section-padding) 0;
    border-bottom: 1px solid var(--border-color);
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-family: 'Crimson Text', serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 4rem;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    line-height: 1.2;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* ==========================================================================
   CONTENT GRID - Balanced & Modern
   ========================================================================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-top: 2rem;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.image-placeholder {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-placeholder:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   CARDS - Minimal & Hover Effects
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 3rem;
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   ARCHÄOLOGIE LIST - Elegant Numbering
   ========================================================================== */
.theories-list {
    margin: 3rem 0;
    padding-left: 0;
    list-style: none;
    counter-reset: theory-counter;
}

.theories-list li {
    counter-increment: theory-counter;
    margin: 2rem 0;
    padding: 1.5rem 0 1.5rem 4rem;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-bottom: 1px solid var(--border-color);
}

.theories-list li:last-child {
    border-bottom: none;
}

.theories-list li::before {
    content: counter(theory-counter);
    position: absolute;
    left: 0;
    top: 1.5rem;
    background: var(--accent-color);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ==========================================================================
   HISTORISCHE GRENZEN - Großalbanien Karte
   ========================================================================== */
.map-historical-container {
    margin: 3rem 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-wrapper {
    position: relative;
    padding-bottom: 60%; /* 5:3 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.map-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-secondary);
    padding: 2rem;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   DÖRFER & KARTE
   ========================================================================== */
.intro-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.village-map-container {
    margin: 3rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 500px;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
    background: var(--bg-secondary);
}

/* Dörfer Grid */
.villages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 3rem;
}

.village-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.village-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.village-card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.village-card h3::before {
    content: '🏘️';
    font-size: 1.3rem;
    filter: grayscale(0.3);
}

.village-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   ZEITLEISTE - Modern Timeline
   ========================================================================== */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.timeline-year {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.timeline-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   REISEFÜHRER - Clean Cards
   ========================================================================== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: 3rem;
}

.guide-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.guide-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.guide-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   NEWSLETTER - Minimal Form
   ========================================================================== */
.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

#newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

#newsletter-email {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

#newsletter-email:focus {
    outline: none;
    border-color: var(--accent-color);
}

#newsletter-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

#newsletter-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER - Minimal
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    color: var(--text-light);
    text-align: center;
    padding: 3rem var(--container-padding);
    margin-top: var(--section-padding);
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   ANIMATIONEN - Subtiele Effekte
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE - Mobile First Design
   ========================================================================== */

/* Medium Tablets */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .village-map-container {
        height: 400px;
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .navbar a {
        font-size: 1.5rem;
    }
    
    .section h2 {
        margin-bottom: 2.5rem;
    }
    
    .cards-grid,
    .villages-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .village-map-container {
        height: 350px;
        margin: 2rem 0;
    }
    
    .newsletter-box {
        padding: 2.5rem;
    }
    
    #newsletter-form {
        flex-direction: column;
    }
    
    #newsletter-email,
    #newsletter-button {
        width: 100%;
    }
    
    .map-legend {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    :root {
        --section-padding: clamp(2.5rem, 8vh, 4rem);
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .card,
    .village-card,
    .guide-card,
    .timeline-item {
        padding: 1.8rem;
    }
    
    .village-map-container {
        height: 300px;
    }
    
    .map-wrapper {
        padding-bottom: 80%;
    }
}