/*
 * page.css
 * Seiten-Layout und -Styling
 * Palette: #e40046 / #1a1a1a / #ffffff
 * Font: Inter (Google Fonts)
 *
 * Usage:
 *   <link rel="stylesheet" href="page.css">
 */

 /* ====================================================
   FONTS
   ==================================================== */

@font-face {
  font-family: 'Town W05';
  src: url('../fonts/Town 80 Text W05 Book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

/* ====================================================
   DESIGN TOKENS
   ==================================================== */

:root {
    --brand-red:        #e40046;
    --brand-red-dark:   #e40046;
    --near-black:       #1a1a1a;
    --mid-gray:         rgb(105, 105, 105); /*#767676;   /* WCAG AA on white */
    --light-gray:       #cccccc;
    --off-white:        #f2f2f2;
    --white:            #ffffff;
    --focus-color:      #ffcc00;   /* AAA on dark, AA on mid-gray */

    --player-width:     768x;

    --root-font-size: 20px;
    --font-family: "Town W05",sans-serif;
    --body-font-size: 1rem;
    --font-weight: 400;
    --line-height: 1.25;
    --body-color: var(--mid-gray);
    --body-bg: #fff;
}


/* ====================================================
   RESET & BASE
   ==================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-family);
    font-size: var(--root-font-size);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--body-bg);
    color: var(--body-color);
    min-height: 100dvh;
    font-size: var(--body-font-size);
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

ul {
    margin-left: 1rem;
}

select {
    width: 11.5rem;
    padding:.4rem;
    font-size: .8rem;
}


/* ====================================================
   PAGE LAYOUT — fluid, white
   ==================================================== */

.page {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 599px) {
    .page {
        padding: 0;
    }
}

main {
    padding:0 1rem;
}


/* ====================================================
   TOP BAR  (Logo + Language Switch)
   ==================================================== */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 2rem;
}

.logo {
    display: block;
    height: 64px;
    width: auto;
}

@media (max-width: 440px) {
    .logo {
        height: 34px;
    }
}

/* Language switch */
.lang-switch {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.lang-switch a {
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 3px;
    transition: color 0.1s ease;

    color: var(--brand-red);
    font-size: 1rem;
    font-weight: 600;
}

.lang-switch a:hover {
    color:  var(--brand-red);
}

.lang-switch a:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
    color: var(--near-black);
}

.lang-switch a[aria-current="true"] {
    color: var(--brand-red);
    font-weight: 600;
}

.lang-switch .separator {
    color: var(--light-gray);
    user-select: none;
    font-size: 0.75rem;
}


/* ====================================================
   PAGE HEADER  (overline / headline / description)
   ==================================================== */

.page-header {
    margin-bottom: 2rem;
    padding:0 1rem;
}

.page-header .overline {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15rem;
    color: var(--brand-red);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 2.5rem;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: 0.6rem;
}

.page-header .description {
    font-size:1rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--mid-gray);
    /*max-width: 55ch;*/
}

@media (max-width: 575.98px) {
    .page-header .overline {
        font-size: .9rem;
        line-height: .9rem;
    }
    .page-header h1 {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
    .page-header .description {
        font-size: .85rem;
        line-height: 1.25rem;
    }
}


/* ====================================================
   PLAYER WRAPPER
   Constrains only the player block to mobile width.
   Left-aligned as a natural content block.
   ==================================================== */

.player-wrapper {
    width: 100%;
    max-width: var(--player-width);
}
