:root {
    --bg: #0b0b10;
    --bg-alt: #111118;
    --card: #161622;
    --text: #e8e8f0;
    --muted: #b9bbcf;
    --accent: #ff6a00; /* pumpa-orange */
    --accent-2: #7c3aed; /* mystisk lila � anv�nds som bakgrund */
    --accent-2-text: #a78bfa; /* ljusare lila f�r text mot m�rk bakgrund (WCAG AA) */
    --accent-3: #00ffa3; /* sp�kgr�n gl�d */
    --border: #28283a;
    --shadow: 0 10px 30px rgba(0,0,0,.5);
    --radius: 14px;
    --radius-sm: 10px;
    --space: clamp(18px, 2vw, 28px);
    --maxw: 1100px;
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: radial-gradient(1200px 600px at 80% -10%, rgba(255,106,0,.15), transparent 60%), radial-gradient(900px 500px at 10% 0%, rgba(124,58,237,.18), transparent 55%), var(--bg);
    background-attachment: fixed;
    line-height: 1.6;
}

/* Alerts (dark theme overrides for Bootstrap) */
.alert {
    border-radius: var(--radius-sm);
    color: var(--text);
}

.alert-warning {
    --bs-alert-color: #ffc94d;
    --bs-alert-bg: rgba(255, 106, 0, .12);
    --bs-alert-border-color: rgba(255, 106, 0, .35);
}

/* Bootstrap's default alert-* backgrounds are light "subtle" tints meant for
   a light page, which are unreadable combined with the .alert text-color
   override above. Give every variant a dark overlay tint instead, same
   treatment as .alert-warning. */
.alert-info {
    --bs-alert-color: #9be7ff;
    --bs-alert-bg: rgba(13, 202, 240, .12);
    --bs-alert-border-color: rgba(13, 202, 240, .35);
}

.alert-secondary {
    --bs-alert-color: var(--text);
    --bs-alert-bg: rgba(255, 255, 255, .06);
    --bs-alert-border-color: var(--border);
}

.alert-success {
    --bs-alert-color: #6ee7a8;
    --bs-alert-bg: rgba(25, 135, 84, .15);
    --bs-alert-border-color: rgba(25, 135, 84, .4);
}

.alert-danger {
    --bs-alert-color: #ff9b9b;
    --bs-alert-bg: rgba(220, 53, 69, .15);
    --bs-alert-border-color: rgba(220, 53, 69, .4);
}

.alert-primary {
    --bs-alert-color: #9ec1ff;
    --bs-alert-bg: rgba(13, 110, 253, .15);
    --bs-alert-border-color: rgba(13, 110, 253, .4);
}

.alert h5 {
    color: var(--bs-alert-color);
}

/* Bootstrap's .text-muted defaults to a dark gray meant for a light page —
   nearly invisible on this dark theme — so point it at the site's own muted
   color everywhere it's used. */
.text-muted {
    color: var(--muted) !important;
}

/* Halloween-themed login CTA alert */
.alert-halloween-login {
    --bs-alert-color: var(--accent-3);
    --bs-alert-bg: linear-gradient(135deg, rgba(124,58,237,.15), rgba(255,106,0,.1));
    --bs-alert-border-color: rgba(255,106,0,.3);
    background-image: var(--bs-alert-bg) !important;
    border-width: 1px;
    position: relative;
    overflow: hidden;
}

.alert-halloween-login::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(124,58,237,.2), transparent 70%);
    pointer-events: none;
}

.alert-halloween-login h5 {
    color: var(--accent-3);
    text-shadow: 0 0 20px rgba(0,255,163,.3);
}

/* Utilities */
.container {
    width: min(100% - 2*var(--space), var(--maxw));
    margin-inline: auto;
}

.section {
    padding: clamp(48px, 8vw, 96px) 0;
}

    .section.alt {
        background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
    }

h1, h2, h3 {
    line-height: 1.2;
    margin: 0 0 12px;
}

h1 {
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: .5px;
}

h2 {
    font-size: clamp(24px, 3.5vw, 36px);
}

h3 {
    font-size: clamp(18px, 2.5vw, 22px);
}

p {
    margin: 0 0 12px;
    color: var(--text);
}
label{
    color: var(--text);
}

.small {
    color: var(--muted);
    font-size: .92rem;
}

