/* ==========================================================================
   Bollnäs Klätterklubb — stilmall (vanilla CSS)
   Mörkt klättertema. Färger, typsnitt och layout matchar originalsidan.
   ========================================================================== */

/* --- Self-hostade typsnitt (fungerar även offline på XAMPP) --------------- */
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-latin.woff2') format('woff2');
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('../fonts/sourcesans3-latin.woff2') format('woff2');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

/* --- Färgpalett (HSL-komponenter, används med hsl(var(--x) / alpha)) ------ */
html {
    scroll-padding-top: 3.7rem; /* plats för fixed topbar + lite extra utrymme */
}

:root {
    --background: 220 15% 10%;
    --foreground: 30 15% 92%;
    --chalk: 30 15% 92%;
    --chalk-dim: 30 10% 70%;
    --accent: 42 76% 55%;
    --accent-foreground: 220 15% 10%;
    --card: 220 12% 14%;
    --border: 220 10% 22%;
    --rock: 220 8% 16%;
    --rock-light: 220 8% 25%;
    --forest-dark: 153 45% 15%;
    --primary: 153 40% 22%;
    --secondary: 220 10% 20%;
    --destructive: 0 72% 51%;

    --font-display: 'Oswald', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --container: 80rem; /* 1280px */
}

/* --- Reset & bas --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
svg { flex-shrink: 0; }

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.accent { color: hsl(var(--accent)); }

/* --- Knappar ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
    border: none;
    border-radius: .375rem;
    padding: .5rem 1rem;
    height: 2.5rem;
    font-size: 1rem;
    transition: all .3s ease;
    white-space: nowrap;
}
.btn svg { width: 1.25rem; height: 1.25rem; }
.btn--primary {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    box-shadow: 0 10px 15px -3px hsl(var(--accent) / .2);
}
.btn--primary:hover {
    background: hsl(var(--accent) / .9);
    box-shadow: 0 10px 25px -3px hsl(var(--accent) / .4);
}
.btn--outline-chalk {
    background: transparent;
    border: 2px solid hsl(var(--chalk));
    color: hsl(var(--chalk));
}
.btn--outline-chalk:hover { background: hsl(var(--chalk) / .1); }
.btn--outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}
.btn--outline:hover { background: hsl(var(--secondary)); }
.btn--block { width: 100%; }
.btn--small { padding: .5rem .9rem; font-size: .85rem; }

/* --- Toppmeny ------------------------------------------------------------ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: background-color .5s ease, box-shadow .5s ease, backdrop-filter .5s ease;
    background: transparent;
}
.site-nav.scrolled {
    background: hsl(var(--background) / .85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}
@media (min-width: 768px) { .nav-inner { height: 5rem; } }

.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 2.5rem; width: auto; }
@media (min-width: 768px) { .brand img { height: 3rem; } }
.brand-text { display: none; }
@media (min-width: 640px) { .brand-text { display: block; } }
.brand-text .r1 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: hsl(var(--chalk));
    line-height: 1.1;
}
.brand-text .r2 {
    display: block;
    font-family: var(--font-display);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .3em;
    color: hsl(var(--accent));
}

.nav-links { display: none; align-items: center; gap: .25rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
    background: none;
    border: none;
    padding: .5rem 1rem;
    font-family: var(--font-display);
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: hsl(var(--chalk-dim));
    transition: color .2s ease;
}
.nav-link:hover { color: hsl(var(--accent)); }

/* Rullgardinsmeny i toppmenyn (Klätterväggen → slides) */
.nav-dd { position: relative; }
.nav-dd__btn { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.nav-dd__btn svg { width: .9rem; height: .9rem; transition: transform .25s ease; }
.nav-dd:hover .nav-dd__btn svg,
.nav-dd:focus-within .nav-dd__btn svg { transform: rotate(180deg); }
.nav-dd__menu {
    position: absolute;
    top: calc(100% + .5rem);
    left: 50%;
    transform: translateX(-50%) translateY(.4rem);
    min-width: 15rem;
    display: flex;
    flex-direction: column;
    padding: .4rem;
    background: hsl(var(--card) / .98);
    border: 1px solid hsl(var(--border));
    border-radius: .6rem;
    box-shadow: 0 20px 40px -12px rgb(0 0 0 / .6);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 60;
}
.nav-dd:hover .nav-dd__menu,
.nav-dd:focus-within .nav-dd__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
/* Liten "brygga" så menyn inte försvinner när muspekaren går ned till den */
.nav-dd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.nav-dd__item {
    text-align: left;
    background: none;
    border: none;
    border-radius: .4rem;
    padding: .6rem .8rem;
    font-family: var(--font-display);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: hsl(var(--chalk-dim));
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.nav-dd__item:hover { background: hsl(var(--accent) / .12); color: hsl(var(--accent)); }
.nav-link--sub {
    padding-left: 2rem !important;
    font-size: .8rem;
    opacity: .85;
}
.nav-link--sub::before { content: "› "; color: hsl(var(--accent)); }

.nav-toggle {
    display: inline-flex;
    background: none; border: none;
    padding: .5rem;
    color: hsl(var(--chalk));
    transition: color .2s ease;
}
.nav-toggle:hover { color: hsl(var(--accent)); }
.nav-toggle svg { width: 1.75rem; height: 1.75rem; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobilmeny (fälls ut) */
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem;
    background: hsl(var(--card) / .97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { text-align: left; padding: .75rem 1rem; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }

/* Språkväljare */
.lang-switcher {
    display: flex;
    gap: .5rem;
    align-items: center;
}

/* Desktop-version av språkväljare */
.lang-switcher--desktop {
    display: flex;
}
@media (max-width: 1023px) {
    .lang-switcher--desktop {
        display: none;
    }
}

/* Mobil-version av språkväljare */
.lang-switcher--mobile {
    display: none;
    flex-direction: column;
    gap: .25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}
@media (max-width: 1023px) {
    .lang-switcher--mobile {
        display: flex;
    }
}

.lang-btn {
    background: none;
    border: none;
    padding: .5rem .75rem;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s ease, color .2s ease;
    font-size: 1.5rem;
}
.lang-switcher--desktop .lang-btn {
    font-size: 1.5rem;
    padding: .5rem .75rem;
}
.lang-switcher--mobile .lang-btn {
    text-align: left;
    padding: .75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: hsl(var(--chalk-dim));
}

.lang-btn:hover {
    opacity: .8;
}
.lang-btn.is-active {
    opacity: 1;
}
.lang-switcher--mobile .lang-btn.is-active {
    color: hsl(var(--accent));
    background: hsl(var(--accent) / .1);
}

.lang-flag {
    display: inline-block;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/hero-climbing.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        hsl(var(--background) / .7),
        hsl(var(--background) / .4),
        hsl(var(--background))
    );
}
.hero-content {
    position: relative;
    z-index: 10;
    padding-inline: 1rem;
    max-width: 56rem;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -.02em;
    line-height: 1;
    color: hsl(var(--chalk));
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
.hero-title .line2 { display: block; color: hsl(var(--accent)); }
@media (min-width: 400px) { .hero-title { font-size: 2.75rem; } }
@media (min-width: 480px) { .hero-title { font-size: 3.5rem; } }
@media (min-width: 640px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 768px) { .hero-title { font-size: 6rem; } }
.hero-sub {
    font-weight: 300;
    font-size: 1.125rem;
    color: hsl(var(--chalk-dim));
    max-width: 42rem;
    margin: 0 auto 2rem;
}
@media (min-width: 768px) { .hero-sub { font-size: 1.25rem; } }
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.hero-chevron {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: hsl(var(--accent));
    animation: bob 2s ease-in-out infinite;
}
.hero-chevron svg { width: 2rem; height: 2rem; }
@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* --- Rep-avskiljare ------------------------------------------------------ */
.rope-divider { width: 100%; }
.rope-divider img { width: 100%; height: 80px; object-fit: fill; }

/* --- Sektioner (generellt) ---------------------------------------------- */
.section { padding-block: 6rem; position: relative; }
.section--rock { background: hsl(var(--rock)); }
.section--rock.stripes { overflow: hidden; }
.section--rock.stripes::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .05;
    background-image: repeating-linear-gradient(
        45deg,
        transparent, transparent 10px,
        hsl(var(--chalk)) 10px, hsl(var(--chalk)) 11px
    );
}
.section > .container { position: relative; z-index: 1; }

.section-head { text-align: center; margin-bottom: 4rem; }
.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -.01em;
    color: hsl(var(--chalk));
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-title { font-size: 3.75rem; } }
.section-ingress {
    color: hsl(var(--chalk-dim));
    font-size: 1.125rem;
    max-width: 42rem;
    margin-inline: auto;
}
.section-ingress a { color: hsl(var(--accent)); }
.section-ingress a:hover { text-decoration: underline; }

/* --- Klätterväggen (bildspel) ------------------------------------------- */
.vaggen-carousel { position: relative; }
.vaggen-viewport { overflow: hidden; }
.vaggen-track {
    display: flex;
    will-change: transform;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.vaggen-slide {
    flex: 0 0 100%;
    min-width: 100%;
    opacity: .35;
    transform: scale(.98);
    transition: opacity .5s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
}
.vaggen-slide.is-active { opacity: 1; transform: none; }

.vaggen-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .vaggen-grid { grid-template-columns: 5fr 7fr; }
}

/* Bilder – stor + mindre överlappande, med elegant platshållare vid saknad fil */
.vaggen-images { position: relative; padding: 0 .25rem; }
.vaggen-photo {
    position: relative;
    margin: 0;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5);
}
.vaggen-photo--main { width: 100%; height: 20rem; }
.vaggen-photo--sub {
    width: 75%;
    height: 12rem;
    margin: -3rem 1rem 0 auto;
    z-index: 2;
    border: 2px solid hsl(var(--border));
}
.vaggen-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}
.vaggen-slide.is-active .vaggen-photo:hover img { transform: scale(1.05); }
.vaggen-photo__ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-align: center;
    padding: 1rem;
    color: hsl(var(--chalk-dim));
    background:
        radial-gradient(120% 120% at 50% 0%, hsl(var(--primary) / .25), transparent 60%),
        linear-gradient(135deg, hsl(var(--rock)), hsl(var(--card)));
}
.vaggen-photo__ph svg { width: 2.5rem; height: 2.5rem; color: hsl(var(--accent) / .55); }
.vaggen-photo__ph span { font-family: var(--font-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
/* När bilden saknas: göm <img> så platshållaren syns */
.vaggen-photo.is-missing img { display: none; }

.vaggen-cards { display: flex; flex-direction: column; gap: 1.5rem; }

/* Panel för de textbaserade slidesen (Repväggen, Boulderloftet, Mobila) */
.vaggen-panel {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    padding: 2rem;
    transition: border-color .3s ease;
}
.vaggen-panel:hover { border-color: hsl(var(--accent) / .3); }
.vaggen-panel__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: hsl(var(--chalk));
    margin: 0 0 .75rem;
}
.vaggen-panel__text { color: hsl(var(--chalk-dim)); line-height: 1.7; margin: 0 0 1.25rem; }
.vaggen-panel a { color: hsl(var(--accent)); }
.vaggen-panel a:hover { text-decoration: underline; }
.vaggen-panel .feature-list { margin: 0; }

/* Pilar */
.vaggen-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card) / .8);
    color: hsl(var(--chalk));
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.vaggen-arrow:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border-color: hsl(var(--accent)); }
.vaggen-arrow:active { transform: translateY(-50%) scale(.94); }
.vaggen-arrow svg { width: 1.4rem; height: 1.4rem; }
.vaggen-arrow--prev { left: -.5rem; }
.vaggen-arrow--next { right: -.5rem; }
@media (max-width: 767px) { .vaggen-arrow { display: none; } }

