/* ==========================================================================
   Smooth-Calendar - Frontend

   Schrift: wird vom Theme übernommen (font-family: inherit).

   Anpassbar über CSS-Variablen (z. B. im Customizer unter "Zusätzliches CSS"):

     .smoothc, .sc-event-info-card {
         --sc-accent: #1d6fa5;        Hauptfarbe (Tagesleiste, Schaltflächen, Links)
         --sc-accent-text: #ffffff;   Schriftfarbe auf der Hauptfarbe
         --sc-text: #222222;          Textfarbe (Standard: vom Theme)
         --sc-muted: #646970;         gedämpfter Text
         --sc-border: #d5d8dc;        Linien und Rahmen
         --sc-surface: #ffffff;       Hintergrund von Zellen und Karten
         --sc-surface-alt: #f6f7f7;   leere Zellen, Kopfzeilen
         --sc-today: #fff8d6;         Hintergrund des heutigen Tages
         --sc-radius: 4px;            Rundung der Ecken
     }

   Die Farbe einzelner Veranstaltungen kommt aus der Kategorie-Farbe über
   --sc-color / --sc-on-color (Standard ist die Hauptfarbe).
   ========================================================================== */

.smoothc,
.smoothc-list-wrapper,
.sc-event-info-card {
    font-family: inherit;
    color: var(--sc-text, inherit);
}

.smoothc *,
.smoothc *::before,
.smoothc *::after {
    box-sizing: border-box;
}

.smoothc {
    margin: 20px 0;
}

