/* =============================================================================
   OPENING HOURS EXTENSION - CSS Styles
   Diese Datei kann frei angepasst werden.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Adressblock
   ----------------------------------------------------------------------------- */

.tx-opening-hours-address {
    margin-bottom: 1.5rem;
}

.tx-opening-hours-address__header {
    margin-bottom: 1rem;
    font-weight: 700;
}

.tx-opening-hours-address__logo {
    margin-bottom: 1rem;
}

.tx-opening-hours-address__logo img {
    max-width: 100%;
    height: auto;
}

.tx-opening-hours-address__company-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tx-opening-hours-address__address {
    font-style: normal;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tx-opening-hours-address__address-content {
    flex: 1;
}

/* Icons - allgemein */
.tx-opening-hours-address__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25em;
    flex-shrink: 0;
}

.tx-opening-hours-address__icon svg {
    width: 1em;
    height: 1em;
}

.tx-opening-hours-address__icon i {
    font-size: 1em;
}

/* Kontaktdaten */
.tx-opening-hours-address__contact {
    margin-bottom: 0.75rem;
}

.tx-opening-hours-address__contact p {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.tx-opening-hours-address__contact p:hover {
       color: var(--green);
}

.tx-opening-hours-address__contact a {
    color: inherit;
    text-decoration: none;
}

.tx-opening-hours-address__contact a:hover {
    text-decoration: none;
    color: var(--green);
}

/* Freitext */
.tx-opening-hours-address__freetext {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.tx-opening-hours-address__freetext-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* -----------------------------------------------------------------------------
   Öffnungszeiten
   ----------------------------------------------------------------------------- */

.tx-opening-hours {
    margin-bottom: 1.5rem;
}

.tx-opening-hours__header {
    margin-bottom: 1rem;
    font-weight: 700;
}

.tx-opening-hours__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.tx-opening-hours__row {
    border-bottom: 1px solid #e5e5e5;
}

.tx-opening-hours__row:last-child {
    border-bottom: none;
}

.tx-opening-hours__row--closed {
    color: #999;
}

.tx-opening-hours__day,
.tx-opening-hours__time {
    padding: 0.5rem 0;
    vertical-align: top;
}

.tx-opening-hours__day {
    font-weight: 500;
    width: 40%;
}

.tx-opening-hours__time {
    text-align: left;
}

.tx-opening-hours__closed {
    color: #999;
    font-style: italic;
}

.tx-opening-hours__not-set {
    color: #ccc;
}

.tx-opening-hours__freetext {
    margin-top: 0rem;
    padding-top: 0rem;
    border-top: 0px solid #e5e5e5;
    
}

.tx-opening-hours__freetext-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tx-opening-hours__freetext-content p {
    margin-bottom: 0.5rem;
}

.tx-opening-hours__freetext-content p:last-child {
    margin-bottom: 0;
    line-height: 1.875;
}

/* -----------------------------------------------------------------------------
   Responsive Anpassungen
   ----------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .tx-opening-hours__table {
        font-size: 0.9rem;
    }

    .tx-opening-hours__day,
    .tx-opening-hours__time {
        padding: 0.4rem 0;
    }
}

/* -----------------------------------------------------------------------------
   Dunkles Theme (optional)
   Aktiviere diese Styles, wenn du ein dunkles Design verwendest.
   ----------------------------------------------------------------------------- */

/*
.dark .tx-opening-hours,
.dark .tx-opening-hours-address {
    color: #e5e5e5;
}

.dark .tx-opening-hours__row {
    border-bottom-color: #444;
}

.dark .tx-opening-hours__freetext,
.dark .tx-opening-hours-address__freetext {
    border-top-color: #444;
}

.dark .tx-opening-hours__row--closed,
.dark .tx-opening-hours__closed {
    color: #777;
}
*/
