/* ------------------------------------------------------------------ */
/* LOKALE FONTS (SELF-HOSTED) */
/* ------------------------------------------------------------------ */

/* Antonio (Überschriften) */
@font-face {
    font-family: 'Antonio';
    font-style: normal;
    font-weight: 600;
    font-display: swap; 
    src: url('../fonts/Antonio-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Antonio';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Antonio-Bold.woff2') format('woff2');
}

/* Roboto Flex (Fließtext) - Variable Font */
@font-face {
    font-family: 'Roboto Flex';
    font-style: normal;
    font-weight: 400 600; 
    font-display: swap;
    src: url('../fonts/RobotoFlex.woff2') format('woff2');
}

/* ------------------------------------------------------------------ */
/* BASE: VARIABLEN & TYPOGRAPHIE */
/* ------------------------------------------------------------------ */

:root {
    --color-next-dark: #121212;
    --color-next-card: #1E1E1E;
    --color-next-accent: #E5E7EB;
    --color-text-secondary: #9CA3AF;
    --color-text-tertiary: #6B7280;
    --color-border-dark: #374151;
    --color-link: #10af66;
    --color-info: var(--color-link);
    --color-info-text: #ccf4e2;

    --font-antonio: 'Antonio', sans-serif;
    --font-sans: 'Roboto Flex', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-antonio);
}

a {
	color: var(--color-link);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-next-dark);
    color: var(--color-next-accent);
    margin: 0;
    padding: 0;
    line-height: 1.5em;
	font-size: 1.3rem;
}

/* ------------------------------------------------------------------ */
/* LAYOUT & HELFERKLASSEN */
/* ------------------------------------------------------------------ */

