@import url('https://fonts.googleapis.com/css?family=Open+Sans');

body {
    font-family: "Open Sans";
    background-color: #1E398F;
}

#logo {
    position: fixed;
    top: 40px;
    left: 40px;
    width: 140px;
    height: 50px;
    background-image: url("../images/rpi_logo.svg");
    background-size: 94%;
}

.article-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 684px;
    margin: 0 auto;
	font-family: "Open Sans";
	padding-top: 40px;
}

/* ab hier kommt die Artikel-Ansicht*/

/* HERO */
.article-hero {
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.article-hero-overlay {
    width: 100%;
    padding: 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: #fff;
}

.article-hero h1 {
    margin: 0;
    font-size: 36px;
}

/* Fallback */
.article-header {
    max-width: 900px;
    margin: 60px auto 20px auto;
    padding: 0 20px;
}

/* Content */
.article-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.article-content {
    font-size: 18px;
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 25px 0;
}

.article-meta {
    margin-top: 10px;
    opacity: 0.85;
}

/* ab hier prüfen, ob ich wirklich alles benötige - wurde aus alter Timeline genommen */

.timeline__content__wrap {
    padding: 0px;
}

.timeline__item--left .timeline__content__wrap {
    padding: 0px;
}

.timeline-item {
    position: relative;
}

.timeline-item--left::before {
    content: '';
    position: absolute;
    top: -40px; /* Länge der Verbindung nach oben */
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 40px;
    background-color: red;
    z-index: 2;
}


.timeline__item--right .timeline__content__wrap {
    padding: 0px;
}

.timeline__item {
    padding: 0px;
    width: 100%;
    height: 550px;
}

.timeline__item--right {
    left: 0;
}

.timeline__item:after {
    height: 0px;
    width: 0px;
}

.is_timeline_vt5 .timeline__item--left .timeline__content {
    padding: 0px;
    height: 500px;
    border-radius: 35px;
}

.is_timeline_vt5 .timeline__item--right .timeline__content {
    padding: 0px;
    height: 500px;
    border-radius: 35px;
}

#card_bg {
    width: 684px;
    height: 500px;
    background-image: url("card_bg_big.png");
    background-size: 100%;
}

.timeline_111 .mod-articles-category-title {
    font-weight: bold;
    font-size: 36px;
    color: #1e398f !important;
    padding-top: 35px;
    padding-left: 35px;
    text-align: left;
}

.timeline_111.is_timeline_vt5 .mod-articles-category-date {
    font-weight: bold;
    font-size: 13px;
    color: #717776 !important;
    padding-top: 25px;
    text-align: left;
    padding-left: 35px;
}

.timeline_111.is_timeline_vt5 .mod-articles-category-introtext {
    font-weight: bold;
    font-size: 19px;
    color: #1e398f !important;
    padding-top: 25px;
    text-align: left;
    padding-left: 35px;
    padding-right: 130px;
}

.timeline-item {
    position: relative;
}

/* Linie vom linken Artikel zum rechten Artikel */
.timeline-row {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

/* Linie zwischen den beiden Kacheln */
.timeline-row::after {
    content: '';
    position: absolute;
    top: 50%;  /* Vertikal mittig zwischen den Artikeln */
    left: 50%;  /* Horizontale Mitte der Zeile */
    width: 20px;
    height: 2px;  /* Die Linie hat eine Höhe von 2px */
    background-color: #ffffff;  /* Farbe der Linie */
    transform: translateX(-50%);  /* Zentriert die Linie horizontal */
    z-index: 2;  /* Die Linie wird über den Artikeln angezeigt */
}

.timeline-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 30px;
}

.timeline-item {
    position: relative;
    padding: 15px;
    height: 500px;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
    background-size: contain;
    background-position: center calc(100% - 20px);
    border-radius: 35px;
    background-repeat: no-repeat;
}

.timeline-item.left-article {
    overflow: visible !important;
}


/* Einzelne, breite Artikel */
.timeline-item.full-width {
    position: relative;
    width: 100%;
    padding-left: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 35px;
}

.background-template-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/templates/rpi/css/card_bg_big.png');
    background-size: cover;
    background-position: center;
    z-index: 1;  /* Damit das Template-Bild hinter dem Text bleibt */
}

.background-template-image-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/templates/rpi/css/card_bg_small.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.timeline-item:last-child::before,
.timeline-item:last-child::after {
    display: none;
}

/* Stile für das Datum und den Inhalt des Artikels */
.timeline-date {
    position: relative;
    color: #717776 !important;
    font-size: 13px;
	font-weight: bold;
    padding-top: 25px;
	padding-left: 35px;
    z-index: 2;
}

.timeline-content {
    position: relative;
    color: #fff;
    z-index: 2;
}

.timeline-content h3 {
    font-size: 36px;
    padding-top: 35px;
	padding-left: 35px;
	color: #1e398f !important;
	margin: 0px;
}

.article-link {
    text-decoration: none;
    color: inherit; /* Verwendet die aktuelle Textfarbe */
}

.timeline-content p {
    font-size: 16px;
	color: #1e398f !important;
	padding-top: 25px;
    padding-left: 35px;
	font-weight: bold;
	margin: 0px;
	padding-right: 130px;
}

.timeline-shortIntrotext {
    font-size: 16px;
	color: #1e398f !important;
	padding-top: 25px;
    padding-left: 35px;
	font-weight: bold;
	margin: 0px;
	padding-right: 130px;
}

.timeline-shortIntrotext-small {
    font-size: 16px;
	color: #1e398f !important;
	padding-top: 25px;
    padding-left: 35px;
	font-weight: bold;
	margin: 0px;
	padding-right: 70px;
}

/* Stile für die halb-breiten Artikel */
.timeline-item.half-width {
    width: calc(50% - 10px);
}

.timeline-item.left-article {
    position: relative;
}

/* Linie, die oberhalb der Mitte des linken kleinen Artikels startet */
.timeline-item.left-article::before {
    content: '';
    position: absolute;
    top: -30px; /* 40px oberhalb */
    left: 50%; /* Horizontal Mitte */
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background-color: #ffffff; /* weiße Linie, kann Farbe anpassen */
    z-index: 10;
}

.timeline-row {
    display: flex;
    gap: 20px;
}

.timeline-item.right-article {
    position: relative;
	overflow: visible;
}

.timeline-item.right-article::before {
    content: '';
    position: absolute;
    bottom: -30px;    /* statt top */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background-color: #ffffff;
    z-index: 10;
}