/* event-tile.css
   Styles nur für die Event-Kachel (event-tile)
   Version: 2024-06
*/

.event-tile {
    position: relative;
    border: 2px solid #ffffff;
    margin-bottom: 1.2rem;
    padding: 0.8rem;
    background: #181818;
    color: #FFC700;
    width: 100%;
    box-sizing: border-box;
}

.event-tile-header {
    display: flex;
    align-items: center;
    gap: 10px; /* schöner Abstand zwischen den Buttons */
}

.event-logo img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 6px;
    background: #fff;
    padding: 1em;
}

.event-title {
    flex: 1;
    text-align: center;
    font-size: 1.25em;
    font-weight: bold;
    color: #FFC700;
    padding: 0 10px;
}


.event-edit, .event-delete {
    display: flex;
    align-items: center;
}
.event-edit img, .event-delete img {
    height: 30px; /* gleiche Größe für bessere Optik */
    cursor: pointer;
}

.event-edit img:hover, .event-delete img:hover {
    filter: brightness(1.2) drop-shadow(0 0 6px #fff5);
}
.event-actions {
    display: flex;
    flex-direction: column;
    gap: 8px; /* nach Wunsch */
}

.event-tile-description {
    margin-bottom: 0.8rem;
    color: #fff;
    width: 100%;
}
.event-tile-description .short-description, .event-tile-description .detailed-description {
    width: 100%;
    box-sizing: border-box;
}
.event-tile-description .detailed-description {
    margin-top: 0.6rem;
    background: #111;
    border-radius: 3px;
    padding: 0.7rem 0.5rem 0.7rem 0.5rem;
}

/* Tags */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em 0.7em;
    margin-bottom: 0.6em;
    justify-content: center;   /* <-- FÜGE DAS HINZU */
}
.event-tags .tag {
    background: #FFC700;
    color: #181818;
    border-radius: 5px;
    padding: 0.3em 0.7em;
    font-weight: 600;
    font-size: 1em;
}

/* Button-Container */
.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.toggle-description-btn,
.add-calendar-btn {
    font-size: 1rem;
    padding: 0.5em 1em;
    border-radius: 0.6em;
    min-width: 150px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.toggle-description-btn {
    background-color: #e8e5e5;
    color: #181818;
}

.toggle-description-btn:hover {
    background-color: #fbc24d;
}

.add-calendar-btn {
    background-color: #e8e5e5;
    color: #181818;
    transition: background-color 0.2s;
}

.add-calendar-btn:hover {
    background-color: #fbc24d;
}
.event-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1.2rem;
}

.event-main-row-col {
    flex: 0 0 31%;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    color: #fff;
    font-size: 1.06em;
    background: transparent;
}

.event-main-row-left {
    min-width: 170px;
    max-width: 250px;
    margin-top: 0.3em;
    padding-left: 0;   /* Hier den Wert ggf. nach Geschmack anpassen */
}

.event-main-row-right {
    min-width: 170px;
    max-width: 250px;
}

.event-main-row-center {
    align-items: center;
    text-align: center;
    background: none;
    border-radius: 7px;
    padding: 0.35em 1em 0.35em 1em;
    color: inherit; /* keine feste Farbe mehr */
    font-weight: 600;
    min-width: 220px;
    max-width: 330px;
    border: 2px solid #FFC700; /* gelber Rahmen */
}

.event-main-venue-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 2px;
    color: #FFC700;
}
/* Inhalt weiß, außer die Überschrift */
.event-main-venue-content {
    color: #fff;
    font-weight: normal;
}

.event-main-label {
    color: #FFC700;
    font-weight: bold;
    margin-right: 0.2em;
}

.event-main-value {
    color: #fff;
    font-weight: normal;
}

/* ===== MOBILE/RESPONSIVE ===== */
@media (max-width: 800px) {
    .event-tile-header {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .event-logo img {
        margin: 0 auto 10px auto;
        display: block;
    }
    .event-title {
        text-align: left;
        padding: 0;
        margin-top: 0.5em;
    }
    .event-edit {
        text-align: left;
        margin-top: 0.5em;
    }
    .button-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5em;
    }
    .toggle-description-btn,
    .add-calendar-btn {
        width: 100%;
        min-width: 0;
        margin-bottom: 0.5em;
        font-size: 1rem;          /* Etwas kleiner für Handy */
        padding: 0.7em 0.5em;        /* Schmaler seitlich auf Mini-Displays */
    }
    .event-main-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7em;
    }
    .event-main-row-col,
    .event-main-row-left,
    .event-main-row-center,
    .event-main-row-right {
        max-width: 100%;
        min-width: 0;
        background: none;
        text-align: left;
        align-items: flex-start;
        padding: 0;
    }
    .event-main-venue-title {
        margin-top: 0.3em;
        margin-bottom: 0.1em;
    }
}
.event-tile-description h2 {
    font-size: 2.18em;
    font-weight: normal;
    line-height: 1.2;
    margin-top: 0.83em;
    margin-bottom: 0.83em;
    color: #FFC700;
    text-align: center;
}
.event-tile-description h3 {
    font-size: 1.7em;
    font-weight: normal;
    color: #FFC700;
    margin: 0.83em 0;
}
.event-tile-description h4 {
    font-size: 1.3em;
    font-weight: normal;
    color: #ffffff;
    margin: 0.83em 0;
}