/* Prickar / flikar */
.vaggen-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 2.5rem;
}
.vaggen-dot {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--chalk-dim));
    transition: color .25s ease;
}
.vaggen-dot::before {
    content: "";
    width: .6rem;
    height: .6rem;
    border-radius: 999px;
    background: hsl(var(--chalk-dim) / .4);
    transition: background-color .3s ease, box-shadow .3s ease, width .3s ease;
}
.vaggen-dot span {
    font-family: var(--font-display);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width .4s ease, opacity .3s ease;
}
.vaggen-dot:hover { color: hsl(var(--accent)); }
.vaggen-dot.is-active { color: hsl(var(--accent)); }
.vaggen-dot.is-active::before {
    width: 1.6rem;
    background: hsl(var(--accent));
    box-shadow: 0 0 0 4px hsl(var(--accent) / .15);
}
.vaggen-dot.is-active span { max-width: 14rem; opacity: 1; }
.info-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    padding: 1.5rem;
    transition: border-color .3s ease;
}
.info-card:hover { border-color: hsl(var(--accent) / .3); }
.info-card .row { display: flex; align-items: flex-start; gap: 1rem; }
.icon-box {
    padding: .75rem;
    border-radius: .375rem;
    background: hsl(var(--primary) / .2);
    color: hsl(var(--accent));
    transition: background-color .3s ease;
    display: inline-flex;
}
.info-card:hover .icon-box { background: hsl(var(--accent) / .2); }
.icon-box svg { width: 1.5rem; height: 1.5rem; }
.card-h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .025em;
    color: hsl(var(--chalk));
    margin-bottom: .5rem;
}
.card-text { color: hsl(var(--chalk-dim)); line-height: 1.7; }

