/* Smarttec Footer – Basis-Layout
   Farben, Schriften & Abstände werden über Bricks-Controls gesteuert.
   Dieses CSS liefert nur die Grundstruktur. */

.smarttec-footer__inner {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Spalten-Bereich */
.smarttec-footer__columns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.smarttec-footer__col {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

/* Überschrift ist ein <button>, muss auf Desktop wie normaler Text aussehen */
.smarttec-footer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 0 16px 0;
    padding: 0;
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: default;
    color: inherit;
}

/* Pfeil auf Desktop ausblenden */
.smarttec-footer__arrow {
    display: none;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.smarttec-footer__col-links {
    display: flex;
    flex-direction: column;
}

.smarttec-footer__link {
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* Spezial-Spalte: Hilfe und Kontakt */
.smarttec-footer__col--help {
    max-width: 260px;
    gap: 18px;
}

.smarttec-footer__help-heading {
    font-weight: 600;
    color: #ffffff;
}

.smarttec-footer__help-text {
    line-height: 1.5;
    color: #ffffff;
}

.smarttec-footer__help-button {
    display: inline-block;
    align-self: flex-start;
    padding: 12px 20px;
    background-color: #3a3a3a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.smarttec-footer__help-button:hover {
    background-color: #4a4a4a;
}

/* Untere Leiste */
.smarttec-footer__bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid transparent;
}

.smarttec-footer__bottom-block--right {
    text-align: right;
}

.smarttec-footer__bottom-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.smarttec-footer__bottom-text {
    opacity: 0.85;
    font-size: 0.9em;
}

/* Onlineshops als kommagetrennte Link-Liste */
.smarttec-footer__shops {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 0.9em;
}

.smarttec-footer__shop-link {
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.smarttec-footer__shop-link:not(:last-child)::after {
    content: ",";
    margin-left: 2px;
}

.smarttec-footer__shop-link:hover {
    opacity: 1;
}

/* Responsive: Akkordeon auf Tablet & Mobil (max. 991px) */
@media (max-width: 991px) {
    .smarttec-footer__columns {
        flex-direction: column;
        gap: 0;
    }

    /* Jede Spalte wird eine Reihe mit Trennlinie – volle Breite */
    .smarttec-footer__col {
        width: 100%;
        min-width: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* Überschrift wird klickbar, mit sichtbarem Pfeil – volle Breite */
    .smarttec-footer__heading {
        width: 100%;
        margin: 0;
        padding: 18px 0;
        cursor: pointer;
    }

    .smarttec-footer__arrow {
        display: block;
    }

    /* Links standardmäßig zugeklappt (per max-height animiert) */
    .smarttec-footer__col-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    /* Geöffneter Zustand */
    .smarttec-footer__col.is-open .smarttec-footer__col-links {
        max-height: 1000px;
        padding-bottom: 18px;
    }

    .smarttec-footer__col.is-open .smarttec-footer__arrow {
        transform: rotate(180deg);
    }

    /* Hilfe-Spalte auf Mobil: Überschrift als Reihe, Text/Button klappbar */
    .smarttec-footer__col--help {
        width: 100%;
        max-width: none;
        gap: 0;
    }
    .smarttec-footer__col--help .smarttec-footer__help-heading {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 18px 0;
        cursor: pointer;
    }
    .smarttec-footer__col--help .smarttec-footer__help-heading::after {
        content: "";
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.25s ease;
    }
    .smarttec-footer__col--help.is-open .smarttec-footer__help-heading::after {
        transform: rotate(180deg);
    }
    /* Text + Button einklappen */
    .smarttec-footer__col--help .smarttec-footer__help-text,
    .smarttec-footer__col--help .smarttec-footer__help-button {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    }
    .smarttec-footer__col--help.is-open .smarttec-footer__help-text {
        max-height: 200px;
        opacity: 1;
        margin-bottom: 14px;
    }
    .smarttec-footer__col--help.is-open .smarttec-footer__help-button {
        max-height: 60px;
        opacity: 1;
        margin-bottom: 18px;
    }

    /* Untere Leiste untereinander */
    .smarttec-footer__bottom {
        flex-direction: column;
    }
    .smarttec-footer__bottom-block--right,
    .smarttec-footer__bottom-block--center {
        text-align: left;
    }
}
