/* Public site theme — color palette and type sampled from trafohalle.ch's structure
   (magenta / yellow / near-black), reskinning vendored Bootstrap via its CSS variable API
   rather than a Sass rebuild, so no build step is needed on the Pi. */

@import url('fonts/fonts.css');

:root {
    --brand-pink: #e5007d;
    --brand-pink-rgb: 229, 0, 125;
    --brand-pink-dark: #b8005f;
    --brand-yellow: #feea00;
    --brand-dark: #1d1c1c;
    --brand-grey: #333333;

    --bs-primary: var(--brand-pink);
    --bs-primary-rgb: var(--brand-pink-rgb);
    --bs-link-color: var(--brand-pink);
    --bs-link-color-rgb: var(--brand-pink-rgb);
    --bs-link-hover-color: var(--brand-pink-dark);
    --bs-link-hover-color-rgb: 184, 0, 95;
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--brand-grey);
}

h1, h2, h3, h4, .site-heading {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.btn-primary {
    --bs-btn-bg: var(--brand-pink);
    --bs-btn-border-color: var(--brand-pink);
    --bs-btn-hover-bg: var(--brand-pink-dark);
    --bs-btn-hover-border-color: var(--brand-pink-dark);
    --bs-btn-active-bg: var(--brand-pink-dark);
    --bs-btn-active-border-color: var(--brand-pink-dark);
    --bs-btn-focus-shadow-rgb: var(--brand-pink-rgb);
}

.btn-accent {
    --bs-btn-color: var(--brand-dark);
    --bs-btn-bg: var(--brand-yellow);
    --bs-btn-border-color: var(--brand-yellow);
    --bs-btn-hover-color: var(--brand-dark);
    --bs-btn-hover-bg: #e6d400;
    --bs-btn-hover-border-color: #e6d400;
    --bs-btn-active-color: var(--brand-dark);
    font-weight: 700;
}

.btn-outline-light:hover { color: var(--brand-dark); }

/* Störer: an LED-ticker style banner, text running continuously right to left. */
.stoerer-banner {
    background: #0a0a0a;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stoerer-banner-track {
    display: inline-block;
    padding-left: 100%;
    color: var(--brand-yellow);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-shadow: 0 0 6px rgba(254,234,0,0.55);
    animation: stoerer-marquee 18s linear infinite;
}
@keyframes stoerer-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
    .stoerer-banner-track { animation: none; padding-left: 1rem; }
}

/* Navbar */
.site-navbar {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.site-navbar .nav-link {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: var(--brand-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--brand-pink);
    border-bottom-color: var(--brand-pink);
}
.site-navbar .navbar-brand {
    color: var(--brand-dark);
}

/* Hero — abstract dark backdrop with soft "stage light" glows instead of a stock photo */
.hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    background:
        radial-gradient(circle at 15% 20%, rgba(254,234,0,0.18), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(229,0,125,0.35), transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(255,255,255,0.06), transparent 55%),
        linear-gradient(160deg, #2a2a2a 0%, var(--brand-dark) 60%, #0e0e0e 100%);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 60px);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 3rem 0 4rem; }
.hero-carousel, .hero-carousel .carousel-inner, .hero-carousel-item {
    position: absolute;
    inset: 0;
    height: 100%;
}
.hero-carousel-item {
    float: none;
    margin-right: 0;
}
.hero-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Kept light so the photo reads clearly — just enough of a bottom
       gradient to keep the hero text legible where it sits. */
    background: linear-gradient(180deg, rgba(20,20,20,.08) 0%, rgba(20,20,20,.15) 55%, rgba(20,20,20,.4) 100%);
}
.label-eyebrow {
    display: inline-block;
    background: var(--brand-pink);
    color: #fff;
    padding: 0.4rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 0.95rem;
}
.label-title {
    display: inline-block;
    background: var(--brand-yellow);
    color: var(--brand-pink);
    padding: 0.35rem 1rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
    font-size: clamp(2rem, 6vw, 3.75rem);
    margin-top: 0.4rem;
}
.hero-lead {
    color: #f2f2f2;
    max-width: 40rem;
    margin-top: 1.5rem;
    font-size: 1.05rem;
}

/* Section rhythm */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--brand-yellow); }
.section-eyebrow {
    color: var(--brand-pink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Feature icons (about section) */
.feature-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-pink);
    color: #fff;
    margin-bottom: 1rem;
}

/* Program / event list, grouped by month like the reference site */
.program-month {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-pink);
    border-bottom: 2px solid var(--brand-pink);
    padding-bottom: 0.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.program-month:first-child { margin-top: 0; }