.list-unstyled {
    list-style: none;
    padding-left: 0;
}
.list-disc {
    list-style-type: disc;
    padding-left: 1rem;
}
.list-inside {
    list-style-position: inside;
}
.space-y-1 > li {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* ------------------------------------------------------------------ */
/* FOOTER */
/* ------------------------------------------------------------------ */

footer {
	text-align: center;
	background: var(--color-next-card);
	padding: 1.5rem;
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* HEADER BEREICH */
/* ------------------------------------------------------------------ */

.header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 896px;
    margin-left: auto;
    margin-right: auto;
}

.next-logo {
    max-width: 150px;
    height: auto;
    margin-top: 2.5rem;
    margin-bottom: 5rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.header h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: white;
    margin-bottom: 3.5rem;
}
.header p {
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* ------------------------------------------------------------------ */
/* TIMELINE STRUKTUR */
/* ------------------------------------------------------------------ */

.timeline-container {
    position: relative;
    padding-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-item {
    display: flex;
    position: relative;
    margin-bottom: 1rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* ZEITSPALTE (DATUM & VERTIKALE LINIE) */
/* ------------------------------------------------------------------ */

/* Linie für jedes Timeline-Item */
.timeline-date-column::before {
    content: '';
    position: absolute;
    left: 85%;
    margin-left: 0.4rem;
    width: 4px;
    background-color: var(--color-next-accent);
    z-index: 10;
}

/* Erstes Item: Von Mitte nach unten */
.timeline-item:first-child .timeline-date-column::before {
    top: 50%;
    bottom: -1rem;
    border-radius: 9999px 9999px 0 0;
}

/* Letztes Item: Von oben bis Mitte */
.timeline-item:last-child .timeline-date-column::before {
    top: -1rem;
    bottom: 50%;
    border-radius: 0 0 9999px 9999px;
}

/* Alle mittleren Items: Durchgehend */
.timeline-item:not(:first-child):not(:last-child) .timeline-date-column::before {
    top: -1rem;
    bottom: -1rem;
}

.timeline-date-column {
    display: flex;
    align-items: center;
    order: 1;
    width: 25%;
    padding-right: 0.8rem;
    justify-content: flex-end;
    position: relative;
}
.timeline-date-column span {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 1.35rem;
    background-color: var(--color-next-card);
    color: var(--color-next-accent);
    font-weight: bold;
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
    border: 1px solid var(--color-border-dark);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    text-align: right;
}

/* Versteckt wiederholte Jahreszahlen, behält aber den Platz bei */
.invisible, .invisible-date {
    visibility: hidden;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-next-accent);
    border: 3px solid var(--color-next-dark);
    z-index: 20;
    top: 50%;
    left: 24.38%;
    transform: translateY(-50%);
}

/* ------------------------------------------------------------------ */
/* INHALTSSPALTE & KARTEN */
/* ------------------------------------------------------------------ */

.timeline-content-column {
    order: 2;
    width: 75%;
    padding: 1rem;
    padding-top: 0;
}

.timeline-card {
    background-color: var(--color-next-card);
    padding: 1.5rem;
    border-radius: 1.75rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    border: 1px solid transparent;
    transition: border-color 0.2s;
}
.timeline-card:hover {
    border-color: var(--color-border-dark);
}

.timeline-card h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: bold;
    color: var(--color-next-accent);
    margin-bottom: 0.5rem;
    margin-top: 0;
}
.timeline-card p {
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}
.timeline-card p:last-child {
    margin-bottom: 0;
}

.timeline-card .info-block {
    color: var(--color-info-text);
    font-style: italic;
    border: 2px solid var(--color-info);
    padding: 0.75rem;
    margin-top: 1.75rem;
    font-size: 1.1rem;
    background: #10af6612;
    border-radius: 0.75rem;
    line-height: 1.5rem;
}

/* ------------------------------------------------------------------ */
/* COLLAPSIBLE-ELEMENTE */
/* ------------------------------------------------------------------ */

.collapse-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.timeline-card-collapsible:hover .collapse-button {
    color: var(--color-next-accent);
}

.collapse-button h2 {
    margin-bottom: 0;
}

.collapsible-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-next-accent);
    transition: transform 0.3s;
}
.rotate-180 {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.collapsible-content p:first-child {
    margin-top: 1rem;
}

/* ------------------------------------------------------------------ */
/* EMBEDS (VIDEOS, IFRAMES) */
/* ------------------------------------------------------------------ */

.embed-container {
	margin-top: 1.5rem;
	background-color: var(--color-next-dark);
	border-radius: 0.75rem;
}
.embed-container h3 {
	padding: 1rem;
	margin: 0;
}
.embed-container p {
	color: var(--color-text-secondary);
	font-size: 1rem;
	padding: 1rem;
	padding-top: 0;
	margin: 0;
}

.aspect-video-16-9 {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    background-color: var(--color-next-dark);
    border-radius: 0rem 0rem 0.75rem 0.75rem;
}

.aspect-video-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0rem 0rem 0.75rem 0.75rem;
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE ANPASSUNGEN */
/* ------------------------------------------------------------------ */

@media (min-width: 768px) {
    .timeline-date-column {
        width: 25%;
        padding: 1.9rem;
        padding-right: 2.75rem;
    }
    .timeline-content-column {
        width: 75%;
        padding-left: 1.5rem;
        padding-top: 1rem;
    }
}

@media (max-width: 767px) {
    .timeline-date-column::before {
        left: 20px;
        margin-left: 0;
    }
    
    .timeline-item:first-child .timeline-date-column::before {
        top: 2rem;
        bottom: -2rem;
    }
    
    .timeline-item:last-child .timeline-date-column::before {
        top: -2rem;
        bottom: calc(100% - 2rem);
    }
    
    .timeline-item:not(:first-child):not(:last-child) .timeline-date-column::before {
        top: -2rem;
        bottom: -2rem;
    }
    
    .timeline-dot {
        left: 20px;
        right: auto;
        top: 2rem;
        transform: translate(-50%, 0);
    }
    .timeline-date-column {
        display: none;
    }
    .timeline-content-column {
        width: 100%;
        padding-left: 3rem;
    }
    .timeline-item {
        margin-bottom: 2rem;
    }
    .header p {
        font-size: 1.1rem;
    }
}