/**
Theme Name: Astra Child
Author: Frank Merl
Author URI: http://wpastra.com/about/
Description: Theme für die SpVgg Kammerberg Website. Benötigt zusätzlich das Astra Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ==========================================================================
   Global Focus Styling - Yellow Outline
   ========================================================================== */

/* Globale gelbe Umrandung für alle fokussierten Elemente */
*:focus {
    outline: 2px solid #ffd700 !important;
    outline-offset: 2px !important;
}

/* ==========================================================================
   My Calendar SpVgg Preset Template Styles (basierend auf list_preset_1)
   ========================================================================== */

/* CSS Variablen für My Calendar Preset Templates */
:root {
    --list-preset-background: #ffffff;
    --list-preset-color: #333333;
    --list-preset-border-color: #e1e5e9;
    --list-preset-stripe-background: rgba(0, 0, 0, 0.04);
    --list-preset-date-badge-background: #007cba;
    --list-preset-date-badge-color: #ffffff;
}

li.list_preset_spvgg_1 .small {
    font-size: 0.8rem;
}

.mc-event-list li.list_preset_spvgg_1 {
    background: white;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mc-event-list li.list_preset_spvgg_1:hover {
    background: #f8f9fa;
}

/* Focus-State für Keyboard Navigation */
.mc-event-list li.list_preset_spvgg_1:focus,
.mc-event-list li.list_preset_spvgg_1.spvgg-event-focused {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
    background: #fffbf0;
}

/* Verbessere die Zugänglichkeit */
.mc-event-list li.list_preset_spvgg_1[tabindex] {
    position: relative;
}

/* Links innerhalb klickbarer li-Elemente */
.mc-event-list li.list_preset_spvgg_1[role="button"] a {
    pointer-events: none; /* Verhindert direktes Klicken auf Links */
    text-decoration: none;
    color: inherit;
}

/* Screen Reader Unterstützung */
.mc-event-list li.list_preset_spvgg_1[role="button"] {
    user-select: none; /* Verhindert Textauswahl */
}

.mc-event-list li.list_preset_spvgg_1 .mc-group-1 {
    height: 100%;
    background: black;
    border-radius: 3px 0 0 3px;
}

.mc-event-list li.list_preset_spvgg_1 .mc-group-2 {
    line-height: 1.5rem;
}

/* Container für SpVgg Template Events - Identisch zu Original */
ul.mc-event-list:has(li.list_preset_spvgg_1) {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

/* Basis Grid Layout für SpVgg Template - Reduzierte Abstände */
.mc-event-list .list_preset_spvgg_1,
.mc-event-list .list_preset_spvgg_1 > .mc-language {
    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-content: space-between;
    align-items: start;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
}

/* SpVgg Template Styling - Identisch zu list_preset_1 */
.mc-event-list .list_preset_spvgg_1 {
    background: var(--list-preset-background);
    color: var(--list-preset-color);
}

/* Date Badge Styling für SpVgg Template - Kompakt */
.mc-event-list .list_preset_spvgg_1 .mc-date-badge {
    padding: 6px 9px;
    /*background: var(--list-preset-date-badge-background);*/
    color: var(--list-preset-date-badge-color);
    /*border-radius: 3px;*/
    display: grid;
    justify-content: center;
    text-align: center;
    margin: 0;
}

.mc-event-list .list_preset_spvgg_1 .mc-date-badge .day {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Image Styling für SpVgg Template - Identisch zu Original */
.mc-event-list .list_preset_spvgg_1 img {
    max-width: 5rem;
    height: 100%;
    width: auto;
    display: block;
}

/* Links - Basis Styling wie Original */
.mc-event-list .list_preset_spvgg_1 a {
    color: inherit;
    text-decoration: none;
}

.mc-event-list .list_preset_spvgg_1 a:hover {
    text-decoration: underline;
}

/* Container für Events */
div.mc-event-list-container {
    container: mc_list_container / inline-size;
}

/* Responsive Design für SpVgg Template - Vereinfacht */
@container mc_list_container (width < 720px) {
    .mc-event-list .list_preset_spvgg_1 {
        grid-template-columns: auto 1fr;
        gap: 8px;
    }

    .mc-event-list .list_preset_spvgg_1 img {
        display: none; /* Verstecke Bilder auf kleineren Bildschirmen */
    }
}

@container mc_list_container (width < 480px) {
    .mc-event-list .list_preset_spvgg_1 {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 8px;
    }
}

