/* Importiere Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Roboto:wght@300;400&display=swap');

/* Basis-Stile */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 0;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1e88e5; /* Dunkelblau */
    text-align: center;
    padding: 20px 0;
    margin-top: 0;
    border-bottom: 3px solid #1e88e5;
    display: flex; /* Aktiviert Flexbox */
    align-items: center; /* Zentriert vertikal */
    justify-content: center; /* Zentriert horizontal */
    gap: 15px; /* Abstand zwischen Logo und Text */
}
.logo {
    max-height: 40px; /* Oder eine andere passende Höhe */
    width: auto;
}

/* Container-Layout */
.main-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex; /* Für Kategorien und Inhalt nebeneinander */
    gap: 30px;
}

/* Kategoriespalte (Sidebar) */
.sidebar {
    flex: 0 0 200px; /* Feste Breite */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content; /* Passt die Höhe an den Inhalt an */
}

.sidebar h3 {
    font-family: 'Poppins', sans-serif;
    color: #0d47a1;
    margin-top: 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.sidebar a {
    display: block;
    padding: 8px 10px;
    margin-bottom: 5px;
    text-decoration: none;
    color: #555;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar a:hover, .sidebar a.active {
    background-color: #1e88e5;
    color: white;
}

/* Video-Content-Bereich */
.video-content {
    flex-grow: 1;
}

.video-card {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.video-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    padding: 15px;
    margin: 0;
    color: #333;
}

/* Player Styling */
.player-wrapper {
    width: 100%;
    /* 16:9 Aspect Ratio: 9/16 * 100 = 56.25% */
    padding-bottom: 56.25%; 
    height: 0; 
    position: relative;
    background-color: black;
}

.player-wrapper iframe, 
.player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-details {
    padding: 15px;
}

.video-details p {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Embed Textarea */
.embed-code {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.embed-code h3 {
    font-size: 1em;
    color: #555;
    margin: 0 0 5px 0;
}

.embed-code textarea {
    height: 60px;
}
footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 2px solid #1e88e5;
    background-color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

footer a {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #1e88e5;
    text-decoration: none;
    padding: 5px 10px;
}

footer a:hover {
    color: #0d47a1;
    text-decoration: underline;
}