.featured-events { margin-bottom: 2.5rem; }
.featured-event {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    background: var(--brand-dark);
    color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.featured-event-image {
    width: 100%;
    max-width: 14rem;
    height: 10rem;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.featured-event-body { flex: 1 1 16rem; }
.featured-event-eyebrow {
    display: inline-block;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.featured-event-title {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 0.25rem;
}
.featured-event-body .program-date { color: #fff; opacity: 0.85; }
.featured-event-body p { color: #e5e5e5; }
.featured-event-body .category-tag { color: #fff; border-color: #fff; }
.program-item-wrap { border-bottom: 1px solid #ddd; }
.program-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.9rem 0;
    color: inherit;
    text-decoration: none;
}
a.program-item-toggle { cursor: pointer; }
a.program-item-toggle:hover .program-title { color: var(--brand-pink); }
.program-date {
    flex: 0 0 7.5rem;
    font-weight: 700;
    color: var(--brand-dark);
}
.program-title { font-weight: 600; color: var(--brand-dark); }
.program-meta { color: #6b7280; font-size: 0.9rem; }
.program-item-caret {
    font-style: normal;
    color: var(--brand-pink);
    transition: transform 0.2s ease-in-out;
    flex: 0 0 auto;
}
a.program-item-toggle[aria-expanded="true"] .program-item-caret { transform: rotate(180deg); }
.program-detail {
    padding: 0 0 1.1rem 0;
    margin-top: -0.4rem;
}
.program-detail .program-meta + .program-meta { margin-top: 0.5rem; }
.press-tile {
    background: #fff;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    transition: box-shadow 0.15s ease-in-out;
}
.press-tile:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: inherit;
}
.press-tile:hover .fw-semibold { color: var(--brand-pink); }
.press-archive-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--brand-pink);
    text-decoration: none;
    cursor: pointer;
}
.press-archive-caret { font-style: normal; transition: transform 0.2s ease-in-out; }
.press-archive-toggle[aria-expanded="true"] .press-archive-caret { transform: rotate(180deg); }
.image-caption {
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
    margin: 0.3rem 0 0.75rem;
}
.program-detail-image {
    display: block;
    width: 100%;
    max-width: 24rem;
    max-height: 16rem;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}
.category-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-pink);
    border: 1px solid var(--brand-pink);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.status-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.status-tag.status-cancelled {
    color: #fff;
    background: #dc3545;
    border: 1px solid #dc3545;
}

/* Fixed display boxes matching the crop ratios offered in the admin upload
   tool (see Content::IMAGE_SLOTS) — object-fit keeps framing consistent even
   for photos uploaded before cropping existed. */
.team-photo { aspect-ratio: 1.6; object-fit: cover; }
.kontakt-photo { aspect-ratio: 2; object-fit: cover; max-width: 480px; width: 100%; }

/* Geschichte: an open-ended, horizontally scrollable gallery (any number of
   images) rather than a fixed grid — see geschichteImages() in helpers.php. */
.geschichte-gallery-wrap { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.geschichte-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding-bottom: 0.25rem;
}
.geschichte-gallery-item {
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
}
.geschichte-photo { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.geschichte-scroll-btn {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid var(--brand-pink);
    background: #fff;
    color: var(--brand-pink);
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.geschichte-scroll-btn:hover { background: var(--brand-pink); color: #fff; }

/* Board / team member cards */
.person-name { font-weight: 700; color: var(--brand-dark); }
.person-role { color: #6b7280; font-size: 0.88rem; }

/* Membership box */
.membership-box {
    background: var(--brand-dark);
    color: #eee;
    border-radius: 8px;
    padding: 2rem;
}
.membership-box h3 { color: #fff; }
.membership-fee { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.15); }

/* Footer */
.site-footer {
    background: var(--brand-dark);
    color: #d8d8d8;
    padding: 3rem 0 1.5rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand-yellow); }
.site-footer .footer-heading {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    color: var(--brand-yellow);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    color: #9a9a9a;
}
.footer-bottom a { color: #9a9a9a; text-decoration: underline; }

/* Image placeholders — stand in for real photography everywhere the original site
   has a photo. Rendered by imgOrPlaceholder() in src/helpers.php, which swaps this
   for an <img> automatically once a matching file exists in assets/images/. */
.img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    min-height: 200px;
    padding: 1.5rem;
    border: 2px dashed #b9b9b9;
    border-radius: 8px;
    background: repeating-linear-gradient(45deg, #f2f2f2, #f2f2f2 12px, #e7e7e7 12px, #e7e7e7 24px);
    color: #555;
}
.img-placeholder.dark {
    border-color: rgba(255,255,255,0.35);
    background: repeating-linear-gradient(45deg, #2a2a2a, #2a2a2a 12px, #222 12px, #222 24px);
    color: #cfcfcf;
}
.img-placeholder .ph-icon { font-size: 1.75rem; opacity: 0.7; }
.img-placeholder .ph-caption { font-size: 0.82rem; max-width: 26rem; line-height: 1.4; }
.img-placeholder.ph-square { min-height: 160px; }
.img-placeholder.ph-wide { min-height: 260px; }
.img-placeholder.ph-logo { min-height: 64px; padding: 0.4rem 0.75rem; border-radius: 6px; }

.hero-photo-credit {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    z-index: 1;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    max-width: 22rem;
    text-align: right;
    line-height: 1.3;
}

.sponsor-section {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 2.5rem;
    padding-top: 1.75rem;
}
.sponsor-category { padding: 1rem 0; }
.sponsor-category + .sponsor-category { border-top: 1px solid rgba(255,255,255,0.08); }
.sponsor-category-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9a9a9a;
    margin-bottom: 0.75rem;
}
.sponsor-logo-wrap { text-align: center; max-width: 8rem; }
.sponsor-logo-wrap .image-caption { color: #b7b7b7; }

/* Real-image variants, used once a matching file exists in assets/images/ */
.navbar-logo-img { height: 100px; width: auto; }
.sponsor-logo { height: 40px; width: auto; object-fit: contain; background: #fff; border-radius: 4px; padding: 4px; }

/* Click-to-enlarge lightbox (assets/lightbox.js) */
.lightbox-enabled { cursor: zoom-in; }
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}
.lightbox-overlay.show { display: flex; }
.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
