/* ==========================================
   TICKETFLOW – FRONTEND
   ========================================== */


/* ------------------------------------------
   SUCHFORMULAR
   ------------------------------------------ */

.ticketflow-frontend-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 360px;
    max-width: 100%;
    margin: 0;
}

.ticketflow-frontend-form input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 36px;
    min-height: 0;
    padding: 0 12px;
    box-sizing: border-box;

    background: #4A4948;
    border: 1px solid #848380;
    border-radius: 0;

    color: #F6F2ED;
    font-family: "Mrs Eaves Regular XL";
    font-size: 15px;
    line-height: 36px;
}

.ticketflow-frontend-form input::placeholder {
    color: #848380;
    opacity: 1;
}

.ticketflow-frontend-form input:focus {
    outline: none;
    border-color: #F6F2ED;
}

.ticketflow-frontend-form button {
    flex: 0 0 90px;
    width: 90px;
    height: 36px;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;

    background: #F18267;
    border: 0;
    border-radius: 0;

    color: #F6F2ED;
    font-family: "AKIRA BOLD";
    font-size: 10px;
    line-height: 36px;

    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.ticketflow-frontend-form button:hover {
    background: #F6F2ED;
    color: #4A4948;
}


/* ------------------------------------------
   SUCHERGEBNISSE – CONTAINER
   ------------------------------------------ */

#th-search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    color: #F6F2ED;
}


/* ------------------------------------------
   ÜBERSCHRIFT
   ------------------------------------------ */

#th-search-wrapper .search_group_title {
    margin: 40px 0 45px;
    padding: 0;

    font-family: "AKIRA OUTLINE";
    font-size: 40px;
    font-weight: normal;
    line-height: 1.2;
}


/* ------------------------------------------
   VERANSTALTUNGSGRUPPEN
   ------------------------------------------ */

#th-search-wrapper .th-search-group {
    margin: 0 0 30px;
    padding: 0 0 22px;

    border: 0;
    border-bottom: 1px solid #848380;
    background: transparent;
}

/* Veranstaltungstitel */

#th-search-wrapper .th-search-group-name {
    margin: 0 0 12px;
    padding: 0;
    border: 0;

    color: #F6F2ED;
    font-family: "AKIRA BOLD";
    font-size: 22px;
    font-weight: normal;
    line-height: 1.3;
}


/* ------------------------------------------
   EINZELNE TERMINE
   ------------------------------------------ */

#th-search-wrapper .th-search-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin: 0;
    padding: 11px 0;

    border: 0;
    border-bottom: 1px solid #4A4948;
    background: transparent;
}

#th-search-wrapper .th-search-event:last-child {
    border-bottom: 0;
}

/* Termin-Informationen */

#th-search-wrapper .th-search-event-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

/* Datum und Uhrzeit */

#th-search-wrapper .th-search-event-date {
    color: #F6F2ED;
    font-family: "AKIRA BOLD";
    font-size: 14px;
    font-weight: normal;
    line-height: 1.4;
}

/* Veranstaltungsort */

#th-search-wrapper .th-search-event-location {
    color: #848380;
    font-family: "Mrs Eaves Regular XL";
    font-size: 19px;
    font-weight: normal;
    line-height: 1.2;
}


/* ------------------------------------------
   LOKALE VERANSTALTUNGEN
   ------------------------------------------ */

#th-search-wrapper .th-search-event-local {
    background: transparent;
    border-left: 0;
}

#th-search-wrapper .th-search-event-local
.th-search-event-date {
    color: #F18267;
}


/* ------------------------------------------
   TICKETBUTTON
   ------------------------------------------ */

#th-search-wrapper .th-search-button-ticket {
    display: inline-block;
    flex-shrink: 0;

    margin: 0;
    padding: 7px 14px;

    background: #F18267;
    border: 0;
    border-radius: 0;

    color: #F6F2ED;
    font-family: "AKIRA BOLD";
    font-size: 11px;
    font-weight: normal;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    transition: background 0.3s, color 0.3s;
}

#th-search-wrapper .th-search-button-ticket:hover {
    background: #F6F2ED;
    color: #4A4948;
}


/* ------------------------------------------
   WEITERE TERMINE
   ------------------------------------------ */

#th-search-wrapper .th-search-more {
    margin: 10px 0 0;
    padding: 0;
}

/* Aufklappbarer Hinweis */

#th-search-wrapper .th-search-more summary {
    display: block;
    cursor: pointer;
    list-style: none;

    margin: 0;
    padding: 10px 0;

    color: #F18267;
    font-family: "AKIRA BOLD";
    font-size: 11px;
    font-weight: normal;
    line-height: 1.5;

    transition: color 0.2s;
}

#th-search-wrapper .th-search-more summary:hover {
    color: #F6F2ED;
}

