/* Allgemeine Stile */
body {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    box-sizing: border-box;
    overflow-x: hidden;
}

header {
	display: flex;
    background-color: #003366;
	background-image: url(./media/panorama.jpeg);
    color: white;
    padding: 140px;
	 background-position: center; /* Zentriert das Bild horizontal und vertikal */
    background-repeat: no-repeat; /* Verhindert Wiederholung des Bildes */
    background-size: cover; /* Skaliert das Bild, um den gesamten Bereich abzudecken */
	
}

header h1 {
    font-size: clamp(2em, 6vw, 2.5em);
    font-weight: bold;
    margin: auto auto;
    word-wrap: break-word;
    text-align: center;
    /* Zentriert den Text */
    max-width: 90%;
}

/* Navbar */
nav {
    position: relative; /* Standardmäßig nicht fixiert */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #00509E;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    text-align: center;
    font-size: clamp(1em, 1.5vw, 1.2em);
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: #0174D6;
    border-radius: 5px;
}

/* Zentrierte Inhalte für index.html und interviews.html */
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Responsive Bilder */
.responsive-image {
    width: auto;            /* Passt die Breite des Bildes an die Bildschirmbreite an */
    height: auto;           /* Bewahrt das Seitenverhältnis des Bildes */
    max-width: 100%;        /* Verhindert, dass das Bild größer als der Container wird */
    max-height: 100vh;      /* Beschränkt die Höhe auf die Bildschirmhöhe */
    margin: 20px 0;
}

/* Responsive Videos */
.responsive-video {
    width: auto;            /* Passt die Breite des Videos an die Bildschirmbreite an */
    height: auto;           /* Bewahrt das Seitenverhältnis des Videos */
    max-width: 100%;        /* Verhindert, dass das Video größer als der Container wird */
    max-height: 100vh;      /* Beschränkt die Höhe auf die Bildschirmhöhe */
    margin: 20px 0;
    object-fit: contain;    /* Passt das Video so an, dass es vollständig im Container bleibt */
}

/* Bild- und Video-Unterschriften */
.caption {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
}

/* Karten-Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Immer 4 Spalten */
    gap: 25px;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    /* Ermöglicht horizontales Scrollen bei kleinen Bildschirmen */
}

/* Karten */
.card {
    background-color: #fff;
    border: 3px solid #ccc;
    border-radius: 8px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.card.large {
    grid-column: span 2;
	grid-row: span 2;
    height: 270px;
}

.card.podium {
    grid-column: span 4;
    height: 150px;
}

.card.hidden {
	visibility: hidden;
}

.card:hover {
    transform: scale(1.05);
    z-index: 5;
    border-color: #00509E;
}

/* Karten Schrift */
.card h2 {
    margin: 0;
    font-size: 1.5em;
}

/* Hover-Effekt */
.card::after {
    content: '';
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card:hover::after {
    opacity: 1;
    background-image: var(--hover-bg);
}

.card:hover::before {
    content: attr(data-text);
    position: absolute;
    bottom: 15px;
    left: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    font-size: clamp(0.9em, 2vw, 1em);
    z-index: 2;
    border-radius: 8px;
}

.alphabet {
    display: block;
    font-size: 1.5em;
    color: blue;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 5px;
}

hr {
    border: 1px solid gray;
    width: 80%;
    margin: 5px 0 15px 0;
}


/* Responsives Design */
@media (max-width: 1200px) {
    header h1 {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    
    .card:hover::before {
        content: none;
    }

    .card {
        height: 180px;
    }

    .card.large {
        height: 220px;
    }

    .card.podium {
        height: 100px;
    }
}

/* Kontaktformular-Stile */
/* Kontaktformular-Stile */
.contact-form {
    background-color: #fff;
    border: 3px solid #00509E;
    border-radius: 8px;
    padding: 20px 20px; /* Abstand innerhalb des Formulars */
    max-width: 90%; /* Reduziert Breite für äußeren Abstand */
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: calc(100% - 20px); /* Platz für Abstand innerhalb */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box; /* Schließt Padding und Border in die Breite ein */
}
.caption.messe {
    font-size: 1.5em;
}
.contact-form h2 {
    color: #003366;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    color: #00509E;
    text-align: left;
}

.contact-form button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1em;
    color: white;
    background-color: #00509E;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .grid {
        gap: 15px;
    }

    .card {
        height: 160px;
    }

    .card.large {
        height: 180px;
    }

    .card.podium {
        height: 90px;
    }

    .card:hover {
        transform: scale(1.2);
    }

    .card h2 {
        font-size: 1.2em;
        /* Kleinere Schrift auf Tablets */
    }
    .caption.messe {
        font-size: 1.2em;
    }
    
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        /* Bleibt bei 4 Spalten */
        gap: 15px;
    }

    .card {
        height: 140px;
    }

    .card.large {
        height: 160px;
    }

    .card.podium {
        height: 80px;
    }

    .card.podium:hover {
        transform: scale(1.2);
    }

    .card:hover {
        transform: scale(1.3);
    }

    .card h2 {
        font-size: 1em;
        /* Noch kleinere Schrift auf Handys */
    }
    .caption.messe {
        font-size: 1em;
    }
}

@media (max-width: 565px) {
    .card h2 {
        font-size: 0.9em;
    }
    .caption.messe {
        font-size: 0.9em;
    }
}

@media (max-width: 520px) {
    .card h2 {
        font-size: 0.7em;
    }
    .caption.messe {
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    header {
        font-size: clamp(1.2em, 3vw, 1.5em);
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
        /* Immer 4 Spalten */
        gap: 10px;
    }

    .card {
        height: 120px;
    }

    .card.large {
        height: 140px;
    }

    .card.podium {
        height: 70px;
    }

    .card.podium:hover {
        transform: scale(1.2);
    }
    .contact-form {
        max-width: 80%; /* Reduziert Breite für äußeren Abstand */
    }
}

@media (max-width: 420px) {
    header h1 {
        font-size: clamp(1.3em, 6vw, 2.5em);
    }
    .card h2 {
        font-size: 0.6em;
    }
    .caption.messe {
        font-size: 0.6em;
    }
}

@media (max-width: 360px) {
    nav ul li a {
        font-size: 0.9em;
    }
}