/*Text auf der Startseite*/
/*------------------------------------------------------------------------------------*/
body{
    background-color: var(--main_background_color);
}
.index_start{
    display: flex;
    flex-direction: column;
    height: 900px;
    width: 100%;
    background-image: url(../img/HS444.jpg);
    background-size: cover;
}
@media (max-width: 768px) {
    .index_start{
        height: 600px;
    }
}
.start_content{
    height: 100%;
    width: 100%;
    margin-top: 80px;
}
.home_and_slideshow{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
/*Alle Stil-Entscheidungen für den Cookie Banner*/
/*===============================================================
.cookie_banner{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);

    color: #1f1f1f;

    padding: 20px 25px;
    border-style: solid;
    border-color: #666;
    border-width: thin;

    z-index: 999;

    font-family: Arial, Helvetica, sans-serif;
}
.cookie_banner p{
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.5;
    text-align: center;
    color: #333;
}
.cookie_buttons{
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.cookie_buttons button{
    flex: 1;
    padding: 10px 14px;
    border: none;
    cursor: pointer;
    border-style: solid;
    border-color: #1976d2;

    font-size: 14px;
    transition: all 0.2s ease;
    font-weight: bold;

    background: white;
    color: black;

    transition: 0.2s;
}
.cookie_buttons button:hover{
    background: #1976d2;
    color: white;
    opacity: 0.9;
}
.cookie_settings{
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
    justify-content: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
}
.cookie_settings button{
    margin-top: 15px;
    width: 100%;

    padding: 10px;
    border: none;
    border-style: solid;
    border-color: #1976d2;

    background: white;
    color: black;
    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
    transition: 0.2s;
}
.cookie_settings button:hover{
    background: #1976d2;
    color: white;
    opacity: 0.9;
}
.cookie_option{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0px;
    position: relative;
    padding-right: 3%;
    font-size: 14px;
}
.cookie_option::after{
    content: "";
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 10%;
    height: 100%;
    width: 1px;
    background: #444;
}
.cookie_option span{
    font-weight: bold;
    font-size: 17px;
}
.cookie_switch{
    position: relative;
    width: 42px;
    height: 25px;
}
.cookie_switch input{
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie_slider{
    position: absolute;
    cursor: pointer;
    inset: 0;

    border-radius: 15px;
    background-color: #111;

    transition: 0.5s
}
.cookie_slider::before {
    content: "";
    position: absolute;
    height: 25px;
    width: 25px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 1px 3px;
}
input:checked + .cookie_slider {
    background-color: #1976d2;
}
input:checked + .cookie_slider::before{
    transform: translateX(18px);
}
.hidden {
    display: none;
}
.cookie_settings_button{
    align-items: center;
    justify-content: center;

    position: fixed;
    bottom: 20px;
    right: 20px;

    background: #222;
    color: white;

    border: none;
    border-radius: 50%;

    width: 50px;
    height: 50px;

    font-size: 20px;
    cursor: pointer;

    z-index: 998;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}
.cookie_settings_button:hover{
    transform: scale(1.1);
    background: #555;
}*/
/*===============================================================*/
/*Alle Stil-Entscheidungen für Slides*/
/*===============================================================*/
.index_slideshow_container{
    width: 100%;
    max-width: 1000px;
    height: 450px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 3px 3px 50px black, 3px 3px 10px black;
    border-radius: 1em;
    background-color: #f9f9f9;
}
.slide{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /*Übergang beim Slide Wechsel*/
    z-index: 1;
}
.slide.active{
    opacity: 1;
    z-index: 2;
}
.slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide_caption{
    position: absolute;
    bottom: 0;
    width: 99%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1%;
    text-align: left;
}
.slide_caption h2{
    margin: 0;
    text-shadow: black 2px 2px;
    color: white;
}
.slide_caption p{
    margin: 5px 0 0;
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: black 1px 1px;
    color: white;
}
/*Navigationspfeile*/
button.prev,
button.next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
}
button.prev{
    left: 10px
}
button.next{
    right: 10px
}
button.prev:hover,
button.next:hover{
    background-color: rgba(0, 0, 0, 0.8);
}
@media (max-width: 768px) {
    .index_slideshow_container{
        width: 90%;
        height: 300px;
    }
    .slide_caption{

    }
    .slide_caption h2{
        font-size: 17px;
    }
    .slide_caption p{
        font-size: 15px;
    }
}
/*=============================================================================*/
.index_main_info{
    background-color: var(--main_background_color);
    height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 5vh;
    color: black;
}
/*Alle Stil-Entscheidungen für Beiträge*/
/*=============================================================================*/
/*Beitragsliste: Flexbox für 2 Spalten*/
#beitragsliste{
    display: flex;
    flex-wrap: wrap; /*Zeilenumbruch für viele Beiträge*/
    gap: 20px; /*Abstand der Beiträge zueinander*/
    justify-content: center;
    max-width: 1200px; /*maximale Breite für das Layout*/
    margin: 0 auto; /*Zentrieren der gesamten Liste*/
    padding: 10px;
}
/*eine Beitragskarte*/
.beitrag{
    width: calc(50% - 20px); /*50% Breite, aber minus den Abstand zwischen den Beiträgen*/
    max-width: calc(45% - 20px);
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 0.5em;
    overflow: hidden; /*Inhalte dürfen nicht über den Rand hinaus ragen*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex: 0 1 calc(50% - 20px); /*Platz für 2 Beiträge mit Minus für Platz zwischen den Beiträgen*/
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease /*Hover Effekt*/
}
.beitrag:hover{
    transform: translateY(-5px);
    box-shadow: 2px 12px 20px rgba(0, 0, 0, 0.2);
}
.beitrag img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}
/*Testbereich in der Karte*/
.beitrag .beitrag_text{
    padding: 16px;
    text-align: center;
    flex: 1; /*Füllt den Rest des Beitrages aus*/
}
/*Titel im Textbereich*/
.beitrag h3{
    font-size: 1.5rem;
    color: #333333;
    margin: 10px 0
}
/*Beschreibung im Textbereich*/
.beitrag p{
    font-size: 1rem;
    margin: 10px 0;
    line-height: 1.4;
}
/*Button "Mehr Erfahren"*/
.beitrag a{
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    background-color: #003f8f;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.beitrag a:hover{
    background-color: #006f9f;
}
@media (max-width: 768px) {
    #beitragsliste{
        flex-direction: column; /*Beiträge untereinander anordnen*/
        gap: 10px; /*kleinerer Abstand der Karten*/
    }
    .beitrag {
        flex: 0 1 90%;
        max-width: 90%;
        margin: 0 auto;
        width: 90%;
    }
    .beitrag img{
        height: 150px;
    }
}
/*==========  2. Reihe an Beiträgen  ==========*/
/*Beitragsliste: Flexbox für 2 Spalten*/
#beitragsliste_2{
    display: flex;
    flex-wrap: wrap; /*Zeilenumbruch für viele Beiträge*/
    gap: 20px; /*Abstand der Beiträge zueinander*/
    justify-content: center;
    max-width: 1200px; /*maximale Breite für das Layout*/
    margin: 0 auto; /*Zentrieren der gesamten Liste*/
    padding: 5vh 10px 10px;
}
/*eine Beitragskarte*/
.beitrag_2{
    width: calc(50% - 20px); /*50% Breite, aber minus den Abstand zwischen den Beiträgen*/
    max-width: calc(45% - 20px);
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 0.5em;
    overflow: hidden; /*Inhalte dürfen nicht über den Rand hinaus ragen*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex: 0 1 calc(50% - 20px); /*Platz für 2 Beiträge mit Minus für Platz zwischen den Beiträgen*/
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease /*Hover Effekt*/
}
.beitrag_2:hover{
    transform: translateY(-5px);
    box-shadow: 2px 12px 20px rgba(0, 0, 0, 0.2);
}
.beitrag_2 img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}
/*Testbereich in der Karte*/
.beitrag_2 .beitrag_text{
    padding: 16px;
    text-align: center;
    flex: 1; /*Füllt den Rest des Beitrages aus*/
}
/*Titel im Textbereich*/
.beitrag_2 h3{
    font-size: 1.5rem;
    color: #333333;
    margin: 10px 0
}
/*Beschreibung im Textbereich*/
.beitrag_2 p{
    font-size: 1rem;
    margin: 10px 0;
    line-height: 1.4;
}
/*Button "Mehr Erfahren"*/
.beitrag_2 a{
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    background-color: #003f8f;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.beitrag_2 a:hover{
    background-color: #006f9f;
}
@media (max-width: 768px) {
    #beitragsliste_2{
        flex-direction: column; /*Beiträge untereinander anordnen*/
        gap: 10px; /*kleinerer Abstand der Karten*/
    }
    .beitrag_2 {
        flex: 0 1 90%;
        max-width: 90%;
        margin: 0 auto;
        width: 90%;
    }
    .beitrag_2 img{
        height: 150px;
    }
}
/*=============================================================================*/
.mobile_de_container{
    margin-left: auto;
    margin-right: auto;
    padding-top: 5em;
    display: flex;
    flex-direction: column;
    width: 60%;
    height: auto;
}
.fahrzeugbestand_header{
    background-color: white;
    margin: 0;
    padding: 0.5em 0.5em;
    border-top-left-radius: 1em;
    border-top-right-radius: 1em;
}
.fahrzeugbestand{
    background: white;
    width: auto;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom-left-radius: 1em;
    border-bottom-right-radius: 1em;
    > p {
        background: #f5f5f5;
        color: #444;
        font-size: 16px;
        line-height: 2;
    }
    > iframe {
        height: 800px;
        width: 100%;
    }
}
.maps_container{
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 5em auto;
    background-color: white;
    border-radius: 1em;
}
.maps_container_top{
    margin: 1%;
    width: 88%;
    padding-left: 5%;
    padding-right: 5%;
    > h1, h2, h3, h4{
        margin: 0;
    }
    > h1{
        color: #42a0e9;
    }
}

.maps_container_bottom{
    margin: auto;
    width: 90%;
    height: 40em;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    > iframe{
        width: 100%;
        height: 100%;
        border-radius: 1.25em;
    }
    > p{
        background: #f5f5f5;
        color: #444;
        font-size: 16px;
        line-height: 2;
    }
}
/* ---- Animations ---- */
@keyframes toLeft{
    from{
        transform: translatex(0px);
    }
    to{
        transform: translatex(-5px)
    }
}
@keyframes toRight{
    from{
        transform: translatex(0px);
    }
    to{
        transform: translatex(5px)
    }
}
@keyframes toLeft_reverse{
    from{
        transform: translatex(-5px);
    }
    to{
        transform: translatex(0px)
    }
}
@keyframes toRight_reverse{
    from{
        transform: translatex(5px);
    }
    to{
        transform: translatex(0px)
    }
}
@keyframes scale_up{
    from{
        scale: 1;
    }to{
        scale: 1.05;
    }
}
@keyframes scale_down{
    from{
        scale: 1.05;
    }to{
        scale: 1;
    }
}
@media (max-width:768px) {
    .index_start{
        background-position: center;
    }
    .maps_container_bottom{
        height: 30em;
    }
    .mobile_de_container{
        width: 90%;
    }
}