/* ============================================================================
 * Component: camp-theme-semestercamp (0.326.0) — the winter look of /feriencamp/semestercamp/ (activity 14559) and
 * «Der Stundenplan für die Ferienwoche».
 * Motif: the Semesterferien start after the Schulnachricht → a school timetable on squared notebook paper (Karopapier,
 * times in the margin left of the red margin line); in the hero square «pixel» snow that matches the blocks of the
 * owner's image. Winter blue and ice are decoration only (variables below); every action stays ROBBO green.
 * ========================================================================= */
.rc-camp-landing[data-activity-id="14559"],
.rc-sm {
    --sm-ice: #E6F0FA;
    --sm-ice-2: #F4F8FD;
    --sm-blue: #2C64A8;
    --sm-grid: #E4EDF7;
    --sm-margin: #E8A9A9;
    --sm-snow: #C9DDF2;
}

/* ------------------------------------------------------------- hero --- */
.rc-camp-landing[data-activity-id="14559"] .rc-comp-hero {
    position: relative;
    background: linear-gradient(180deg, var(--sm-ice) 0%, var(--sm-ice-2) 70%, var(--robbo-white) 100%) !important;
}
.rc-camp-landing[data-activity-id="14559"] .rc-comp-hero-confetti { display: none; }
.rc-camp-landing[data-activity-id="14559"] .rc-comp-hero-eyebrow {
    background: var(--robbo-white) !important;
    border-color: color-mix(in srgb, var(--sm-blue) 28%, transparent) !important;
    color: var(--sm-blue) !important;
}
/* Pixel snow: square flakes in two layers (white and ice blue), drawn as masks so the colours stay tokens/variables. */
.rc-camp-landing[data-activity-id="14559"] .rc-comp-hero::before,
.rc-camp-landing[data-activity-id="14559"] .rc-comp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
}
.rc-camp-landing[data-activity-id="14559"] .rc-comp-hero::before {
    background: var(--robbo-white);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cpath d='M12 20h6v6h-6zM96 8h4v4h-4zM150 62h7v7h-7zM128 146h4v4h-4zM62 118h5v5h-5zM30 164h4v4h-4zM104 84h3v3h-3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cpath d='M12 20h6v6h-6zM96 8h4v4h-4zM150 62h7v7h-7zM128 146h4v4h-4zM62 118h5v5h-5zM30 164h4v4h-4zM104 84h3v3h-3z'/%3E%3C/svg%3E");
    -webkit-mask-size: 180px 180px;
    mask-size: 180px 180px;
    animation: rc-sm-snow 30s linear infinite;
}
.rc-camp-landing[data-activity-id="14559"] .rc-comp-hero::after {
    background: var(--sm-snow);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cpath d='M20 40h4v4h-4zM82 14h5v5h-5zM106 92h4v4h-4zM46 106h3v3h-3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cpath d='M20 40h4v4h-4zM82 14h5v5h-5zM106 92h4v4h-4zM46 106h3v3h-3z'/%3E%3C/svg%3E");
    -webkit-mask-size: 130px 130px;
    mask-size: 130px 130px;
    animation: rc-sm-snow2 42s linear infinite;
}
@keyframes rc-sm-snow  { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 0 180px; mask-position: 0 180px; } }
@keyframes rc-sm-snow2 { from { -webkit-mask-position: 40px 0; mask-position: 40px 0; } to { -webkit-mask-position: 40px 130px; mask-position: 40px 130px; } }
.rc-camp-landing[data-activity-id="14559"] .rc-comp-hero > * { position: relative; z-index: 1; }
/* The owner's picture is portrait: on phones it would fill the first screen above the h1. */
@media (max-width: 767px) {
    .rc-camp-landing[data-activity-id="14559"] .rc-comp-hero-media--illustration { max-width: 240px; }
}

