/* ============================================================================
 * /schulferien-wien/ — Ferienkalender page (v0.265.0).
 * The answer (the dates) is the first screen: no hero image. The table turns
 * into one card per holiday on phones. Only the FAQ is a component.
 * ========================================================================= */

.rc-sfw {
    font-family: 'ProximaNova', 'Proxima Nova', 'Noto Sans', sans-serif;
    color: var(--robbo-coal);
    overflow-x: clip;
}
.rc-sfw *,
.rc-sfw *::before,
.rc-sfw *::after { box-sizing: border-box; }

.rc-sfw-wrap { max-width: 1080px; margin: 0 auto; }

.rc-sfw-sr {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.rc-sfw-eyebrow {
    display: inline-block;
    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;
}

/* --- 1. Kopf ----------------------------------------------------------------- */
.rc-sfw-head {
    padding: 36px 16px 8px;
    text-align: center;
}
.rc-sfw-h1 {
    font-family: 'ProximaNova', 'Proxima Nova', sans-serif;
    font-weight: 800;
    font-size: 34px;
    line-height: 1.15;
    color: var(--robbo-black);
    margin: 12px 0 10px;
}
.rc-sfw-lead {
    font-size: var(--robbo-fs-lg);
    line-height: 1.55;
    max-width: 720px;
    margin: 0 auto 18px;
}
.rc-sfw-chips {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.rc-sfw-chips li {
    margin: 0;
    font-size: var(--robbo-fs-md);
    background: var(--robbo-grey-light);
    border-radius: 999px;
    padding: 7px 14px;
}
.rc-sfw-jump {
    display: inline-block;
    font-size: var(--robbo-fs-md);
    font-weight: 700;
    color: var(--robbo-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Sections ---------------------------------------------------------------- */
.rc-sfw-sec { padding: 32px 16px 8px; }
.rc-sfw-h2 {
    font-family: 'Plakkaat', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.2;
    color: var(--robbo-black);
    text-align: center;
    margin: 0 0 18px;
}
.rc-sfw-h3 {
    font-size: var(--robbo-fs-lg);
    font-weight: 800;
    color: var(--robbo-black);
    margin: 0 0 10px;
}
.rc-sfw-source {
    font-size: var(--robbo-fs-md);
    line-height: 1.5;
    text-align: center;
    margin: 12px auto 0;
    max-width: 760px;
}

/* --- 2. Table ------------------------------------------------------------------ */
.rc-sfw-tablewrap {
    background: var(--robbo-white);
    border: 1px solid var(--robbo-line);
    border-radius: 18px;
    overflow: hidden;
}
.rc-sfw-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-size: var(--robbo-fs-base);
    line-height: 1.45;
}
/* The theme draws a full grid on every table cell — reset, then draw ours. */
.rc-sfw-table tr,
.rc-sfw-table th,
.rc-sfw-table td { border: 0; }
.rc-sfw-table thead th {
    border: 0;
    background: var(--robbo-grey-light);
    font-size: var(--robbo-fs-badge);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 16px;
}
.rc-sfw-table tbody th,
.rc-sfw-table td {
    text-align: left;
    vertical-align: top;
    padding: 14px 16px;
    border: 0;
    border-top: 1px solid var(--robbo-line);
}
.rc-sfw-table tbody th {
    font-weight: 800;
    color: var(--robbo-black);
    white-space: nowrap;
}
.rc-sfw-table tbody th a {
    color: var(--robbo-black);
    text-decoration: underline;
    text-decoration-color: var(--robbo-line);
    text-underline-offset: 4px;
}
.rc-sfw-table tbody th a:hover { color: var(--robbo-green-dark); text-decoration-color: currentColor; }
.rc-sfw-nowrap { white-space: nowrap; }
.rc-sfw-table td small {
    display: block;
    font-size: var(--robbo-fs-md);
    margin-top: 2px;
}
.rc-sfw-table tr.is-now,
.rc-sfw-table tr.is-next { background: var(--robbo-grey-light); }

.rc-sfw-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: var(--robbo-fs-badge);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--robbo-white);
    background: var(--robbo-green);
    border-radius: 999px;
    padding: 2px 8px;
    vertical-align: 2px;
}
.rc-sfw-badge[hidden] { display: none !important; }

.rc-sfw-camps {
    display: inline-block;
    font-size: var(--robbo-fs-md);
    font-weight: 700;
    color: var(--robbo-coal);
    text-decoration: none;
    background: var(--robbo-grey-light);
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.rc-sfw-camps.is-open { color: var(--robbo-white); background: var(--robbo-green); }
.rc-sfw-camps:hover { color: var(--robbo-white); background: var(--robbo-green-dark); }
.rc-sfw-none { font-size: var(--robbo-fs-md); }

/* --- 3. Kalender-Abo ------------------------------------------------------------ */
.rc-sfw-abo-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    background: var(--robbo-white);
    border: 2px solid var(--robbo-green);
    border-radius: 22px;
    padding: 24px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.rc-sfw-abo-copy .rc-sfw-h2 { text-align: left; margin: 10px 0 10px; }
.rc-sfw-abo-copy p {
    font-size: var(--robbo-fs-base);
    line-height: 1.6;
    margin: 0 0 12px;
}
.rc-sfw-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.rc-sfw-checks li {
    margin: 0;
    font-size: var(--robbo-fs-base);
    padding-left: 26px;
    position: relative;
}
.rc-sfw-checks li::before {
    content: '';
    position: absolute;
    left: 2px; top: 5px;
    width: 14px; height: 8px;
    border-left: 3px solid var(--robbo-green);
    border-bottom: 3px solid var(--robbo-green);
    transform: rotate(-45deg);
}

.rc-sfw-form { display: grid; gap: 12px; align-content: start; }
.rc-sfw-label {
    display: block;
    font-size: var(--robbo-fs-md);
    font-weight: 700;
    color: var(--robbo-black);
    margin: 0;
    padding: 0;
}
.rc-sfw-label span { font-weight: 400; }
.rc-sfw-input {
    width: 100%;
    min-width: 0;
    font-family: inherit;
    font-size: var(--robbo-fs-base);
    color: var(--robbo-coal);
    background: var(--robbo-white);
    border: 1px solid var(--robbo-line);
    border-radius: 12px;
    padding: 13px 14px;
}
.rc-sfw-input:focus { outline: 2px solid var(--robbo-green); outline-offset: 1px; border-color: var(--robbo-green); }
.rc-sfw-ages {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rc-sfw-ages legend { margin-bottom: 8px; }
.rc-sfw-chip { position: relative; display: inline-block; }
.rc-sfw-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rc-sfw-chip span {
    display: inline-block;
    font-size: var(--robbo-fs-md);
    font-weight: 600;
    border: 1px solid var(--robbo-line);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    user-select: none;
    transition: all .15s ease;
}
.rc-sfw-chip input:checked + span { background: var(--robbo-green); border-color: var(--robbo-green); color: var(--robbo-white); }
.rc-sfw-chip input:focus-visible + span { outline: 2px solid var(--robbo-green-dark); outline-offset: 2px; }
.rc-sfw-remind {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: var(--robbo-fs-md);
    line-height: 1.5;
    cursor: pointer;
}
.rc-sfw-remind input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--robbo-green); }

.rc-sfw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 26px;
    font-family: inherit;
    font-size: var(--robbo-fs-base);
    font-weight: 700;
    color: var(--robbo-white);
    background: var(--robbo-green);
    border: 2px solid var(--robbo-green);
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.rc-sfw-btn:hover { background: var(--robbo-green-dark); border-color: var(--robbo-green-dark); color: var(--robbo-white); }
.rc-sfw-btn[disabled] { opacity: .7; cursor: wait; }
.rc-sfw-btn--ghost { background: var(--robbo-white); color: var(--robbo-coal); border-color: var(--robbo-line); }
.rc-sfw-btn--ghost:hover { background: var(--robbo-white); color: var(--robbo-green-dark); border-color: var(--robbo-green); }

.rc-sfw-msg {
    margin: 0;
    font-size: var(--robbo-fs-base);
    line-height: 1.5;
    font-weight: 600;
    color: var(--robbo-green-dark);
}
.rc-sfw-msg.is-error { color: var(--robbo-coal); }
.rc-sfw-legal {
    margin: 0;
    font-size: var(--robbo-fs-legal);
    line-height: 1.5;
    color: var(--robbo-coal);
}
.rc-sfw-legal a { color: var(--robbo-green-dark); text-decoration: underline; }

/* --- 4. Schulfreie Tage ---------------------------------------------------------- */
.rc-sfw-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rc-sfw-box {
    background: var(--robbo-white);
    border: 1px solid var(--robbo-line);
    border-radius: 18px;
    padding: 20px;
}
.rc-sfw-box p { font-size: var(--robbo-fs-base); line-height: 1.6; margin: 0; }
.rc-sfw-autonom { margin-top: 16px; }
.rc-sfw-days { list-style: none; margin: 0 0 12px; padding: 0; }
.rc-sfw-days li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    margin: 0;
    padding: 9px 0;
    border-top: 1px solid var(--robbo-line);
    font-size: var(--robbo-fs-base);
}
.rc-sfw-days li:first-child { border-top: 0; padding-top: 0; }
.rc-sfw-days li.is-weekend { color: var(--robbo-coal); opacity: .75; }
.rc-sfw-date { font-weight: 700; }