/* --- Kurser -------------------------------------------------------------- */
.course-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr; /* alltid två i bredd (även mobil) */
    max-width: 56rem;
    margin-inline: auto;
}
.course-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color .3s ease;
}
.course-card:hover { border-color: hsl(var(--accent) / .3); }
.course-card--featured { border-color: hsl(var(--accent) / .3); }
.course-badge {
    position: absolute;
    top: 0; right: 0;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    font-family: var(--font-display);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .25rem 1rem;
    border-bottom-left-radius: .5rem;
}
.icon-badge {
    padding: .75rem;
    border-radius: .375rem;
    background: hsl(var(--accent) / .1);
    color: hsl(var(--accent));
    width: fit-content;
    margin-bottom: 1.5rem;
    display: inline-flex;
    transition: background-color .3s ease;
}
.course-card:hover .icon-badge { background: hsl(var(--accent) / .2); }
.icon-badge svg { width: 1.75rem; height: 1.75rem; }
.course-h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .025em;
    color: hsl(var(--chalk));
    margin-bottom: .75rem;
}
.course-text { color: hsl(var(--chalk-dim)); margin-bottom: 1rem; line-height: 1.7; }
.feature-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: hsl(var(--chalk-dim));
}
.feature-list svg { width: 1rem; height: 1rem; color: hsl(var(--accent)); }

