/* ==========================================================================
   JR Rostock theme — charlixcx.com-inspired brutalist single pager
   Brand font: "Aliens & Cows" Regular (Zetafonts), licensed MyFonts webfont
   (Build ID 3867246) — files live in ../fonts/.
   ========================================================================== */

@font-face {
    font-family: 'Aliens and Cows';
    src: url('../fonts/aliens-cows-regular.woff2') format('woff2'),
         url('../fonts/aliens-cows-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-display: 'Aliens and Cows', 'Arial Narrow', 'Helvetica Neue Condensed', 'Liberation Sans Narrow', Impact, sans-serif;
    --font-body: Arial, Helvetica, sans-serif;
    --black: #1d1d1b;
    --white: #ffffff;
    --accent: #e63312;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.4;
}

a { color: inherit; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

/* ============ FIXED LOGO (charlixcx-style) ============
   Desktop: sits at the top edge, scrolls along, shrinks once the bundles
   section is reached (body.past-hero). Mobile: pinned to the top edge and
   always visible while scrolling. */
.site-logo {
    position: fixed;
    top: clamp(0.75rem, 3vh, 2rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: block;
}

.site-logo img {
    display: block;
    width: clamp(160px, 24vw, 340px);
    height: auto;
    filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.65));
    transition: width 260ms ease;
}

body.past-hero .site-logo img { width: clamp(88px, 9vw, 130px); }

/* White logo is invisible over the white tour section: invert it there */
body.logo-dark .site-logo img {
    filter: invert(1) drop-shadow(0 1px 8px rgba(255, 255, 255, 0.35));
}

/* ============ HERO ============ */
.hero {
    position: relative;
    height: 100svh;
    overflow: hidden;
}

/* Full-bleed: image fills the hero completely, minimal crop */
.hero-img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.hero-img--portrait { display: none; }

/* Readability scrim behind overlay content */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        transparent 30%,
        transparent 55%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 4vw;
}

.hero-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5em 1em;
}

.hero-menu a {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    transition: color 120ms ease, transform 120ms ease;
}

.hero-menu a:hover,
.hero-menu a:focus-visible {
    color: var(--accent);
    transform: skewX(-4deg);
}

/* ============ BUNDLES ============
   Background stays static while scrolling (charlixcx-style): the image lives
   on a root-level fixed pseudo-element (iOS ignores background-attachment:
   fixed), so it sits behind ALL page content and only shows through the
   transparent .bundles section — every other section has an opaque
   background. A light 15% black overlay keeps the items readable. */
body.template-home::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
        url('../images/bundles-bg.webp') center / cover no-repeat;
}

.bundles {
    padding: clamp(3rem, 8vw, 7rem) 4vw;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 1400px;
    margin: 0 auto;
}

.bundle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    text-align: center;
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
    transition: transform 150ms ease;
}

.bundle-card:hover { transform: translateY(-6px) rotate(-0.5deg); }

.bundle-card img {
    width: 100%;
    max-width: 340px;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.bundle-placeholder {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.25);
}

.bundle-title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
}

.bundle-price { font-size: 0.95rem; opacity: 0.85; }

/* ============ TOUR ============ */
.tour {
    padding: clamp(3rem, 8vw, 6rem) 4vw;
    background: var(--white);
    color: var(--black);
}

.tour h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.tour-list {
    list-style: none;
    max-width: 1100px;
    margin: 0 auto;
}

.tour-row {
    display: grid;
    grid-template-columns: 7.5rem 1fr 1fr auto;
    align-items: baseline;
    gap: 0.5rem 1.5rem;
    padding: 0.9rem 0.75rem;
    border-bottom: 2px solid var(--black);
    font-size: clamp(1rem, 2.2vw, 1.4rem);
}

.tour-row time { font-variant-numeric: tabular-nums; font-weight: bold; }

.tour-city {
    font-family: var(--font-display);
    font-size: 1.35em;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tour-venue { opacity: 0.75; }

.tour-tickets {
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--black);
    padding: 0.2em 0.9em;
    transition: background 120ms ease, color 120ms ease;
    white-space: nowrap;
}

