/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;  /* Verhindert horizontal overflow */
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2C3E50;
    --accent-color: #8B4513;
    --light-bg: #0f2d1f;  /* Dunkles Saphir-Grün */
    --card-bg: #1a3d2e;  /* Etwas helleres Saphir-Grün für Karten */
    --text-color: #e8f5e9;  /* Helles Grün-Weiß */
    --text-light: #a5d6a7;  /* Mittelhelles Grün-Grau */
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;  /* Verhindert horizontales Scrollen */
    max-width: 100vw;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #0a2418 0%, #0f2d1f 50%, #1a3d2e 100%);
    background-attachment: fixed;  /* Gradient bleibt beim Scrollen fix */
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;  /* Verhindert horizontales Scrollen */
    max-width: 100vw;
}

/* Dark-Mode: Noch dunklerer Saphir-Grün */
body.dark-mode {
    --light-bg: #0a1c14;
    --card-bg: #0f2d1f;
    --text-color: #c8e6c9;
    --text-light: #81c784;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.7);
    
    /* Dunklerer Hintergrund-Gradient für Dark Mode */
    background: linear-gradient(135deg, #05140d 0%, #0a1c14 50%, #0f2d1f 100%) !important;
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

@media (hover: hover) {
    a:hover {
        color: #a0522d;
    }
}

.emoji {
    display: inline-block;
    margin-left: 5px;
}

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
    background-color: rgba(44, 62, 80, 0.95);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (hover: hover) {
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        color: #fff !important;
    }
}

/* Hamburger Button (nur sichtbar auf Mobile) */
.hamburger-btn {
    display: none;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    order: -1; /* Hamburger immer zuerst */
    position: relative; /* Für z-index */
    z-index: 1001; /* Höher als Navbar (1000) */
    pointer-events: auto; /* Explizit klickbar */
}

.hamburger-btn:active {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (hover: hover) {
    .hamburger-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
}

.dark-mode-btn {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .dark-mode-btn:hover {
        background-color: rgba(255,255,255, 0.2);
        transform: scale(1.1);
    }
}

.contact-nav-btn {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.3);
}

@media (hover: hover) {
    .contact-nav-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.5);
    }
}

/* ===== Mobile Menü Overlay ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    width: 85%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.mobile-menu.show .mobile-menu-content {
    transform: scale(1);
}

.mobile-menu-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 12px;
    background-color: var(--light-bg);
    border: 2px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-menu-link:active {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(0.98);
}

.mobile-menu-btn {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    color: #fff;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.mobile-menu-btn:active {
    transform: scale(0.98);
}

/* ===== Hero ===== */
.hero {
    padding: 60px 20px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.wappen {
    display: block;
    margin: 0 auto 30px;
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(76, 175, 80, 0.3));
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .wappen:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 20px rgba(76, 175, 80, 0.5));
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.stat-detail {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 500;
}

.stat-date {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 2px solid #FFD700;
}

.stat-date .stat-icon {
    color: #fff;
    margin-bottom: 10px;
}

.stat-date .stat-label {
    color: #fff;
    font-weight: 600;
}

.stat-date .stat-detail {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Three Boxes ===== */
.three-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.quick-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

@media (hover: hover) {
    .quick-box:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(33, 150, 243, 0.2));
    }
}

.box-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.quick-box h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.quick-box p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.box-arrow {
    font-size: 2rem;
    color: var(--primary-color);
}

/* ===== Ritual Modal ===== */
.ritual-modal {
    max-width: 600px;
}

.ritual-modal h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

#ritualModalContent {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

#ritualModalContent h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

#ritualModalContent p {
    margin-bottom: 15px;
}