/* --- Medlemskap ---------------------------------------------------------- */
.price-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr); /* alltid tre i bredd (även mobil) */
    max-width: 64rem;
    margin-inline: auto;
}
.price-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    padding: 2rem;
    transition: border-color .3s ease;
}
.price-card:hover { border-color: hsl(var(--accent) / .2); }
.price-card--featured {
    border-color: hsl(var(--accent) / .4);
    box-shadow: 0 10px 15px -3px hsl(var(--accent) / .1);
}
@media (min-width: 768px) {
    .price-card--featured { transform: scale(1.05); }
}
.price-icon {
    padding: .75rem;
    border-radius: .375rem;
    background: hsl(var(--primary) / .2);
    color: hsl(var(--accent));
    width: fit-content;
    margin-bottom: 1rem;
    display: inline-flex;
}
.price-icon svg { width: 1.5rem; height: 1.5rem; }
.price-h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .025em;
    color: hsl(var(--chalk));
}
.price-age { font-size: .875rem; color: hsl(var(--chalk-dim)); margin-bottom: 1rem; }
.price-amount { margin-block: 1.5rem; }
.price-amount .num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: hsl(var(--accent));
}
.price-amount .unit { color: hsl(var(--chalk-dim)); margin-left: .25rem; }
.price-features { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.price-features li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .875rem;
    color: hsl(var(--chalk-dim));
}
.price-features svg { width: .875rem; height: .875rem; color: hsl(var(--accent)); margin-top: .15rem; }
/* Utfällbar ruta "Läs mer om att bli medlem" */
.member-why {
    max-width: 64rem;
    margin: 3rem auto 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    transition: border-color .3s ease;
}
.member-why:hover,
.member-why[open] { border-color: hsl(var(--accent) / .3); }
.member-why__toggle {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: hsl(var(--accent));
    user-select: none;
}
.member-why__toggle::-webkit-details-marker { display: none; }
.member-why__toggle svg {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform .3s ease;
}
.member-why[open] .member-why__toggle svg { transform: rotate(90deg); }
.member-why__toggle:focus-visible {
    outline: 2px solid hsl(var(--accent));
    outline-offset: 2px;
    border-radius: .5rem;
}
.member-why__body {
    padding: .5rem 1.5rem 2rem;
    border-top: 1px solid hsl(var(--border));
    animation: member-why-in .35s ease;
}
.member-why__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .025em;
    color: hsl(var(--chalk));
    text-align: center;
    margin: 1.25rem 0 1.5rem;
}
.member-why__list {
    display: grid;
    gap: .75rem 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .member-why__list { grid-template-columns: repeat(2, 1fr); }
}
.member-why__list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .9375rem;
    color: hsl(var(--chalk-dim));
}
.member-why__list svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: hsl(var(--accent));
    margin-top: .2rem;
}
.member-why__link {
    color: hsl(var(--chalk));
    text-decoration: underline;
    text-decoration-color: hsl(var(--accent) / .5);
    text-underline-offset: 3px;
    transition: color .2s ease, text-decoration-color .2s ease;
}
.member-why__link:hover,
.member-why__link:focus-visible {
    color: hsl(var(--accent));
    text-decoration-color: hsl(var(--accent));
}
.member-why__list .member-why__link svg {
    display: inline-block;
    width: .8rem;
    height: .8rem;
    margin: 0 0 0 .3rem;
    vertical-align: -.05em;
}
@keyframes member-why-in {
    from { opacity: 0; transform: translateY(-.5rem); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .member-why__body { animation: none; }
}

.member-extra {
    margin-top: 3rem;
    text-align: center;
    color: hsl(var(--chalk-dim));
    font-size: .875rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.member-extra .highlight {
    color: hsl(var(--accent));
    font-weight: 500;
}

/* --- Tider & Kalender ---------------------------------------------------- */
.schedule-carousel {
    --sgap: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    width: 100%;
}
/* Fönstret klipper så bara 3 kort syns; spåret glider i sidled */
.schedule-viewport {
    flex-basis: 100%;
    min-width: 0;
    overflow: hidden;
}
.schedule-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--sgap);
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}
/* Med 3 kort eller färre: fyll raden jämnt */
.schedule-grid > .schedule-card { flex: 1 1 0; min-width: 0; }
/* Fler än 3 kort: exakt 3 synliga i taget, resten scrollas fram */
.schedule-carousel.is-carousel .schedule-grid > .schedule-card {
    flex: 0 0 calc((100% - 2 * var(--sgap)) / 3);
}
/* Diskreta pilknappar under kortsen, bredvid varandra */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: transparent;
    color: hsl(var(--accent) / .5);
    border: none;
    border-radius: .35rem;
    cursor: pointer;
    transition: color .3s ease, background-color .3s ease, opacity .3s ease;
    padding: 0;
    opacity: .6;
    flex: 0 0 auto;
}
.carousel-nav:hover {
    color: hsl(var(--accent));
    background: hsl(var(--accent) / .1);
    opacity: 1;
}
.carousel-nav:active { transform: scale(0.95); }
.carousel-nav svg { width: 1rem; height: 1rem; }
.carousel-nav:disabled { opacity: .2; cursor: default; }
.carousel-nav:disabled:hover {
    color: hsl(var(--accent) / .5);
    background: transparent;
    opacity: .2;
}
.schedule-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    padding: 1.5rem;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.schedule-card.current-week {
    border: 2px solid hsl(var(--accent));
    box-shadow: 0 0 0 2px hsl(var(--card)), 0 0 12px hsl(var(--accent) / .4);
}
.schedule-card .head { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.schedule-card .head svg { width: 1rem; height: 1rem; color: hsl(var(--accent)); }
.schedule-card .head h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: .025em;
    color: hsl(var(--chalk));
}
.schedule-card .period { font-size: .875rem; color: hsl(var(--chalk-dim)); margin-bottom: 1rem; }
.day-row {
    display: flex;
    justify-content: space-between;
    font-size: .875rem;
    border-bottom: 1px solid hsl(var(--border) / .5);
    padding-bottom: .25rem;
    margin-bottom: .5rem;
}
.day-row .day { color: hsl(var(--chalk-dim)); }
.day-row .time { color: hsl(var(--accent)); font-weight: 500; }
.day-row .closed { color: hsl(var(--destructive)); }

/* --- Sidfot -------------------------------------------------------------- */
.site-footer {
    padding-block: 4rem;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--forest-dark));
}
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: hsl(var(--chalk));
    margin-bottom: .5rem;
}
.footer-text { color: hsl(var(--chalk-dim)); font-size: .875rem; line-height: 1.7; }
.footer-h4 {
    font-family: var(--font-display);
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: hsl(var(--accent));
    margin-bottom: 1rem;
}
.footer-contact { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact a {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: hsl(var(--chalk-dim));
    font-size: .875rem;
    transition: color .2s ease;
}
.footer-contact a:hover { color: hsl(var(--accent)); }
.footer-contact svg { width: 1rem; height: 1rem; }
.social { display: flex; gap: 1rem; }
.social a {
    padding: .75rem;
    border-radius: .5rem;
    background: hsl(var(--secondary));
    color: hsl(var(--chalk-dim));
    display: inline-flex;
    transition: all .2s ease;
}
.social a:hover { color: hsl(var(--accent)); background: hsl(var(--secondary) / .8); }
.social svg { width: 1.25rem; height: 1.25rem; }
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    font-size: .875rem;
    color: hsl(var(--chalk-dim));
}
.footer-bottom .admin-link { color: hsl(var(--chalk-dim) / .6); margin-left: .5rem; }
.footer-bottom .admin-link:hover { color: hsl(var(--accent)); }

/* --- Flytande knappar ---------------------------------------------------- */
.calendar-tab {
    position: fixed;
    left: 0;
    top: 30%;
    z-index: 40;
    background: hsl(var(--card) / .9);
    backdrop-filter: blur(4px);
    border-top-right-radius: .5rem;
    border-bottom-right-radius: .5rem;
    padding: .75rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / .4);
    border: none;
    display: flex;
    align-items: center;
    gap: .25rem;
    transition: background-color .2s ease;
}
@keyframes pulse-tab {
    0%, 100% {
        transform: translateX(0) scale(1);
        background: hsl(var(--card) / .9);
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / .4);
    }
    50% {
        transform: translateX(8px) scale(1.12);
        background: hsl(var(--accent) / .25);
        box-shadow: 0 25px 50px -5px hsl(var(--accent) / .5);
    }
}
.calendar-tab.pulse { animation: pulse-tab 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2; }
.calendar-tab:hover { background: hsl(var(--accent) / .2); }
.calendar-tab svg { width: 1.125rem; height: 1.125rem; color: hsl(var(--accent)); }
.calendar-tab .chev { width: .875rem; height: .875rem; color: hsl(var(--chalk-dim)); }