/* ------------------------------------------------------ the section --- */
.rc-sm {
    position: relative;
    padding: 48px 16px 56px;
    background: linear-gradient(180deg, var(--sm-ice-2) 0%, var(--robbo-white) 55%);
    font-family: 'ProximaNova', 'Proxima Nova', 'Noto Sans', sans-serif;
    color: var(--robbo-coal);
}
.rc-sm *, .rc-sm *::before, .rc-sm *::after { box-sizing: border-box; }
.rc-sm-wrap { max-width: 1180px; margin: 0 auto; }
.rc-sm-head { max-width: 800px; margin: 0 auto 28px; text-align: center; }
.rc-sm-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--robbo-white);
    border: 1px solid color-mix(in srgb, var(--sm-blue) 28%, transparent);
    font-size: var(--robbo-fs-badge);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--sm-blue);
}
.rc-sm-h2 {
    margin: 12px 0 12px;
    font-family: 'Plakkaat', sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.2;
    color: var(--robbo-black);
}
.rc-sm-lead { margin: 0 0 10px; font-size: var(--robbo-fs-base); line-height: 1.6; text-wrap: pretty; }
.rc-sm-lead:last-child { margin-bottom: 0; }

/* ---------------------------------------------- the notebook sheet --- */
.rc-sm-sheet {
    --sm-pad: 14px;
    --sm-tcol: 48px;
    --sm-gap: 10px;
    position: relative;
    padding: 20px var(--sm-pad) 18px;
    border: 1px solid var(--robbo-line);
    border-radius: 20px;
    background-color: var(--robbo-white);
    background-image:
        linear-gradient(var(--sm-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--sm-grid) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: -1px -1px;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--sm-blue) 9%, transparent);
}
/* The red margin line of a school notebook — the times sit left of it. */
.rc-sm-sheet::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--sm-pad) + var(--sm-tcol) + var(--sm-gap) / 2 - 1px);
    width: 2px;
    background: var(--sm-margin);
    opacity: 0.75;
    pointer-events: none;
}
.rc-sm-h3 {
    position: relative;
    margin: 0 0 16px calc(var(--sm-tcol) + var(--sm-gap));
    font-size: var(--robbo-fs-lg);
    font-weight: 800;
    line-height: 1.3;
    color: var(--robbo-black);
}
.rc-sm-plan { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sm-gap); }
.rc-sm-row {
    display: grid;
    grid-template-columns: var(--sm-tcol) minmax(0, 1fr);
    gap: var(--sm-gap);
    align-items: start;
    margin: 0;
}
.rc-sm-row--days { display: none; }
.rc-sm-time {
    padding: 14px 4px 0 0;
    font-size: var(--robbo-fs-md);
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
    color: var(--sm-blue);
    font-variant-numeric: tabular-nums;
}
.rc-sm-cell {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--robbo-line);
    border-radius: 14px;
    background: var(--robbo-white);
}
.rc-sm-cell-body { min-width: 0; }
.rc-sm-row--project .rc-sm-cell {
    background: var(--sm-ice-2);
    border-color: color-mix(in srgb, var(--sm-blue) 22%, var(--robbo-line));
}
.rc-sm-tile {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--sm-ice);
    color: var(--sm-blue);
}
.rc-sm-row--project .rc-sm-tile { background: var(--robbo-white); }
.rc-sm-t { display: block; font-size: var(--robbo-fs-base); font-weight: 800; line-height: 1.3; color: var(--robbo-black); }
.rc-sm-p { margin: 4px 0 0; font-size: var(--robbo-fs-md); line-height: 1.5; color: var(--robbo-coal); text-wrap: pretty; }
.rc-sm-p--small { margin-top: 12px; }

.rc-sm-camps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rc-sm-camps li { margin: 0; }
.rc-sm-camp {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    padding: 9px 14px;
    border: 1px solid var(--robbo-line);
    border-radius: 999px;
    background: var(--robbo-white);
    font-size: var(--robbo-fs-md);
    line-height: 1.3;
    color: var(--robbo-black) !important;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.rc-sm-camp:hover, .rc-sm-camp:focus-visible { border-color: var(--robbo-green); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); transform: translateY(-1px); }
.rc-sm-camp-n { font-weight: 800; }
.rc-sm-camp-a { font-weight: 600; color: var(--robbo-coal); }
.rc-sm-camp-go { font-weight: 800; color: var(--robbo-green-dark); }

/* The afternoons: one card per day. */
.rc-sm-row--pm .rc-sm-time { grid-row: 1 / span 2; }
.rc-sm-pm-label { grid-column: 2; margin: 12px 0 0; font-size: var(--robbo-fs-md); line-height: 1.5; color: var(--robbo-coal); }
.rc-sm-pm-label strong { color: var(--robbo-black); }
.rc-sm-days { grid-column: 2; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sm-gap); }
.rc-sm-day {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    align-content: start;
    margin: 0;
    padding: 12px 14px 14px;
    border: 1px solid var(--robbo-line);
    border-radius: 14px;
    background: var(--robbo-white);
}
.rc-sm-day-n {
    grid-column: 1 / -1;
    margin: 0 0 8px;
    font-size: var(--robbo-fs-badge);
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--sm-blue);
}
.rc-sm-day .rc-sm-tile { grid-row: span 2; }
.rc-sm-day .rc-sm-t, .rc-sm-day .rc-sm-p { grid-column: 2; }

