:root {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    background: var(--canvas);
    color: #f4f6fa;
    --muted: #bec9d8;
    --ice: #a8d8ff;
    --canvas: #101823;
    --shade: #0e1926b8;
    --chip: #263241;
    --hero: url('media/hero.jpg');
}
:root[data-theme="music"] {
    --canvas: #191523;
    --shade: #21162cc9;
    --chip: #30283e;
    --ice: #cfbce7;
    --hero: url('media/musikvideos.jpg');
}
:root[data-theme="image"] {
    --canvas: #141e1b;
    --shade: #14271dc9;
    --chip: #263830;
    --ice: #bad4c2;
    --hero: url('media/imagefilme.jpg');
}
:root[data-theme="ads"] {
    --canvas: #231715;
    --shade: #351a17c9;
    --chip: #402722;
    --ice: #f4b0a4;
    --hero: url('media/werbespots.jpg');
}
:root[data-theme="social"] {
    --canvas: #121d23;
    --shade: #10262dc9;
    --chip: #243841;
    --ice: #acd5df;
    --hero: url('media/socialmedia.jpg');
}
:root[data-theme="other"] {
    --canvas: #211c12;
    --shade: #312712c9;
    --chip: #3c301c;
    --ice: #f2d48a;
    --hero: url('media/hero-sonstiges.jpg');
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }

.top {
    --ice: #a8d8ff;
    --header-background: linear-gradient(110deg, #233040, #171f2a 58%, #111923);
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: clamp(20px, 5vw, 80px);
    padding: 12px clamp(20px, 3.4vw, 60px);
    background: var(--header-background);
}
.showroom-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: transparent;
    isolation: isolate;
}
.showroom-header::before,
.showroom-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: opacity 260ms ease;
}
.showroom-header::before {
    background: var(--header-background);
}
.showroom-header::after {
    opacity: 0;
    background: rgb(23 31 42 / 90%);
    backdrop-filter: blur(7px);
}
.showroom-header.is-scrolled::before { opacity: 0; }
.showroom-header.is-scrolled::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .showroom-header::before, .showroom-header::after { transition: none; }
}
.logo { display: block; flex: none; }
.logo img { display: block; width: clamp(155px, 20vw, 260px); height: auto; }
.top nav, footer nav, .profiles { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 38px); }
.top nav a {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 2px solid transparent;
}
.top nav a[aria-current="page"] { color: #fff; border-color: var(--ice); }
.top nav a::after {
    content: "";
    position: absolute;
    inset: auto 0 -2px;
    height: 2px;
    background: #f4473e;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}
.top nav a:is(:hover, :focus-visible) { color: #fff; }
.top nav a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
    .top nav a::after { transition: none; }
}
.profiles { margin-left: auto; gap: 16px; }
.social { display: grid; place-items: center; width: 38px; height: 38px; text-decoration: none; }
.social svg { width: 29px; }
.dw-logo img { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); }
.social:hover { color: var(--ice); }
@media (max-width: 700px) {
    .showroom-header .profiles { gap: 4px; }
    .showroom-header .social { width: 34px; }
}

.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); min-height: calc(100svh - 86px); }
.feature {
    min-height: 510px;
    display: flex;
    align-items: flex-end;
    padding: 32px clamp(20px, 3vw, 50px) clamp(48px, 13vh, 130px);
    clip-path: inset(0);
}
.feature::before {
    content: "";
    position: fixed;
    inset: 86px auto 0 0;
    width: calc(100% / 3);
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 65%, var(--canvas)),
        linear-gradient(0deg, var(--canvas) 0%, var(--shade) 25%, transparent 68%),
        var(--hero) left top / cover;
}
.feature-copy h1 { font-size: clamp(2rem, 4.15vw, 4.4rem); line-height: 1.03; letter-spacing: -.045em; margin: .2em 0; overflow-wrap: anywhere; }
.feature-copy p { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.35rem); }
.eyebrow, .feature-copy .eyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .13em;
    color: var(--ice);
}
.collection { padding: 30px clamp(20px, 2vw, 40px) 50px 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button, .pill {
    background: var(--chip);
    border: 1px solid transparent;
    border-radius: 99px;
    color: inherit;
    padding: 9px 17px;
    text-decoration: none;
    display: inline-block;
}
.pill:hover { border-color: var(--ice); }
.filters button {
    background: #e8edf4;
    border-width: 2px;
    color: #121a25;
    font-weight: 700;
}
.filters button[data-filter]:not([data-filter=""]) {
    background: transparent;
    border-color: var(--badge-color, #b9cbe1);
    color: #fff;
}
@media (hover: hover) {
    .filters button[data-filter]:not([data-filter=""]):hover {
        background: color-mix(in srgb, var(--badge-color, #b9cbe1) 15%, transparent);
    }
}
.filters [aria-pressed="true"] { outline: 2px solid #f4f6fa; outline-offset: 2px; }
.filters button:focus-visible { outline: 2px dashed #f4f6fa; outline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 14px; }
.card-button { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; width: 100%; background: none; border: 0; padding: 0; color: inherit; text-align: left; border-radius: 12px; }
.frame {
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background: radial-gradient(ellipse at 20% 0%, #345574, transparent 75%), linear-gradient(145deg, #172b40, #121925);
    margin-bottom: 4px;
    transform-origin: center bottom;
}
.frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card[data-category="Musikvideos"] { --preview-color: #493859; }
.card[data-category="Musikvideos"], .filters [data-filter="Musikvideos"], .home-row[data-home-category="Musikvideos"] { --badge-color: #f28ac4; }
.card[data-category="Imagefilme"] { --preview-color: #354a3e; }
.card[data-category="Imagefilme"], .filters [data-filter="Imagefilme"], .home-row[data-home-category="Imagefilme"] { --badge-color: #a7ec64; }
.card[data-category="Werbespots"] { --preview-color: #56302b; }
.card[data-category="Werbespots"], .filters [data-filter="Werbespots"], .home-row[data-home-category="Werbespots"] { --badge-color: #ff886f; }
.card[data-category="Social Media"] { --preview-color: #2d4953; }
.card[data-category="Social Media"], .filters [data-filter="Social Media"], .home-row[data-home-category="Social Media"] { --badge-color: #6ae0ec; }
.card[data-category="Sonstiges"] { --preview-color: #554324; }
.card[data-category="Sonstiges"], .filters [data-filter="Sonstiges"], .home-row[data-home-category="Sonstiges"] { --badge-color: #ffd35c; }
.preview-bar {
    position: absolute;
    inset: auto 0 0;
    height: 20%;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 clamp(6px, 1vw, 14px);
    background: var(--preview-color, #263241);
    background: color-mix(in srgb, var(--preview-color, #263241) 70%, transparent);
    backdrop-filter: blur(3px);
    color: #f4f6fa;
    font-size: clamp(.65rem, 1vw, .82rem);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 180ms ease, transform 180ms ease;
}
.preview-category {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 99px;
    background: var(--badge-color, #b9cbe1);
    color: #101823;
    padding: 3px 9px;
    font-weight: 700;
}
.preview-play {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border-radius: 99px;
    background: rgb(0 0 0 / 28%);
    padding: 3px 7px;
    font-weight: 700;
}
.card-button:focus-visible .preview-bar { opacity: 1; transform: none; }
@media (hover: hover) {
    .frame:hover .preview-bar { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .preview-bar { transition: none; }
}
.card-button strong, .home-all strong {
    font-size: clamp(.9rem, 1.2vw, 1.15rem);
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .frame { transition: transform 220ms ease, box-shadow 220ms ease; }
    .card-button:hover .frame {
        transform: perspective(700px) rotateX(-8deg);
        box-shadow: 0 12px 20px rgb(0 0 0 / 28%);
    }
}
.panel { align-self: start; padding: clamp(24px, 5vw, 74px); }
.panel h2 { font-size: clamp(1.4rem, 3vw, 2.6rem); margin: .35em 0; }
.panel p { max-width: 58ch; line-height: 1.6; }
footer { display: flex; justify-content: space-between; gap: 22px; padding: 34px clamp(20px, 3.4vw, 60px); background: #090b0e; color: var(--muted); line-height: 1.7; }
footer a { text-underline-offset: .2em; }

dialog {
    width: min(90vw, calc((90dvh - 106px) * var(--video-ratio, 1.77778) + 24px));
    max-width: none;
    max-height: 90dvh;
    padding: 12px;
    background: #101823;
    color: inherit;
    border: 1px solid #526477;
    border-radius: 14px;
}
dialog::backdrop { background: #02060bca; backdrop-filter: blur(7px); }
.player-heading { --control-height: 36px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.player-heading h2 { flex: 1; min-width: 0; font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
.player-heading form { flex: none; }
.player-heading button { border: 0; background: var(--chip); color: inherit; border-radius: 50%; width: var(--control-height); height: var(--control-height); font-size: 1.4rem; }
#video-stage { display: grid; place-items: center; aspect-ratio: var(--video-ratio, 1.77778); text-align: center; background: #06090d; border-radius: 8px; overflow: hidden; }
#video-stage iframe, #video-stage video { width: 100%; height: 100%; border: 0; }
#video-link {
    display: inline-flex;
    flex: none;
    align-items: center;
    height: var(--control-height);
    padding-inline: clamp(10px, 2vw, 16px);
    border-radius: 999px;
    background: #d12b23;
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
}
#video-link:hover { background: #b9221b; }
.admin { max-width: 760px; margin: auto; }
.admin form, .admin label { display: grid; gap: 10px; }
.admin form { gap: 16px; margin: 20px 0; }
.admin :is(input, textarea, select) { width: 100%; padding: 10px; border: 1px solid #526477; border-radius: 6px; background: #1a2635; color: inherit; }
.admin .pill { justify-self: start; }

@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 701px) {
    .feature {
        position: sticky;
        top: 86px;
        align-self: start;
        height: calc(100dvh - 86px);
        min-height: 0;
        padding-bottom: min(13vh, 130px);
    }
}
@media (max-width: 700px) {
    .top { flex-wrap: wrap; gap: 6px 14px; }
    .top nav { order: 1; width: 100%; flex-wrap: wrap; }
    .layout { grid-template-columns: 1fr; }
    .feature { min-height: 295px; padding: 28px 20px; }
    .feature::before { inset: 0; width: 100%; }
    .collection { padding: 12px 20px 36px; }
    footer { flex-wrap: wrap; }
}
@media (max-width: 390px) {
    .cards { grid-template-columns: 1fr; }
}

.production-list { list-style: none; padding: 0; }
.production-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #263241;
    overflow-wrap: anywhere;
}
.production-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pill.danger { color: #ffd5d5; background: #46272e; }

.admin .remove-thumbnail { display: flex; align-items: center; }
.admin .remove-thumbnail input { width: auto; }

#video-stage video { display: block; min-width: 0; min-height: 0; object-fit: contain; }

.production-group { border-bottom: 1px solid #263241; }
.production-group summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.production-group .production-list { margin: 0 0 12px; }
.production-group .production-list li:last-child { border-bottom: 0; }
.production-actions form { display: block; margin: 0; }

.home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: clamp(24px, 4vw, 64px);
    min-height: clamp(360px, 66vh, 740px);
    padding: clamp(24px, 5vw, 80px) clamp(20px, 4vw, 64px);
    overflow: hidden;
}
.home-background, .page-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    z-index: -2;
}
.home-hero::after, .feature:has(.page-background)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, var(--canvas), transparent 82%),
        linear-gradient(90deg, #10182385, transparent 65%, #10182391);
}
.feature:has(.page-background)::before { display: none; }
.home-intro { grid-column: span 2; }
.home-intro h1 { font-size: clamp(2.7rem, 7vw, 7rem); line-height: 1; margin: 0; overflow-wrap: anywhere; }
.home-intro p, .featured-description, .page-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.home-intro p { font-size: clamp(1rem, 2vw, 1.5rem); color: var(--muted); }
.home-featured { align-self: start; background: #101823e6; border: 1px solid #ffffff24; border-radius: 16px; padding: clamp(12px, 2vw, 24px); }
.home-featured .eyebrow { margin: 0 0 10px; }
.featured-card strong { white-space: normal; }
.featured-description { margin: 8px 0 0; color: var(--muted); }
.home-rows { display: grid; gap: 32px; padding: 20px clamp(20px, 4vw, 64px) 64px; }
.home-row {
    display: grid;
    grid-template-columns: minmax(0, .8fr) repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}
.home-category { position: relative; display: grid; align-items: end; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; isolation: isolate; text-decoration: none; }
.home-category img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home-category::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #090b0ee8, transparent 90%); z-index: -1; }
.home-category h2 {
    font-size: clamp(.85rem, 1.6vw, 1.5rem);
    font-weight: 750;
    margin: clamp(6px, 1vw, 12px);
    overflow-wrap: anywhere;
}
.home-category { aspect-ratio: 64 / 45; outline: 2px solid var(--badge-color, #b9cbe1); outline-offset: -2px; }
.home-category:focus-visible { outline-offset: 3px; }
.home-category img {
    object-position: left top;
    transform: scale(1.2);
    transform-origin: left top;
}
.home-all { grid-column: -2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; text-decoration: none; }
.home-all-frame { isolation: isolate; }
.home-all-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--badge-color, #b9cbe1);
    border-radius: inherit;
    opacity: var(--home-all-outline, 0);
    pointer-events: none;
    z-index: 1;
}
.home-all:focus-visible { --home-all-outline: 1; }
@media (hover: hover) and (pointer: fine) {
    .home-all:hover { --home-all-outline: 1; --mosaic-active: 1; }
    .home-category:hover { --category-zoom: 1.28; }
}
.home-all-frame .home-all-background { filter: blur(10px) brightness(.7); transform: scale(1.18); z-index: -1; }
.home-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(3px, .45vw, 8px);
    width: 86%;
    height: 84%;
}
.home-mosaic-tile { position: relative; overflow: hidden; border-radius: 5px; background: #10182380; }
@media (prefers-reduced-motion: no-preference) {
    .home-category img {
        transform: scale(var(--category-zoom, 1.2));
        transition: transform 340ms ease-in-out;
    }
    .home-category:focus-visible { --category-zoom: 1.28; }
    .home-all-frame::after { transition: opacity 220ms ease-in-out; }
    .home-all:focus-visible { --mosaic-active: 1; }
    .home-mosaic-tile {
        transform: scale(calc(1 + var(--mosaic-active, 0) * var(--tile-scale, 0)))
            rotate(calc(var(--mosaic-active, 0) * var(--tile-angle, 0deg)));
        transition: transform var(--tile-duration, 280ms) ease-in-out;
    }
    .home-mosaic-tile:nth-child(1) { --tile-scale: -.06; --tile-duration: 240ms; }
    .home-mosaic-tile:nth-child(2) { --tile-scale: .06; --tile-duration: 310ms; }
    .home-mosaic-tile:nth-child(3) { --tile-angle: 3deg; --tile-duration: 340ms; }
    .home-mosaic-tile:nth-child(4) { --tile-scale: -.05; --tile-angle: -2deg; }
    .home-mosaic-tile:nth-child(5) { --tile-scale: .04; --tile-angle: -2deg; --tile-duration: 320ms; }
    .home-mosaic-tile:nth-child(6) { --tile-scale: -.04; --tile-angle: 1deg; --tile-duration: 260ms; }
}
.home-empty { grid-column: span 2; color: var(--muted); }
.page-content-image { display: block; width: min(100%, 640px); margin-top: 24px; border-radius: 12px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-tabs [aria-current="page"] { border-color: var(--ice); }
@media (max-width: 700px) {
    .home-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .home-intro { grid-column: auto; }
    .home-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-category { grid-column: 1 / -1; aspect-ratio: 4 / 1; }
    .home-empty { grid-column: 1 / -1; }
}


.video-source { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 12px; border: 1px solid #526477; border-radius: 8px; }
.video-source legend { padding-inline: 5px; font-weight: 700; }
#episode-rows { display: grid; gap: 12px; }

.series-view { padding: clamp(24px, 5vw, 64px); min-height: 70vh; }
.series-view h1 { font-size: clamp(2rem, 4vw, 4rem); margin: .45em 0 .65em; overflow-wrap: anywhere; }
.series-episode-play {
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #101823c9;
    color: #fff;
}

/* Eigenständiger Showroom von Daniel Wegmann. */
.site-wordmark { display: block; width: clamp(155px, 20vw, 260px); font-size: clamp(1.1rem, 2vw, 1.65rem); font-weight: 800; line-height: 1.15; }
.site-wordmark > span { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