/* Håller "Kolla även" och schemalänken på samma rad */
.ingress-nowrap { white-space: nowrap; }

/* Textlänk som öppnar eventkalendern (används i ingressen under "Tider & Kalender") */
.ingress-link-btn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: hsl(var(--accent));
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.ingress-link-btn:hover,
.ingress-link-btn:focus-visible { color: hsl(var(--chalk)); }
.ingress-link-btn:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 2px; border-radius: 2px; }

/* Kalender-panel som glider in från vänster (visar befintlig eventkalender) */
.calendar-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgb(0 0 0 / .5);
    opacity: 0;
    transition: opacity .3s ease;
}
.calendar-overlay.show { opacity: 1; }
.calendar-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 61;
    width: 360px;
    max-width: 88vw;
    height: 100%;
    background: hsl(var(--card));
    border-right: 1px solid hsl(var(--border));
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / .6);
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.16, 1, .32, 1);
    display: flex;
    flex-direction: column;
}
.calendar-panel.open { transform: translateX(0); }
.calendar-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
}
.calendar-panel__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: hsl(var(--chalk));
}
.calendar-panel__title svg { width: 1.125rem; height: 1.125rem; color: hsl(var(--accent)); }
.calendar-panel__close {
    background: none;
    border: none;
    color: hsl(var(--chalk-dim));
    font-size: 1.75rem;
    line-height: 1;
    padding: 0 .25rem;
    transition: color .2s ease;
}
.calendar-panel__close:hover { color: hsl(var(--accent)); }
/* Ram-området runt kalendern — svart bakgrund (som på originalet) */
.calendar-panel__body {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: .5rem;
    background: #000;
}
.calendar-frame-wrap {
    height: 100%;
    border-radius: .5rem;
    overflow: hidden;
}
/* Kalendern i sidebaren — förminskad (nedskalad) och anpassad till panelbredden */
.calendar-frame {
    border: 0;
    transform-origin: top left;
    transform: scale(0.65);
    width: 540px;
    height: 220%;
    background: transparent;
}
/* Mobil: fullbredd panel + något mindre skala så hela kalendern ryms
   utan att klippas i högerkanten (samma iframe-bredd, bara mindre skala). */
@media (max-width: 650px) {
    .calendar-panel {
        width: 100vw;
        max-width: 100vw;
    }
    .calendar-frame {
        transform: scale(0.62);
    }
}

/* Kalendern i "Tider & Kalender"-sektionen — full storlek, centrerad */
.tider-calendar {
    text-align: center;
}
.calendar-embed-wrap {
    display: inline-block;
    width: 100%;
    max-width: 600px;
}
.calendar-embed {
    display: block;
    width: 100%;
    min-height: 520px;
    border: none;
    background: transparent;
}

.chat-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    padding: 1rem;
    border-radius: 9999px;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border: none;
    box-shadow: 0 10px 15px -3px hsl(var(--accent) / .3);
    transition: box-shadow .3s ease, transform .2s ease;
}
.chat-btn:hover { box-shadow: 0 10px 25px -3px hsl(var(--accent) / .5); transform: translateY(-2px); }
.chat-btn svg { width: 1.5rem; height: 1.5rem; }

/* --- Scroll-in-animationer (återskapar originalets entré-effekter) ------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
}
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    .hero-chevron { animation: none; }
}

/* ==========================================================================
   Mobilanpassningar
   ========================================================================== */
@media (max-width: 767px) {
    /* Fast bakgrund är ryckig på mobil – låt den scrolla mjukt istället */
    .hero-bg { background-attachment: scroll; }

    /* Lite tightare sektioner på liten skärm */
    .section { padding-block: 4rem; }
    .section-head { margin-bottom: 2.5rem; }

    /* Överlappande väggbilder: håll ihop dem snyggt */
    .vaggen-photo--main { height: 15rem; }
    .vaggen-photo--sub { height: 10rem; }
    .vaggen-panel { padding: 1.5rem; }
    .vaggen-panel__title { font-size: 1.35rem; }

    /* Flytande knappar lite mindre så de inte skymmer innehållet */
    .chat-btn { bottom: 1rem; right: 1rem; padding: .85rem; }
    .calendar-tab { padding: .6rem; }

    /* Rep-avskiljaren blir smäckrare på mobil */
    .rope-divider img { height: 48px; }

    /* --- Korten sida vid sida även på mobil (kompakta "mini-cards") --- */
    .course-grid, .price-grid, .schedule-grid { gap: .6rem; }
    .course-card, .price-card, .schedule-card { padding: .8rem; }

    /* Kurser (2 kort i bredd) */
    .icon-badge { padding: .5rem; margin-bottom: .7rem; }
    .icon-badge svg { width: 1.3rem; height: 1.3rem; }
    .course-h3 { font-size: 1rem; margin-bottom: .4rem; }
    .course-text { font-size: .78rem; margin-bottom: .6rem; }
    .feature-list { gap: .35rem; margin-bottom: .8rem; }
    .feature-list li { font-size: .74rem; align-items: flex-start; }
    .feature-list svg { width: .85rem; height: .85rem; margin-top: .15rem; }
    .course-badge { font-size: .62rem; padding: .2rem .5rem; }

    /* Medlemskap (3 kort i bredd) */
    .price-icon { padding: .45rem; margin-bottom: .55rem; }
    .price-icon svg { width: 1.15rem; height: 1.15rem; }
    .price-h3 { font-size: .82rem; }
    .price-age { font-size: .66rem; margin-bottom: .4rem; }
    .price-amount { margin-block: .7rem; }
    .price-amount .num { font-size: 1.5rem; }
    .price-amount .unit { font-size: .68rem; }
    .price-features { gap: .4rem; margin-bottom: .9rem; }
    .price-features li { font-size: .66rem; gap: .3rem; }
    .price-features svg { width: .72rem; height: .72rem; }

    /* Tider (3 kort i bredd, carousel på mobil) */
    .schedule-carousel { gap: .5rem; --sgap: .6rem; }
    .carousel-nav { width: 1.5rem; height: 1.5rem; }
    .carousel-nav svg { width: .85rem; height: .85rem; }
    .schedule-card .head { gap: .3rem; }
    .schedule-card .head svg { width: .85rem; height: .85rem; }
    .schedule-card .head h3 { font-size: .78rem; }
    .schedule-card .period { font-size: .64rem; margin-bottom: .55rem; }
    .day-row { font-size: .64rem; margin-bottom: .3rem; padding-bottom: .2rem; }

    /* Knappar i korten – mindre så de får plats */
    .course-card .btn, .price-card .btn {
        font-size: .66rem;
        height: auto;
        padding: .5rem .35rem;
        letter-spacing: .01em;
        white-space: normal;
    }
}