.rc-sm-row--end .rc-sm-cell--fr { grid-column: 2; background: var(--sm-ice-2); }
.rc-sm-row--end .rc-sm-cell--fr .rc-sm-t { color: var(--sm-blue); }

.rc-sm-note {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 760px;
    margin: 20px auto 0;
    padding: 12px 16px;
    border: 1px solid var(--robbo-line);
    border-radius: 16px;
    background: var(--robbo-white);
    font-size: var(--robbo-fs-md);
    line-height: 1.5;
    color: var(--robbo-coal);
}

/* ----------------------------------------------------------- phones --- */
/* Narrow cells: the icon sits in the title line, the text runs below it at full width; camp links as full-width rows. */
@media (max-width: 719px) {
    .rc-sm-cell { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; padding: 12px; }
    .rc-sm-cell-body { display: contents; }
    .rc-sm-cell .rc-sm-tile, .rc-sm-day .rc-sm-tile { width: 28px; height: 28px; border-radius: 8px; }
    .rc-sm-cell .rc-sm-tile .rc-sm-ico, .rc-sm-day .rc-sm-tile .rc-sm-ico { width: 16px; height: 16px; }
    .rc-sm-cell .rc-sm-t { grid-column: 2; }
    .rc-sm-cell .rc-sm-p, .rc-sm-cell .rc-sm-camps { grid-column: 1 / -1; }
    .rc-sm-cell--fr { grid-template-columns: minmax(0, 1fr); }
    .rc-sm-cell--fr .rc-sm-t { grid-column: 1; }
    .rc-sm-camps { flex-direction: column; }
    .rc-sm-camp { display: flex; border-radius: 12px; }
    .rc-sm-camp-go { margin-left: auto; }
    .rc-sm-day { grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; padding: 12px; }
    .rc-sm-day .rc-sm-tile { grid-row: auto; }
    .rc-sm-day .rc-sm-p { grid-column: 1 / -1; }
}

/* ---------------------------------------------------- larger screens --- */
@media (min-width: 720px) {
    .rc-sm-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rc-sm-note { border-radius: 999px; padding: 10px 20px 10px 12px; }
}
@media (min-width: 1024px) {
    .rc-sm { padding: 64px 32px 72px; }
    .rc-sm-h2 { font-size: 32px; }
    .rc-sm-sheet { --sm-pad: 28px; --sm-tcol: 64px; --sm-gap: 12px; padding: 28px var(--sm-pad) 26px; border-radius: 24px; }
    .rc-sm-h3 { font-size: 20px; margin-bottom: 18px; }
    .rc-sm-row { grid-template-columns: var(--sm-tcol) repeat(5, minmax(0, 1fr)); }
    .rc-sm-row--days { display: grid; }
    .rc-sm-dayhead {
        padding: 2px 0;
        font-size: var(--robbo-fs-md);
        font-weight: 800;
        text-align: center;
        color: var(--robbo-black);
    }
    .rc-sm-cell--all { grid-column: 2 / -1; }
    .rc-sm-pm-label { grid-column: 2 / -1; }
    .rc-sm-days { grid-column: 2 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sm-gap); }
    .rc-sm-day { display: flex; flex-direction: column; align-items: flex-start; padding: 14px; }
    .rc-sm-day .rc-sm-tile { margin-bottom: 10px; }
    /* The weekday stands in the header row above; keep it for screen readers only. */
    .rc-sm-day-n {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }
    .rc-sm-row--end .rc-sm-cell--mo-do { grid-column: 2 / span 4; }
    .rc-sm-row--end .rc-sm-cell--fr { grid-column: 6; }
}

@media (prefers-reduced-motion: reduce) {
    .rc-camp-landing[data-activity-id="14559"] .rc-comp-hero::before,
    .rc-camp-landing[data-activity-id="14559"] .rc-comp-hero::after { animation: none; }
    .rc-sm-camp { transition: none; }
    .rc-sm-camp:hover, .rc-sm-camp:focus-visible { transform: none; }
}
