/*
--------------------------------------------------
SV TERMINE – FRONTEND
Version 0.2.4
--------------------------------------------------
*/


/*
--------------------------------------------------
GRUNDREGELN

Wichtig:

Die Webseite verwendet global teilweise weiße
Schrift auf grünem Hintergrund.

Innerhalb des Termin-Plugins erzwingen wir deshalb
gezielt dunkle Schrift.

Es wird NICHT die globale WordPress-Farbe geändert.
--------------------------------------------------
*/

.svt-terminliste,
.svt-terminliste *,

.svt-filters,
.svt-filters *,

.svt-status,
.svt-status * {
    box-sizing: border-box;
}


/*
--------------------------------------------------
STATUSBOX
Shortcode: [sv_status]
--------------------------------------------------
*/

.svt-status {
    background: #ffffff;
    color: #222222 !important;

    border: 1px solid #d9d9d9;
    border-left: 6px solid #2f7d32;

    padding: 18px 20px;

    margin: 20px 0;

    border-radius: 6px;
}


/*
Alle Texte innerhalb der Statusbox dunkel.
*/

.svt-status,
.svt-status strong,
.svt-status span,
.svt-status small,
.svt-status div {
    color: #222222 !important;
}


.svt-status-closed {
    border-left-color: #b3261e;
    background: #fffafa;
}


.svt-status-open {
    border-left-color: #2f7d32;
}


/*
Kleine Überschrift
*/

.svt-status-label {

    text-transform: uppercase;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.08em;

    margin-bottom: 6px;

    color: #555555 !important;
}


/*
Haupttext
*/

.svt-status > strong {

    display: block;

    font-size: 18px;

    margin-bottom: 8px;

    color: #222222 !important;
}


/*
Schließgründe
*/

.svt-status-closures {

    margin-top: 12px;
}


.svt-status-closure {

    padding: 6px 0;

    border-bottom: 1px solid #eeeeee;

    font-size: 15px;

    color: #222222 !important;
}


.svt-status-closure span {

    display: block;

    margin-top: 3px;

    font-size: 13px;

    color: #555555 !important;
}


/*
Hinweis auf ausgefallenes Training
*/

.svt-status-training-cancelled {

    margin-top: 14px;

    padding: 10px 12px;

    background: #fff3f3;

    border-left: 3px solid #b3261e;
}


/*
Zusätzliche Events am heutigen Tag
*/

.svt-status-events {

    margin-top: 15px;

    padding-top: 12px;

    border-top: 1px solid #dddddd;
}


.svt-status-event {

    margin: 4px 0;

    font-weight: 600;

    color: #222222 !important;
}


/*
--------------------------------------------------
FILTER
--------------------------------------------------
*/

.svt-filters {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin: 0 0 25px 0;

    color: #222222 !important;
}


/*
Filter Buttons
*/

.svt-filter {

    appearance: none;

    -webkit-appearance: none;

    background: #ffffff;

    color: #222222 !important;

    border: 1px solid #cfcfcf;

    border-radius: 4px;

    padding: 8px 13px;

    font-size: 14px;

    font-weight: 500;

    line-height: 1.3;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}


.svt-filter:hover {

    background: #f0f0f0;

    color: #222222 !important;
}


/*
Aktiver Filter
*/

.svt-filter.active {

    background: #285d32;

    border-color: #285d32;

    color: #ffffff !important;
}


/*
Wichtig:

WordPress-Themes überschreiben teilweise
Button-Farben.

Deshalb auch die inneren Elemente absichern.
*/

.svt-filter.active,
.svt-filter.active * {

    color: #ffffff !important;
}


/*
--------------------------------------------------
TERMINLISTE
--------------------------------------------------
*/

.svt-terminliste {

    width: 100%;

    max-width: 100%;

    color: #222222 !important;
}


/*
--------------------------------------------------
TAG
--------------------------------------------------
*/

.svt-day {

    margin-bottom: 30px;
}


.svt-day h3 {

    color: #ebc04c !important;

    font-size: 18px;

    font-weight: 700;

    margin:

        0
        0
        12px
        0;

    padding-bottom: 8px;

    border-bottom: 2px solid #285d32;
}


/*
--------------------------------------------------
TERMIN KARTE
--------------------------------------------------
*/

.svt-card {

    display: flex;

    align-items: flex-start;

    gap: 16px;

    padding: 16px;

    margin: 8px 0;

    background: #ffffff;

    color: #222222 !important;

    border: 1px solid #dddddd;

    border-radius: 6px;
}