/* Riktigt små telefoner */
@media (max-width: 380px) {
    .container { padding-inline: .7rem; }
    .section-title { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }

    /* Ännu kompaktare kort */
    .course-card, .price-card, .schedule-card { padding: .55rem; }
    .price-h3 { font-size: .72rem; }
    .price-amount .num { font-size: 1.25rem; }
    .price-features li, .day-row, .schedule-card .period { font-size: .6rem; }
    .course-text { font-size: .72rem; }
    .feature-list li { font-size: .68rem; }
}

/* --- Prova på: anmälningsruta (modal) ----------------------------------- */
.provapa-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: hsl(220 15% 4% / .72);
    backdrop-filter: blur(3px);
    animation: provapa-fade .2s ease;
}
.provapa-overlay:not([hidden]) { display: flex; }
@keyframes provapa-fade { from { opacity: 0; } to { opacity: 1; } }
.provapa-box {
    position: relative;
    width: 100%;
    max-width: 32rem;
    max-height: 85vh;
    overflow-y: auto;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: .75rem;
    padding: 1.75rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / .6);
    animation: provapa-pop .22s ease;
}
@keyframes provapa-pop { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- Bli medlem: flerstegs-registrerings-overlay (wizard) --------------- */
.reg-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: hsl(220 15% 4% / .72);
    backdrop-filter: blur(3px);
    animation: provapa-fade .2s ease;
}
.reg-overlay:not([hidden]) { display: flex; }
.reg-overlay__box {
    position: relative;
    width: 100%;
    max-width: 34rem;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: .85rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / .6);
    animation: provapa-pop .22s ease;
}
.reg-overlay__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    background: hsl(var(--rock) / .85);
    border: 1px solid hsl(var(--border));
    color: hsl(var(--chalk-dim));
    border-radius: .375rem;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.reg-overlay__close:hover { background: hsl(var(--rock)); color: hsl(var(--accent)); }
.reg-overlay__close svg { width: 1.25rem; height: 1.25rem; }
body.reg-open { overflow: hidden; }

/* Stegindikator */
.reg-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.1rem 3rem .9rem;
    border-bottom: 1px solid hsl(var(--border));
    flex: 0 0 auto;
}
.reg-progress__dot {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background: hsl(var(--border));
    transition: background-color .3s ease, transform .3s ease;
}
.reg-progress__dot.is-active { background: hsl(var(--accent)); transform: scale(1.25); }
.reg-progress__dot.is-done { background: hsl(var(--accent) / .55); }
.reg-progress__bar { width: 1.75rem; height: 2px; background: hsl(var(--border)); }

/* Formulär + glidande steg */
.reg-wizard { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.reg-viewport {
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    height: 30rem;
    transition: height .38s cubic-bezier(.33, 1, .68, 1);
}
.reg-steps {
    display: flex;
    align-items: flex-start;
    height: 100%;
    transition: transform .38s cubic-bezier(.33, 1, .68, 1);
}
.reg-step {
    flex: 0 0 100%;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 1.5rem 1.6rem 1.75rem;
    box-sizing: border-box;
}
.reg-step__titel { margin: 0 0 .35rem; font-size: 1.3rem; color: hsl(var(--chalk)); }
.reg-step__ingress { margin: 0 0 1.1rem; color: hsl(var(--chalk-dim)); font-size: .92rem; line-height: 1.5; }
.reg-prisrad { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.reg-prisrad span {
    background: hsl(var(--rock));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--chalk-dim));
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .78rem;
}