.tour-tickets:hover,
.tour-tickets:focus-visible {
    background: var(--black);
    color: var(--white);
}

/* Sections after .bundles need explicit backgrounds so the fixed
   page background stays covered once scrolled past. */
.signup,
.contact,
.site-footer { background: var(--black); }

/* ============ SIGNUP ============ */
.signup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.signup-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(3rem, 8vw, 6rem) 2rem;
    text-decoration: none;
    border-top: 2px solid var(--white);
    transition: background 150ms ease, color 150ms ease;
}

.signup-block + .signup-block { border-left: 2px solid var(--white); }

.signup-block:hover,
.signup-block:focus-visible {
    background: var(--white);
    color: var(--black);
}

.signup-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    text-align: center;
}

.signup-sub { font-size: 0.95rem; opacity: 0.8; }

/* ============ KONTAKT ============ */
.contact {
    padding: clamp(3rem, 8vw, 6rem) 4vw;
    border-top: 2px solid var(--white);
    text-align: center;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-label {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    opacity: 0.65;
}

.contact-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.contact-mail {
    text-decoration: none;
    border-bottom: 2px solid var(--white);
    align-self: center;
    transition: color 120ms ease, border-color 120ms ease;
}

.contact-mail:hover,
.contact-mail:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

/* ============ PRESSE ============ */
.press-intro { margin-bottom: 2.5rem; }

.press-group { margin-bottom: 3rem; }

.press-list {
    list-style: none;
    margin: 0 0 1.25rem;
}

.press-list li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(29, 29, 27, 0.25);
}

.press-list a {
    text-decoration: none;
    flex: 1;
}

.press-list a:hover { text-decoration: underline; }

.press-list a::after { content: ' ↓'; }

.press-zip {
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--black);
    padding: 0.4em 1em;
    transition: background 120ms ease, color 120ms ease;
}

.press-zip:hover,
.press-zip:focus-visible {
    background: var(--black);
    color: var(--white);
}

/* ============ FOOTER ============ */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: clamp(2.5rem, 6vw, 4rem) 4vw;
    text-align: center;
}

.footer-legal,
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
}

.footer-legal a,
.footer-socials a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.footer-legal a:hover,
.footer-socials a:hover { text-decoration: underline; }

.footer-logo { width: clamp(110px, 14vw, 170px); height: auto; opacity: 0.9; }

.footer-copy { font-size: 0.8rem; opacity: 0.65; }

/* ============ SUBPAGES (Impressum, Datenschutz, Presse) ============ */
body.template-default,
body.template-presse { background: var(--white); color: var(--black); }

.sub-header {
    padding: 2rem 4vw 0;
}

.sub-header img { width: clamp(140px, 18vw, 210px); height: auto; }

.sub-content {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem) 4vw;
}

.sub-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.sub-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    text-transform: uppercase;
    margin: 2rem 0 0.5rem;
}

.sub-content p { margin-bottom: 1rem; }

.site-footer--light { color: var(--black); background: var(--white); }

.error-page { text-align: center; padding-top: 20vh; }
.error-page h1 { font-size: 6rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
    /* Hero fills the whole start screen; next section only shows on scroll */
    .hero { height: 100svh; }
    .hero-img--landscape { display: none; }
    .hero-img--portrait { display: block; object-position: center; }

    /* Logo pinned to the top edge, always visible, compact */
    .site-logo img { width: clamp(110px, 30vw, 150px); }
    body.past-hero .site-logo img { width: clamp(64px, 17vw, 84px); }

    .hero-menu a { font-size: clamp(1.4rem, 7vw, 2.2rem); }

    .tour-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "date tickets"
            "city tickets"
            "venue venue";
    }
    .tour-row time { grid-area: date; }
    .tour-city { grid-area: city; }
    .tour-venue { grid-area: venue; }
    .tour-tickets { grid-area: tickets; align-self: center; }

    .signup-block + .signup-block { border-left: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-menu a,
    .bundle-card,
    .signup-block,
    .tour-tickets { transition: none; }
}
