/* Allgemeines */

    body {
        font-family: Arial, sans-serif;
        background-color: #eee;
    }

    .container-1024 {
        max-width: 1024px;
        margin: 0 auto;
    }

    .maxwidth{
        max-width: 1324px;
        margin: 0 auto;
    }

    .text-justify{
        text-align: justify;
    }

/* HEADINGS */
    h1, h2, h3, h4, h5, h6 {
        color: #666 !important;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

/* LINKS */
    a{
        color: #dc251b;
        text-decoration:none;
        background-color:transparent;
    }
    a:hover{
        text-decoration:underline;
    }

/* TABELLEN */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
        border: none;
    }

    th, td {
        padding: 8px;
        text-align: left;
        border: none;
    }

/* Abwechselnde Hintergrundfarben für Zeilen */
    tr:nth-child(odd) {
        background-color: #f9f9f9; /* Farbe für ungerade Zeilen */
    }

    tr:nth-child(even) {
        background-color: #e9e9e9; /* Farbe für gerade Zeilen */
    }

/* Hintergrundfarbe für Tabellenüberschrift */
    th {
        background-color: #f0f0f0;
    }

/* Logo*/

    #navbar-logo{
        height: 90px;
    }

/* Navigation */
    .navbar{
        background-color:#dc251b !important;
        height: 130px;
    }

    .navbar-dark .navbar-nav .nav-link {
            color: #ffffff !important; /* Hellerer Farbwert */
    }

    .navbar-dark .navbar-nav .nav-link:hover {
        color: #cccccc !important; /* Heller beim Hover */
    }

    .dropdown-menu {
        background-color: white;
    }

    .navbar-dark .navbar-collapse {
        background-color: #dc251b; /* passender Rotton */
    }

    .dropdown-menu {
        background-color: #ffffff;
        color: white;
    }

    .navbar-collapse,
    .offcanvas,
    .dropdown-menu {
        position: relative;
        z-index: 1050; /* höher als die Diashow */
    }

    @media (max-width: 768px) {
        .container,
        .container-1024,
        .maxwidth {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .navbar-collapse {
            padding-left: 0 !important;
            padding-right: 0 !important;
            width: 100%;
        }
    }


/* Breadcrumb */
    .breadcrumb{
        background-color:#e8eddf !important;
        height: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        padding-left:1rem;
    }

    .breadcrumb .container {
        display: flex;
        align-items: center;
    }

    .breadcrumb {
        display: flex;
        align-items: center;
        margin-bottom: 0;
    }

/*Akkordeon*/
    .accordion-button {
        background-color: #e9ecef !important; /* hellgrau */
        border-color :#e9ecef !important;
        color: #212529 !important;            /* dunkle Schriftfarbe */
    }

    .accordion-button:focus {
        box-shadow: 0 0 0 0.25rem rgba(155, 155, 155, 0.5); /* z. B. rot mit Transparenz */
        border-color: rgb(155, 155, 155); /* optional: Randfarbe */
      }

    .accordion-button:not(.collapsed) {
        background-color: #dee2e6 !important; /* etwas dunkleres Grau, wenn offen */
        border-color: #dee2e6 !important;
    }

    
/*Akkordeon EINFACH*/
    details {
        border: 1px solid #ccc;
        border-radius: 0px;
        background: #f9f9f9;
    }

    summary {
        padding: 1rem;
        background-color: #e8e8e8;
        cursor: pointer;
        font-weight: bold;
    }
    .ac{
        padding: 1rem;
    }

    .accordion11 {
      margin-bottom: 1rem;
    }

    .accordion1 > summary {
        cursor: pointer;
        list-style: none;
        padding: 0.75rem 1rem;
        background-color: #f0f0f0;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-weight: bold;
    }

    .accordion1 > summary::marker,
    .accordion1 > summary::-webkit-details-marker {
        display: none;
    }

    .accordion1 > .ac {
        /* max-height grob auf eine realistische Maximalhöhe setzen */
        max-height: 0;
        overflow: hidden;
        background-color: #fafafa;
        border: 1px solid #ccc;
        border-top: none;
        border-radius: 0 0 4px 4px;
        padding: 0 1rem;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    }

    .accordion1[open] > .ac {
        max-height: 500px; /* grob genug für den Inhalt */
        padding: 1rem;
    }


/* Textbox */
    .textbox {
        display: block;
        width: 100%;
        background: #f0f0f0;
        border: none;
        padding: 1rem;
        margin: 1rem 0;
        box-sizing: border-box;
    }

/* Akkordeon EINFACH - animiert mit Bild-Support */
/*details[name="akkordeon"] {
    border: 1px solid #ccc;
    border-radius: 0px;
    background: #f9f9f9;
    overflow: hidden;
}

summary {
    padding: 1rem;
    background-color: #e8e8e8;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    color: #666;
}

.ac {
    padding: 1rem;
    margin: 0;
    display: block;
}

details[open] .ac {
    animation: akkordeonSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ac {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

details[open] .ac {
    max-height: 800px; 
    opacity: 1;
}

@keyframes akkordeonSlideDown {
    from {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        max-height: 800px;
        opacity: 1;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.ac img {
    max-width: 40%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

details[open] .ac img {
    transform: scale(1);
}

.ac {
    contain: layout style;
    will-change: max-height, opacity;
}
*/


/* Content */
    html body #contentContainer{
        margin-top: 1rem;
        margin-bottom: 1rem;
        color:#666;
        padding: 0.2rem !important;
    }

/* Home */

    #meinCarousel {
        position: relative;
        z-index: 1;
    }
    #meinCarousel .carousel-inner {
        height: 800px;
    }

    #meinCarousel .carousel-item {
        height: 800px;
        position: relative;
        background-color: black;
    }

    #meinCarousel .carousel-item img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

/* Footer 1*/
    #footer1{
        background-color:#BAC1B8;
    }


    #footer1 .box {
    background-color: transparent;
    color: black;
    padding: 1rem;
    margin-bottom: 1rem;
    }


/* Footer 2*/
    #footer2{
        background-color:#2B303A;
        color:white;
    }

/* Pagination wie einfache Links */
/* Abstand zwischen den Seitenlinks */
.pagination .page-item {
    margin-right: 0.5rem;   /* Abstand zwischen 1, 2, 3, » */
}

/* Grundstil der Links */
.pagination .page-link {
    background: transparent;
    border: none;
    border-radius: 0;
    color: #dc251b;         /* Wunsch-Linkfarbe, z.B. Bootstrap-Blau */
    padding: 0;             /* wirkt wie normaler Textlink */
    font-size: 1.5rem;        /* z.B. 1rem = normale Textgröße */
    line-height: 1.4;       /* optional, für bessere Lesbarkeit */
}

/* Hover-Effekt wie bei Links */
.pagination .page-link:hover {
    background: transparent;
    text-decoration: underline;
    color: #dc251b;
}

/* Aktive Seite nur markiert, kein Button */
.pagination .page-item.active .page-link,
.pagination .active > .page-link {
    background: transparent;
    border: none;
    color: #666;            /* z.B. schwarz für aktuelle Seite */
    font-weight: bold;
}

/* Sicherstellen, dass keine Rundungen mehr übrig bleiben */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0 !important;
}