/* Fält */
.reg-field {
    display: block;
    margin-bottom: 1rem;
    font-size: .85rem;
    font-weight: 600;
    color: hsl(var(--chalk));
}
.reg-field input {
    display: block;
    width: 100%;
    margin-top: .4rem;
    padding: .7rem .85rem;
    background: hsl(var(--rock));
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    color: hsl(var(--chalk));
    font-size: .95rem;
    font-weight: 400;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.reg-field input::placeholder { color: hsl(var(--chalk-dim) / .7); }
.reg-field input:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 3px hsl(var(--accent) / .18);
}
.reg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.reg-check {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .9rem;
    color: hsl(var(--chalk));
    cursor: pointer;
    margin: .25rem 0 .5rem;
}
.reg-check input { margin-top: .15rem; accent-color: hsl(var(--accent)); width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.reg-check--bekrafta {
    background: hsl(var(--rock));
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    padding: .85rem;
    line-height: 1.45;
    margin: 1rem 0;
}
.reg-hint { color: hsl(var(--chalk-dim)); font-size: .8rem; line-height: 1.5; margin: 0 0 1rem; }
.reg-hr { border: none; border-top: 1px solid hsl(var(--border)); margin: 1.1rem 0; }
.reg-fel { display: block; color: #ff8f8a; font-size: .78rem; margin-top: .3rem; min-height: 0; }
.reg-fel:empty { display: none; }
.reg-fel--global {
    background: hsl(0 60% 55% / .12);
    border: 1px solid hsl(0 60% 55% / .4);
    color: #ffb4b1;
    border-radius: .5rem;
    padding: .7rem .85rem;
    margin-bottom: 1rem;
    font-size: .85rem;
}

/* Val av betalsätt (steg 2) */
.reg-paymethod {
    display: flex;
    align-items: center;
    gap: .9rem;
    width: 100%;
    text-align: left;
    background: hsl(var(--rock));
    border: 1px solid hsl(var(--border));
    border-radius: .6rem;
    padding: 1rem;
    margin-bottom: .85rem;
    color: hsl(var(--chalk));
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}
.reg-paymethod:hover { border-color: hsl(var(--accent)); transform: translateY(-1px); }
.reg-paymethod__ikon {
    display: flex; flex: 0 0 auto;
    width: 2.6rem; height: 2.6rem;
    align-items: center; justify-content: center;
    background: hsl(var(--accent) / .14);
    color: hsl(var(--accent));
    border-radius: .5rem;
}
.reg-paymethod__ikon svg { width: 1.35rem; height: 1.35rem; }
.reg-paymethod__txt { display: flex; flex-direction: column; flex: 1 1 auto; }
.reg-paymethod__txt strong { font-size: .98rem; }
.reg-paymethod__txt small { color: hsl(var(--chalk-dim)); font-size: .8rem; margin-top: .1rem; }
.reg-paymethod__chev { color: hsl(var(--chalk-dim)); display: flex; flex: 0 0 auto; }
.reg-paymethod__chev svg { width: 1.2rem; height: 1.2rem; }

/* Bankgiro/Swish — expanderbara flikar (steg 3), likt registrera.php */
.reg-betaltabs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}
.reg-betaltab {
    flex: 1 1 calc(50% - .3rem);
    border: 1.5px solid hsl(var(--border));
    border-radius: .6rem;
    background: hsl(var(--rock));
    overflow: hidden;
    transition: border-color .2s ease, background-color .3s ease;
}
.reg-betaltab:hover { border-color: hsl(var(--accent) / .6); }
.reg-betaltab.is-active {
    flex: 1 1 100%;
    order: -1;
    border-color: hsl(var(--accent));
    background: hsl(var(--accent) / .08);
}
.reg-betaltab__titel {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    background: none;
    border: none;
    color: hsl(var(--chalk));
    font-weight: 700;
    font-size: .98rem;
    padding: .9rem 1rem;
    cursor: pointer;
    text-align: left;
}
.reg-betaltab__chev { margin-left: auto; display: flex; color: hsl(var(--chalk-dim)); transition: transform .35s cubic-bezier(.33, 1, .68, 1), color .2s ease; }
.reg-betaltab__chev svg { width: 1.15rem; height: 1.15rem; }
.reg-betaltab.is-active .reg-betaltab__chev { transform: rotate(90deg); color: hsl(var(--accent)); }
.reg-betaltab__innehall { display: none; flex-direction: column; gap: .7rem; padding: 0 1rem 1rem; }
.reg-betaltab.is-active .reg-betaltab__innehall { display: flex; }
.reg-betaldetalj {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    padding: .7rem .85rem;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 1.05rem;
    color: hsl(var(--chalk));
    word-break: break-word;
}
.reg-betaldetalj--center { text-align: center; font-size: 1.15rem; }
.reg-betalinstruktion {
    background: hsl(var(--accent) / .1);
    border: 1px solid hsl(var(--accent) / .3);
    border-radius: .5rem;
    padding: .75rem .85rem;
    color: hsl(var(--chalk-dim));
    font-size: .82rem;
    line-height: 1.55;
}
.reg-swishqr { display: block; max-width: 150px; margin: .25rem auto 0; border-radius: .5rem; background: #fff; padding: .4rem; }
.reg-swishknapp { margin-top: .2rem; }
.reg-hint--center { text-align: center; margin: 0; }

/* Knapprader */
.reg-actions { margin-top: 1.25rem; }
.reg-actions--two { display: flex; gap: .75rem; }
.reg-actions--two .btn { flex: 1 1 auto; }
.reg-actions .btn svg { width: 1.1rem; height: 1.1rem; }

@media (max-width: 520px) {
    .reg-overlay { padding: 0; background: hsl(220 15% 4%); }
    .reg-overlay__box { max-width: none; width: 100%; height: 100%; max-height: none; border-radius: 0; border: none; }
    .reg-viewport { height: auto; flex: 1 1 auto; }
    .reg-overlay__close { top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; }
    .reg-grid2 { grid-template-columns: 1fr; gap: 0; }
}

.provapa-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    color: hsl(var(--chalk-dim));
    border-radius: .375rem;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.provapa-close:hover { background: hsl(var(--rock)); color: hsl(var(--chalk)); }
.provapa-close svg { width: 1.25rem; height: 1.25rem; }
.provapa-titel {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: hsl(var(--chalk));
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    padding-right: 2rem;
}
.provapa-info { color: hsl(var(--chalk-dim)); font-size: .95rem; }
.provapa-item {
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    background: hsl(var(--rock));
}
.provapa-item:last-child { margin-bottom: 0; }
.provapa-item__head { display: flex; flex-direction: column; gap: .15rem; margin-bottom: .5rem; }
.provapa-item__namn { font-weight: 600; color: hsl(var(--chalk)); }
.provapa-item__tid { color: hsl(var(--accent)); font-size: .9rem; }
.provapa-item__count { font-size: .9rem; color: hsl(var(--chalk-dim)); margin-bottom: .85rem; }
.provapa-item__count strong { color: hsl(var(--chalk)); }
.provapa-stepper { display: flex; align-items: center; gap: .5rem; }
.provapa-step {
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--chalk));
    border-radius: .375rem;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s ease, color .2s ease;
}
.provapa-step:hover { border-color: hsl(var(--accent)); color: hsl(var(--accent)); }
.provapa-antal { min-width: 2rem; text-align: center; font-size: 1.05rem; font-weight: 600; color: hsl(var(--chalk)); }
.provapa-anmal { margin-left: auto; }
.provapa-tack { color: hsl(var(--accent)); font-weight: 600; font-size: .95rem; margin: .25rem 0 0; }
.provapa-full { color: hsl(var(--destructive)); font-weight: 600; margin: 0; }

