/* ------      Stylesheet for List      ------*/

/* Standard Liste Styling */
.hiorg-events-list {
    border-top: 1px solid #eee;
    margin: 10px 0;
}

.hiorg-list-item {
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.hiorg-list-item:hover {
    background-color: #fcfcfc;
}

.hiorg-list-date {
    color: #666;
    font-size: 0.9rem;
    margin-right: 10px;
    font-family: monospace; /* Damit Datumsangaben untereinander bündig sind */
}

.hiorg-list-title {
    color: #e60005;
    font-size: 1rem;
}

.hiorg-list-details {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}

.hiorg-list-label {
    font-weight: bold;
    margin-right: 5px;
    color: #555;
}

.hiorg-list-location {
    color: #444;
}

.hiorg-list-empty {
    padding: 15px;
    color: #999;
    font-style: italic;
}
.hiorg-list-treff {
    margin-right: 5px;
}

.hiorg-location-icon {
    margin: 0 8px;
    font-size: 1rem;
    vertical-align: middle;
}

/* ------      Stylesheet for Stripes      ------ */

/* Container-Padding */
.tx-hiorgevents-stripes {
    margin: 1rem 0;
    font-family: sans-serif; /* Fallback-Schrift */
}

/* Die Haupt-Zeile */
.hiorg-stripe-row {
    display: flex;
    flex-wrap: wrap; /* Damit es auf dem Handy umbricht */
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Die graue Datumsbox */
.hiorg-stripe-date-box {
    flex: 0 0 220px; /* Feste Breite für das Datum */
    background-color: #f0f0f0; /* Dein helles Grau */
    padding: 10px;
    border-radius: 4px;
    margin-right: 20px;
}

.hiorg-date-text {
    font-weight: bold;
    color: #444;
    display: block;
}

.hiorg-treff-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    border-top: 1px solid #ccc;
    padding-top: 5px;
}

/* Der Bereich für Titel und Ort */
.hiorg-stripe-content {
    flex: 1; /* Nimmt den restlichen Platz ein */
    min-width: 250px; /* Verhindert zu schmale Spalten */
}

.hiorg-stripe-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e60005;
    margin-bottom: 5px;
}

.hiorg-stripe-location {
    font-size: 0.9rem;
    color: #555;
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px dashed #eee; /* Trennt den Titel dezent vom Ort */
}

.hiorg-stripe-location i {
    margin-right: 5px;
    color: #e60005; /* Ein dezentes Rot für den Marker */
}

.hiorg-location-icon {
    font-size: 1.1rem;      /* Etwas größer als der Text */
    margin-right: 6px;     /* Abstand zum Ortsnamen */
    vertical-align: middle; /* Damit das Icon mittig zum Text steht */
    display: inline-block;
}

/* Die Alert-Box */
.hiorg-stripe-alert {
    padding: 15px;
    background-color: #d9edf7;
    border: 1px solid #bcdff1;
    color: #31708f;
    border-radius: 4px;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .hiorg-stripe-date-box {
        flex: 1 1 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* ------    Stylesheet for Card Design     ------- */

/* Das Grid-System für die Kacheln */
.hiorg-cards-grid {
    display: grid;
    /* Erstellt automatisch so viele Spalten (min. 280px) wie Platz ist */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 1.5rem 0;
}

/* Die einzelne Kachel */
.hiorg-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* Sorgt dafür, dass der Footer unten bleibt */
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.hiorg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Kachel-Header (Datum & Zeit) */
.hiorg-card-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    font-weight: bold;
}

/* Kachel-Body */
.hiorg-card-body {
    padding: 15px;
    flex-grow: 1; /* Drückt den Footer nach unten, falls der Text kurz ist */
    text-align: center;
}

.hiorg-card-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.3;
}

.hiorg-card-note {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

/* Kachel-Footer (Ort) */
.hiorg-card-footer {
    padding: 10px 15px;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #555;
    text-align: right;
}

/* Alert Box für Cards */
.hiorg-card-alert {
    padding: 15px;
    background: #eef2f7;
    border-radius: 6px;
    text-align: center;
}