/* Allgemeines Styling für Admin-Bereich und Login */
body {
    font-family: sans-serif;
    background-color: #f4f4f4;
}

.container {
    background-color: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

h2 {
    color: #333;
    margin-bottom: 1em;
}

.login-form input, .login-form button {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
}

.drop-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2em;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.drop-area.highlight {
    background-color: #e9e9e9;
}

.upload-message {
    color: green;
    margin-bottom: 1em;
}

.logout-link {
    display: inline-block;
    margin-top: 1em;
    color: #007bff;
    text-decoration: none;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.category-button {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    background-color: #e9e9e9;
    transition: background-color 0.3s, transform 0.2s;
}

.category-button:hover {
    background-color: #dcdcdc;
    transform: translateY(-2px);
}

.category-button.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

#title, #description {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.2em;
    line-height: 1.5;
}

#generate-ai-content, #save-video {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#generate-ai-content:hover, #save-video:hover {
    background-color: #218838;
}

/* Styling für die öffentliche Videogalerie */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #31261d;
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.slideshow-wrapper {
    position: relative;
    width: 75vw; /* Nutzt 75% der Viewport-Breite */
    max-width: 300px; /* Begrenzt die maximale Größe */
    aspect-ratio: 1 / 1; /* Hält das Seitenverhältnis 1:1 bei */
    display: flex;
    justify-content: center;
    align-items: center;
}

.slideshow-container {
    width: 225px; /* 75% von 300px */
    height: 225px;
    overflow: hidden;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-image.active {
    opacity: 1;
}

.social-links-container {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75vw;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    height: 300px;
}

.social-link {
    position: absolute;
    transition: transform 0.2s ease-in-out;
}

.social-link img {
    width: 32px;
    height: 32px;
    display: flex;
    transition: transform 0.2s ease-in-out;
}

.social-link img:hover {
    transform: scale(1.2);
}

main {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px 20px;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.category-item {
    cursor: pointer;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 170px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-item img {
    width: 100%;
    height: auto;
    display: block;
}

.category-item h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.video-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.video-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    overflow: hidden;
    text-align: left;
}

.video-item video {
    width: 100%;
    height: auto;
    display: block;
}

.video-details {
    padding: 15px;
}

.video-details h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.video-details p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination button:hover {
    background-color: #45a049;
}

.pagination button.active {
    background-color: #337a36;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

footer {
    background-color: #333;
    color: #f0f0f0;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

.social-link {
    background-image: url(../images/socialBG.png);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column; /* Stapelt die Elemente untereinander */
        gap: 20px;
    }
}

.impressum {
    color: rgb(134, 111, 80);
    font-size: 10px;
}