/* Custom Stylesheet */

/* Fonts */
@font-face {
    font-family: 'Panton';
    src: url('../fonts/Panton-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Panton';
    src: url('../fonts/Panton-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Panton';
    src: url('../fonts/Panton-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --panel: #161719;
    --panel-border: rgba(255, 255, 255, 0.08);
    --divider: rgba(255, 255, 255, 0.2);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --radius: 14px;
    --page-width: 1000px;
    --gap: 32px;
}

/* Reset some default styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
}

body {
    font-family: 'Panton', 'Segoe UI', Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.4;
    color: var(--text);
    background-color: #0b0c10;
    min-height: 100vh;
    padding: var(--gap) 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

/* nav.js focuses <main> after a page swap; no ring needed there */
main:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Background layers */
.background-image {
    background-image: url('../img/BackgroundMini.jpg');
    background-size: cover;
    background-position: center;
    position: fixed;
    inset: 0;
    z-index: -3;
}

.overlay {
    background-image: url('../img/black-dots3.png');
    opacity: 0.6;
    background-repeat: repeat;
    position: fixed;
    inset: 0;
    z-index: -2;
}

/* Shared panel look for header, content card and footer */
.panel {
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

/* Header and footer bars */
.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px 12px 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img {
    width: 48px;
    height: 48px;
}

.brand span {
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.bar-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
}

.bar-nav li + li::before {
    content: '|';
    margin: 0 0.6em;
    opacity: 0.9;
}

.bar-nav a {
    text-decoration: none;
}

.bar-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-header .bar-nav {
    font-size: 1.75rem;
}

.site-footer {
    margin-top: var(--gap);
}

.site-footer .bar {
    padding: 16px 24px;
    font-size: 1.05rem;
}

.site-footer .copyright {
    color: var(--text-muted);
}

/* Content card */
.content {
    margin-top: var(--gap);
    padding: 44px;
}

/* Divider between apps and before the About section */
.entry + .entry,
.about {
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid var(--divider);
}

.entry-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Trailer: a poster button that video.js swaps for the YouTube player */
.entry-video {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #000;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

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

.entry-video-play {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border: 2px solid var(--text);
    border-radius: 50%;
    background: rgba(22, 23, 25, 0.6);
    transition: background-color 0.2s, transform 0.2s;
}

/* Play triangle */
.entry-video-play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -14px 0 0 -8px;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent var(--text);
}

.entry-video:hover .entry-video-play {
    background: rgba(22, 23, 25, 0.85);
    transform: scale(1.08);
}

/* Tells visitors where the video comes from before they press play (consent notice) */
.entry-video-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(22, 23, 25, 0.75);
    font-size: 0.8rem;
}

.entry h2 {
    font-weight: 400;
    font-size: 4rem;
    line-height: 1;
    text-transform: uppercase;
    margin: 36px 0 24px;
}

.entry p + p,
.about p + p {
    margin-top: 0.75em;
}

/* Store button on the left, privacy link on the right; they stack when space runs out */
.entry-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 1.25em;
}

.entry-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.entry-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.entry-link {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--text);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.entry-link[href]:hover {
    background: var(--text);
    color: var(--panel);
}

.about h2 {
    font-weight: 700;
    font-size: 1.75rem;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Text pages (Impressum, Privacy) */
.legal h1 {
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.legal h2 {
    font-weight: 700;
    font-size: 1.35rem;
    margin: 32px 0 10px;
}

.legal p + p,
.legal ul + p,
.legal p + ul {
    margin-top: 0.75em;
}

.legal ul {
    padding-left: 1.25em;
}

.legal p .link-button {
    text-decoration: underline;
}

.legal .note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Unfilled placeholders stand out until they are replaced */
.legal mark {
    background: #ffd54f;
    color: #000;
    padding: 0 4px;
    border-radius: 3px;
}

/* Consent banner */
.consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    width: auto;
    display: flex;
    align-items: center;
    gap: 16px 24px;
    padding: 16px 24px;
    max-width: var(--page-width);
    margin: 0 auto;
}

.consent[hidden] {
    display: none;
}

.consent p {
    flex: 1;
    font-size: 1rem;
}

.consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.consent button,
.link-button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.consent button {
    font-weight: 700;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--text);
    border-radius: 999px;
    transition: background-color 0.2s, color 0.2s;
}

.consent button:hover {
    background: var(--text);
    color: var(--panel);
}

.link-button {
    background: none;
    border: none;
}

.link-button:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Media Queries for Responsiveness */
@media only screen and (max-width: 768px) {
    .brand span {
        font-size: 1.5rem;
    }

    .site-header .bar-nav {
        font-size: 1.35rem;
    }

    .content {
        padding: 28px;
    }

    .entry h2 {
        font-size: 3rem;
        margin: 28px 0 18px;
    }

    /* Smaller play button so it doesn't cover the title in the poster */
    .entry-video-play {
        width: 52px;
        height: 52px;
        margin: -26px 0 0 -26px;
    }

    .entry-video-play::after {
        margin: -10px 0 0 -6px;
        border-width: 10px 0 10px 17px;
    }

    .entry-video-hint {
        top: 8px;
        right: 8px;
        padding: 3px 10px;
        font-size: 0.75rem;
    }

    .site-footer .bar {
        flex-direction: column;
        gap: 8px;
    }

    /* Footer links wrap here, so drop the pipes and space them instead */
    .site-footer .bar-nav ul {
        justify-content: center;
        gap: 4px 1.25em;
    }

    .site-footer .bar-nav li + li::before {
        content: none;
    }

    .consent {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .consent-actions {
        justify-content: center;
    }
}

@media only screen and (max-width: 480px) {
    :root {
        --gap: 16px;
    }

    body {
        font-size: 1rem;
    }

    .bar {
        padding: 10px 14px 10px 10px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .brand span {
        font-size: 1.1rem;
    }

    .site-header .bar-nav {
        font-size: 1.05rem;
    }

    .bar-nav li + li::before {
        margin: 0 0.4em;
    }

    .content {
        padding: 16px;
    }

    .entry h2 {
        font-size: 2.25rem;
        margin: 22px 0 14px;
    }

    .entry + .entry,
    .about {
        margin-top: 40px;
        padding-top: 40px;
    }

    .legal h1 {
        font-size: 2rem;
    }
}