.note {
    color: var(--muted);
    margin-top: 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

    .skip-link:focus {
        position: fixed;
        left: 16px;
        top: 16px;
        width: auto;
        height: auto;
        padding: 8px 12px;
        background: var(--accent-2);
        color: white;
        border-radius: 8px;
        z-index: 9999;
    }

/* Header & nav */
.site-header {
    position: relative;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px var(--space);
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(11,11,16,0.9), rgba(11,11,16,0.65) 60%, transparent);
    backdrop-filter: blur(8px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .3px;
}

.brand-mark {
    filter: drop-shadow(0 6px 12px rgba(255,106,0,.35));
}

.menu {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .menu a {
        color: var(--text);
        text-decoration: none;
        padding: 10px 12px;
        border-radius: 8px;
    }

        .menu a:hover {
            background: rgba(255,255,255,.06);
        }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
}

    .nav-toggle .bar {
        display: block;
        width: 26px;
        height: 2px;
        background: var(--text);
        margin: 6px 0;
    }

/* Hero */
.hero {
    position: relative;
    min-height: 72vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    /*background: radial-gradient(800px 400px at 30% 20%, rgba(0,255,163,.10), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.4) 60%), url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;*/
    background: radial-gradient(800px 400px at 30% 20%, rgba(0,255,163,.10), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.4) 60%), url('https://picjumbo.com/wp-content/uploads/dark-halloween-background-with-glowing-halloween-pumpkins-free-image.jpeg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(1000px 600px at 70% -10%, rgba(255,106,0,.18), transparent 60%), linear-gradient(180deg, rgba(11,11,16,.2), rgba(11,11,16,.8) 70%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px var(--space);
    max-width: 900px;
}

.tagline {
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 20px);
    margin-bottom: 8px;
}

