/*
Theme Name: Max Pool Billard Live
Description: Livestream-Theme für Max Pool Billard und SBL Livestream.
Version: 1.0.2
Text Domain: max-pool-live
*/
@font-face {
    font-family: Barlow;
    src: url(assets/barlow.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Barlow;
    src: url(assets/barlow-bold.woff2) format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Titillium Web";
    src: url(assets/titillium-bold.woff2) format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --mp-night: #000316;
    --mp-panel: #141a30;
    --mp-teal: #2faea3;
    --mp-bright: #00c6c2;
    --mp-muted: #afbac0;
    --mp-border: #343e56;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--mp-night); color: #fff; font: 1rem/1.5 Barlow, Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mp-bright); outline-offset: 3px; }
.mp-container { width: min(100% - 2.5rem, 80rem); margin-inline: auto; }
.mp-skip { position: fixed; z-index: 60; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--mp-night); transform: translateY(-160%); }
.mp-skip:focus { transform: none; }
.mp-header { position: sticky; top: 0; z-index: 50; margin-bottom: -5rem; background: #00031699; backdrop-filter: blur(8px); }
.admin-bar .mp-header { top: 32px; }
.mp-header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.mp-brand, .mp-actions, .mp-nav { display: flex; align-items: center; gap: .75rem; }
.mp-brand { flex: none; text-decoration: none; font: 700 .875rem "Titillium Web", Barlow, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.mp-brand img, .mp-footer-brand img { display: block; border-radius: 50%; object-fit: cover; }
.mp-nav { gap: 1.5rem; }
.mp-nav a, .mp-mobile nav a { color: var(--mp-teal); text-decoration: none; font-weight: 700; font-size: .9375rem; text-transform: uppercase; }
.mp-nav a:hover, .mp-mobile nav a:hover { color: var(--mp-bright); }
.mp-language, .mp-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: .5rem .85rem; text-decoration: none; font-weight: 700; text-transform: uppercase; }
.mp-language { border: 1px solid #ffffff40; font-size: .75rem; }
.mp-button { padding: .7rem 1.25rem; background: var(--mp-teal); color: var(--mp-night); font-size: .875rem; }
.mp-button:hover { background: var(--mp-bright); }
.mp-booking { font-size: .8125rem; }
.mp-mobile { display: none; }
.mp-mobile summary { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; border: 1px solid #ffffff40; list-style: none; cursor: pointer; }
.mp-mobile summary::-webkit-details-marker { display: none; }
.mp-mobile nav { position: absolute; top: 100%; right: 0; display: grid; gap: .8rem; min-width: 13rem; padding: 1rem; background: var(--mp-panel); border: 1px solid var(--mp-border); border-radius: .75rem; }

.mp-hero {
    display: flex;
    align-items: center;
    min-height: clamp(24rem, 55vh, 37rem);
    padding-block: 7rem 3rem;
    background: linear-gradient(90deg, #000316e8, #00031640), linear-gradient(0deg, var(--mp-night), transparent 60%), url(assets/hero.webp) center / cover no-repeat;
}
.mp-hero h1 { margin: 0; font: 700 clamp(3.2rem, 8vw, 6.25rem)/1 "Titillium Web", Barlow, sans-serif; }
.mp-hero p { margin: .55rem 0 1.5rem; font-size: clamp(1.05rem, 2vw, 1.5rem); }
.mp-stream { min-height: 18rem; padding-block: 1.5rem 4rem; scroll-margin-top: 6rem; }
.mp-content { padding-block: 7rem 4rem; }
.mp-footer { background: var(--mp-panel); text-align: center; }
.mp-footer-brand { display: inline-block; margin-block: 2.5rem; }
.mp-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; padding: 1.5rem 1rem; background: var(--mp-teal); }
.mp-footer nav a { color: var(--mp-night); font-weight: 700; text-decoration: none; }
.mp-footer nav a:hover { text-decoration: underline; }

.mp-stream .sbl-streams { --stream-ink: #fff; --stream-muted: var(--mp-muted); --stream-line: var(--mp-border); color-scheme: dark; }
.mp-stream .sbl-streams :is(.sbl-stream-menu, .sbl-stream-panel, .sbl-matrix, .sbl-matrix-choices, .sbl-calendar[open]) { background: var(--mp-panel); }
.mp-stream .sbl-streams :is(
    .sbl-stream-list a, .sbl-stream-mobile, .sbl-stream-panel > header,
    .sbl-view-switch, .sbl-view-switch button[aria-pressed="true"], .sbl-matrix-toolbar button,
    .sbl-matrix-toolbar select, .sbl-matrix-toolbar summary, .sbl-matrix-tile,
    .sbl-stream-offline, .sbl-stream-archive summary, .sbl-recordings button, .sbl-calendar button
) { background: #1b233c; border-color: var(--mp-border); color: var(--stream-ink); }
.mp-stream .sbl-streams :is(.sbl-stream-list a:hover, .sbl-stream-list a[aria-current], .sbl-matrix-choices label:hover, .sbl-recordings button:hover, .sbl-recordings button[aria-pressed="true"], .sbl-calendar button[data-recorded="true"]) { background: #223b47; border-color: var(--mp-teal); }
.mp-stream .sbl-stream-list a[aria-current] { box-shadow: inset 3px 0 var(--mp-teal); }
.mp-stream .sbl-streams :is(.sbl-stream-identity .sbl-stream-title, .sbl-recording-meta, .sbl-recording-time) { color: var(--mp-muted); }
.mp-stream .sbl-stream-badge { background: #29344c; color: #dae3ec; }
.mp-stream .sbl-stream-badge[data-live="true"] { background: #0c403b; color: #91e7d9; }
.mp-stream .sbl-matrix:fullscreen .sbl-matrix-tile { background: transparent; }

@media (max-width: 1023px) {
    .mp-nav { display: none; }
    .mp-mobile { display: block; }
}
@media (max-width: 782px) {
    .admin-bar .mp-header { top: 46px; }
    .mp-booking { display: none; }
}
@media (max-width: 600px) {
    .admin-bar .mp-header { top: 0; }
    .mp-container { width: calc(100% - 1.5rem); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
