/* ====================================================
   1. Schriftarten
==================================================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, .navbar-brand, .nav-link {
    font-family: 'Poppins', sans-serif;
}

/* ====================================================
   2. Navbar & Hover
==================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 2000;
}

.nav-link:hover,
.dropdown-item:hover {
    color: #00bfff !important;
}

/* ====================================================
   3. Suchfeld Animation
==================================================== */
.search-input {
    width: 0;
    opacity: 0;
    transition: width 0.4s ease, opacity 0.3s ease;
}

.search-input.show {
    width: 200px;
    opacity: 1;
}

/* ====================================================
   4. Carousel Overlay & Animation
==================================================== */
.carousel-overlay {
    position: absolute;
    top: 140px;
    width: 100%;
    text-align: center;
    z-index: 1200;
}

@keyframes fadeDown {
    0% { opacity: 0; transform: translateY(-25px); }
    100% { opacity: 1; transform: translateY(0); }
}

.carousel-overlay h1.overlay-title {
    font-size: clamp(2rem, 7vw, 4.8rem);
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.1;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: fadeDown 1.2s ease-out forwards;
}

/* Dark Mode Glow für Overlay */
body.dark-mode .carousel-overlay h1.overlay-title {
    color: #eafaff;
    text-shadow:
        0 0 8px rgba(0, 191, 255, 0.6),
        0 0 15px rgba(0, 191, 255, 0.5),
        0 0 25px rgba(0, 191, 255, 0.35);
}

/* ====================================================
   5. Farbstreifen + Schatten
==================================================== */
.section-divider {
    height: 2mm;
    background-color: #0099cc; /* dunkler als Hoverfarbe */
    width: 100%;
    position: relative;
}

.section-divider::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35); /* Light Mode */
}

/* Dark Mode Farbstreifen + Schatten */
body.dark-mode .section-divider {
    background-color: #006b88;
}

body.dark-mode .section-divider::before {
    box-shadow: 0 -4px 14px rgba(255, 255, 255, 0.18);
}

/* ====================================================
   6. Dark Mode Allgemein
==================================================== */
body.dark-mode {
    background-color: #121212;
    color: #eeeeee;
}

body.dark-mode .navbar {
    background-color: #1e1e1e !important;
}

body.dark-mode .nav-link,
body.dark-mode .navbar-brand {
    color: #ffffff !important;
}

body.dark-mode .dropdown-menu {
    background-color: #1e1e1e;
}

body.dark-mode .dropdown-item {
    color: #ffffff !important;
}

body.dark-mode .dropdown-item:hover {
    background-color: rgba(0, 191, 255, 0.2);
}

body.dark-mode .carousel-control-prev-icon,
body.dark-mode .carousel-control-next-icon {
    filter: invert(1);
}

/* ====================================================
   7. Hellerer Zwischenstreifen unter Farbstreifen
==================================================== */
.content-spacer {
    width: 100%;
    height: 2cm;
    background-color: #b3ecff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.spacer-half {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease, opacity 0.5s ease;
    opacity: 1;
}

.spacer-half a {
    font-size: 1.2rem;
    font-weight: 400;
    text-decoration: none;
    color: #004d66;
    transition: color 0.3s ease 0.1s;
}

.spacer-half a i {
    margin-right: 0.5rem;
    vertical-align: middle;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    animation: pulse 2.5s ease-in-out infinite;
}

.spacer-half a:hover {
    color: #00bfff;
}

.spacer-half a:hover i {
    color: #00bfff;
    animation: bounce 0.4s ease forwards;
}

/* Dark Mode Spacer */
body.dark-mode .content-spacer {
    background-color: #1a3c4a;
}

body.dark-mode .spacer-half a {
    color: #bfe8ff;
}

body.dark-mode .spacer-half a:hover {
    color: #00bfff;
}

body.dark-mode .spacer-half a:hover i {
    text-shadow:
        0 0 6px rgba(0,191,255,0.6),
        0 0 12px rgba(0,191,255,0.5),
        0 0 20px rgba(0,191,255,0.35);
}






/* Karte mit fester Höhe für Bild + Text */
/* Link-Karten: gesamte Karte klickbar */
.card-with-text-link {
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none; /* Link ohne Unterstrich */
    color: inherit;        /* Link übernimmt Textfarbe */
    height: 100%;
    transition: transform 0.3s ease;
}

/* Bild-Zoom nur beim Hover */
.card-with-text-link .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-with-text-link:hover .card-img-top {
    transform: scale(1.05);
}

/* Textbereich unten bleibt unverändert */
.card-with-text-link .card-body {
    background-color: #b3ecff;
    color: #004d66;
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dark Mode */
body.dark-mode .card-with-text-link .card-body {
    background-color: #1a3c4a;
    color: #bfe8ff;
}

.scroll-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-section.visible {
    opacity: 1;
    transform: translateY(0);
}




#news-box embed {
    width: 100%;
    min-height: 75vh;
    border-radius: 12px;
}



.pdf-viewer-container {
    width: 100%;
    background: white;
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
}

.pdf-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #004d66;
    flex-wrap: wrap;
}

.pdf-toolbar button {
    padding: 5px 10px;
    background: #b3ecff;
    border: 1px solid #0099cc;
    border-radius: 6px;
    cursor: pointer;
}

#pdf-canvas {
    width: 100%;
    display: block;
    border-radius: 10px;
}




















        #eventsList {
            list-style: none;
            padding: 0;
            max-width: 800px;
            margin-top: 20px;
        }

        .event-row {
            padding: 12px 15px;
            margin-bottom: 8px;
            border-radius: 6px;
            background-color: #b3ecff;
            transition: background-color 0.3s, transform 0.2s, color 0.3s;
            cursor: pointer;
        }

        .event-row:hover {
            background-color: #00bfff;
            color: #ffffff;
            transform: scale(1.02);
        }








/* ====================================================
   8. Animationen
==================================================== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0% { transform: translateY(0) scale(1.05); }
    30% { transform: translateY(-4px) scale(1.05); }
    50% { transform: translateY(0) scale(1.05); }
    70% { transform: translateY(-2px) scale(1.05); }
    100% { transform: translateY(0) scale(1.05); }
}

@keyframes fadeInMobile {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}


/* ====================================================
   9. Responsive: kleine Bildschirme
==================================================== */
@media (max-width: 600px) {
    .content-spacer {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 1rem;
        align-items: flex-start;
    }

    .spacer-half {
        width: 100%;
        justify-content: flex-start;
        padding: 0.25rem 0;
        opacity: 0;
        transform: translateY(0);
        animation: fadeInMobile 0.6s ease forwards;
    }

    .spacer-half:nth-child(2) {
        animation-delay: 0.2s;
    }
}