/*
Alle Texte innerhalb der Karten dunkel.

Das ist der wichtigste Teil für dein Problem
mit der globalen weißen Schrift.
*/

.svt-card,
.svt-card strong,
.svt-card p,
.svt-card div,
.svt-card span,
.svt-card li {

    color: #222222 !important;
}


/*
Zeitbereich links
*/

.svt-time {

    flex-shrink: 0;

    min-width: 75px;

    padding-top: 3px;

    font-size: 14px;

    font-weight: 700;

    text-align: center;

    color: #222222 !important;
}


/*
Inhalt rechts
*/

.svt-card-content {

    flex: 1;

    min-width: 0;

    color: #222222 !important;
}


/*
Titel
*/

.svt-card-content > strong {

    display: block;

    font-size: 17px;

    font-weight: 700;

    color: #222222 !important;
}


/*
--------------------------------------------------
TERMINART
--------------------------------------------------
*/

.svt-type {

    display: inline-block;

    margin-bottom: 5px;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.07em;

    color: #555555 !important;
}


/*
--------------------------------------------------
FARBLICHE KATEGORIEN
--------------------------------------------------
*/


/*
Training
*/

.svt-card-training {

    border-left: 5px solid #347a46;
}


/*
Wettkampf
*/

.svt-card-competition {

    border-left: 5px solid #a47a18;
}


/*
Vereinsveranstaltung
*/

.svt-card-club {

    border-left: 5px solid #586d8c;
}


/*
Meldeschluss
*/

.svt-card-deadline {

    border-left: 5px solid #d28a16;
}


/*
Sondertermin
*/

.svt-card-special {

    border-left: 5px solid #754f91;
}


/*
Geschlossen
*/

.svt-card-closed {

    border-left: 5px solid #b3261e;

    background: #fffafa;
}


/*
--------------------------------------------------
AUSGEFALLENES TRAINING
--------------------------------------------------
*/

.svt-card-cancelled {

    background: #fafafa;

    opacity: 0.75;
}


/*
Durchgestrichene Optik für den Titel wäre hier
möglich, aber ich finde die Zeit weiterhin
lesbar zu lassen besser.
*/

.svt-cancelled-message {

    margin:

        8px
        0
        0
        0 !important;

    padding: 8px 10px;

    background: #fff0f0;

    border-left: 3px solid #b3261e;

    font-size: 14px;

    font-weight: 700;

    color: #8b1e18 !important;
}


/*
--------------------------------------------------
SCHLIESSGRÜNDE
--------------------------------------------------
*/

.svt-closure-list {

    margin:

        12px
        0
        0
        18px;

    padding: 0;

    color: #222222 !important;
}


.svt-closure-list li {

    margin-bottom: 8px;

    color: #222222 !important;
}


/*
--------------------------------------------------
HINWEIS
--------------------------------------------------
*/

.svt-note {

    margin:

        10px
        0
        0
        0 !important;

    padding: 9px 11px;

    background: #fff8dc;

    border-left: 3px solid #d2a52c;

    color: #222222 !important;

    font-size: 14px;
}


/*
--------------------------------------------------
ORT
--------------------------------------------------
*/

.svt-location {

    margin:

        7px
        0
        0
        0 !important;

    color: #333333 !important;

    font-size: 14px;
}


.svt-location span {

    font-weight: 700;

    color: #222222 !important;
}


/*
--------------------------------------------------
BESCHREIBUNG
--------------------------------------------------
*/

.svt-description {

    margin-top: 10px;

    color: #333333 !important;

    font-size: 15px;

    line-height: 1.5;
}


/*
--------------------------------------------------
EXTERN BADGE
--------------------------------------------------
*/

.svt-external {

    display: inline-block;

    margin-left: 7px;

    padding: 3px 8px;

    background: #eeeeee;

    border-radius: 12px;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;

    color: #333333 !important;
}


/*
--------------------------------------------------
EVENT SCHLIESSUNG
--------------------------------------------------
*/

.svt-event-closure {

    margin-top: 10px;

    padding: 8px 10px;

    background: #fff3f3;

    border-left: 3px solid #b3261e;

    font-size: 14px;

    font-weight: 600;

    color: #8b1e18 !important;
}


/*
--------------------------------------------------
LINKS
--------------------------------------------------
*/

.svt-links {

    margin-top: 12px;
}


.svt-links a {

    color: #755400 !important;

    font-weight: 700;

    text-decoration: underline;
}


.svt-links a:hover {

    color: #4f3800 !important;
}


/*
--------------------------------------------------
DOKUMENTE
--------------------------------------------------
*/

