/*standard hier ist Laptop bzw. Tablet quer. Was bei Handys und Tablets anders ist kommt unten*/

@font-face {
    font-family: 'Poppins';
    src: url('assets/poppins-v24-latin-regular.woff2') format('woff2');
    font-weight: 400;
}


* {
    box-sizing: border-box;
}

body {
    font-family: Poppins, sans-serif;
    margin: 0px;
    border-width: 0 5em;
    border-style: none solid;
    border-color: #FF2424;
}

header {
    padding: 0em 2em;
}

main {
    padding: 2em;
}

footer {
    place-items: center;
    text-align: center;
    padding: 2em;
}

h1,
h2 {
    text-align: center;
}

/*Grids*/
.volleBreite {
    display: grid;
    grid-template-columns: 100%;
}

.halbhalb {
    display: grid;
    grid-template-columns: 50% 50%;
    text-align: center;
}

.schmaleSeiten {
    display: grid;
    grid-template-columns: 15% 70% 15%;
    place-items: center;
}

.reihe5 {
    grid-template-columns: repeat(5, 1fr);
    grid-column-gap: 1em;
}

.reihe3 {
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5em;
}

.reihe5,
.reihe3 {
    display: grid;
    place-items: center;
    align-items: start;
    justify-items: center;
    text-align: center;
}

/*items*/
.item-2z1 {
    grid-column: 1 / 3;
    text-align: left;
}

.item-3z1 {
    grid-column: 3/6;
}

/*Zeitstrahl*/
.timeline {
    position: relative;
    /*dadurch ist das Element Ankerpunkt f�r die nachfolgenden*/
    max-width: auto;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: black;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/*Container um den content herum*/
.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* Kreise auf dem Zeitstrahl*/
.container::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -11.5px;
    background-color: #FF2424;
    border: 4px solid #FF2424;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.links {
    left: 0;
}

.rechts {
    left: 50%;
}

/* Fix f�r Kreise auf der rechten Seite */
.rechts::after {
    left: -10.5px;
}

/* Inhalt */
.content {
    padding: 20px 30px;
    background-color: lightgray;
    position: relative;
    border-radius: 6px;
}

@media screen and (max-width: 768px) {

    /*Tablets hochkant/Handys quer*/
    .reihe5 {
        grid-template-columns: 1fr 1fr;
    }

    .item-3z1 {
        grid-column: 1/3;
    }
}

@media screen and (width <=900px) {

    /*Handys hochkant*/
    h3,
    h4,
    p {
        text-align: center;
    }

    .halbhalb {
        grid-template-columns: 100%;
    }

    .halbhalb .item-2z1 {
        grid-column: 1/2;
    }

    .timeline::after {
        left: 31px;
    }

    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        padding-top: 1px;
    }

    .links::after,
    .rechts::after {
        left: 20px;
    }

    .rechts {
        left: 0%;
    }

}


.collapsible input {
    display: none;
}

.text {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.collapsible input:checked~.text {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.collapsible label {
    display: block;
    text-align: center;
    cursor: pointer;
}

.collapsible input:checked~label {
    transform: rotate(180deg);
}

.events {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1em;
    row-gap: 0.5em;
}

.events dt {
    text-align: right;
    border-right: 1px solid #ccc;
    /* the soft separating line */
    padding-right: 1em;
}

.events dd {
    margin: 0;
}