

   /* === GLOBAL STYLES === */
    html, body {
        margin: 0;                  /* Kein Außenabstand */
        padding: 0;                 /* Kein Innenabstand */
        width: 100%;                /* Vollständige Breite */
        background-color: #f2f2f2;  /* Einheitlicher Seitenhintergrund */
    }
    .card {
        background-color: #ffffff;
        border: none;
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .custom-margin {
        margin-top: 30px;
        margin-bottom: -30px;
    }

    .custom-margin {
        margin-top: 30px;
        margin-bottom: -30px;
    }
    
    /* === ADMIN LAYOUT === */
    .admin-wrapper {
        max-width: 1000px;
        margin: 60px auto;
        background-color: #fff;
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 30px;
    }

    /* === VIDEO AREA === */
    .video-container {
        position: relative;
        width: 100%;
        height: 100vh;                           /* Fullscreen-Video */
        overflow: hidden;
    }
    
    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;                       /* Bildfüllung ohne Verzerrung */
        z-index: 0;                              /* Basis-Ebene für das Video */
    }

    .sound-toggle {
        position: absolute;
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.3);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.2;
        transition: opacity 0.3s;
        z-index: 4;
    }

    .sound-toggle:hover {
        opacity: 0.9;
    }

    /* Preloader über dem Video */
    .video-preloader {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        z-index: 1;
    }



    .video-overlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        background-color: rgba(0,0,0,0.25); /* leicht abdunkeln */
        background-image:
            repeating-linear-gradient(45deg,
                rgba(0,0,0,0.1) 0,
                rgba(0,0,0,0.1) 1px,
                transparent 1px,
                transparent 5px),
            repeating-linear-gradient(-45deg,
                rgba(0,0,0,0.1) 0,
                rgba(0,0,0,0.1) 1px,
                transparent 1px,
                transparent 5px);
        z-index: 2;
    }
    
    .video-content {
        position: relative;
        z-index: 3;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
        padding: 0 1rem;
        max-width: 100%;
    }

    .video-content h3,
    .video-content h1 {
        max-width: 90vw;
        word-wrap: break-word;
        white-space: normal;
    }

    /* === CONTENT AREA === */
    /* Inhaltsbereich auf eine maximale Breite von 800px setzen */
    #mainContent {
        margin: 20px auto 0;   /* Abstand zum Hauptvideo */
        max-width: 1000px; /* Begrenzung der maximalen Breite */
        scroll-margin-top: calc(var(--header-offset, 0px) + var(--navbar-height, 0px) + 110px);
    }

        .content-area {
            position: relative;
            z-index: 1;
            padding-top: 2rem;
            padding-bottom: 3rem;
            /* Optional: Zusätzliches padding für kleinere Bildschirme */
            padding-left: 1rem;
            padding-right: 1rem;
        }

        .subheadline {
            font-size: 0.9rem;
            font-style: italic;
            text-align: center;
            color: #6c757d; /* Textfarbe (muted) */
            margin-top: 8px;
            margin-bottom: 12px;
        }

        div.text-center.section-heading {
            margin-top: -100px !important; /* Verhindert das Überschreiben der Regel */
        }

 /*    === DROPDOWN STYLES === */
    @media (hover: hover) and (pointer: fine) {
        .navbar .dropdown:hover .dropdown-menu {
            display: block;
            margin-top: 0;
        }
    }

    /* Hinzufügen einer Übergangsanimation für die Bilder */
    .d-flex img {
        transition: transform 0.3s ease; /* Sanfte Übergänge */
        cursor: pointer; /* Zeigt an, dass das Bild klickbar ist */
    }

    /* Vergrößern der Bilder bei Hover */
    .d-flex img:hover {
        transform: scale(1.05); /* Vergrößert das Bild um 5% */
    }


    /* === MODAL STYLES === */
    .modal-header.bg-lightblue {
        background-color: #e0f2ff;               /* Hellblauer Hintergrund */
        color: #003366;                          /* Dunkelblaue Schrift */
        border-bottom: 1px solid #c9e4f6;
    }



    .modal .card {
        border: none;
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background-color: #ffffff;
    }

    .modal .card {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
    }

    .modal.show .card {
        opacity: 1;
        transform: translateY(0);
    }


    .modal .card-body {
        padding: 2rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    .modal .card-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #003366;
        margin-bottom: 1rem;
    }

    .modal-body h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #003366;
    }