.stat {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
    .stat:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-number-text {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (hover: hover) {
    .stat-link:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
        border-color: var(--primary-color);
    }
}

/* ===== Sections ===== */
.section {
    padding: 80px 20px;
    margin-bottom: 40px;
    /* Keine Hintergrundfarben mehr - alles transparent */
}

.section h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.intro-text {
    text-align: center !important;
    font-size: 1.15rem !important;
    color: var(--text-light);
    margin-bottom: 50px !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== Timeline ===== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #4CAF50 0%, #2196F3 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-left: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid var(--primary-color);
}

@media (hover: hover) {
    .timeline-item:hover {
        transform: translateX(10px);
        box-shadow: var(--shadow-hover);
        border-left-color: var(--accent-color);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 30px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 4px solid var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .timeline-item:hover::before {
        background-color: var(--accent-color);
        transform: scale(1.2);
    }
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.timeline-event {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.timeline-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.timeline-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== Character Grid ===== */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.character-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

@media (hover: hover) {
    .character-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
        border-color: var(--primary-color);
    }
}

.character-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.character-name {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.character-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.character-preview {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Network ===== */
.network-container {
    position: relative;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    height: 600px;
    margin-top: 30px;
}

#networkCanvas {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.network-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* ===== Quiz ===== */
.quiz-intro, .quiz-result {
    text-align: center;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.quiz-intro p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.quiz-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

@media (hover: hover) {
    .quiz-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }
}

.highscore {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.quiz-question {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.question-number {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.option-btn {
    padding: 15px 25px;
    background-color: var(--light-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Hover nur für Geräte mit echter Maus (Desktop) */
@media (hover: hover) {
    .option-btn:hover {
        background-color: var(--primary-color);
        color: #fff;
        transform: translateY(-2px);
    }
}

.option-btn.correct {
    background-color: #4CAF50 !important;
    color: #fff !important;
}

.option-btn.wrong {
    background-color: #f44336 !important;
    color: #fff !important;
}

.quiz-progress {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--text-light);
    color: var(--text-light);
    font-size: 1rem;
}

.result-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.result-message {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ===== Gallery ===== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background-color: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

@media (hover: hover) {
    .filter-btn:hover {
        background-color: var(--primary-color);
        color: #fff;
    }
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Gruppenbild */
.group-photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.group-photo {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    transition: all 0.3s ease;
    max-height: 600px;
    object-fit: contain;
}

@media (hover: hover) {
    .group-photo:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    }
}

/* Random Fotos Box */
.random-photos-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.random-photos-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.random-photos-header h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    flex: 1;
}

.random-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.random-photo-item {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    object-fit: cover;
}

@media (hover: hover) {
    .random-photo-item:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: var(--shadow-hover);
    }
}

/* Vollbild Galerie im Modal */
.full-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
}

.full-gallery-image {
    width: 100%;
    height: 150px;
    border-radius: var(--border-radius);
    cursor: pointer;
    object-fit: cover;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .full-gallery-image:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

.full-gallery-modal {
    max-width: 90vw;
    max-height: 90vh;
    padding: 30px;
    overflow-y: auto;
}

/* Galerie (deprecated, wird nicht mehr verwendet) */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-image {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    object-fit: cover;
    loading: lazy;
}

@media (hover: hover) {
    .gallery-image:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-hover);
    }
}

.gallery-image.hidden {
    display: none;
}

/* ===== Rituals ===== */
/* Ritual Section als Container definieren */
#rituals {
    min-height: 750px;  /* Definierte Höhe für das Diagramm */
    position: relative; /* Als Positionierungs-Kontext */
    display: flex;           /* Flex-Container für Zentrierung */
    flex-direction: column;  /* Vertikale Ausrichtung */
    justify-content: center; /* Vertikal zentrieren */
    align-items: center;     /* Horizontal zentrieren */
    margin-bottom: 100px;    /* Zusätzlicher Abstand zur nächsten Sektion */
}

/* Ritual Stern Layout (aufrechter Stern) */
.ritual-star {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 0;  /* Kein manueller Abstand, Flexbox zentriert */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

/* SVG für Verbindungslinien - AUSGEBLENDET */
.ritual-lines {
    display: none; /* Fadenkreuz komplett entfernt */
}

/* Zentrum */
.ritual-center {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.ritual-center .ritual-card {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(33, 150, 243, 0.2));
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 280px;
    height: 280px;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

@media (hover: hover) {
    .ritual-center .ritual-card:hover {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(76, 175, 80, 0.4);
    }
}

.ritual-center .ritual-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

/* Die vier Ritual-Knoten (Stern-Positionen) */
.ritual-top,
.ritual-bottom,
.ritual-left,
.ritual-right {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    min-width: 200px;
    z-index: 5;
}

.ritual-top {
    grid-column: 2;
    grid-row: 1;
}

.ritual-bottom {
    grid-column: 2;
    grid-row: 3;
}

.ritual-left {
    grid-column: 1;
    grid-row: 2;
}

.ritual-right {
    grid-column: 3;
    grid-row: 2;
}

@media (hover: hover) {
    .ritual-top:hover,
    .ritual-bottom:hover,
    .ritual-left:hover,
    .ritual-right:hover {
        transform: scale(1.1);
        box-shadow: var(--shadow-hover);
        border-color: var(--accent-color);
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    }
}

.ritual-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
}

.ritual-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.ritual-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Easter Egg: Der Bärenführer */
.ritual-card {
    position: relative;
}

.easter-egg {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 1.2rem;
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

@media (hover: hover) {
    .easter-egg:hover {
        opacity: 0.7;
        transform: scale(1.2);
        animation: pulse 1s ease-in-out infinite;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.3); }
}

/* Sekundär: Der Bärenführer (kleiner, versetzt) */
.ritual-bear-guide {
    position: absolute;
    bottom: 18%;
    left: 32%;
    transform: scale(0.8);
    opacity: 0.9;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px 18px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    min-width: 170px;
    z-index: 4;
}

@media (hover: hover) {
    .ritual-bear-guide:hover {
        transform: scale(0.85);
        box-shadow: var(--shadow-hover);
        border-color: var(--accent-color);
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    }
}

.ritual-bear-guide .ritual-icon {
    font-size: 2.8rem;
}

.ritual-bear-guide h3 {
    font-size: 1.1rem;
}

/* Mobile Responsive für Ritual Stern */
@media (max-width: 768px) {
    .ritual-star {
        height: auto;
        min-height: 650px;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .ritual-lines {
        display: none; /* Keine Verbindungslinien auf Mobile */
    }
    
    .ritual-bear-guide {
        position: static;
        transform: none;
        min-width: 160px;
        padding: 20px 15px;
    }
    
    .ritual-center .ritual-card {
        width: 220px;
        height: 220px;
    }
    
    .ritual-top,
    .ritual-bottom,
    .ritual-left,
    .ritual-right {
        min-width: 180px;
        padding: 25px 20px;
    }
    
    .ritual-icon {
        font-size: 2.5rem;
    }
    
    .ritual-card h3 {
        font-size: 1.1rem;
    }
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--card-bg);
    margin: 20px;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 600px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

@media (hover: hover) {
    .close:hover {
        color: var(--accent-color);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.modal-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.modal-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-section {
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgba(76, 175, 80, 0.05);
    border-radius: 8px;
}

.modal-section h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-section ul {
    list-style: none;
}

.modal-section li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Story Modal Specific */
.story-modal {
    max-width: 800px;
}

.story-modal-body {
    padding: 20px;
}

.story-modal-title {
    color: var(--text-color);
    margin-bottom: 20px;
}

.story-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--text-light);
}

.story-meta-item {
    color: var(--primary-color);
    font-weight: 600;
}

.story-modal-event {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.story-modal-moral {
    background-color: rgba(139, 69, 19, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.story-modal-stimmung {
    color: var(--text-light);
    font-style: italic;
    font-size: 1rem;
}

/* Image Modal Specific */
.image-modal {
    max-width: 900px;
    padding: 10px;
}

.image-modal img {
    border-radius: var(--border-radius);
    max-height: 80vh;
    object-fit: contain;
    margin: 0 auto;
}

/* ===== Footer ===== */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
}

footer p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

footer a {
    color: #fff;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}

@media (hover: hover) {
    footer a:hover {
        color: #f0f0f0;
        border-bottom-color: #f0f0f0;
    }
}

.footer-slogan {
    margin-top: 30px;
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* ===== Responsive Design ===== */


@media (max-width: 768px) {
    .hero {
        padding: 30px 15px;
    }

    .wappen {
        height: 60px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 20px;
        justify-content: center;
    }

    .stat {
        min-width: 120px;
        padding: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .three-boxes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quick-box {
        padding: 30px 20px;
    }

    .box-icon {
        font-size: 3rem;
    }

    /* Mobile Navigation */
    .navbar {
        padding: 10px 15px;
        gap: 10px;
        margin-bottom: 20px;
        height: 56px; /* Feste Höhe für Mobile */
        justify-content: space-between;
        position: relative; /* Nicht mehr sticky auf Mobile */
    }

    .hamburger-btn {
        display: block; /* Hamburger sichtbar */
    }

    .nav-links {
        display: none; /* Links verstecken */
    }

    .dark-mode-btn {
        padding: 6px 10px;
        font-size: 1.1rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

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

    .network-container {
        height: 400px;
    }

    .network-legend {
        font-size: 0.8rem;
        padding: 10px 15px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-item::before {
        left: -36px;
    }

    .group-photo {
        max-height: 400px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-image {
        height: 200px;
    }

    .options-container {
        grid-template-columns: 1fr;
    }
    
    /* Spinnennetz Mobile Optimierungen */
    .ritual-network {
        height: 500px;
    }

    /* Modal-Overlay: Background scrollen verhindern wenn Modal offen */
    .modal.show {
        overflow: hidden !important;
    }
    
    /* Mobile Close-Button für alle Modals verbessern */
    .close {
        position: absolute !important;  /* Statt fixed - gehört zum Modal */
        top: 10px !important;
        right: 10px !important;
        z-index: 10001 !important;
        font-size: 2.5rem !important;
        background: rgba(0, 0, 0, 0.7) !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        line-height: 1 !important;
        transition: background 0.3s ease !important;
    }

    .close:active {
        background: rgba(0, 0, 0, 0.9) !important;
        transform: scale(0.95) !important;
    }

    /* Ritual Modal Mobile Optimierungen - Scroll fix */
    .ritual-modal {
        max-width: 95vw !important;
        max-height: 90vh !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;  /* Verhindert, dass Text über Box-Grenzen läuft */
        border-radius: var(--border-radius) !important;  /* Abgerundete Ecken bleiben erhalten */
        touch-action: pan-y !important;  /* Nur vertikales Scrollen erlauben */
    }

    .ritual-modal .modal-content {
        max-height: calc(90vh - 70px) !important;  /* Platz für Close-Button */
        overflow-y: scroll !important;  /* Scroll erzwingen (statt auto) */
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;  /* iOS smooth scroll */
        padding: 70px 20px 30px 20px !important;  /* Top-Padding für Close-Button */
        touch-action: pan-y !important;  /* Scroll-Events abfangen */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat {
        width: 100%;
    }

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

    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-image {
        height: 250px;
    }

    .modal-content {
        padding: 25px;
        margin: 10px;
        width: 95%;
    }

    .navbar {
        flex-direction: column;
        border-radius: 15px;
    }
}

/* ===== Dates Section ===== */
.dates-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.date-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: var(--border-radius);
    padding: 50px 40px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    min-width: 350px;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .date-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
    }
}

.date-card.featured {
    border: 4px solid #FFD700;
}

.date-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.date-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.date-text {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.date-emojis {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* ===== Group Photo Placeholder ===== */
.group-photo-placeholder {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border: 3px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.placeholder-icon {
    font-size: 5rem;
    opacity: 0.5;
}

.placeholder-content h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.placeholder-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-style: italic;
}

/* ===== Chronik Einreichen Sektion ===== */
.chronik-cta-container {
    text-align: center;
    margin-top: 40px;
}

.chronik-submit-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: #fff;
    padding: 18px 45px;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

@media (hover: hover) {
    .chronik-submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }
}

.random-story-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.random-icon {
    font-size: 2rem;
}

.random-story-header h3 {
    color: var(--text-color);
    font-size: 1.8rem;
}

.random-story-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.random-story-item h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.random-story-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.random-story-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.random-story-btn {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

@media (hover: hover) {
    .random-story-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    }
}

/* ===== Random Ritual Box ===== */
.random-ritual-box {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(255, 152, 0, 0.1));
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.random-ritual-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.random-ritual-header h3 {
    color: var(--text-color);
    font-size: 1.8rem;
}

.random-ritual-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.random-ritual-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.random-ritual-item h4 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.random-ritual-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.random-ritual-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

@media (hover: hover) {
    .random-ritual-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
    }
}

/* ===== Rituals Toggle ===== */
.rituals-toggle {
    text-align: center;
    margin: 30px 0;
}

.ritual-toggle-btn {
    background: var(--card-bg);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

@media (hover: hover) {
    .ritual-toggle-btn:hover {
        background-color: var(--accent-color);
        color: #fff;
        transform: translateY(-2px);
    }
}

/* ===== Gallery Placeholder ===== */
.gallery-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 400px;
}

/* ===== Contact Modal ===== */
.contact-modal {
    max-width: 700px;
}

.contact-modal h2 {
    color: var(--text-color);
    margin-bottom: 10px;
    text-align: center;
}

.contact-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-modal .form-group {
    margin-bottom: 25px;
}

.contact-modal label {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-modal input,
.contact-modal textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--text-light);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--light-bg);
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.contact-modal input:focus,
.contact-modal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.contact-modal textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

@media (hover: hover) {
    .submit-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .quiz-section,
    .network-section {
        display: none;
    }

    .timeline,
    .character-grid,
    .rituals-grid {
        page-break-inside: avoid;
    }
}