/* ─── Fun Forest Widget — Styles v1.9 ───────────────────────────────────────── */
/*
 * Fun Forest Brandfarben:
 *   Dunkelgrün  #1a4a27   (Header, starke Akzente)
 *   Mittelgrün  #2d7a3e   (Buttons, Preise, Badges)
 *   Hellgrün    #4ade80   (Highlights)
 *   Grün-BG     #f0fdf4   (Hintergründe geöffnet)
 *   Orange      #ea6c0a   (CTA, "günstigster"-Badge)
 *   Amber       #f59e0b   (teilweise geöffnet)
 *   Rot         #dc2626   (Notfallschließung)
 */

/* ─── Status-Badge ─── */

.ff-status-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .85rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.ff-status-badge--open {
    background: #dcfce7;
    color: #166534;
    border: 1.5px solid #bbf7d0;
}

.ff-status-badge--closed {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.ff-status-badge--forced {
    background: #fee2e2;
    color: #991b1b;
    border: 1.5px solid #fecaca;
}

.ff-status-icon {
    font-size: .75rem;
    flex-shrink: 0;
}

.ff-status-badge--open   .ff-status-icon { color: #16a34a; }
.ff-status-badge--closed .ff-status-icon { color: #94a3b8; }
.ff-status-badge--forced .ff-status-icon {
    font-size: .9rem;
    font-weight: 900;
    animation: ff-pulse 1.4s ease-in-out infinite;
}

@keyframes ff-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* ═══ PREISLISTE — Gemeinsame Basis ════════════════════════════════════════════ */

.funforest-prices { margin: 1.5rem 0; font-family: inherit; }

.funforest-price-group { margin-bottom: 2.5rem; }

.funforest-price-group__name {
    font-size: 1.2rem; font-weight: 800; color: #1a4a27;
    margin: 0 0 0.2rem; letter-spacing: -0.01em;
}

.funforest-price-group__subtitle {
    font-size: 0.9rem; color: #64748b; margin: 0 0 0.85rem;
}

/* ─── Karten-Stil ─── */

.funforest-prices--karten .funforest-price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.85rem;
}

.funforest-price-card {
    display: flex; flex-direction: column; gap: 0.3rem;
    padding: 1.1rem 1rem;
    border: 2px solid #e2e8f0; border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(26,74,39,.07);
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.funforest-price-card:hover {
    border-color: #4ade80;
    box-shadow: 0 4px 16px rgba(26,74,39,.14);
    transform: translateY(-2px);
}

.funforest-price-card__label {
    font-size: .92rem; font-weight: 700; color: #1e293b; line-height: 1.3;
}

.funforest-price-card__desc {
    font-size: .8rem; color: #64748b; margin-bottom: .25rem;
}

.funforest-price-card__price {
    font-size: 1.4rem; font-weight: 800; color: #2d7a3e;
    margin-top: auto; padding-top: .5rem; letter-spacing: -.02em;
}

.funforest-price-card__pricelist {
    list-style: none; margin: .4rem 0 0; padding: 0;
    display: flex; flex-direction: column; gap: .3rem;
    border-top: 1px solid #f1f5f9; padding-top: .5rem;
}

.funforest-price-card__pricelist li {
    display: flex; align-items: center; gap: .4rem;
    font-size: .85rem; padding: .15rem 0;
}

.funforest-pricelist__model  { color: #64748b; flex: 1; font-size: .82rem; }
.funforest-pricelist__value  { font-weight: 700; color: #334155; white-space: nowrap; }

.funforest-price-card__pricelist li.funforest-price--best .funforest-pricelist__value {
    color: #2d7a3e; font-size: 1rem;
}

.funforest-price-badge {
    display: inline-block;
    font-size: .65rem; font-weight: 700;
    background: #ea6c0a; color: #fff;
    padding: .1rem .45rem; border-radius: 2rem;
    white-space: nowrap; text-transform: uppercase;
    letter-spacing: .04em; vertical-align: middle;
}

/* ─── Tabellen-Stil ─── */

.funforest-price-table {
    width: 100%; border-collapse: collapse; font-size: .95rem;
    background: #fff; border-radius: .75rem; overflow: hidden;
    box-shadow: 0 1px 4px rgba(26,74,39,.08);
}

.funforest-price-table thead tr { background: #1a4a27; color: #fff; }

.funforest-price-table thead th {
    padding: .65rem .75rem; font-weight: 700; font-size: .85rem;
    text-align: left; letter-spacing: .02em;
}

.funforest-price-table thead th:last-child { text-align: right; }

.funforest-price-table tr { border-bottom: 1px solid #f1f5f9; transition: background .12s; }
.funforest-price-table tbody tr:hover { background: #f0fdf4; }
.funforest-price-table tr:last-child   { border-bottom: none; }
.funforest-price-table td { padding: .65rem .75rem; vertical-align: middle; }

.funforest-price-table__label      { font-weight: 600; color: #1e293b; }
.funforest-price-table__item-desc  { display: block; font-size: .8rem; color: #94a3b8; font-weight: 400; margin-top: .1rem; }
.funforest-price-table__model      { color: #64748b; font-size: .88rem; }
.funforest-price-table__price      { text-align: right; font-weight: 700; color: #334155; white-space: nowrap; }

.funforest-price-table__row--best .funforest-price-table__price {
    color: #2d7a3e; font-size: 1.05rem;
}

/* ─── Matrix-Stil (Preismodell-Vergleich) ─── */

.funforest-price-group--matrix {
    background: #fff; border: 2px solid #e2e8f0; border-radius: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 2px 12px rgba(26,74,39,.08);
}

.ff-matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ff-price-matrix {
    width: 100%; border-collapse: separate; border-spacing: 0;
    font-size: .93rem; min-width: 340px;
}

.ff-price-matrix thead tr { background: #1a4a27; }

.ff-matrix-th-ticket,
.ff-matrix-th-model {
    padding: .7rem 1rem; font-weight: 700; font-size: .85rem;
    color: #fff; text-align: center; white-space: nowrap; letter-spacing: .02em;
}

.ff-matrix-th-ticket { text-align: left; border-radius: .5rem 0 0 0; min-width: 130px; }
.ff-price-matrix thead tr th:last-child { border-radius: 0 .5rem 0 0; }
.ff-matrix-th-best { background: #2d7a3e; }

.ff-matrix-best-badge {
    display: block; font-size: .6rem; font-weight: 600;
    background: #ea6c0a; color: #fff;
    padding: .1rem .4rem; border-radius: 2rem;
    margin: .2rem auto 0; text-transform: uppercase;
    letter-spacing: .04em; width: fit-content;
}

.ff-matrix-row { border-bottom: 1px solid #f1f5f9; transition: background .12s; }
.ff-matrix-row:last-child { border-bottom: none; }
.ff-matrix-row:hover { background: #f0fdf4; }

.ff-matrix-td-ticket { padding: .75rem 1rem; vertical-align: middle; }

.ff-matrix-ticket-label { display: block; font-weight: 700; color: #1e293b; font-size: .92rem; }
.ff-matrix-ticket-desc  { display: block; font-size: .78rem; color: #94a3b8; margin-top: .1rem; font-weight: 400; }

.ff-matrix-td-price {
    padding: .75rem 1rem; text-align: center;
    vertical-align: middle; color: #475569; white-space: nowrap;
}

.ff-matrix-td-first { background: rgba(45,122,62,.04); }
.ff-matrix-td-best  { background: #f0fdf4; }

.ff-matrix-price-value { font-weight: 700; font-size: 1rem; }
.ff-matrix-td-best .ff-matrix-price-value { color: #2d7a3e; font-size: 1.1rem; }
.ff-matrix-na { color: #cbd5e1; }

.funforest-prices-error,
.funforest-prices-empty { color: #94a3b8; font-style: italic; font-size: .9rem; padding: .5rem 0; }

/* ═══ ÖFFNUNGSZEITEN ═══════════════════════════════════════════════════════════ */

/* ─── Event-Termine ─── */

.funforest-eventtermine {
    background: linear-gradient(180deg, #0b3b27 0%, #082f21 100%);
    border-radius: 1.1rem;
    padding: 2rem 1.25rem;
    text-align: center;
    margin: 1.5rem 0;
}

.funforest-eventtermine__title {
    margin: 0 0 1.1rem;
    color: #f8fafc;
    font-size: clamp(1.5rem, 2.4vw, 2.6rem);
    line-height: 1.1;
    font-weight: 900;
}

.funforest-eventtermine__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
}

.funforest-eventtermine__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6c563;
    color: #0c3a2a;
    border-radius: .9rem;
    padding: .72rem 1.15rem;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    min-height: 2.7rem;
}

.funforest-eventtermine__chip--link {
    text-decoration: none;
    transition: transform .12s ease, filter .12s ease;
}

.funforest-eventtermine__chip--link:hover,
.funforest-eventtermine__chip--link:focus-visible {
    filter: brightness(.95);
    transform: translateY(-1px);
}

.funforest-eventtermine__empty {
    margin: 0;
    color: #dbeafe;
    font-style: italic;
}

.funforest-eventtermine__description {
    margin: 1.35rem auto 0;
    max-width: 58rem;
    color: #f1f5f9;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.45;
}

@media (max-width: 640px) {
    .funforest-eventtermine {
        padding: 1.4rem .8rem;
        border-radius: .8rem;
    }

    .funforest-eventtermine__chip {
        width: 100%;
        max-width: 22rem;
    }
}

.funforest-oz-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .85rem; border-radius: 2rem;
    font-size: .85rem; font-weight: 700; white-space: nowrap;
}

.funforest-oz-badge::before {
    content: ''; display: inline-block;
    width: .5rem; height: .5rem; border-radius: 50%;
    background: currentColor; opacity: .8;
}

.funforest-oz-badge--open   { background: #dcfce7; color: #166534; border: 1.5px solid #bbf7d0; }
.funforest-oz-badge--closed { background: #fee2e2; color: #991b1b; border: 1.5px solid #fecaca; }

.funforest-oz-box {
    display: inline-flex; align-items: flex-start; gap: .7rem;
    padding: .9rem 1.35rem; border-radius: .85rem;
    border-left: 4px solid transparent; background: #f8fafc;
    font-size: .95rem; line-height: 1.55;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.funforest-oz-box--open   { border-left-color: #2d7a3e; background: #f0fdf4; }
.funforest-oz-box--closed { border-left-color: #dc2626; background: #fff1f2; }

.funforest-oz-box__dot {
    display: inline-block; width: .65rem; height: .65rem;
    border-radius: 50%; flex-shrink: 0; margin-top: .3rem;
}

.funforest-oz-box--open .funforest-oz-box__dot   { background: #2d7a3e; box-shadow: 0 0 0 3px #bbf7d0; }
.funforest-oz-box--closed .funforest-oz-box__dot  { background: #dc2626; box-shadow: 0 0 0 3px #fecaca; }

.funforest-oz-box__status { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.funforest-oz-box__next   { font-weight: 700; }

.funforest-oz-table {
    width: 100%; border-collapse: collapse; font-size: .9rem;
    max-width: 560px; background: #fff; border-radius: .75rem;
    overflow: hidden; box-shadow: 0 1px 4px rgba(26,74,39,.07);
}

.funforest-oz-table thead tr { background: #1a4a27; color: #fff; }

.funforest-oz-table th {
    text-align: left; padding: .6rem .75rem;
    font-weight: 700; font-size: .82rem; letter-spacing: .02em;
}

.funforest-oz-table td { padding: .6rem .75rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.funforest-oz-table tr:last-child td  { border-bottom: none; }
.funforest-oz-table tbody tr:hover    { background: #f0fdf4; }

.funforest-oz-open   { color: #166534; font-weight: 700; }
.funforest-oz-closed { color: #991b1b; }

.funforest-oz-error,
.funforest-oz-empty { color: #94a3b8; font-style: italic; font-size: .9rem; }

/* ─── Kalender-Ansicht v1.8 — Wochenzeilen-Pillen ─── */

.funforest-oz-kalender {
    font-family: inherit;
    width: 100%;          /* AVADA: explizite Breite statt nur max-width */
    max-width: 380px;
    border-radius: 1.1rem;
    overflow: visible;
    box-shadow: 0 4px 24px rgba(26,74,39,.12);
    border: 2px solid #e2e8f0;
    background: #fff;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

/* Optional-Titel (Hauptkategorie) */
.ff-cal-title {
    background: #1a4a27;
    color: #d1fae5;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .4rem 1rem .3rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Header: Monat + Navigation */
.ff-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a4a27;
    color: #fff;
    padding: .7rem 1rem;
}

.ff-cal-month-label {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.ff-cal-nav {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
    touch-action: manipulation;
    flex-shrink: 0;
}

.ff-cal-nav:hover,
.ff-cal-nav:focus-visible {
    background: rgba(255,255,255,.3);
    outline: 2px solid rgba(255,255,255,.7);
    outline-offset: 2px;
}

/* Toggle-Buttons (Sonderevents) */
.ff-cal-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .55rem .75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ff-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    border: 2px solid var(--toggle-color, #64748b);
    background: var(--toggle-color, #64748b);
    color: #fff;
    font-size: .73rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, opacity .15s;
    touch-action: manipulation;
    line-height: 1;
}

.ff-toggle-btn:focus-visible {
    outline: 2px solid var(--toggle-color, #64748b);
    outline-offset: 3px;
}

.ff-toggle-btn--off {
    background: transparent;
    color: var(--toggle-color, #64748b);
    opacity: .6;
}

.ff-toggle-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    flex-shrink: 0;
}

.ff-toggle-btn--off .ff-toggle-dot {
    background: var(--toggle-color, #64748b);
}

/* Wochentag-Labels */
.ff-cal-weekday-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #2d7a3e;
    padding: 0 .4rem;
    width: 100%;
    box-sizing: border-box;
}

.ff-wd {
    text-align: center;
    padding: .38rem 0;
    font-size: .68rem;
    font-weight: 700;
    color: #d1fae5;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Wochen-Container */
.ff-cal-weeks {
    padding: .45rem .4rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
}

.ff-cal-week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    width: 100%;
}

/* Leer-Slots */
.ff-cal-pad {
    aspect-ratio: 1;
    min-height: 2.2rem;
}

/* Tages-Zelle */
.ff-cal-cell {
    aspect-ratio: 1;
    min-height: 2.2rem; /* AVADA-Fallback falls aspect-ratio nicht greift */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 999px;   /* solo = volle Pille */
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: filter .12s;
    min-width: 0;
    box-sizing: border-box;
}

.ff-cal-cell:hover,
.ff-cal-cell.ff-tooltip-open {
    z-index: 20;
}

.ff-cal-cell:focus-visible {
    outline: 2px solid #1a4a27;
    outline-offset: -2px;
    z-index: 5;
}

/* Pille verbinden: gleicher State → innere Ecken abflachen */
.ff-cal-cell.ff-connect-l {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.ff-cal-cell.ff-connect-r {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Zustands-Farben */
.ff-cal-cell.ff-state-open   { background: #dcfce7; }
.ff-cal-cell.ff-state-closed { background: #f1f5f9; }
.ff-cal-cell.ff-state-unknown { background: transparent; }

/* Tages-Zahl */
.ff-cell-day {
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
}

.ff-state-open    .ff-cell-day { color: #166534; }
.ff-state-closed  .ff-cell-day { color: #94a3b8; }
.ff-state-unknown .ff-cell-day { color: #d1d5db; }

/* Heute-Ring */
.ff-cal-cell.ff-today {
    outline: 2.5px solid #1a4a27;
    outline-offset: -2px;
    z-index: 2;
}

/* Vergangene Tage */
.ff-cal-cell.ff-past { opacity: .48; }

/* Toggle-Stern-Overlays (Sonderevents) — absolut oben rechts in der Zelle */
.ff-cell-overlays {
    position: absolute;
    top: 1px;
    right: 2px;
    display: flex;
    gap: 1px;
    line-height: 1;
    pointer-events: none;
}

.ff-cell-toggle-star {
    font-size: .62rem;
    line-height: 1;
    font-style: normal;
    flex-shrink: 0;
    filter: drop-shadow(0 0 1px rgba(255,255,255,.85));
}

/* Toggle-Off — Sterne ausblenden */
.ff-toggle-off--nachtklettern       .ff-cell-toggle--nachtklettern       { display: none; }
.ff-toggle-off--feriencamp          .ff-cell-toggle--feriencamp          { display: none; }
.ff-toggle-off--geburtstagsangebote .ff-cell-toggle--geburtstagsangebote { display: none; }
.ff-toggle-off--wertgutschein       .ff-cell-toggle--wertgutschein       { display: none; }

/* Legende ausblenden wenn Toggle off */
.ff-toggle-off--nachtklettern       .ff-legend-event--nachtklettern       { opacity: .3; }
.ff-toggle-off--feriencamp          .ff-legend-event--feriencamp          { opacity: .3; }
.ff-toggle-off--geburtstagsangebote .ff-legend-event--geburtstagsangebote { opacity: .3; }
.ff-toggle-off--wertgutschein       .ff-legend-event--wertgutschein       { opacity: .3; }

/* Hover-Tooltip */
.ff-cal-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: #1a4a27;
    color: #fff;
    border-radius: .6rem;
    padding: .5rem .7rem;
    min-width: 170px;
    max-width: 230px;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    pointer-events: none;
    font-size: .77rem;
    line-height: 1.5;
    white-space: nowrap;
}

.ff-cal-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a4a27;
}

/* Tooltip bei Hover (Desktop) und Touch-Toggle (JS-Klasse) */
.ff-cal-cell:hover .ff-cal-tooltip,
.ff-cal-cell:focus-visible .ff-cal-tooltip,
.ff-cal-cell.ff-tooltip-open .ff-cal-tooltip { display: block; }

/* Tooltip-Position für Rand-Zellen */
.ff-cal-week-row > :nth-child(1) .ff-cal-tooltip,
.ff-cal-week-row > :nth-child(2) .ff-cal-tooltip {
    left: 0; transform: none;
}
.ff-cal-week-row > :nth-child(1) .ff-cal-tooltip::after,
.ff-cal-week-row > :nth-child(2) .ff-cal-tooltip::after {
    left: 1.1rem; transform: none;
}
.ff-cal-week-row > :nth-child(6) .ff-cal-tooltip,
.ff-cal-week-row > :nth-child(7) .ff-cal-tooltip {
    left: auto; right: 0; transform: none;
}
.ff-cal-week-row > :nth-child(6) .ff-cal-tooltip::after,
.ff-cal-week-row > :nth-child(7) .ff-cal-tooltip::after {
    left: auto; right: 1.1rem; transform: none;
}

@media (max-width: 768px) {
    /* Auf mobilen Viewports Tooltip unter dem Tag anzeigen, damit oben nichts abgeschnitten wird. */
    .ff-cal-tooltip {
        top: calc(100% + 7px);
        bottom: auto;
    }

    .ff-cal-tooltip::after {
        top: auto;
        bottom: 100%;
        border-top-color: transparent;
        border-bottom-color: #1a4a27;
    }
}

/* Tooltip-Inhalte */
.ff-tt-date {
    font-weight: 800;
    font-size: .8rem;
    color: #86efac;
    margin-bottom: .3rem;
    letter-spacing: .01em;
}

.ff-tt-row {
    display: flex;
    align-items: center;
    gap: .38rem;
    padding: .08rem 0;
    font-size: .74rem;
}

.ff-tt-dot {
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.ff-tt-open   .ff-tt-dot { background: #4ade80; }
.ff-tt-closed .ff-tt-dot { background: #f87171; }
.ff-tt-open   { color: #d1fae5; }
.ff-tt-closed { color: #fca5a5; }
.ff-tt-event  { color: #e2e8f0; }
.ff-tt-name   { flex: 1; }
.ff-tt-time   {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 600;
    font-size: .7rem;
    color: #86efac;
}

/* Legende */
.ff-cal-legend {
    display: flex;
    gap: .65rem;
    padding: .5rem .75rem;
    border-top: 1px solid #f1f5f9;
    background: #fff;
    flex-wrap: wrap;
    justify-content: center;
}

.ff-legend-item {
    display: flex;
    align-items: center;
    gap: .32rem;
    font-size: .7rem;
    color: #475569;
    font-weight: 500;
    transition: opacity .2s;
}

.ff-legend-swatch {
    width: .58rem;
    height: .58rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.ff-swatch-open   { background: #2d7a3e; }
.ff-swatch-closed { background: #cbd5e1; }
.ff-swatch-forced { background: #dc2626; }

/* Notfallschließung: rote Zelle */
.ff-cal-cell.ff-forced {
    background: #fee2e2 !important;
}

.ff-cal-cell.ff-forced .ff-cell-day { color: #991b1b !important; }

/* Tooltip: forced */
.ff-tt-forced       { color: #fecaca; }
.ff-tt-forced .ff-tt-dot { background: #dc2626; }

/* ─── Mobile ─── */

@media (max-width: 400px) {
    .funforest-oz-kalender { max-width: 100%; }
    .ff-cal-weeks { padding: .35rem .25rem; }
    .ff-cell-day { font-size: .7rem; }
    .ff-wd { font-size: .6rem; letter-spacing: 0; }
    .ff-cal-toggle-btn { font-size: .68rem; padding: .22rem .55rem; }
    .ff-cal-legend { gap: .45rem; padding: .4rem .5rem; }
}

@media (max-width: 320px) {
    .ff-wd { font-size: .55rem; }
    .ff-cell-day { font-size: .62rem; }
}

/* ─── Jahresansicht ──────────────────────────────────────────────────────────── */

.funforest-oz-jahresansicht {
    font-family: inherit;
    width: 100%;
    background: #fff;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(26,74,39,.10);
    border: 2px solid #e2e8f0;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.ff-jahr-title {
    background: #1a4a27;
    color: #d1fae5;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .4rem 1rem .3rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.ff-jahr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a4a27;
    color: #fff;
    padding: .7rem 1.25rem;
}

.ff-jahr-label {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ff-jahr-nav {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
    touch-action: manipulation;
    flex-shrink: 0;
}

.ff-jahr-nav:hover,
.ff-jahr-nav:focus-visible {
    background: rgba(255,255,255,.3);
    outline: 2px solid rgba(255,255,255,.7);
    outline-offset: 2px;
}

.ff-jahr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .65rem;
    padding: .75rem;
    background: #f8fafc;
    box-sizing: border-box;
}

.ff-jahr-monat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .65rem;
    overflow: hidden;
}

.ff-jahr-monat-header {
    background: #2d5a3d;
    color: #fff;
    text-align: center;
    font-size: .65rem;
    font-weight: 700;
    padding: .3rem .4rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ff-jahr-monat-wd {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f0f6f0;
}

.ff-jahr-monat-wd span {
    text-align: center;
    font-size: .5rem;
    font-weight: 700;
    color: #64748b;
    padding: .18rem 0;
}

.ff-jahr-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.ff-jahr-pad,
.ff-jahr-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: .6rem;
    font-weight: 600;
    box-sizing: border-box;
    min-height: 1.1rem;
}

.ff-jahr-day {
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Jahr-Zellen Zustände */
.ff-jahr-cell.ff-state-open    { background: #dcfce7; color: #166534; border-radius: .2rem; }
.ff-jahr-cell.ff-state-closed  { color: #d1d5db; }
.ff-jahr-cell.ff-state-unknown { color: #e5e7eb; }

.ff-jahr-cell.ff-forced {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.ff-jahr-cell.ff-today {
    outline: 2px solid #1a4a27;
    outline-offset: -2px;
    border-radius: .2rem;
    z-index: 2;
}

.ff-jahr-cell.ff-past.ff-state-open {
    background: #f0fdf4;
    color: #86a890;
}

.ff-jahr-tooltip {
    display: none;
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 170px;
    max-width: 240px;
    background: #1f2937;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: .6rem;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .35);
    padding: .55rem .7rem;
    font-size: .7rem;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
}

.ff-jahr-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.ff-jtt-time {
    color: #4ade80;
    font-weight: 700;
}

.ff-jtt-closed {
    color: #cbd5e1;
    font-weight: 600;
}

.ff-jahr-cell:hover .ff-jahr-tooltip,
.ff-jahr-cell:focus-visible .ff-jahr-tooltip,
.ff-jahr-cell.ff-tooltip-open .ff-jahr-tooltip {
    display: block;
}

.ff-jahr-week > :nth-child(1) .ff-jahr-tooltip,
.ff-jahr-week > :nth-child(2) .ff-jahr-tooltip {
    left: 0;
    transform: translateX(0);
}

.ff-jahr-week > :nth-child(1) .ff-jahr-tooltip::after,
.ff-jahr-week > :nth-child(2) .ff-jahr-tooltip::after {
    left: 20px;
    transform: none;
}

.ff-jahr-week > :nth-child(6) .ff-jahr-tooltip,
.ff-jahr-week > :nth-child(7) .ff-jahr-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.ff-jahr-week > :nth-child(6) .ff-jahr-tooltip::after,
.ff-jahr-week > :nth-child(7) .ff-jahr-tooltip::after {
    left: auto;
    right: 18px;
    transform: none;
}

/* Stern in Jahresansicht */
.ff-jahr-star {
    position: absolute;
    top: 0;
    right: 1px;
    font-size: .45rem;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 0 1px rgba(255,255,255,.9));
}

/* ─── Filter-Toolbar ─── */

.ff-jahr-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .5rem .75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ff-jahr-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: .73rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    touch-action: manipulation;
    line-height: 1;
}

.ff-jahr-filter-btn:hover {
    border-color: #94a3b8;
    color: #1e293b;
}

.ff-jahr-filter-btn.is-active {
    background: #1a4a27;
    border-color: #1a4a27;
    color: #fff;
}

.ff-jahr-filter-btn:focus-visible {
    outline: 2px solid #1a4a27;
    outline-offset: 2px;
}

.ff-jf-dot {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.ff-jf-dot--open { background: #2d7a3e; }
.ff-jf-dot--past { background: #94a3b8; }

.ff-jahr-filter-btn.is-active .ff-jf-dot--open { background: #86efac; }
.ff-jahr-filter-btn.is-active .ff-jf-dot--past { background: #cbd5e1; }

/* ─── Filter-Effekte auf Monats-Kacheln ─── */

/* Nur geöffnete Monate: geschlossene komplett ausblenden */
.ff-jfilter--only-open .ff-jahr-monat--no-open {
    display: none;
}

/* Vergangene ausblenden: vergangene Monate ausblenden */
.ff-jfilter--hide-past .ff-jahr-monat--past {
    display: none;
}

/* Jahres-Legende */
.ff-jahr-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .65rem;
    padding: .55rem .75rem .65rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    font-size: .7rem;
    color: #475569;
    align-items: center;
    justify-content: center;
}

/* Responsive Jahresansicht */
@media (max-width: 760px) {
    .ff-jahr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: .5rem;
        padding: .6rem;
    }
}

@media (max-width: 520px) {
    .ff-jahr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .4rem;
        padding: .5rem;
    }
    .ff-jahr-monat-header { font-size: .6rem; }
    .ff-jahr-monat-wd span { font-size: .46rem; }
    .ff-jahr-day { font-size: .55rem; }
    .ff-jahr-star { font-size: .4rem; }
}

@media (max-width: 480px) {
    .funforest-oz-kalender { max-width: 100%; }
    .funforest-prices--karten .funforest-price-cards {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}


/* ─── Park-Info-Box ─────────────────────────────────────────────────────────── */

/*
 * Wenn der Shortcode einen disabled-Sentinel ausgibt (kein aktiver Inhalt
 * oder site_disabled=true), wird die übergeordnete AVADA .parkinfobox
 * komplett ausgeblendet. :has() ist seit 2023 in allen modernen Browsern
 * unterstützt (Chrome 105+, Firefox 121+, Safari 15.4+).
 */
.parkinfobox:has(.funforest-park-info-disabled) {
    display: none !important;
}

/* Inhalt der Park-Info-Box */
.funforest-park-info-content {
    line-height: 1.6;
    color: inherit;
}

/* Mehrere gleichzeitig aktive Meldungen visuell voneinander trennen */
.funforest-park-info-item + .funforest-park-info-item {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.funforest-park-info-content h2,
.funforest-park-info-content h3 {
    font-family: inherit !important;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 .65rem;
    color: inherit;
}

.funforest-park-info-content h2 {
    font-size: clamp(1.35rem, 3.8vw, 2rem);
}

.funforest-park-info-content h3 {
    font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.funforest-park-info-content ul,
.funforest-park-info-highlights ul {
    margin: .4rem 0 .75rem;
    padding-left: 1.25rem;
}

.funforest-park-info-content li,
.funforest-park-info-highlights li {
    margin: .2rem 0;
}

.funforest-park-info-highlights {
    margin-top: .65rem;
}

.funforest-park-info-last-slot {
    margin-top: .7rem;
}

.funforest-park-info-content strong {
    font-weight: 700;
}

.funforest-park-info-content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.funforest-park-info-content a:hover {
    opacity: .8;
}

/* ─── Kategorie-Tabs-Kalender ───────────────────────────────────────────────── */

.funforest-oz-tabs {
    max-width: 520px;
    margin: 0 auto;
    font-family: inherit;
}

.ff-tabs-title {
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: .65rem;
    color: #1e293b;
}

.ff-tabs-month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.ff-tabs-nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #475569;
    padding: .15rem .45rem;
    border-radius: 4px;
    transition: background .15s, color .15s;
}
.ff-tabs-nav-btn:hover { background: #f1f5f9; color: #1e293b; }

.ff-tabs-month-label {
    font-size: .9rem;
    font-weight: 600;
    color: #1e293b;
    min-width: 130px;
    text-align: center;
}

.ff-tabs-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: .1rem;
    margin-bottom: .5rem;
    border-bottom: 2px solid #e2e8f0;
}
.ff-tabs-nav::-webkit-scrollbar { display: none; }

.ff-tab-btn {
    flex-shrink: 0;
    padding: .4rem .9rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 500;
    border-radius: 4px 4px 0 0;
    white-space: nowrap;
    transition: color .15s, border-color .15s, background .15s;
}
.ff-tab-btn:hover { color: #1e293b; background: #f8fafc; }
.ff-tab-btn.is-active {
    color: #2d6a4f;
    border-bottom-color: #2d6a4f;
    font-weight: 600;
}

.ff-tab-panel { display: none; }
.ff-tab-panel.is-active { display: block; }

/* Eigene Monats-Navigation der inneren Kalender ausblenden — Tabs nutzt die äußere */
.ff-tab-panel .ff-cal-header { display: none !important; }

@media (max-width: 480px) {
    .funforest-oz-tabs { max-width: 100%; }
    .ff-tab-btn { font-size: .78rem; padding: .38rem .65rem; }
}

/* ─── Rechtliche Seiten (funforest_legal) ──────────────────────────────────── */

.funforest-legal {
    font-size: 1rem;
    line-height: 1.7;
    color: #1e293b;
}

.funforest-legal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a4a27;
    margin: 0 0 .75rem;
}

.funforest-legal__date {
    font-size: .85rem;
    color: #64748b;
    margin: 0 0 1.25rem;
}

.funforest-legal__content h1,
.funforest-legal__content h2,
.funforest-legal__content h3,
.funforest-legal__content h4 {
    color: #1a4a27;
    margin-top: 1.5em;
    margin-bottom: .5em;
    font-weight: 600;
    line-height: 1.3;
}

.funforest-legal__content h1 { font-size: 1.4rem; }
.funforest-legal__content h2 { font-size: 1.2rem; }
.funforest-legal__content h3 { font-size: 1.05rem; }

.funforest-legal__content p  { margin: 0 0 1em; }

.funforest-legal__content ul,
.funforest-legal__content ol {
    padding-left: 1.5rem;
    margin: 0 0 1em;
}

.funforest-legal__content ul li { list-style: disc; }
.funforest-legal__content ol li { list-style: decimal; }
.funforest-legal__content li    { margin-bottom: .3em; }

.funforest-legal__content a {
    color: #2d7a3e;
    text-decoration: underline;
    word-break: break-word;
}
.funforest-legal__content a:hover { color: #1a4a27; }

.funforest-legal__content strong { font-weight: 600; }
.funforest-legal__content em     { font-style: italic; }

.funforest-legal__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: .93rem;
}
.funforest-legal__content th,
.funforest-legal__content td {
    border: 1px solid #cbd5e1;
    padding: .5rem .75rem;
    text-align: left;
    vertical-align: top;
}
.funforest-legal__content th {
    background: #f1f5f9;
    font-weight: 600;
}

.funforest-legal__content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.5em 0;
}

.funforest-legal__content blockquote {
    border-left: 4px solid #cbd5e1;
    padding-left: 1rem;
    color: #64748b;
    font-style: italic;
    margin: 1em 0;
}

.funforest-legal__content pre,
.funforest-legal__content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .88em;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: .1em .35em;
}
.funforest-legal__content pre {
    padding: 1em;
    overflow-x: auto;
    white-space: pre;
}

.funforest-legal-error {
    color: #dc2626;
    font-size: .9rem;
    padding: .75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

/* ─── Live-Öffnungsstatus für den Header ([funforest_oeffnungsstatus]) ─────
 * Farben aus dem Website-Theme (Avada): Dunkelgrün #062416, Grün #95b547,
 * Gelb #ffc863, Rot #cc433c, Creme #f8f6f2. Schrift erbt vom Theme (Poppins).
 * farbe="hell" (Standard) = weiße Schrift für den transparenten/dunklen Header,
 * farbe="dunkel" = dunkelgrüne Schrift für helle Flächen.
 */
.ff-live {
    --ff-live-open: #95b547;
    --ff-live-soon: #ffc863;
    --ff-live-closed: #cc433c;
    --ff-live-fg: #ffffff;
    --ff-live-fg-muted: rgba(255, 255, 255, .82);
    --ff-live-bg: rgba(6, 36, 22, .55);
    --ff-live-border: rgba(255, 255, 255, .28);
    --ff-live-dot: var(--ff-live-closed);
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-family: inherit;
    font-size: .875rem;
    line-height: 1.25;
    color: var(--ff-live-fg);
    text-decoration: none;
    white-space: nowrap;
}
.ff-live--dunkel {
    --ff-live-fg: #062416;
    --ff-live-fg-muted: rgba(6, 36, 22, .75);
    --ff-live-bg: #f8f6f2;
    --ff-live-border: rgba(6, 36, 22, .15);
    --ff-live-open: #5f7f22;   /* dunkleres Grün für Kontrast auf hellem Grund */
    --ff-live-soon: #b7791f;
}
.ff-live--open    { --ff-live-dot: var(--ff-live-open); }
.ff-live--soon    { --ff-live-dot: var(--ff-live-soon); }
.ff-live--closed,
.ff-live--forced  { --ff-live-dot: var(--ff-live-closed); }
.ff-live--unknown { --ff-live-dot: transparent; }

a.ff-live:hover,
a.ff-live:focus-visible { color: var(--ff-live-fg); text-decoration: underline; text-underline-offset: 3px; }
a.ff-live:focus-visible { outline: 2px solid var(--ff-live-soon); outline-offset: 3px; }

.ff-live__dot {
    position: relative;
    flex-shrink: 0;
    width: .62em;
    height: .62em;
    border-radius: 50%;
    background: var(--ff-live-dot);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.ff-live--dunkel .ff-live__dot { box-shadow: 0 0 0 2px #fff; }
.ff-live--unknown .ff-live__dot { box-shadow: none; }
.ff-live--open .ff-live__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--ff-live-dot);
    animation: ff-live-ping 2.2s ease-out infinite;
}
@keyframes ff-live-ping {
    0%   { transform: scale(1);   opacity: .7; }
    80%, 100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ff-live--open .ff-live__dot::after { animation: none; }
}

.ff-live__text   { display: inline; }
.ff-live__label  { font-weight: 600; }
.ff-live__detail { color: var(--ff-live-fg-muted); }
.ff-live--ohne-punkt .ff-live__dot { display: none; }

/* 1) pill (Standard): Glas-Pille, passt zu den Header-Buttons */
.ff-live--pill {
    padding: .45em .95em;
    border-radius: 999px;
    background: var(--ff-live-bg);
    border: 1px solid var(--ff-live-border);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* 2) text: schlichte Zeile ohne Fläche */
.ff-live--text { padding: .2em 0; }

/* 3) punkt: nur Punkt + Status, Zeiten nur für Screenreader/Tooltip */
.ff-live--punkt { gap: .4em; }
.ff-live--punkt .ff-live__sep,
.ff-live--punkt .ff-live__detail {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* 4) zweizeilig: Status oben, Zeit darunter */
.ff-live--zweizeilig {
    align-items: flex-start;
    gap: .55em;
    white-space: normal;
}
.ff-live--zweizeilig .ff-live__dot { margin-top: .38em; }
.ff-live--zweizeilig .ff-live__text { display: flex; flex-direction: column; }
.ff-live--zweizeilig .ff-live__sep { display: none; }
.ff-live--zweizeilig .ff-live__detail { font-size: .85em; }

@media (max-width: 640px) {
    .ff-live { font-size: .8125rem; }
    /* Mobil: Zeiten in der Pille nur für Screenreader/Tooltip */
    .ff-live--pill .ff-live__sep,
    .ff-live--pill .ff-live__detail {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* ─── Box mit Live-Status ([funforest_oeffnungszeiten] Standard, seit 2.9.0) ───
 * Die Box färbt sich nach dem Live-Zustand (grün geöffnet, gelb öffnet heute, rot zu).
 */
.funforest-oz-box--live { border-left-color: #cc433c; background: #fff7f6; }
.funforest-oz-box--live:has(.ff-live--open) { border-left-color: #5f7f22; background: #f5f9ec; }
.funforest-oz-box--live:has(.ff-live--soon) { border-left-color: #b7791f; background: #fffaf0; }
.funforest-oz-box--live .ff-live { font-size: 1rem; }

/* ─── Kontaktformular [funforest_kontakt] ─── */

.ff-kontakt {
    --ff-kontakt-fg: #062416;
    --ff-kontakt-muted: #475569;
    --ff-kontakt-accent: #95b547;
    /* Feldrahmen mind. 3:1 gegen Weiß (WCAG 1.4.11): #767f8c ≈ 4,0:1 */
    --ff-kontakt-border: #767f8c;
    --ff-kontakt-error: #b91c1c;
    max-width: 40rem;
    color: var(--ff-kontakt-fg);
}

.ff-kontakt__title { margin: 0 0 .4rem; }
.ff-kontakt__intro { margin: 0 0 1.2rem; color: var(--ff-kontakt-muted); }
.ff-kontakt__hint { margin: 0 0 1rem; font-size: .85rem; color: var(--ff-kontakt-muted); }

.ff-kontakt__field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.ff-kontakt__field label { font-weight: 600; font-size: .95rem; }
.ff-kontakt__optional,
.ff-kontakt__field-hint { font-weight: 400; font-size: .85rem; color: var(--ff-kontakt-muted); }

.ff-kontakt__field input,
.ff-kontakt__field select,
.ff-kontakt__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: .6rem .75rem;
    border: 1.5px solid var(--ff-kontakt-border);
    border-radius: .5rem;
    background: #fff;
    color: var(--ff-kontakt-fg);
    font: inherit;
}

.ff-kontakt__field [aria-invalid="true"],
.ff-kontakt__consent input[aria-invalid="true"] {
    border-color: var(--ff-kontakt-error);
    border-width: 2px;
}
.ff-kontakt__consent input[aria-invalid="true"] { outline: 2px solid var(--ff-kontakt-error); outline-offset: 2px; }

.ff-kontakt__field input:focus-visible,
.ff-kontakt__field select:focus-visible,
.ff-kontakt__field textarea:focus-visible,
.ff-kontakt__consent input:focus-visible,
.ff-kontakt__submit:focus-visible,
.ff-kontakt__success:focus-visible {
    outline: 3px solid var(--ff-kontakt-fg);
    outline-offset: 2px;
}

.ff-kontakt__consent { display: flex; align-items: flex-start; gap: .6rem; margin: 1.2rem 0; font-size: .9rem; }
.ff-kontakt__consent input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; flex: none; }
.ff-kontakt__consent a { color: inherit; text-decoration: underline; }

/* Nur für Screenreader (unabhängig vom Theme) */
.ff-kontakt .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Honeypot: für Menschen unsichtbar, aber kein display:none (Bots füllen sonst nicht aus) */
.ff-kontakt__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ff-kontakt__field-error { font-size: .9rem; font-weight: 600; color: var(--ff-kontakt-error); }
.ff-kontakt__privacy-note { margin: 0 0 1rem; font-size: .85rem; color: var(--ff-kontakt-muted); }
.ff-kontakt__turnstile { margin: 0 0 1rem; min-height: 65px; }
.ff-kontakt__turnstile .ff-kontakt__field-error { display: block; margin-top: .3rem; }

.ff-kontakt__error {
    margin: 0 0 1rem;
    padding: .7rem .9rem;
    border-left: 4px solid var(--ff-kontakt-error);
    background: #fef2f2;
    color: var(--ff-kontakt-error);
}

.ff-kontakt__submit {
    display: inline-block;
    padding: .75rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--ff-kontakt-accent);
    color: var(--ff-kontakt-fg);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.ff-kontakt__submit:hover { filter: brightness(.95); }
.ff-kontakt__submit:disabled { opacity: .6; cursor: wait; }

.ff-kontakt__success {
    padding: 1.2rem 1.4rem;
    border-radius: .75rem;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
}
.ff-kontakt__success p { margin: 0; }
.ff-kontakt__success-title { font-weight: 700; font-size: 1.1rem; margin-bottom: .3rem !important; }

.ff-kontakt [hidden] { display: none !important; }