.modal-header.bg-lightblue .btn-close {
    width: 0.6rem;  /* Button-Breite */
    height: 0.6rem; /* Button-Höhe */
    background-color: #003366; /* Dunkelblaue Hintergrundfarbe */
    border-radius: 50%; /* Rundes Design */
    border: 2px solid #ffffff; /* Weißer Rand */
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1060;
    color: white; /* Weiße Schriftfarbe für das Symbol */
    font-size: 1.05rem; /* Schriftgröße für das X */
    display: flex; /* Flexbox verwenden */
    justify-content: center; /* Horizontale Zentrierung */
    align-items: center; /* Vertikale Zentrierung */
}

.modal-header.bg-lightblue .btn-close::before {
    content: "X"; /* Einfache X-Darstellung */
    font-family: Arial, sans-serif; /* Schriftart für das X */
    font-weight: bold;
    text-align: center;
    line-height: 1; /* Vertikale Ausrichtung innerhalb des Buttons */
    margin: 0; /* Abstand entfernen */
}




    .modal-backdrop.show {
        background-color: rgba(0, 0, 0, 1) !important; /* Komplett dunkler (100% Opazität) */
        z-index: 1040; /* Sollte über dem Video und anderen Inhalten liegen */
    }

    .modal-content {
        background-color: rgba(255, 255, 255, 0.99);
        border-radius: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 1050; /* Sicherstellen, dass der Inhalt über dem Hintergrund liegt */
    }

    .modal-body,
    .modal-footer,
    .modal-footer.bg-light,
    .modal .card {
        background-color: #ffffff !important;
    }

    .modal-body {
        overflow: hidden;
    }

    .modal-body img {
        max-height: 90vh;
        object-fit: contain;
        width: auto;
        border-radius: 15px !important; /* Optional: Fügt abgerundete Ecken hinzu */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important; /* Fügt einen Schlagschatten hinzu */
    }

    /* Bild-Modal transparent halten (keine weissen Ecken) */
    #imageModal .modal-content,
    #imageModal .modal-body {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }


    .modal-dialog-scrollable .modal-body {
        scroll-behavior: smooth;
        scrollbar-width: thin; /* Firefox */
    }

    .modal-dialog-scrollable .modal-body::-webkit-scrollbar {
        width: 8px; /* Chrome, Edge, Safari */
    }

    .modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 4px;
    }


    .modal.fade .modal-dialog {
        transform: translateY(-30px);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .modal.show .modal-dialog {
        transform: translateY(0);
        opacity: 1;
    }


    #icModal .card {
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    #icModal .card.animate-in {
        opacity: 1;
        transform: translateY(0);
    }



#taifunModal .card {
    opacity: 0; /* Ausgangstransparenz */
    transform: translateY(50px); /* Ausgangsposition */
    transition: opacity 0.6s ease, transform 0.6s ease; /* Übergangseffekte */
}

#taifunModal .card.animate-in {
    opacity: 1; /* Endtransparenz */
    transform: translateY(0); /* Endposition */
}

