/* GOF Utils – Direction Switch */

/* Container mit sanftem Grün-Weiß-Verlauf und engem Padding */
.gof-utils-direction-switch {
    margin: 2rem 0;
    font-family: inherit;
    padding: 5px;
    border-radius: 18px;
    background-image: linear-gradient(to bottom, rgba(39, 174, 96, 0.12), #ffffff 35%, #ffffff 65%, rgba(39, 174, 96, 0.12));
}

/* Toggle-Checkbox ausblenden (aber zugänglich halten) */
.gof-utils-direction-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Innerer Wrapper */
.gof-utils-direction-inner {
    max-width: 460px;
}

/* Volle Breite, wenn full aktiviert ist */
.gof-utils-direction-full {
    max-width: 100%;
    width: 100%;
}

/* Header-Karte mit Richtungsanzeige */
.gof-utils-direction-header-wrapper {
    position: relative;
}

/* Header-Zeile */
.gof-utils-direction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    color: #1f2933;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Hinweistext */
.gof-utils-direction-hint{
    font-size: 0.95rem;
    color: #000000;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

/* Linke Seite des Headers (Text) */
.gof-utils-direction-header-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Standardmäßig nur Label AB zeigen */
.gof-utils-direction-label-ab {
    display: inline;
}

.gof-utils-direction-label-ba {
    display: none;
}

/* Runder Icon-Button rechts – dient als Label für den Toggle */
.gof-utils-direction-header-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid #27AE60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #27AE60;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.22);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

/* Hover-State: grüner Hintergrund, weiße Schrift */
.gof-utils-direction-header-icon:hover {
    background-color: #27AE60;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.4);
}

/* Panels */
.gof-utils-direction-switch-panels {
    margin-top: 0.9rem;
}

.gof-utils-direction-panel {
    display: none;
    padding-left: 0.1rem;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* Standardzustand: Toggle nicht aktiv – AB sichtbar */
.gof-utils-direction-panel-ab {
    display: block;
}

/* Wenn Toggle aktiv ist: BA anzeigen, AB ausblenden, Label wechseln */
.gof-utils-direction-toggle:checked ~ .gof-utils-direction-inner .gof-utils-direction-panel-ab {
    display: none;
}

.gof-utils-direction-toggle:checked ~ .gof-utils-direction-inner .gof-utils-direction-panel-ba {
    display: block;
}

.gof-utils-direction-toggle:checked ~ .gof-utils-direction-inner .gof-utils-direction-label-ab {
    display: none;
}

.gof-utils-direction-toggle:checked ~ .gof-utils-direction-inner .gof-utils-direction-label-ba {
    display: inline;
}

/* Überschriften im Panel optional mit Akzentfarbe */
.gof-utils-direction-panel h3,
.gof-utils-direction-panel h4 {
    color: #27AE60;
}

/* Mobile Anpassungen */
@media (max-width: 600px) {
    .gof-utils-direction-inner {
        max-width: 100%;
    }

    .gof-utils-direction-header {
        padding: 0.8rem 1rem;
        font-size: 1.15rem;
    }

    .gof-utils-direction-header-icon {
        width: 34px;
        height: 34px;
        font-size: 1.3rem;
    }
}
