/*!
 * SPDX-FileCopyrightText: 2025 Bundesrepublik Deutschland, vertreten durch das BMI/ITZBund
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

/*
 * This file is part of the package itzbund/gsb-places of the GSB 11 Project by ITZBund
 *
 * Copyright (C) 2025 Bundesrepublik Deutschland, vertreten durch das
 * BMI/ITZBund. Author: Thomas Maroschik
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

.place-map-with-contact__teaser,
.place-map-with-contact__map {
    margin-bottom: 1rem;
}

.place-map-with-contact__contact .ce-bodytext > *:last-child {
    margin-bottom: 0;
}

.place-contact {
    margin-bottom: 1rem;
}

@media(min-width: 576px) {
    .place-contact__header {
        display: flex;
        justify-content: space-between;
    }
}

.place-contact__logo {
    margin: 0 0 2rem .5rem;
    max-height: fit-content;
}

@media(min-width: 576px) {
    .place-contact__logo {
        max-width: 25%;
    }
}

.place-contact__name {
}

.place-contact__branch {
    margin-bottom: .5rem;
}

.place-contact__contact {
    margin: .5rem 0;
}

.place-contact__address {
    padding: 0.25rem 0;
}

.place-contact__times {
}

.place-contact__address-line,
.place-contact__address-meta,
.place-contact__times-item
{
    display: block;
}

.place-contact__address-line {
    line-height: 1.4;
}
.place-contact__address-meta {
    margin: .25rem 0;
}

.place-contact__city-line {
    display: flex;
    gap: 0.25rem;
}

.place-contact__times-title {
    display: block;
    margin: 0 0 .125rem 0;
}

.place-contact__times-item {
    display: flex;
    justify-content: space-between;
    width: fit-content;
    gap: 1rem;
}

.place-contact__item {
    margin-right: 2rem;
    padding-left: 2rem;
    position: relative;
}

.place-contact__item::before {
    content: "";
    position: absolute;
    top: .375rem;
    left: 0;
    width: 1.375rem;
    height: 1.375rem;
    flex-shrink: 0;
    background-color: var(--bs-emphasis-color);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
 }

.grid-light .place-contact__item::before {
    background-color: var(--bs-body-bg);
}

.place-contact__address::before {
    top: .25rem;
    mask-image: url("../Icons/icon-pin.svg");
    -webkit-mask-image: url("../Icons/icon-pin.svg");
}

.place-contact__phone::before {
    mask-image: url("../Icons/icon-phone.svg");
    -webkit-mask-image: url("../Icons/icon-phone.svg");
}

.place-contact__email::before {
    mask-image: url("../Icons/icon-email.svg");
    -webkit-mask-image: url("../Icons/icon-email.svg");
}

.place-contact__url::before {
    mask-image: url("../Icons/icon-globe.svg");
    -webkit-mask-image: url("../Icons/icon-globe.svg");
}

.place-contact__times::before {
    mask-image: url("../Icons/icon-clock.svg");
    -webkit-mask-image: url("../Icons/icon-clock.svg");
}

.place-contact__address-text {
    display: flex;
    flex-direction: column;
}

.place-contact__times-text {
    margin-bottom: 0;
}

.place-contact__hours {
    flex-shrink: 0;
}
