html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #0d0d0d;
    color: #f2f2f2;
}

body {
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

a {
    color: #cccccc;
    text-decoration: none;
}

a:visited {
    color: #cccccc;
}

a:hover {
    text-decoration: none;
    opacity: 0.85;
}

a:active {
    color: #ffffff;
}

.overlay {
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.72);
}

.topbar {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 24px;
    font-size: 16px;
}

.menu a:hover,
.footer-links a:hover,
.section-link:hover {
    text-decoration: underline;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 0 60px 0;
}

.content-box {
    background: rgba(20, 20, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px;
    box-sizing: border-box;
}

.content-box-home {
    padding: 40px;
}

.content-box-home h1 {
    margin-bottom: 18px;
}

.content-box-home .start-intro {
    margin-bottom: 42px;
}

h1 {
    margin-top: 0;
    font-size: 34px;
}

.footer {
    width: 92%;
    max-width: 1280px;
    margin: 40px auto 0 auto;
    padding: 24px 0 40px 0;
    text-align: center;
    color: #cccccc;
    font-size: 14px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    margin: 0 10px;
}

.consent-box {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: rgba(15, 15, 15, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px;
    box-sizing: border-box;
}

.consent-box p {
    margin: 0 0 12px 0;
    line-height: 1.5;
    color: #e5e5e5;
}

.consent-buttons button {
    margin-right: 10px;
    padding: 10px 14px;
    border: 0;
    cursor: pointer;
}

.btn-allow {
    background: #ffffff;
    color: #000000;
}

.btn-deny {
    background: #444444;
    color: #ffffff;
}

/* Startseite / Listen */
.start-intro,
.list-intro {
    max-width: 900px;
    margin: 0 0 34px 0;
    font-size: 18px;
    line-height: 1.75;
    color: #dddddd;
}

.start-intro p,
.list-intro p {
    margin: 0 0 12px 0;
}

.start-latest-head {
    margin: 10px 0 22px 0;
}

.start-latest-head h2,
.section-head h2 {
    margin: 0;
    font-size: 28px;
    color: #ffffff;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 10px 0 22px 0;
    flex-wrap: wrap;
}

.section-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.88;
}

.section-link:hover {
    opacity: 1;
}

/* Video Grid / Karten */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.video-card {
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.video-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.18);
}

.video-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.video-thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.video-card:hover .video-thumb{
  filter: brightness(1.05);
}

.video-thumb-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.video-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    padding: 5px 7px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
}

.video-play-indicator {
    position: absolute;
    left: 12px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-play-indicator span {
    color: #fff;
    font-size: 14px;
    line-height: 1;
    margin-left: 2px;
}

.video-card:hover .video-play-indicator {
    opacity: 1;
    transform: translateY(0);
}

.video-info {
    padding: 14px 14px 16px 14px;
}

.video-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.video-referent {
    font-size: 14px;
    color: #d2d2d2;
    margin-bottom: 4px;
}

.video-meta {
    font-size: 13px;
    color: #a9a9a9;
}

.video-badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;

    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    padding: 6px 9px;
    border-radius: 3px;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Detailseite */
.video-description {
    margin: 30px 0 30px 0;
    line-height: 1.7;
}

.video-embed-block {
    margin-top: 30px;
}

.video-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-responsive iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(1.5px) brightness(0.55);
    transform: scale(1.03);
}

.video-placeholder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.15) 45%,
        rgba(0, 0, 0, 0.28) 100%
    );
    pointer-events: none;
}

.video-placeholder-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -58%);
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.video-placeholder-play-icon {
    display: block;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    margin-left: 4px;
}

.video-placeholder-text {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.external-content-settings {
    margin-top: 16px;
}

.consent-toggle-btn {
    background: #ffffff;
    color: #000000;
    border: 0;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 15px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.consent-toggle-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.external-content-note {
    margin-top: 10px;
    font-size: 14px;
    color: #c9c9c9;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .menu a {
        margin-left: 0;
        margin-right: 18px;
    }
    
    .content-box-home {
        padding: 28px;
    }

    h1 {
        font-size: 28px;
    }

    .start-intro,
    .list-intro {
        font-size: 16px;
    }

    .section-head h2,
    .start-latest-head h2 {
        font-size: 24px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}