/* ============================================================================
 * Component: camp-week-plan — «Woche für Woche» on the summer page (0.300.24, timetable 0.321.0, week strips 0.322.0).
 * A calm holiday calendar: one thin strip per camp, nine week segments — ROBBO green where the camp runs, light grey
 * where it does not. No numbers in the strips (owner 31.10.2026: «пёстро», «смывается», then 50 heavy green blocks with
 * stacked PLZ «не нравится»): the club is a segmented switch, the clubs of a week show on hover. Phones get the same
 * strips with the name above, so the block stays about one screen long.
 * ========================================================================= */

.rc-wp {
    padding: 40px 16px 16px;
    font-family: 'ProximaNova', 'Proxima Nova', 'Noto Sans', sans-serif;
    color: var(--robbo-coal);
}
.rc-wp *,
.rc-wp *::before,
.rc-wp *::after { box-sizing: border-box; }

.rc-wp-wrap { max-width: 1180px; margin: 0 auto; }
.rc-wp-eyebrow {
    display: table;
    margin: 0 auto;
    font-size: var(--robbo-fs-badge);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--robbo-green-dark);
    background: var(--robbo-grey-light);
    padding: 4px 12px;
    border-radius: 999px;
}
.rc-wp-h2 {
    font-family: 'Plakkaat', sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.2;
    color: var(--robbo-black);
    text-align: center;
    margin: 12px 0 8px;
}
.rc-wp-lead {
    font-size: var(--robbo-fs-base);
    line-height: 1.6;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 20px;
}

/* ------------------------------------------------- club switch (segmented) --- */
.rc-wp-clubs {
    display: flex;
    gap: 2px;
    width: 100%;
    margin: 0 auto 16px;
    padding: 4px;
    border: 1px solid var(--robbo-line);
    border-radius: 999px;
    background: var(--robbo-white);
}
.rc-wp-club {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 8px 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--robbo-coal);
    font-family: inherit;
    font-size: var(--robbo-fs-md);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.rc-wp-club b { font-weight: 800; }
.rc-wp-club-name { display: none; }
.rc-wp-club:hover { background: var(--robbo-grey-light); }
.rc-wp-club.is-on { background: var(--robbo-coal); color: var(--robbo-white); }
.rc-wp-club:focus-visible { outline: 2px solid var(--robbo-green); outline-offset: 2px; }

/* ------------------------------------------------------------- plan --- */
.rc-wp-plan {
    position: relative;
    padding: 16px 12px 18px;
    border: 1px solid var(--robbo-line);
    border-radius: 16px;
    background: var(--robbo-white);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--robbo-coal) 6%, transparent);
}
.rc-wp-head,
.rc-wp-row { display: block; }
.rc-wp-corner { display: none; }
.rc-wp-htrack,
.rc-wp-track {
    display: grid;
    grid-template-columns: repeat(var(--wp-n, 9), minmax(0, 1fr));
    column-gap: 3px;
}
.rc-wp-mon {
    grid-row: 1;
    padding: 0 2px 6px;
    border-bottom: 2px solid var(--robbo-coal);
    font-size: var(--robbo-fs-badge);
    font-weight: 800;
    letter-spacing: 0.6px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--robbo-black);
    white-space: nowrap;
    overflow: hidden;
}
.rc-wp-wk {
    grid-row: 2;
    padding: 8px 0 0;
    text-align: center;
    font-size: var(--robbo-fs-xs);
    font-weight: 700;
    line-height: 1.2;
    color: var(--robbo-coal);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.rc-wp-wk-end { display: none; }
.rc-wp-wk.is-hot { color: var(--robbo-green-dark); }

.rc-wp-group-h {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 2px;
    font-size: var(--robbo-fs-badge);
    font-weight: 800;
    letter-spacing: 0.6px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--robbo-green-dark);
}
.rc-wp-group-h::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--robbo-line); }

.rc-wp-row { padding: 10px 0 2px; }
.rc-wp-camp { min-width: 0; margin: 0 0 6px; }
.rc-wp-name {
    display: inline-block;
    font-size: var(--robbo-fs-md);
    font-weight: 700;
    line-height: 1.25;
    color: var(--robbo-black);
    text-decoration: none;
}
a.rc-wp-name:hover { color: var(--robbo-green-dark); text-decoration: underline; text-underline-offset: 3px; }

.rc-wp-cell {
    display: block;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: var(--robbo-green);
    font: inherit;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.rc-wp-cell.rc-wp-cell--none,
.rc-wp-cell.is-off { background: var(--robbo-grey-light); cursor: default; pointer-events: none; }
.rc-wp-cell:hover { background: var(--robbo-green-dark); transform: translateY(-1px); box-shadow: 0 6px 14px color-mix(in srgb, var(--robbo-green-dark) 30%, transparent); }
.rc-wp-cell:focus-visible { outline: 2px solid var(--robbo-coal); outline-offset: 2px; }

/* a club is chosen: camps without it go, empty age groups go */
.rc-wp-row.is-dim,
.rc-wp-group.is-dim { display: none; }
.rc-wp-empty { margin: 16px 0 0; text-align: center; font-size: var(--robbo-fs-base); }

/* hover card with the week and its clubs (pointer devices only, set by JS) */
.rc-wp-tip {
    position: absolute;
    z-index: 5;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 280px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--robbo-black);
    color: var(--robbo-white);
    font-size: var(--robbo-fs-md);
    line-height: 1.35;
    pointer-events: none;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--robbo-black) 25%, transparent);
}
.rc-wp-tip[hidden] { display: none; }
.rc-wp-tip b { font-weight: 800; }

@media (min-width: 640px) {
    .rc-wp-clubs { width: max-content; max-width: 100%; }
    .rc-wp-club { flex: 0 0 auto; padding: 8px 18px; }
    .rc-wp-plan { padding: 20px 24px 24px; border-radius: 20px; }
    .rc-wp-head,
    .rc-wp-row {
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr);
        column-gap: 16px;
        align-items: center;
    }
    .rc-wp-corner { display: block; }
    .rc-wp-row { padding: 5px 0; }
    .rc-wp-camp { margin: 0; }
    .rc-wp-group-h { margin: 22px 0 6px; }
    .rc-wp-htrack, .rc-wp-track { column-gap: 4px; }
    .rc-wp-cell { height: 28px; border-radius: 7px; }
}

@media (min-width: 900px) {
    .rc-wp-club { padding: 8px 16px; }
    .rc-wp-club-name { display: inline; }
}

@media (min-width: 1000px) {
    .rc-wp { padding: 56px 32px 24px; }
    .rc-wp-h2 { font-size: 32px; }
    .rc-wp-plan { padding: 24px 32px 28px; }
    .rc-wp-head,
    .rc-wp-row { grid-template-columns: 220px minmax(0, 1fr); column-gap: 24px; }
    .rc-wp-name { font-size: var(--robbo-fs-base); }
    .rc-wp-wk { font-size: var(--robbo-fs-md); }
    .rc-wp-wk-end { display: inline; }
    .rc-wp-cell { height: 30px; border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .rc-wp-cell, .rc-wp-club, .rc-wp-wk { transition: none; }
    .rc-wp-cell:hover { transform: none; }
}
