:root {
    --primary: #ff3e00;   /* Ludra-Orange */
    --dark: #121212;
    --light: #f9f9f9;
    --gray: #606060;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.search-bar {
    flex: 1;
    margin: 0 40px;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 2px 0 0 2px;
    font-size: 16px;
}

.search-bar button {
    padding: 10px 15px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
}

nav a {
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
}

.upload-btn {
    background: var(--primary);
    color: white;
    padding: 10px 15px;
    border-radius: 2px;
}

.login-btn, .register-btn {
    color: var(--primary);
}

.user-avatar {
    font-size: 24px;
    color: var(--gray);
}

main h1 {
    margin: 20px 0 10px;
    font-size: 28px;
}

.subtitle {
    color: var(--gray);
    margin-bottom: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.thumbnail {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 2px;
}

.video-info {
    padding: 15px;
}

.video-info .title {
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.video-info .meta {
    color: var(--gray);
    font-size: 14px;
}

footer {
    background: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .search-bar {
        margin: 15px 0;
        width: 100%;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }
}

/* Login/Registrierung */
.login-container, .register-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container input, .register-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.login-container button, .register-container button {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.error {
    color: red;
    margin-bottom: 10px;
}

/* Upload-Formular */
.upload-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #e63800;
}

.error-page {
    text-align: center;
    padding: 50px 0;
}

.error-page i {
    font-size: 60px;
    color: var(--gray);
    margin-bottom: 20px;
}

.error-page h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.error-page p {
    margin-bottom: 20px;
    color: var(--gray);
}
/* Profil-Stile */
.profile-header {/* Video Watch Page */
.video-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.video-player {
    margin-bottom: 20px;
}

.video-js {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.video-meta h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.video-stats {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.video-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.video-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    font-size: 16px;
}

.like-btn.active {
    color: var(--primary);
}

.video-description {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.comments-section {
    margin-top: 30px;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.comment-form button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-header .username {
    font-weight: 500;
}

.comment-header .comment-date {
    color: var(--gray);
    font-size: 14px;
}

.recommended-videos {
    margin-top: 30px;
}

.recommended-videos h2 {
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr;
    }

    .recommended-videos {
        grid-column: 1 / -1;
    }
}

    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.profile-avatar {
    margin-right: 20px;
    color: var(--gray);
}

.profile-info h1 {
    margin: 0;
    font-size: 24px;
}

.profile-info p {
    margin: 5px 0;
    color: var(--gray);
}

/* Video Watch Page */
.video-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.video-player {
    margin-bottom: 20px;
}

.video-js {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.video-meta h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.video-stats {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.video-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.video-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    font-size: 16px;
}

.like-btn.active {
    color: var(--primary);
}

.video-description {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.comments-section {
    margin-top: 30px;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.comment-form button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-header .username {
    font-weight: 500;
}

.comment-header .comment-date {
    color: var(--gray);
    font-size: 14px;
}

.recommended-videos {
    margin-top: 30px;
}

.recommended-videos h2 {
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr;
    }

    .recommended-videos {
        grid-column: 1 / -1;
    }
}