/* --- 6. Betreuung ---------------------------------------------------------------- */
.rc-sfw-care-card {
    background: var(--robbo-grey-light);
    border-radius: 22px;
    padding: 28px 20px;
    text-align: center;
}
.rc-sfw-care-card p {
    font-size: var(--robbo-fs-base);
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto 18px;
}
.rc-sfw-care-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.rc-sfw .rc-comp-faq { margin-top: 16px; }

/* --- Phones: every holiday row becomes a card ------------------------------------ */
@media (max-width: 719px) {
    .rc-sfw-h1 { font-size: 30px; }
    .rc-sfw-tablewrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
    .rc-sfw-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .rc-sfw-table,
    .rc-sfw-table tbody,
    .rc-sfw-table tr,
    .rc-sfw-table th,
    .rc-sfw-table td { display: block; width: 100%; }
    .rc-sfw-table tr {
        background: var(--robbo-white);
        border: 1px solid var(--robbo-line);
        border-radius: 16px;
        padding: 14px 16px;
        margin: 0 0 10px;
    }
    .rc-sfw-table tr.is-now,
    .rc-sfw-table tr.is-next { border-color: var(--robbo-green); background: var(--robbo-white); }
    .rc-sfw-table tbody th,
    .rc-sfw-table td { border: 0; padding: 4px 0; white-space: normal; background: transparent; }
    .rc-sfw-table tbody th { font-size: var(--robbo-fs-lg); padding-bottom: 6px; }
    .rc-sfw-table td::before {
        content: attr(data-label);
        display: block;
        font-size: var(--robbo-fs-badge);
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: var(--robbo-coal);
        opacity: .75;
    }
    .rc-sfw-table td[data-label="Feriencamps"] { padding-top: 10px; }
    .rc-sfw-table td[data-label="Feriencamps"]::before { display: none; }
    .rc-sfw-btn { width: 100%; }
}

@media (min-width: 720px) {
    .rc-sfw-table thead th:nth-child(1) { width: 24%; }
    .rc-sfw-table thead th:nth-child(2) { width: 30%; }
    .rc-sfw-table thead th:nth-child(3) { width: 28%; }
    .rc-sfw-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .rc-sfw-days li { grid-template-columns: 260px minmax(0, 1fr); gap: 12px; }
}
@media (min-width: 1024px) {
    .rc-sfw-head { padding: 48px 32px 8px; }
    .rc-sfw-h1 { font-size: 44px; }
    .rc-sfw-sec { padding: 40px 32px 8px; }
    .rc-sfw-h2 { font-size: 30px; }
    .rc-sfw-abo-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; padding: 32px 36px; }
}

@media print {
    .rc-sfw-abo, .rc-sfw-care, .rc-sfw .rc-comp-faq, .rc-sfw-jump { display: none !important; }
    .rc-sfw-table tr.is-now, .rc-sfw-table tr.is-next { background: none; }
}
