/*
 * Shortcode-App `cities-frontpage`: Städtekacheln der Startseite.
 *
 * Jede Kachel hat links Ortsmarke, Stadtname und Zahl der Endlocations, rechts ein farbiges
 * Viertel als Knopf: orange für aktive Tickets, grau ohne Ticketshop, blau für den Kontakt.
 */

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr) minmax(300px, 1fr));
    grid-gap: 10px;
    margin-right: 10px;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-link {
    text-decoration: none;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-card {
    position: relative;
    width: 100%;
    height: 90px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-card:hover {
    transform: scale(1.05);
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-city {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background-color: #fff;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-location-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin-top: 26px;
    margin-left: 10px;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-info {
    width: 220px;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-title {
    overflow: hidden;
    margin-bottom: 15px;
    margin-left: 10px;
    padding-top: 24px;
    color: #000;
    font-size: 20px;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-text {
    margin: -20px 0 50px 10px;
    color: #000;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

/* Rechtes Viertel der Kachel. */
.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-action {
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    border-radius: 0 6px 6px 0;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-action-tickets {
    background-color: #ff9858;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-action-inactive {
    background-color: #dedede;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-action-contact {
    background-color: #38b5cf;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-action-inner {
    margin-top: 20px;
    color: #fff;
    font-size: 10px;
    line-height: 10px;
    text-align: center;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-action-img {
    display: inline;
    width: 15px;
    height: auto;
    margin-bottom: -5px;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-action-inner .dashicons {
    color: #3294a8;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-action-label {
    margin-top: 10px;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-action-sublabel {
    margin-top: 4px;
}

.staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-last-link {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-grid {
        grid-template-columns: 87%;
        grid-gap: 5px;
    }

    .staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-card {
        min-width: 200px;
    }

    .staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-city {
        height: 5.5rem;
    }

    .staedte-sc-cities-frontpage .staedte-sc-cities-frontpage-info {
        overflow: hidden;
        width: 180px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}