/* Grupp av tillfällen med samma namn – extra tider fälls ut med diskret pil */
.provapa-grupp { margin-bottom: 1rem; }
.provapa-grupp:last-child { margin-bottom: 0; }
.provapa-grupp .provapa-item { margin-bottom: 0; }
.provapa-mer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    margin-top: .4rem;
    padding: .35rem;
    background: none;
    border: none;
    color: hsl(var(--chalk-dim));
    font-family: var(--font-body);
    font-size: .82rem;
    cursor: pointer;
    border-radius: .375rem;
    transition: color .2s ease, background-color .2s ease;
}
.provapa-mer:hover { color: hsl(var(--accent)); background: hsl(var(--accent) / .07); }
.provapa-mer svg { width: 1rem; height: 1rem; transition: transform .25s ease; }
.provapa-mer.is-open svg { transform: rotate(180deg); }
.provapa-grupp__extra { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
/* Måste stå efter display:flex ovan – annars döljs inte de ihopfällda raderna. */
.provapa-grupp__extra[hidden] { display: none; }
/* I tider-listan är radavståndet mindre – matcha det för de utfällda raderna. */
.provapa-lista__kort .provapa-grupp { margin-bottom: 0; }
.provapa-lista__kort .provapa-grupp__extra { gap: .75rem; margin-top: .75rem; }

/* Valfritt kontakt-/kalendersteg efter anmälan */
.provapa-notis { display: flex; flex-direction: column; gap: .6rem; }
.provapa-notis__ok { color: hsl(var(--accent)); font-weight: 600; margin: 0; }
.provapa-notis__hint {
    margin: 0;
    font-size: .84rem;
    line-height: 1.5;
    color: hsl(var(--chalk-dim));
    background: hsl(var(--accent) / .08);
    border-left: 3px solid hsl(var(--accent) / .6);
    border-radius: .3rem;
    padding: .55rem .7rem;
}
.provapa-notis__hint strong { color: hsl(var(--chalk)); }
.provapa-notis input[type="text"] {
    width: 100%;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: .375rem;
    color: hsl(var(--chalk));
    padding: .55rem .7rem;
    font-family: var(--font-body);
    font-size: .95rem;
}
.provapa-notis input[type="text"]:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 2px hsl(var(--accent) / .3);
}
.provapa-check {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .84rem;
    color: hsl(var(--chalk-dim));
    cursor: pointer;
}
.provapa-check input { margin-top: .15rem; accent-color: hsl(var(--accent)); }
.provapa-notis__actions { display: flex; align-items: center; gap: 1rem; }
.provapa-hoppa {
    background: none;
    border: none;
    color: hsl(var(--chalk-dim));
    text-decoration: underline;
    cursor: pointer;
    font-size: .85rem;
    font-family: var(--font-body);
}
.provapa-hoppa:hover { color: hsl(var(--chalk)); }
.provapa-notis__resultat { margin: 0; font-size: .84rem; color: hsl(var(--accent)); }

/* Intresseanmälan – topprepskurs (modal-formulär) */
.intresse-ingress { color: hsl(var(--chalk-dim)); font-size: .92rem; margin: 0 0 1.2rem; line-height: 1.5; }
.intresse-form { display: flex; flex-direction: column; gap: 1rem; }
.intresse-field { display: flex; flex-direction: column; gap: .35rem; }
.intresse-field label { font-size: .85rem; color: hsl(var(--chalk-dim)); font-weight: 500; }
.intresse-req { color: hsl(var(--accent)); }
.intresse-field input {
    width: 100%;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: .375rem;
    color: hsl(var(--chalk));
    padding: .6rem .75rem;
    font-family: var(--font-body);
    font-size: 1rem;
}
.intresse-field input:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 2px hsl(var(--accent) / .3);
}
.intresse-resultat { margin: 0; font-size: .88rem; color: hsl(var(--destructive)); min-height: 1.1em; }
.intresse-tack {
    color: hsl(var(--accent));
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    padding: 1.2rem .25rem;
    text-align: center;
}
.intresse-submit { margin-top: .25rem; }

/* Lista med alla prova på-tillfällen i tider-sektionen */
.provapa-lista { margin-top: 3rem; }
.provapa-lista__rubrik {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 1.25rem;
    color: hsl(var(--chalk));
    margin: 0 0 1.1rem;
}
.provapa-lista__rubrik svg { color: hsl(var(--accent)); width: 1.3rem; height: 1.3rem; }
.provapa-lista__kort { display: flex; flex-direction: column; gap: .75rem; }
.provapa-rad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border: 1px solid hsl(var(--border));
    border-radius: .5rem;
    padding: .9rem 1.1rem;
    background: hsl(var(--card));
}
.provapa-rad__info { display: flex; flex-direction: column; gap: .15rem; }
.provapa-rad__namn { font-weight: 600; color: hsl(var(--chalk)); }
.provapa-rad__tid { display: flex; align-items: center; gap: .4rem; color: hsl(var(--accent)); font-size: .9rem; }
.provapa-rad__tid svg { width: 1rem; height: 1rem; }
.provapa-rad__status { font-size: .85rem; color: hsl(var(--chalk-dim)); font-style: italic; }
.provapa-rad__status--full { color: hsl(var(--destructive)); font-style: normal; font-weight: 600; }

@media (max-width: 480px) {
    .provapa-box { padding: 1.25rem; }
    .provapa-titel { font-size: 1.15rem; }
    .provapa-rad { flex-direction: column; align-items: flex-start; }
}