.meta {
    color: var(--muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

    .meta .dot {
        opacity: .5;
    }

.cta-row {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.bats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

    .bats span {
        position: absolute;
        width: 24px;
        height: 12px;
        background: transparent;
        border-bottom: 8px solid var(--text);
        border-radius: 50% 50% 0 0;
        opacity: .15;
        animation: fly 18s linear infinite;
    }

        .bats span:nth-child(1) {
            top: 20%;
            left: 10%;
            animation-delay: 0s;
            transform: scale(1.2);
        }

        .bats span:nth-child(2) {
            top: 35%;
            left: 70%;
            animation-delay: 3s;
            transform: scale(.9);
        }

        .bats span:nth-child(3) {
            top: 10%;
            left: 40%;
            animation-delay: 6s;
            transform: scale(1.4);
        }

@keyframes fly {
    0% {
        transform: translateX(0) translateY(0) scale(1);
    }

    50% {
        transform: translateX(60vw) translateY(-2vh) scale(1.05);
    }

    100% {
        transform: translateX(0) translateY(0) scale(1);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .2px;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    border: 1px solid transparent;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    background: linear-gradient(180deg, var(--accent), #ff4b00);
    color: #1a0b00;
    box-shadow: 0 10px 20px rgba(255,106,0,.25);
}

    .btn-primary:hover {
        filter: brightness(1.05);
    }

.btn-secondary {
    background: linear-gradient(180deg, var(--accent-2), #5b21b6);
    color: white;
    box-shadow: 0 10px 20px rgba(124,58,237,.25);
}

    .btn-secondary:hover {
        filter: brightness(1.05);
    }

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

    .btn-outline:hover {
        background: rgba(255,255,255,.06);
    }

.btn-halloween {
    background: linear-gradient(180deg, var(--accent-3), #00cc84);
    color: #0b0b10;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,255,163,.3);
}

    .btn-halloween:hover {
        background: linear-gradient(180deg, #00ffaa, var(--accent-3));
        color: #0b0b10;
        box-shadow: 0 8px 24px rgba(0,255,163,.4);
    }

/* Cards, lists, grid */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

}

/* Bootstrap 5.3's .card / .card-body force color: var(--bs-body-color), which is
   the light-theme default (#212529) since the site declares no Bootstrap dark
   theme. That makes bare text in a card (headings, <strong>, list items) almost
   invisible on the dark surface. Restore the site's own text colour. */
.card,
.card-body {
    color: var(--text);
}
    .card h3 {
        font-size: 1.4rem; /* st�rre text */
        font-weight: 700; /* fetare */
        color: var(--accent); /* pumpa-orange, byt till var(--accent-2) om du vill ha lila */
        margin-bottom: 8px; /* lite luft under */
        line-height: 1.3;
        text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* g�r texten mer l�sbar mot m�rk bakgrund */
    }
    .card.spok h3 {
        color: var(--accent); /* orange */
    }

    .card.skrack h3 {
        color: var(--accent-2-text); /* lila � ljusare variant f�r l�sbarhet */
    }

.highlights, .info-list, .checklist {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

    .highlights li, .info-list li, .checklist li {
        padding: 8px 0;
        border-bottom: 1px dashed rgba(255,255,255,.06);
    }

        .highlights li:last-child, .info-list li:last-child, .checklist li:last-child {
            border-bottom: none;
        }

.grid.two {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(16px, 3vw, 28px);
}

@media (max-width: 860px) {
    .grid.two {
        grid-template-columns: 1fr;
    }
}

/* Timeline */
.timeline {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.time-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: start;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.time {
    font-weight: 700;
    color: var(--accent-3);
}

.time-item h3 {
    margin: 0 0 6px;
}

/* Map */
.map-wrap {
    min-height: 260px;
}

.map-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
}

    .map-fallback span {
        font-size: 42px;
        display: block;
        margin-bottom: 8px;
    }

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(10px, 2vw, 16px);
}

    .gallery figure {
        margin: 0;
        grid-column: span 4;
        overflow: hidden;
    }

    .gallery img {
        width: 100%;
        height: 230px;
        object-fit: cover;
        display: block;
        border-radius: var(--radius-sm);
    }

    .gallery figcaption {
        color: var(--muted);
        font-size: .9rem;
        margin-top: 8px;
    }

@media (max-width: 900px) {
    .gallery figure {
        grid-column: span 6;
    }
}

@media (max-width: 560px) {
    .gallery figure {
        grid-column: span 12;
    }

    .gallery img {
        height: 200px;
    }
}

/* Forms */
.form input, .form select, .form textarea {
    width: 100%;
    padding: 12px;
    margin: 6px 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0f0f19;
    color: var(--text);
}

.form button[disabled] {
    opacity: .7;
    cursor: not-allowed;
}

/* Details/FAQ */
details {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 10px 0;
}

    details summary {
        cursor: pointer;
        font-weight: 700;
    }

    details[open] {
        background: rgba(255,255,255,.04);
    }

/* Footer */
.site-footer {
    padding: 24px 0 40px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0));
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

@media (max-width: 680px) {
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Leave room so the fixed .sound-toggle doesn't cover the footer links */
    .site-footer {
        padding-bottom: 84px;
    }
}

/* Mobile menu behavior */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .menu {
        position: absolute;
        top: 60px;
        right: var(--space);
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 8px;
        flex-direction: column;
        gap: 4px;
        width: min(260px, 70vw);
        display: none;
        box-shadow: var(--shadow);
    }

        .menu.open {
            display: flex;
        }
}


.person-counter {

}

    .person-counter .btn-minus {
        background: var(--accent);
        color: #fff;
        border: 1px solid var(--border);
    }

    .person-counter .btn-plus {
        background: var(--accent-2);
        color: #fff;
        border: 1px solid var(--border);
    }

        .person-counter .btn-minus:hover,
        .person-counter .btn-plus:hover {
            box-shadow: 0 0 8px var(--accent-3), 0 0 16px var(--accent-3);
            filter: brightness(1.05);
        }

        .person-counter .btn-minus:active,
        .person-counter .btn-plus:active {
            transform: scale(0.95);
            box-shadow: 0 0 12px var(--accent-3), 0 0 24px var(--accent-3);
        }
/* Background-music toggle (shared by pages that render _BackgroundSoundPartial) */
.sound-toggle {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1050;
    padding: 0.6rem 1rem;
    border: 1px solid var(--accent, #ff6a00);
    border-radius: 999px;
    background: var(--bg, #0b0b10);
    color: var(--accent, #ff6a00);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
    cursor: pointer;
}

    .sound-toggle:hover,
    .sound-toggle:focus-visible {
        background: var(--accent, #ff6a00);
        color: var(--bg, #0b0b10);
    }

/* ===== Accessibility (WCAG 2.1 AA) ===== */

/* Always-visible keyboard focus indicator on the dark theme.
   :focus-visible keeps it off mouse clicks. */
:focus-visible {
    outline: 3px solid var(--accent-3);
    outline-offset: 2px;
}

/* Bootstrap's .text-danger (#dc3545) only reaches ~4:1 on the dark surfaces
   used for form-validation messages and the error page. Lighten it to the
   same red the danger alert already uses (>7:1 on --bg / --card). */
.text-danger {
    color: #ff9b9b !important;
}

/* Bootstrap's default <code>/<kbd> pink (#d63384) is ~4:1 on the dark bg. */
code,
kbd,
samp {
    color: #f78fb3;
}

/* Placeholder text needs 4.5:1 too. */
::placeholder {
    color: #9aa1a9 !important;
    opacity: 1;
}

/* Respect reduced-motion for the site's many decorative loops
   (floating bats, flicker/pulse, pulsing titles). */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Group label for the person-counter fieldsets (Spökrundan) —
   neutralise Bootstrap Reboot's oversized floated <legend>. */
legend.form-label {
    float: none;
    width: auto;
    font-size: 1rem;
    font-weight: 600;
}
