/* Grundlayout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

h2 {
    text-align: center;
    margin: 20px 0;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

/* Header und Navigation */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: #ffcc00;
    color: #333;
    border-radius: 5px;
}
#hero {
    background-image: url('img/Zeitzeuge_Hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: white;
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}


.cta-btn {
    background-color: #006400;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
}

.cta-btn:hover {
    background-color: #004d00;
}



/* Zeitleiste */
#timeline-section {
    margin: 40px 0;
}

#timeline {
    display: flex;
    justify-content: space-between; /* Punkte gleichmäßig verteilen */
    padding: 50px;
    background-color: #333;
    border-radius: 10px;
    flex-wrap: wrap; /* Erlaube Umbruch bei schmalen Bildschirmen */
}


.timeline-point {
    width: 20px;
    height: 20px;
    background-color: #999;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    margin: 0 10px; /* Abstand zwischen den Punkten */
}

.timeline-point.active {
    background-color: #ffcc00;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}

/* Jahreszahlen */
.timeline-point::after {
    content: attr(data-year);
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}

/* Hover-Effekt für die Zeitleistenpunkte */
.timeline-point:hover {
    transform: scale(1.8);
    background-color: #ffcc00;
}

.timeline-point:hover {
    background-color: #ffcc00; /* Farbänderung beim Überfahren */
    transform: scale(1.2); /* Leichtes Vergrößern des Punktes */
}

.timeline-event {
    display: none; /* Standardmäßig nicht angezeigt */
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
    top: -40px; /* Position über dem Punkt */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.timeline-point:hover .timeline-event {
    display: block; /* Event beim Überfahren anzeigen */
}




/* Video-Grid */
.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Abstand zwischen den Videos */
    margin-top: 20px;
    transition: height 0.5s ease;
}

.video-item {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    flex: 1 1 calc(33.333% - 20px); /* 3 Spalten Layout */
}

.video-item img {
    width: 100%;
    border-radius: 8px;
}

.video-item.hide {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

/* Kontaktbereich */
#kontakt {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Abstand nach oben */
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background-color: #ffcc00;
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e6b800;
}

.kontakt-info {
    margin-top: 30px;
}




/* Responsivität für die Zeitleiste */
@media (max-width: 768px) {
    .timeline-point {
        margin: 0 5px; /* Kleineren Abstand bei schmalen Bildschirmen */
    }
}


@media (max-width: 480px) {
    .video-item {
        flex: 1 1 100%; /* 1 Spalte Layout */
    }
}