.svt-documents {

    margin-top: 14px;

    padding-top: 10px;

    border-top: 1px solid #eeeeee;
}


.svt-documents > strong {

    display: block;

    margin-bottom: 5px;

    color: #222222 !important;
}


.svt-documents a {

    display: block;

    margin: 6px 0;

    color: #755400 !important;

    text-decoration: underline;

    font-weight: 600;
}


/*
--------------------------------------------------
FILTER / VERSTECKTE ELEMENTE
--------------------------------------------------
*/

.svt-card[hidden] {

    display: none !important;
}


.svt-day[hidden] {

    display: none !important;
}


/*
--------------------------------------------------
SMARTPHONE
--------------------------------------------------
*/

@media screen and (max-width: 600px) {


    /*
    Filter dürfen umbrechen.
    */

    .svt-filters {

        gap: 6px;
    }


    .svt-filter {

        font-size: 12px;

        padding: 7px 10px;
    }


    /*
    Karten kompakter.
    */

    .svt-card {

        gap: 10px;

        padding: 13px 10px;
    }


    /*
    Zeitbereich kleiner.
    */

    .svt-time {

        min-width: 58px;

        font-size: 12px;
    }


    /*
    Überschrift.
    */

    .svt-day h3 {

        font-size: 16px;
    }


    /*
    Terminname.
    */

    .svt-card-content > strong {

        font-size: 16px;
    }


    /*
    Beschreibung.
    */

    .svt-description {

        font-size: 14px;
    }


    /*
    Hinweis etwas kompakter.
    */

    .svt-note {

        font-size: 13px;

        padding: 8px 9px;
    }


}


/*
--------------------------------------------------
SEHR KLEINE SMARTPHONES
--------------------------------------------------
*/

@media screen and (max-width: 400px) {


    .svt-card {

        gap: 7px;

        padding: 11px 8px;
    }


    .svt-time {

        min-width: 50px;

        font-size: 11px;
    }


    .svt-filter {

        font-size: 11px;

        padding: 6px 8px;
    }


}


/* Version 0.2.2 – Erweiterte Terminanzeige */

.svt-day h3 {
    color: #ebc04c !important;
    border-bottom-color: #ebc04c;
}

.svt-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 5px;
}

.svt-badges .svt-type {
    margin-bottom: 0;
}

.svt-public {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    background: #edf7ee;
    color: #1f6b2d !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.svt-event-time {
    margin: 7px 0 0 !important;
    font-size: 14px;
    font-weight: 700;
    color: #444 !important;
}

.svt-time-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #777 !important;
}

.svt-restrictions {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f7f7f7;
    border-left: 3px solid #777;
    font-size: 14px;
}

.svt-restrictions strong {
    color: #222 !important;
}

.svt-restrictions ul {
    margin: 6px 0 0 18px;
    padding: 0;
}

.svt-restrictions li {
    margin: 3px 0;
    color: #333 !important;
}

@media screen and (max-width: 600px) {
    .svt-badges { gap: 4px; }
    .svt-public, .svt-external { font-size: 9px; }
    .svt-event-time { font-size: 13px; }
}


/*
--------------------------------------------------
FILTERBEREICH
Version 0.2.6
--------------------------------------------------
*/

.svt-filter-bar {
    margin: 22px 0 30px;
    padding: 22px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(235,192,76,0.35);
    border-radius: 8px;
    color: #ffffff !important;
}

.svt-filter-heading {
    color: #ebc04c !important;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.svt-filter-section {
    padding: 0 0 17px;
    margin-bottom: 17px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.svt-filter-section-year {
    padding-bottom: 17px;
}

.svt-filter-section-title {
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 9px;
}

.svt-year-filters,
.svt-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.svt-year-filter,
.svt-filter {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 5px;
    padding: 9px 14px;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}

.svt-year-filter {
    min-width: 88px;
    background: rgba(255,255,255,0.92);
    color: #222222 !important;
    border: 1px solid #d4d4d4;
}

.svt-year-filter.active {
    background: #ebc04c;
    border-color: #ebc04c;
    color: #1d2f20 !important;
}

.svt-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.09);
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.17);
}

.svt-filter.active {
    background: #285d32;
    border-color: #3a7746;
    color: #ffffff !important;
}

.svt-filter:not(.active) {
    background: rgba(0,0,0,0.10);
    border-color: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.58) !important;
    opacity: 1;
}

.svt-filter-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.20);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.svt-filter:not(.active) .svt-filter-check {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.45);
    color: transparent !important;
}