#th-search-wrapper .th-search-more summary::marker {
    content: "";
}

#th-search-wrapper .th-search-more
summary::-webkit-details-marker {
    display: none;
}

/* Pfeil */

#th-search-wrapper .th-search-more summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.2s;
}

#th-search-wrapper .th-search-more[open]
summary::before {
    transform: rotate(90deg);
}

/* Aufgeklappte Termine – ohne Boxen */

#th-search-wrapper .th-search-other-events {
    margin: 8px 0 0 20px;
    padding: 0;
    border: 0;
    background: transparent;
}

#th-search-wrapper .th-search-other-events
.th-search-event {
    padding: 11px 0;
    border-bottom: 1px solid #4A4948;
}

#th-search-wrapper .th-search-other-events
.th-search-event:last-child {
    border-bottom: 0;
}

#th-search-wrapper .th-search-other-events
.th-search-event-date {
    font-size: 12px;
    color: #F6F2ED;
}

#th-search-wrapper .th-search-other-events
.th-search-event-location {
    font-size: 17px;
}


/* ------------------------------------------
   KEINE ERGEBNISSE
   ------------------------------------------ */

#th-search-wrapper .th-search-notice {
    margin: 50px 0;

    color: #F6F2ED;
    font-family: "Mrs Eaves Regular XL";
    font-size: 26px;
    text-align: center;
}


/* ------------------------------------------
   VERANSTALTUNGSDETAILSEITE
   ------------------------------------------ */

#th-event-infos a.th-event-ticket-button {
    display: inline-block;
    width: auto;
    min-width: 0;
    height: auto;

    margin: 20px 0 0;
    padding: 12px 30px;

    background: #F18267;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    color: #F6F2ED;
    font-family: "AKIRA BOLD";
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

#th-event-infos a.th-event-ticket-button:hover {
    background: #F6F2ED;
    color: #F18267;
}


/* ==========================================
   MOBILE ANSICHT
   ========================================== */

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

    /* Suchformular */

    .ticketflow-frontend-form {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;

        gap: 8px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .ticketflow-frontend-form input {
        flex: 1 1 auto;
        width: 0;
        min-width: 0;

        height: 36px !important;
        min-height: 36px !important;
        padding: 0 10px !important;

        font-size: 15px !important;
        line-height: normal !important;
    }

    .ticketflow-frontend-form button {
        flex: 0 0 85px;
        width: 85px !important;

        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;

        font-size: 10px !important;
        line-height: 36px !important;
    }

    /* Überschrift */

    #th-search-wrapper .search_group_title {
        margin: 30px 0;
        font-size: 28px;
    }

    /* Veranstaltungsgruppen */

    #th-search-wrapper .th-search-group {
        margin-bottom: 25px;
        padding-bottom: 18px;
    }

    #th-search-wrapper .th-search-group-name {
        margin-bottom: 15px;
        font-size: 17px;
        line-height: 1.3;
    }

    /* Termine */

    #th-search-wrapper .th-search-event {
        gap: 12px;
        padding: 12px 0;
    }

    #th-search-wrapper .th-search-event-date {
        font-size: 11px;
    }

    #th-search-wrapper .th-search-event-location {
        font-size: 16px;
    }

    /* Ticketbutton */

    #th-search-wrapper .th-search-button-ticket {
        padding: 7px 10px;
        font-size: 10px;
    }

    /* Weitere Termine */

    #th-search-wrapper .th-search-more summary {
        font-size: 10px;
    }

    #th-search-wrapper .th-search-other-events {
        margin-left: 10px;
    }

    #th-search-wrapper .th-search-other-events
    .th-search-event-date {
        font-size: 11px;
    }

    #th-search-wrapper .th-search-other-events
    .th-search-event-location {
        font-size: 15px;
    }
}

/* ==========================================
   TICKETFLOW – ANKLICKBARKEIT
   ========================================== */

/* Veranstaltungstitel */

#th-search-wrapper .th-search-group-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

#th-search-wrapper .th-search-group-name a:hover {
    color: #F18267;
}

/* Ganze Terminzeile anklickbar */

#th-search-wrapper .th-search-event {
    position: relative;
}

/* Unsichtbare Klickfläche */

#th-search-wrapper .th-search-event-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
}

/* Ticketbutton bleibt unabhängig anklickbar */

#th-search-wrapper .th-search-button-ticket {
    position: relative;
    z-index: 2;
}

/* Dezenter Hover-Effekt */

#th-search-wrapper .th-search-event:hover
.th-search-event-date {
    color: #F18267;
}

/* Lokale Termine behalten ihre Farbe */

#th-search-wrapper .th-search-event-local
.th-search-event-date {
    color: #F18267;
}