/* --- 1. Datums-Abreißblock (Widget und Agenda) --- */
.smoothc-date-box {
    width: 65px;
    text-align: center;
    background: linear-gradient(to bottom, var(--sc-surface, #fff), var(--sc-surface-alt, #ececec));
    border: 1px solid var(--sc-border, #ccc);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.smoothc-date-month {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    background: var(--sc-color, var(--sc-accent, #3b5998));
    color: var(--sc-on-color, var(--sc-accent-text, #fff));
    padding: 4px 0;
    letter-spacing: 2px;
}

.smoothc-date-day {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    margin: 0;
    padding: 6px 0 2px 0;
    color: var(--sc-text, #444);
}

.smoothc-date-dow {
    font-size: 12px;
    color: var(--sc-muted, #555);
    padding-bottom: 6px;
    font-weight: bold;
}

/* --- 2. Listenansicht Widget (type=widget) --- */
.smoothc-list-wrapper {
    max-width: 800px;
    margin: 20px 0;
}

.smoothc-list-wrapper .smoothc-event-item {
    display: flex;
    margin-bottom: 15px;
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
    box-shadow: none;
    gap: 10px;
    align-items: stretch;
}

.smoothc-list-wrapper .smoothc-event-content {
    padding: 10px 15px;
    flex-grow: 1;
    background: var(--sc-surface, #fff);
    border: 1px solid var(--sc-border, #ccc);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.smoothc-list-wrapper .sc-widget-time {
    font-size: 1.05em;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 2px;
}

.smoothc-list-wrapper .smoothc-event-title {
    margin: 0;
    font-size: 0.95em;
    font-weight: normal;
    line-height: 1.3;
    color: var(--sc-muted, #555);
}

.smoothc-list-wrapper .smoothc-event-title a {
    text-decoration: none;
    color: var(--sc-accent, #3b5998);
}

/* Widget in the sidebar: square date badge next to the card; time and title in the accent colour */
.smoothc-list-wrapper .smoothc-date-box {
    width: 64px;
    height: 64px;
    align-self: flex-start; /* stays square, does not grow with the card */
    justify-content: flex-start;
}
.smoothc-list-wrapper .smoothc-date-month { font-size: 10px; padding: 3px 0; letter-spacing: 1px; }
.smoothc-list-wrapper .smoothc-date-day {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 24px;
}
.smoothc-list-wrapper .smoothc-date-dow { font-size: 11px; padding-bottom: 3px; }
.smoothc-list-wrapper .smoothc-event-content { padding: 8px 12px; min-width: 0; overflow-wrap: anywhere; }
.smoothc-list-wrapper .sc-widget-time,
.smoothc-list-wrapper .sc-widget-title,
.smoothc-list-wrapper .sc-widget-title a { color: var(--sc-accent, #3b5998); } /* title in the colour of the time ... */
.smoothc-list-wrapper .sc-widget-title { font-size: 0.92em; } /* ... but a little smaller */
.smoothc-list-wrapper .smoothc-event-title a:hover,
.smoothc-list-wrapper .smoothc-event-title a:focus { text-decoration: underline; }
.smoothc-widget .smoothc-list-wrapper { margin: 0 0 10px; }
.smoothc-widget .smoothc-view-widget { margin: 0; }

/* The font of the widget is the font of the layout (some themes set another one on widgets; the script also takes over the body font) */
.smoothc-view-widget,
.smoothc-view-widget *:not(.dashicons),
.sc-widget-footer,
.sc-widget-footer *:not(.dashicons) { font-family: inherit !important; }

.smoothc.sc-widget-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.sc-widget-footer .sc-footer-tools { margin-top: 0; justify-content: flex-start; }
.sc-widget-more {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--sc-border, #ccc);
    border-radius: var(--sc-radius, 4px);
    background: var(--sc-surface, #fff);
    color: var(--sc-text, inherit);
    text-decoration: none;
    line-height: 1.3;
}
.sc-widget-more:hover,
.sc-widget-more:focus { background: var(--sc-surface-alt, #f0f0f1); color: var(--sc-text, inherit); text-decoration: none; }

/* Hover-Popup (Widget) */
.smoothc-hover-popup {
    display: none;
    position: absolute;
    left: 100%;
    top: -10px;
    width: 280px;
    background: var(--sc-surface, #fff);
    border: 1px solid var(--sc-border, #ccc);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 999;
    border-radius: 5px;
}

.smoothc-event-item:hover .smoothc-hover-popup,
.smoothc-event-item:focus-within .smoothc-hover-popup { display: block; }
/* The script moves the popup so that it stays inside the window: left of the card at the right edge, below it if there is no room at the sides */
.smoothc-event-item.sc-pop-left .smoothc-hover-popup { left: auto; right: 100%; }
.smoothc-event-item.sc-pop-below .smoothc-hover-popup { left: 0; right: auto; top: 100%; width: min(280px, calc(100vw - 24px)); }
.smoothc-hover-popup img { max-width: 100%; height: auto; border-radius: 3px; margin: 10px 0; }

/* --- 3. Werkzeugleiste: Filter, Ansicht, Auswahlmenüs --- */
.sc-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.sc-filters,
.sc-view-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.sc-view-tools { margin-left: auto; }

.sc-dd { position: relative; }
.sc-dd-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 10px 6px 14px;
    background: var(--sc-surface, #fff);
    border: 1px solid var(--sc-border, #ccc);
    border-radius: var(--sc-radius, 4px);
    cursor: pointer;
    list-style: none;
    line-height: 1.2;
    user-select: none;
}
.sc-dd-toggle::-webkit-details-marker { display: none; }
.sc-dd-toggle::marker { content: ""; }
.sc-dd-toggle:hover,
.sc-dd[open] > .sc-dd-toggle { border-color: var(--sc-accent, #3b5998); }
.sc-dd-toggle:focus-visible { outline: 2px solid var(--sc-accent, #3b5998); outline-offset: 2px; }
.sc-dd.is-filtered > .sc-dd-toggle { border-color: var(--sc-accent, #3b5998); font-weight: bold; }
.sc-dd-caret { width: 16px; height: 16px; font-size: 16px; color: var(--sc-muted, #646970); }

.sc-dd-menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + 2px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: 280px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: var(--sc-surface, #fff);
    border: 1px solid var(--sc-border, #ccc);
    border-radius: var(--sc-radius, 4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.sc-dd-view .sc-dd-menu { left: auto; right: 0; }
.sc-dd-menu li { margin: 0; padding: 0; list-style: none; }
.sc-dd-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.sc-dd-menu a:hover,
.sc-dd-menu a:focus { background: var(--sc-surface-alt, #f0f0f1); }
.sc-dd-menu a.active { font-weight: bold; }
.sc-dd-menu .sc-check { display: inline-block; width: 1.2em; }

.sc-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    background: var(--sc-accent, #3b5998);
    vertical-align: baseline;
}

.sc-tool {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 6px 12px;
    font: inherit;
    line-height: 1.2;
    color: inherit;
    background: var(--sc-surface, #fff);
    border: 1px solid var(--sc-border, #ccc);
    border-radius: var(--sc-radius, 4px);
    cursor: pointer;
}
.sc-tool[hidden] { display: none; }
.sc-tool:hover { border-color: var(--sc-accent, #3b5998); }
.sc-tool .dashicons { width: 16px; height: 16px; font-size: 16px; }

/* --- 4. Monatskalender (type=cal) --- */
.smoothc-calendar-wrap { width: 100%; }
.sc-calendar-grid { font-size: 0.875rem; line-height: 1.3; }

.sc-row-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.sc-nav-left { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.sc-nav-left a {
    color: var(--sc-accent, #3b5998);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 0.02em;
}
.sc-nav-left a:hover { text-decoration: underline; }
.sc-nav-current { font-weight: bold; font-size: 1.25em; text-transform: uppercase; }

.sc-calendar-grid {
    border-top: 1px solid var(--sc-border, #ddd);
    border-left: 1px solid var(--sc-border, #ddd);
}
.sc-grid-row { display: flex; width: 100%; }
.sc-cell {
    flex: 1;
    width: 14.285%;
    min-width: 0;
    min-height: 110px;
    border-right: 1px solid var(--sc-border, #ddd);
    border-bottom: 1px solid var(--sc-border, #ddd);
    background: var(--sc-surface, #fff);
    display: flex;
    flex-direction: column;
}
.sc-cell.empty { background: var(--sc-surface-alt, #fafafa); }
.sc-cell.today { background: var(--sc-today, #fff8d6); }
.sc-grid-row.header .sc-cell {
    background: var(--sc-surface-alt, #f0f0f0);
    min-height: auto;
    padding: 8px 5px;
    text-align: center;
    font-weight: bold;
}

.sc-day-bar {
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    background: var(--sc-accent, #3b5998);
    color: var(--sc-accent-text, #fff);
}
.sc-cell.today .sc-day-bar { background: var(--sc-today-accent, #d9822b); }
.sc-day-events { padding: 4px; }

.sc-event-wrap { position: relative; margin-bottom: 3px; }
.sc-event-entry {
    display: block;
    padding: 2px 5px;
    font-size: 0.75rem;
    line-height: 1.3;
    text-decoration: none;
    background: var(--sc-color, var(--sc-accent, #3b5998));
    color: var(--sc-on-color, var(--sc-accent-text, #fff));
    border-radius: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-event-entry:hover,
.sc-event-entry:focus { opacity: 0.88; color: var(--sc-on-color, var(--sc-accent-text, #fff)); }
.sc-ev-time { font-weight: bold; }

/* Popover im Monatsraster: bei Hover und Tastaturfokus, ohne JavaScript */
.sc-pop {
    display: none;
    position: absolute;
    z-index: 70;
    top: 100%;
    left: 0;
    width: 280px;
    background: var(--sc-surface, #fff);
    color: var(--sc-text, inherit);
    border: 1px solid var(--sc-border, #ccc);
    border-radius: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.4;
}
.sc-pop { cursor: default; font-weight: normal; text-align: left; text-transform: none; letter-spacing: normal; }
.sc-col-right .sc-pop { left: auto; right: 0; }
.sc-event-wrap:hover > .sc-pop,
.sc-event-wrap:focus-within > .sc-pop,
.sc-ev-head:hover > .sc-pop,
.sc-ev-head:focus-within > .sc-pop { display: block; }
/* Agenda: das Popover gilt für zugeklappte Termine; aufgeklappt steht alles im Termin selbst */
.sc-ev[open] > .sc-ev-head > .sc-pop { display: none !important; }
/* Mit Escape schließen (das Skript setzt die Klasse, bis die Maus oder der Fokus den Termin verlässt) */
.sc-pop-off > .sc-pop { display: none !important; }
.sc-pop-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 8px 10px;
    border-top: 4px solid var(--sc-color, var(--sc-accent, #3b5998));
}
.sc-pop-title { font-weight: bold; color: inherit; text-decoration: none; }
.sc-pop-title:hover { text-decoration: underline; }
.sc-pop-edit { flex-shrink: 0; font-size: 0.9em; color: var(--sc-accent, #3b5998); }
.sc-pop-date { padding: 5px 10px; background: var(--sc-surface-alt, #f0f0f1); color: var(--sc-muted, #555); font-size: 0.9em; }
.sc-pop-body:empty { display: none; }
.sc-pop-img img { display: block; width: 100%; height: auto; }
.sc-pop-text { margin: 0; padding: 8px 10px 10px; }

/* Agenda-Navigation: ‹ Zeitraum › */
.sc-agenda-nav .sc-nav-left { gap: 12px; }
.sc-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.6em;
    line-height: 1;
    border: 1px solid var(--sc-border, #ccc);
    border-radius: var(--sc-radius, 4px);
    background: var(--sc-surface, #fff);
}
.sc-nav-left a.sc-nav-arrow { text-transform: none; font-size: 1.6em; text-decoration: none; }
.sc-nav-arrow.is-disabled { color: var(--sc-muted, #999); opacity: 0.4; }

/* Abonnieren (rechts unten, Menü öffnet nach oben) */
.sc-footer-tools { display: flex; justify-content: flex-end; margin-top: 10px; }
.sc-dd-up .sc-dd-menu { top: auto; bottom: calc(100% + 2px); left: auto; right: 0; }
.sc-subscribe-toggle { background: var(--sc-accent, #3b5998); border-color: var(--sc-accent, #3b5998); color: var(--sc-accent-text, #fff); font-weight: bold; }
.sc-subscribe-toggle .dashicons { width: 18px; height: 18px; font-size: 18px; }
.sc-subscribe-toggle .sc-dd-caret { color: inherit; }
.sc-dd-subscribe .sc-dd-toggle:hover,
.sc-dd-subscribe[open] > .sc-dd-toggle { opacity: 0.92; }
.sc-dd-subscribe .sc-dd-menu { max-width: 320px; }
.sc-sub-copy { padding: 8px 14px 10px; border-top: 1px solid var(--sc-border, #e5e5e5); font-size: 0.85em; color: var(--sc-muted, #646970); }
.sc-sub-copy label { display: block; }
.sc-sub-url { display: block; width: 100%; min-width: 240px; margin-top: 4px; padding: 5px 8px; font: inherit; font-size: 0.95em; color: var(--sc-text, inherit); background: var(--sc-surface-alt, #f6f7f7); border: 1px solid var(--sc-border, #ccc); border-radius: var(--sc-radius, 4px); }

/* --- 5. Einzelansicht Info-Karte --- */
.sc-event-info-card {
    display: flex;
    gap: 20px;
    background: var(--sc-surface, #fff);
    border: 1px solid var(--sc-border, #d2d6dc);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.sc-info-col { flex: 1; padding: 5px 15px; }
.sc-info-block { margin-bottom: 15px; }
.sc-info-note { margin-bottom: 8px; font-size: 0.9em; color: var(--sc-muted, #4a5568); }
.sc-info-note.sc-info-excluded { color: #c53030; margin-bottom: 15px; }
.sc-info-line { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--sc-muted, #4a5568); }
.sc-info-line .dashicons { color: #718096; }
.sc-info-line.sc-info-cat .dashicons { color: #8db543; }
.sc-info-line.sc-info-tag { align-items: flex-start; }
.sc-info-line.sc-info-tag .dashicons { margin-top: 3px; }
.sc-map { flex: 1; min-height: 250px; background: #eee; }

/* --- 6. Agenda (type=list) --- */
.smoothc-list-full-viewport { width: 100%; }

.smoothc-list-full-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.smoothc-list-full-item > .smoothc-date-box { margin-top: 0; }

.sc-ev {
    flex: 1;
    min-width: 0;
    background: var(--sc-surface, #fff);
    border: 1px solid var(--sc-border, #d5d8dc);
    border-left: 4px solid var(--sc-color, var(--sc-accent, #3b5998));
    border-radius: var(--sc-radius, 4px);
}
.sc-ev-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
}
.sc-ev-head::-webkit-details-marker { display: none; }
.sc-ev-head::marker { content: ""; }
.sc-ev-head:focus-visible { outline: 2px solid var(--sc-accent, #3b5998); outline-offset: -2px; }
.sc-ev-heading { display: block; min-width: 0; }
.sc-ev-title { display: block; font-size: 1.2em; font-weight: bold; line-height: 1.3; }
.sc-list-date { display: block; margin-top: 2px; color: var(--sc-muted, #646970); font-size: 0.9em; }

.sc-ev-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--sc-muted, #646970);
    text-align: center;
}
.sc-ev-toggle::before { font-family: dashicons; content: "\f132"; font-size: 22px; line-height: 24px; }
.sc-ev[open] > .sc-ev-head .sc-ev-toggle::before { content: "\f460"; }

.sc-ev-body { padding: 4px 14px 14px; border-top: 1px solid var(--sc-border, #e5e5e5); }
.sc-list-body { display: flex; gap: 20px; padding-top: 12px; }
.sc-list-img img { display: block; max-width: 250px; height: auto; border-radius: var(--sc-radius, 4px); }
.sc-list-text { flex: 1; min-width: 0; }
.sc-list-text > :first-child { margin-top: 0; }
.sc-list-info { margin-top: 10px; padding: 10px; background: var(--sc-surface-alt, #f9f9f9); border-left: 3px solid var(--sc-color, var(--sc-accent, #3b5998)); }

.sc-ev-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--sc-border, #e5e5e5);
    font-size: 0.9em;
}
.sc-ev-termgroup { margin-bottom: 3px; }
.sc-ev-termlabel { font-weight: bold; text-transform: uppercase; font-size: 0.85em; color: var(--sc-muted, #646970); margin-right: 4px; }
.sc-term { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; color: inherit; text-decoration: none; }
a.sc-term:hover { text-decoration: underline; }

.sc-no-events { color: var(--sc-muted, #666); }

/* --- 7. Schaltflächen --- */
.sc-btn {
    display: inline-block;
    padding: 6px 14px;
    background: var(--sc-accent, #3b5998);
    border: 1px solid var(--sc-accent, #3b5998);
    color: var(--sc-accent-text, #fff);
    text-decoration: none;
    border-radius: var(--sc-radius, 4px);
    font-weight: bold;
}
.sc-btn:hover,
.sc-btn:focus { opacity: 0.88; color: var(--sc-accent-text, #fff); }

/* --- 8. Schmale Bildschirme --- */
@media (max-width: 768px) {
    .sc-event-info-card { flex-direction: column; }
    .smoothc-hover-popup,
    .sc-pop { display: none !important; }
    .sc-event-entry { font-size: 0.6875rem; padding: 1px 3px; }
    .sc-cell { min-height: 70px; }
    .sc-day-bar { padding: 2px 4px; }
    .sc-nav-left { gap: 4px 12px; }
    .sc-agenda-nav .sc-nav-left { gap: 8px; }
    .sc-nav-current { font-size: 1.1em; }
    .smoothc-list-full-item { gap: 8px; }
    .smoothc-list-full-item > .smoothc-date-box { width: 52px; }
    .smoothc-list-full-item .smoothc-date-day { font-size: 22px; }
    .sc-list-body { flex-direction: column; gap: 10px; }
    .sc-list-img img { max-width: 100%; }
    .sc-view-tools { margin-left: 0; }
}

/* --- 9. Druck: nur der Kalender, Details immer aufgeklappt (das Skript öffnet sie vor dem Drucken) --- */
@media print {
    /* Seitenkopf, Seitenleiste, Fußzeile, Admin-Leiste usw. entfallen: ausgeblendet wird alles, was weder Kalender (Monat/Agenda)
       ist, noch einen enthält. Gilt nur auf Seiten, die eine Monats- oder Agenda-Ansicht enthalten. */
    html { margin-top: 0 !important; }
    body:has(.smoothc-view-cal, .smoothc-view-list) { margin: 0 !important; padding: 0 !important; background: #fff !important; }
    body:has(.smoothc-view-cal, .smoothc-view-list) *:not(.smoothc-view-cal):not(.smoothc-view-list):not(:has(.smoothc-view-cal, .smoothc-view-list)):not(:is(.smoothc-view-cal, .smoothc-view-list) *) { display: none !important; }
    /* Umgebende Container des Themes (Spalten, Rahmen, Hintergründe) neutralisieren, damit der Kalender die volle Breite nutzt */
    body:has(.smoothc-view-cal, .smoothc-view-list) *:has(.smoothc-view-cal, .smoothc-view-list) {
        display: block !important; float: none !important; position: static !important; width: auto !important; max-width: none !important;
        min-width: 0 !important; height: auto !important; min-height: 0 !important; overflow: visible !important; transform: none !important;
        margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important;
    }
    body:has(.smoothc-view-cal, .smoothc-view-list) *:has(.smoothc-view-cal, .smoothc-view-list)::before,
    body:has(.smoothc-view-cal, .smoothc-view-list) *:has(.smoothc-view-cal, .smoothc-view-list)::after { display: none !important; content: none !important; }

    .smoothc-view-cal, .smoothc-view-list { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; }

    /* Im Kalender selbst: keine Bedienelemente; Monat bzw. Zeitraum bleibt als Überschrift stehen */
    .sc-toolbar,
    .sc-footer-tools,
    .sc-ev-toggle,
    .sc-readmore,
    .sc-pop,
    .sc-row-nav a,
    .sc-nav-arrow,
    .sc-calendar-grid ~ .sc-row-nav { display: none !important; }
    .sc-calendar-grid { margin-right: 2px; } /* sonst fällt die rechte Rasterlinie an der Druckkante weg */
    .sc-row-nav { display: block !important; }
    .sc-nav-current { display: block; margin: 0 0 8px; text-align: center; font-size: 1.25em; color: #000; }
    /* Farbflächen mit weißer Schrift würden ohne Hintergrunddruck unsichtbar: hell mit dunkler Schrift */
    .sc-day-bar,
    .sc-cell.today .sc-day-bar,
    .smoothc-date-month { background: #eee !important; color: #000 !important; }
    .sc-cell.today { background: #fff !important; }
    .smoothc-list-full-item { break-inside: avoid; }
    .sc-ev { border-color: #999; }
    .sc-event-entry { border: 1px solid #999; background: #fff !important; color: #000 !important; }
}