.svt-year-filter:hover,
.svt-filter:hover {
    filter: brightness(1.08);
}

.svt-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 2px;
}

.svt-filter-actions-left {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.svt-filter-reset,
.svt-filter-hide-all,
.svt-print {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 5px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
}

.svt-filter-reset,
.svt-filter-hide-all {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.24);
}

.svt-print {
    background: #ffffff;
    color: #222222 !important;
    border: 1px solid #ffffff;
}

.svt-filter-reset:hover,
.svt-filter-hide-all:hover {
    background: rgba(255,255,255,0.10);
}

.svt-print:hover {
    background: #f2f2f2;
}

@media screen and (max-width: 600px) {
    .svt-filter-bar {
        padding: 17px 15px;
    }

    .svt-year-filter {
        flex: 1 1 0;
    }

    .svt-filter {
        flex: 1 1 auto;
    }

    .svt-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .svt-filter-actions-left {
        width: 100%;
    }

    .svt-filter-reset,
    .svt-filter-hide-all {
        flex: 1 1 0;
    }

    .svt-print {
        width: 100%;
    }
}

/*
--------------------------------------------------
DRUCKANSICHT
--------------------------------------------------
*/

@media print {

    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    /* WordPress-/Theme-Bereiche ausblenden */
    header,
    footer,
    nav,
    .site-header,
    .site-footer,
    .wp-block-navigation,
    .svt-filter-bar {
        display: none !important;
    }

    /* Nur die Terminliste sauber darstellen */
    .svt-terminliste {
        width: 100% !important;
        max-width: none !important;
        color: #000000 !important;
    }

    .svt-day {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 22px;
    }

    .svt-day h3 {
        color: #000000 !important;
        border-bottom: 1px solid #000000 !important;
        margin-top: 20px;
    }

    .svt-card {
        display: flex !important;
        border: 1px solid #999999 !important;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
        margin: 8px 0 !important;
        padding: 10px !important;
    }

    .svt-card,
    .svt-card * {
        color: #000000 !important;
    }

    .svt-badges,
    .svt-type,
    .svt-public,
    .svt-external {
        background: none !important;
        border: none !important;
    }

    .svt-links,
    .svt-documents {
        display: none !important;
    }

    .svt-card[hidden],
    .svt-day[hidden] {
        display: none !important;
    }
}


/* Kalender-Abo 0.3.1 */
.svt-calendar-subscribe{margin:0 0 24px;border:1px solid rgba(235,192,76,.45);border-radius:10px;background:#f7f7f4;color:#222;overflow:hidden}
.svt-calendar-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;background:transparent;border:0;color:#222;text-align:left;cursor:pointer}
.svt-calendar-toggle strong{display:block;color:#ebc04c;text-transform:uppercase;letter-spacing:.04em;font-size:1.05rem}
.svt-calendar-toggle small{display:block;color:#555;margin-top:4px;font-size:.92rem}
.svt-calendar-chevron{font-size:1.8rem;line-height:1;transition:transform .2s ease;color:#1f5b43}
.svt-calendar-subscribe.is-open .svt-calendar-chevron{transform:rotate(180deg)}
.svt-calendar-panel{padding:0 22px 22px;border-top:1px solid rgba(31,91,67,.15)}
.svt-calendar-intro{color:#222;margin:16px 0}
.svt-calendar-choices{display:flex;flex-wrap:wrap;gap:9px}
.svt-calendar-choice{padding:9px 12px;border:1px solid #bfc9c3;border-radius:7px;background:#fff;color:#222;cursor:pointer;font-weight:600}
.svt-calendar-choice.is-active{background:#1f5b43;color:#fff;border-color:#1f5b43}
.svt-calendar-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}
.svt-calendar-subscribe-action,.svt-calendar-download,.svt-calendar-copy{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:7px;background:#1f5b43;color:#fff!important;text-decoration:none!important;border:0;font-weight:600;cursor:pointer}
.svt-calendar-copy,.svt-calendar-download{background:#fff;color:#1f5b43!important;border:1px solid #1f5b43}
.svt-calendar-help{margin-top:14px;padding:12px 14px;border-left:3px solid #ebc04c;background:#fff;color:#333;font-size:.9rem;line-height:1.45}
@media(max-width:700px){.svt-calendar-toggle{padding:16px}.svt-calendar-panel{padding:0 16px 16px}.svt-calendar-choices,.svt-calendar-actions{display:grid;grid-template-columns:1fr}.svt-calendar-choice,.svt-calendar-subscribe-action,.svt-calendar-copy,.svt-calendar-download{width:100%}}