#pdf-canvas {
    height: 600px;
    width: auto; /* Optional: Stellt sicher, dass das Canvas die verfügbare Breite ausfüllt */
    border: 1px solid #ccc; /* Optional: Wenn du den Rand beibehalten möchtest */
}




    /* === EDIT ICONS === */
    .article-card .edit-icon {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: transparent;
        border: none;
        font-size: 1.5rem;
        color: #007bff;
        cursor: pointer;
        transition: color 0.3s;
    }

    .article-card .edit-icon:hover {
        color: #0056b3;
    }

    /* === ARTICLE PREVIEW === */
    .article-card {
        --excerpt-fade-color: #ffffff;
    }

    .article-card {
        background-color: #ffffff !important;
    }

    .article-card img.rounded {
        border-radius: 1rem !important;
    }

    .article-card .images img.rounded {
        border-radius: 0.5rem !important;
    }

    .article-card .article-hero-media {
        width: 100%;
        max-width: 600px;
        border-radius: 1rem;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .article-card .article-hero-carousel {
        border-radius: inherit;
        overflow: hidden;
        width: 100%;
        height: 100%;
    }

    .article-card .article-hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: default;
        transition: none;
        border-radius: 1rem !important;
        display: block;
    }

    .article-card .article-hero-image:hover {
        transform: none !important;
    }

    .article-card .article-hero-carousel .carousel-inner,
    .article-card .article-hero-carousel .carousel-item {
        height: 100%;
        border-radius: 1rem;
        overflow: hidden;
    }

    .article-card .article-hero-carousel .article-hero-image {
        height: 100%;
    }

    .article-card .card-title {
        font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem);
        font-weight: 800;
        letter-spacing: 0.01em;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .article-page-title {
        font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
        font-weight: 800;
        letter-spacing: 0.01em;
        line-height: 1.15;
    }

    .article-excerpt {
        position: relative;
        line-height: 1.5;
        max-height: 7.5em;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.75rem;
    }

    .article-excerpt::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3em;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--excerpt-fade-color));
        pointer-events: none;
        transition: opacity 0.2s ease-in-out;
    }

    .article-extra {
        display: none;
    }

    .article-card.is-expanded .article-excerpt {
        max-height: none;
        -webkit-line-clamp: unset;
        overflow: visible;
        display: block;
    }

    .article-card.is-expanded .article-excerpt::after {
        opacity: 0;
    }

    .article-card.is-expanded .article-extra {
        display: block;
    }

    .article-toggle {
        margin-bottom: 0.75rem;
    }

    /* === FORM STYLES === */
    .pagination-form {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 20px 0;
        font-family: 'Arial', sans-serif;
    }

    .pagination-form label {
        font-size: 16px;
        margin-right: 10px;
        font-weight: 600;
        color: #333;
    }

    .pagination-form select {
        padding: 10px 15px;
        font-size: 16px;
        border: 2px solid #ddd;
        border-radius: 5px;
        background-color: #f7f7f7;
        cursor: pointer;
        transition: border-color 0.3s, background-color 0.3s;
    }

    .pagination-form select:hover {
        border-color: #007bff;
        background-color: #e6f0ff;
    }

    .pagination-form select:focus {
        outline: none;
        border-color: #007bff;
    }

    .pagination-form select option {
        padding: 10px;
        background-color: white;
    }

    .pagination-form button {
        background-color: #007bff;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .pagination-form button:hover {
        background-color: #0056b3;
    }

    /* === SELECT STYLES === */
    .form-select {
        border-radius: 0.375rem;
        background-color: #f8f9fa;
        border: 1px solid #ced4da;
    }

    .form-select:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25);
    }

    .form-label {
        font-weight: 500;
        color: #333;
        font-size: 1rem;
    }


    .d-flex {
    gap: 20px; /* Abstand zwischen den Bildern */
}


    #limit, #sort_order {
        min-width: 120px;
    }

    .form-select {
        width: auto;
    }

    .form-select, .form-label {
        white-space: nowrap;
    }

    .small-text {
        font-size: 0.8rem;  /* Kleinere Schriftgröße */
    }

    .btn-primary,
    .btn-info {
        background-color: rgb(189, 189, 189)!important;
        border-color: rgb(189, 189, 189)!important;
        color: #000!important;
    }

    .btn-primary:hover,
    .btn-info:hover {
        background-color: rgb(160, 160, 160) !important;
        border-color: rgb(160, 160, 160)!important;
        color: #fff !important;
    }
/* Style for image list in article_edit */
#image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 0; /* override default padding */
}
#image-list .image-item {
    list-style: none;
    cursor: grab;
}

.form-box {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-width: 1000px;
    margin: 40px auto 40px;
  }
/* Scroll-to-top button (browser version) */
.scroll-top-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #000000;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 1050;
}

.scroll-top-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.scroll-top-button:hover {
    opacity: 0.9;
}

.scroll-top-button:active {
    transform: translateY(1px);
}

.scroll-top-button[hidden] {
    display: none;
}
