/**
 * Wendewerk Experten – Profil-Formular (Frontend)
 *
 * @package Wendewerk_Experten
 * @since   1.5.0
 */

/* ============================================
   VARIABLEN
   ============================================ */

/* Auf :root statt nur auf .wwe-pf, damit Klassen wie .wwe-pf__btn auch
   funktionieren, wenn sie (z. B. in Wendewerk Prävention) ohne den
   .wwe-pf-Wrapper verwendet werden – sonst lösen die var()-Aufrufe dort ins
   Leere auf und die Deklaration (Hintergrund, Rahmenfarbe, …) wird komplett
   ignoriert, ohne dass Astras eigene Button-Styles das ersetzen. */
:root {
    --wwe-blau: #00acec;
    --wwe-dunkel: #1e4362;
    --wwe-gruen: #16a34a;
    --wwe-rot: #dc2626;
    --wwe-grau: #64748b;
    --wwe-grau-hell: #94a3b8;
    --wwe-border: #e2e8f0;
    --wwe-bg: #f8fafc;
    --wwe-weiss: #ffffff;
    --wwe-radius: 12px;
    --wwe-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wwe-pf {
    font-family: var(--wwe-font);
}

.wwe-pf *, .wwe-pf *::before, .wwe-pf *::after { box-sizing: border-box; }

/* ============================================
   HEADER
   ============================================ */

.wwe-pf__header { margin-bottom: 24px; }
.wwe-pf__title { font-size: 24px; font-weight: 700; color: var(--wwe-dunkel); margin: 0 0 4px; }
.wwe-pf__subtitle { font-size: 14px; color: var(--wwe-grau); margin: 0; }

/* ============================================
   SEKTIONEN
   ============================================ */

.wwe-pf__section {
    border: 1px solid var(--wwe-border); border-radius: var(--wwe-radius);
    padding: 24px; margin-bottom: 20px; background: var(--wwe-weiss);
}

.wwe-pf__legend {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 700; color: var(--wwe-dunkel);
    padding: 0 4px;
}

.wwe-pf__legend-nr {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--wwe-blau); color: var(--wwe-weiss);
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}

/* ============================================
   FORM-GRUPPEN
   ============================================ */

.wwe-pf__group { margin-bottom: 16px; }
.wwe-pf__group:last-child { margin-bottom: 0; }

.wwe-pf__row { display: flex; gap: 16px; }
.wwe-pf__group--half { flex: 1; }
.wwe-pf__group--third { flex: 0 0 30%; }
.wwe-pf__group--twothird { flex: 1; }

.wwe-pf__label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--wwe-dunkel); margin-bottom: 4px;
}

.wwe-pf__label-hint {
    font-weight: 400; color: var(--wwe-grau-hell);
}

.wwe-profil-formular .wwe-pf__input,
.wwe-profil-formular .wwe-pf__textarea,
.wwe-profil-formular .wwe-pf__select {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--wwe-border); border-radius: 8px;
    font-size: 14px; font-family: var(--wwe-font); color: var(--wwe-dunkel);
    background: var(--wwe-weiss); outline: none; transition: border-color 0.15s;
}

.wwe-profil-formular .wwe-pf__input:focus,
.wwe-profil-formular .wwe-pf__textarea:focus,
.wwe-profil-formular .wwe-pf__select:focus { border-color: var(--wwe-blau); }

.wwe-profil-formular .wwe-pf__input::placeholder,
.wwe-profil-formular .wwe-pf__textarea::placeholder { color: var(--wwe-grau-hell); }

.wwe-profil-formular .wwe-pf__input--time { width: auto; min-width: 110px; }

.wwe-profil-formular .wwe-pf__textarea { resize: vertical; min-height: 100px; }

.wwe-profil-formular .wwe-pf__select {
    appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 32px;
}

/* ============================================
   PROFILBILD
   ============================================ */

.wwe-pf__bild-wrap { display: flex; align-items: center; gap: 16px; }

.wwe-pf__bild-vorschau {
    width: 96px; height: 96px; border-radius: 50%;
    border: 2px dashed var(--wwe-border); background: var(--wwe-bg);
    display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
    flex-shrink: 0; overflow: hidden;
}

.wwe-pf__bild-vorschau--has-image {
    border-style: solid; border-color: var(--wwe-blau);
}

.wwe-pf__bild-actions { display: flex; flex-direction: column; gap: 6px; }

/* ============================================
   BUTTONS
   ============================================ */

.wwe-pf__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; font-size: 14px; font-weight: 600; font-family: var(--wwe-font);
    border: none; border-radius: 8px; cursor: pointer; transition: all 0.15s;
    text-decoration: none; line-height: 1.4;
    box-shadow: none;
}

/* Astra legt globale Button-Styles (Hintergrund/Rahmen/Farbe je nach
   Theme-Variante, teils erst bei :hover/:focus) auch auf diese <button>s
   ohne eigene .ast-button-Klasse – Farbwerte hier für alle Zustände
   explizit mit !important sichern, sonst verschwindet z. B. der blaue
   Primary-Hintergrund oder taucht erst beim Hovern auf. */
.wwe-pf__btn--primary,
.wwe-pf__btn--primary:hover,
.wwe-pf__btn--primary:focus,
.wwe-pf__btn--primary:active {
    color: var(--wwe-weiss) !important; background: var(--wwe-blau) !important;
    box-shadow: none !important;
}
.wwe-pf__btn--primary:hover { background: #0095d0 !important; }

.wwe-pf__btn--outline,
.wwe-pf__btn--outline:hover,
.wwe-pf__btn--outline:focus,
.wwe-pf__btn--outline:active {
    color: var(--wwe-dunkel) !important; background: var(--wwe-weiss) !important;
    border: 1px solid var(--wwe-border); box-shadow: none !important;
}
.wwe-pf__btn--outline:hover { border-color: var(--wwe-blau); color: var(--wwe-blau) !important; }

.wwe-pf__btn--text {
    background: none !important; padding: 4px 8px; font-size: 13px; box-shadow: none !important;
}
.wwe-pf__btn--danger { color: var(--wwe-rot) !important; }
.wwe-pf__btn--danger:hover { background: #fef2f2 !important; }

.wwe-pf__btn--sm { padding: 7px 14px; font-size: 13px; }

.wwe-pf__btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================
   REPEATER-FELDER
   ============================================ */

.wwe-pf__repeater { margin-bottom: 8px; }

.wwe-pf__repeater-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
    animation: wwe-pf-fadeIn 0.2s ease;
}

.wwe-profil-formular .wwe-pf__repeater-input { flex: 1; margin-bottom: 0; }

.wwe-pf__repeater-remove {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--wwe-grau-hell); background: none;
    border: 1px solid transparent; border-radius: 6px; cursor: pointer;
    transition: all 0.15s;
}
.wwe-pf__repeater-remove:hover {
    color: var(--wwe-rot); border-color: #fecaca; background: #fef2f2;
}

@keyframes wwe-pf-fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ÖFFNUNGSZEITEN
   ============================================ */

.wwe-pf__oz-liste { margin-bottom: 8px; }

.wwe-pf__oz-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 0; border-bottom: 1px solid var(--wwe-border);
    animation: wwe-pf-fadeIn 0.2s ease;
}
.wwe-pf__oz-row:last-child { border-bottom: none; }

.wwe-profil-formular .wwe-pf__oz-tag { flex: 0 0 160px; }
.wwe-profil-formular .wwe-pf__oz-tag .wwe-pf__select { width: 100%; }

.wwe-pf__oz-geschlossen { flex: 0 0 auto; }

.wwe-pf__checkbox-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--wwe-grau); cursor: pointer;
}

.wwe-pf__checkbox {
    width: 16px; height: 16px; accent-color: var(--wwe-blau); cursor: pointer;
}

.wwe-pf__oz-zeiten {
    display: flex; align-items: center; gap: 8px; flex: 1;
}

.wwe-pf__oz-bis { color: var(--wwe-grau-hell); font-size: 14px; }

.wwe-pf__oz-remove {
    width: 28px; height: 28px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--wwe-grau-hell); background: none;
    border: 1px solid transparent; border-radius: 6px; cursor: pointer;
}
.wwe-pf__oz-remove:hover {
    color: var(--wwe-rot); border-color: #fecaca; background: #fef2f2;
}

/* ============================================
   TERMINKALENDER
   ============================================ */

.wwe-pf__hint {
    font-size: 13px; color: var(--wwe-grau); margin: 0 0 16px;
    line-height: 1.5;
}

.wwe-pf__radio-group {
    display: flex; flex-direction: column; gap: 10px;
}

.wwe-pf__radio-label {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border: 1px solid var(--wwe-border); border-radius: 8px;
    cursor: pointer; transition: all 0.15s; background: var(--wwe-weiss);
}

.wwe-pf__radio-label:hover {
    border-color: var(--wwe-blau); background: #f0f9ff;
}

.wwe-pf__radio-label:has(.wwe-pf__radio:checked) {
    border-color: var(--wwe-blau); background: #f0f9ff;
    box-shadow: 0 0 0 1px var(--wwe-blau);
}

.wwe-pf__radio {
    width: 18px; height: 18px; accent-color: var(--wwe-blau); cursor: pointer;
    flex-shrink: 0;
}

.wwe-pf__radio-text {
    font-size: 14px; font-weight: 500; color: var(--wwe-dunkel);
}

.wwe-pf__tk-feld {
    animation: wwe-pf-fadeIn 0.25s ease;
}

.wwe-pf__field-hint {
    font-size: 12px; color: var(--wwe-grau-hell); margin: 4px 0 0;
    line-height: 1.4;
}

.wwe-profil-formular .wwe-pf__textarea--code {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 13px; line-height: 1.5; background: #f8fafc;
}

/* Terminkalender Ausgabe-Shortcode */
.wwe-terminkalender {
    width: 100%; margin: 16px 0;
}

.wwe-terminkalender iframe {
    max-width: 100%; border: none;
}

/* ============================================
   FOOTER / SUBMIT
   ============================================ */

.wwe-pf__footer {
    display: flex; flex-direction: column; align-items: stretch; gap: 12px;
    margin-top: 8px;
}

.wwe-pf__msg {
    padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
}
.wwe-pf__msg--erfolg { background: #dcfce7; color: #166534; }
.wwe-pf__msg--fehler { background: #fef2f2; color: #991b1b; }
.wwe-pf__msg--warnung { background: #fffbeb; color: #92400e; }

.wwe-pf__footer .wwe-pf__btn--primary {
    width: 100%; padding: 14px; font-size: 16px;
}

/* Hinweis (nicht eingeloggt / keine Berechtigung) */
.wwe-pf-hinweis {
    padding: 16px 20px; background: #fef3c7; border: 1px solid #fde68a;
    border-radius: 8px; color: #92400e; font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .wwe-pf__row { flex-direction: column; gap: 0; }
    .wwe-pf__group--half,
    .wwe-pf__group--third,
    .wwe-pf__group--twothird { flex: none; width: 100%; }

    .wwe-pf__oz-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .wwe-profil-formular .wwe-pf__oz-tag { flex: none; }
    .wwe-pf__oz-zeiten { flex: none; }

    .wwe-pf__bild-wrap { flex-direction: column; align-items: flex-start; }

    .wwe-pf__section { padding: 16px; }
}

@media (max-width: 480px) {
    .wwe-pf__title { font-size: 20px; }
    .wwe-profil-formular .wwe-pf__input--time { min-width: 90px; }
}

/* ============================================
   WEBPROFILE ([wendewerk_webprofile])
   ============================================ */

.wwe-webprofile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wwe-webprofile__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px 7px 7px;
    border: 1px solid var(--wwe-border, #e2e8f0);
    border-radius: 999px;
    background: var(--wwe-weiss, #ffffff);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.wwe-webprofile__link:hover {
    border-color: var(--wwe-blau, #00acec);
    background: var(--wwe-bg, #f8fafc);
}

.wwe-webprofile__kuerzel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--wwe-blau, #00acec);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.wwe-webprofile__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--wwe-dunkel, #1e4362);
}

/* ============================================
   ANKLICKBARE AUSWAHL-CHIPS (Sprachen, Beratungsart, Registriert als, etc.)
   ============================================ */

.wwe-pf__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wwe-pf__chip {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--wwe-border);
    background: var(--wwe-weiss);
    color: var(--wwe-dunkel);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.wwe-pf__chip:hover {
    border-color: var(--wwe-blau);
}

.wwe-pf__chip.is-aktiv {
    background: var(--wwe-blau);
    border-color: var(--wwe-blau);
    color: #ffffff;
}

.wwe-pf__field-hint--klein {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--wwe-grau-hell);
}

.wwe-pf__subsection {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--wwe-border);
}

.wwe-pf__subsection-title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wwe-dunkel);
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* [wendewerk_bewertungsplattformen] / [wendewerk_alle_bewertungen]: Kachel-Grid. */
.wwe-bwp {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.wwe-bwp__karte {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.wwe-bwp__karte:hover {
    border-color: var(--wwe-blau);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.wwe-bwp__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eaf3fb;
    color: var(--wwe-blau);
}

.wwe-bwp__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wwe-bwp__titel {
    font-size: 16px;
    font-weight: 700;
    color: var(--wwe-dunkel);
}

.wwe-bwp__meta {
    font-size: 13px;
    color: var(--wwe-grau-hell);
}

/* [wendewerk_alle_bewertungen]: Gesamtbewertungs-Kopfbox. */
.wwe-bwp-gesamt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    background: #eaf3fb;
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 20px;
}

.wwe-bwp-gesamt__info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wwe-bwp-gesamt__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #06acec;
}

.wwe-bwp-gesamt__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wwe-bwp-gesamt__titel {
    font-size: 20px;
    font-weight: 700;
    color: var(--wwe-dunkel);
}

.wwe-bwp-gesamt__sub {
    font-size: 14px;
    color: var(--wwe-grau-hell);
}

.wwe-bwp-gesamt__sterne {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wwe-bwp-gesamt__sterne-icons {
    display: inline-flex;
    gap: 2px;
    color: #d8dee6;
}

.wwe-bwp-gesamt__stern.is-voll {
    color: #f5a623;
}

.wwe-bwp-gesamt__sterne-text {
    font-size: 14px;
    color: var(--wwe-grau-hell);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .wwe-bwp-gesamt {
        flex-direction: column;
        align-items: flex-start;
    }
}

.wwe-profilbild-wrap {
    position: relative;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.wwe-profilbild-rund {
    position: relative;
    display: block;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 50% !important;
    overflow: hidden;
    border: 5px solid #fff !important;
    box-sizing: border-box;
    background-color: #fff;
}

.wwe-profilbild-rund__bild {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50% !important;
    margin: 0 !important;
}

.wwe-profilbild-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fff !important;
    border-radius: 14px !important;
    padding: 10px 16px;
    box-shadow: 0 10px 30px rgba(15, 35, 60, 0.16);
    white-space: nowrap;
    line-height: 1.25;
}

.wwe-profilbild-badge--geprueft {
    top: 6%;
    left: -4%;
}

.wwe-profilbild-badge--bewertung {
    bottom: 6%;
    right: -4%;
}

.wwe-profilbild-badge__icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
}

.wwe-profilbild-badge__icon--check {
    background-color: #eaf4fb;
    color: var(--wwe-blau, #2b7fd1);
}

.wwe-profilbild-badge__icon--star {
    background-color: #fdf3d7;
    color: #f5a623;
    border-radius: 10px !important;
}

.wwe-profilbild-badge__text {
    display: flex;
    flex-direction: column;
}

.wwe-profilbild-badge__label {
    font-size: 12px;
    color: var(--wwe-grau-hell, #6b7789);
}

.wwe-profilbild-badge__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--wwe-dunkel, #1c2b3a);
}

@media (max-width: 480px) {
    .wwe-profilbild-badge {
        padding: 7px 12px;
        gap: 8px;
        border-radius: 10px !important;
    }

    .wwe-profilbild-badge__icon {
        width: 26px;
        height: 26px;
    }

    .wwe-profilbild-badge__label {
        font-size: 10px;
    }

    .wwe-profilbild-badge__value {
        font-size: 12px;
    }
}

.wwe-ort-bewertung {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 15px;
    color: var(--wwe-grau, #64748b);
}

.wwe-ort-bewertung__ort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wwe-ort-bewertung__icon {
    display: inline-flex !important;
    align-items: center;
    color: var(--wwe-grau, #64748b);
}

.wwe-ort-bewertung__icon--star {
    color: #f5a623;
}

.wwe-ort-bewertung__trenner {
    width: 1px;
    height: 16px;
    background-color: var(--wwe-border, #e2e8f0);
    flex-shrink: 0;
}

.wwe-ort-bewertung__bewertung {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.wwe-ort-bewertung__wert {
    font-weight: 700;
    color: var(--wwe-dunkel, #1e4362);
}

.wwe-ort-bewertung__anzahl {
    color: var(--wwe-blau, #00acec);
    text-decoration: underline;
}

.wwe-ort-bewertung__bewertung:hover .wwe-ort-bewertung__anzahl {
    text-decoration: none;
}

/* Variante für dunkle Hintergründe (Attribut hell="ja") */
.wwe-ort-bewertung--hell {
    font-size: 0.9em;
    color: #fff !important;
}

.wwe-ort-bewertung--hell .wwe-ort-bewertung__icon {
    color: #fff !important;
}

.wwe-ort-bewertung--hell .wwe-ort-bewertung__icon--star {
    color: #f5a623 !important;
}

.wwe-ort-bewertung--hell .wwe-ort-bewertung__trenner {
    background-color: rgba(255, 255, 255, 0.3);
}

.wwe-ort-bewertung--hell .wwe-ort-bewertung__wert {
    color: #fff !important;
}

.wwe-vorstellung-kurz {
    margin: 0;
    color: var(--wwe-grau, #64748b);
}

/* Variante für dunkle Hintergründe (Attribut hell="ja") */
.wwe-vorstellung-kurz--hell {
    color: #fff !important;
}

.wwe-vorstellung-lang__intro {
    margin: 0 0 1em;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--wwe-dunkel, #1e4362);
}

.wwe-vorstellung-lang__rest {
    margin: 0;
    color: var(--wwe-grau, #64748b);
}

/* Variante für dunkle Hintergründe (Attribut hell="ja") */
.wwe-vorstellung-lang--hell .wwe-vorstellung-lang__intro,
.wwe-vorstellung-lang--hell .wwe-vorstellung-lang__rest {
    color: #fff !important;
}

/* "Auf einen Blick"-Kasten ([wendewerk_auf_einen_blick]) */
.wwe-aeb {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.wwe-aeb__kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wwe-aeb__titel {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wwe-dunkel, #1e4362);
}

.wwe-aeb__badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wwe-blau, #00acec);
    color: #fff;
}

.wwe-aeb__trenner {
    border: none !important;
    height: 1px !important;
    background-color: #e5e7eb !important;
    margin: 16px 0;
}

.wwe-aeb__zeile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wwe-aeb__wert {
    flex-shrink: 0;
    min-width: 90px;
    font-size: 32px;
    font-weight: 800;
    color: var(--wwe-dunkel, #1e4362);
    line-height: 1;
}

.wwe-aeb__text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 2px;
    margin-left: auto;
}

.wwe-aeb__label {
    font-size: 16px;
    color: var(--wwe-dunkel, #1e4362);
}

.wwe-aeb__sublabel {
    font-size: 14px;
    color: var(--wwe-grau, #64748b);
}

.wwe-aeb__zeile--empfehlung {
    gap: 14px;
}

.wwe-aeb__avatare {
    display: inline-flex !important;
    flex-shrink: 0;
}

.wwe-aeb__avatar {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: var(--wwe-dunkel, #1e4362);
    border: 2px solid #fff;
    margin-left: -8px;
}

.wwe-aeb__avatar:first-child {
    margin-left: 0;
}

.wwe-aeb__avatar--1 { background: #cfe8f3; }
.wwe-aeb__avatar--2 { background: #dbe2ea; }
.wwe-aeb__avatar--3 { background: #f5e6bf; }

.wwe-aeb__avatar--mehr {
    background: var(--wwe-dunkel, #1e4362);
    color: #fff;
}

.wwe-aeb__empfehlung-text {
    font-size: 14px;
    color: var(--wwe-grau, #64748b);
}

/* Profil-Karten ([wendewerk_profil_karten]) - drei gleichwertige Karten,
   bewusst ohne optische Hervorhebung einer einzelnen Karte. */
.wwe-pk {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .wwe-pk {
        grid-template-columns: 1fr;
    }
}

.wwe-pk__karte {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.wwe-pk__icon-wrap {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e0f5fd;
    color: var(--wwe-blau, #00acec);
    margin-bottom: 16px;
}

.wwe-pk__titel {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--wwe-dunkel, #1e4362);
}

.wwe-pk__liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wwe-pk__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--wwe-grau, #64748b);
}

.wwe-pk__check {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--wwe-blau, #00acec);
}

/* Kontaktinfo ([wendewerk_kontaktinfo]) - bewusst ohne umschließenden
   Container/Karte, nur die Kontaktzeile selbst. */
.wwe-ki {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wwe-ki__kopf {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wwe-ki__bild {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0f5fd;
    border: 3px solid #e0f5fd;
}

.wwe-ki__bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wwe-ki__initialen {
    font-size: 18px;
    font-weight: 700;
    color: var(--wwe-blau, #00acec);
}

.wwe-ki__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wwe-ki__name {
    font-size: 19px;
    font-weight: 700;
    color: var(--wwe-dunkel, #1e4362);
}

.wwe-ki__antwortzeit {
    font-size: 14px;
    color: var(--wwe-grau, #64748b);
}

.wwe-ki__kontaktzeile {
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--wwe-blau, #00acec) !important;
    text-decoration: none !important;
}

.wwe-ki__icon {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
    color: var(--wwe-blau, #00acec);
}

/* Social Media ([wendewerk_social_media]) - bewusst ohne umschließenden
   Container, nur die einzelnen Kanal-Zeilen selbst. */
.wwe-sm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wwe-sm__zeile {
    display: flex !important;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    text-decoration: none !important;
    transition: box-shadow 0.15s ease;
}

.wwe-sm__zeile:hover {
    box-shadow: 0 2px 10px rgba(30, 67, 98, 0.08);
}

.wwe-sm__icon {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
    color: var(--wwe-blau, #00acec);
}

.wwe-sm__label {
    font-size: 16px;
    font-weight: 700;
    color: var(--wwe-dunkel, #1e4362);
}

.wwe-sm__pfeil {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    color: var(--wwe-grau-hell, #94a3b8);
}

/* Erstinformation ([wendewerk_erstinformation]) */
.wwe-ei {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 64px;
    align-items: start;
}

@media (max-width: 768px) {
    .wwe-ei {
        grid-template-columns: 1fr;
    }
}

.wwe-ei__links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.wwe-ei__logo {
    max-width: 160px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 4px;
}

.wwe-ei__name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--wwe-dunkel, #1e4362);
}

.wwe-ei__zeile {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--wwe-grau, #64748b);
    text-decoration: none !important;
}

.wwe-ei__icon {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--wwe-blau, #00acec);
}

.wwe-ei__rechts {
    display: flex;
    flex-direction: column;
}

.wwe-ei__trenner {
    border: none !important;
    height: 1px !important;
    background-color: #e5e7eb !important;
    margin: 0;
}

.wwe-ei__acc-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.wwe-ei__acc-kopf:hover,
.wwe-ei__acc-kopf:focus,
.wwe-ei__acc-kopf:active {
    background: none !important;
    color: inherit !important;
}

.wwe-ei__acc-kopf span:first-child {
    font-size: 18px;
    font-weight: 700;
    color: var(--wwe-dunkel, #1e4362);
}

.wwe-ei__acc-chevron {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
    color: var(--wwe-grau-hell, #94a3b8);
    transition: transform 0.15s ease;
}

.wwe-ei__acc-kopf[aria-expanded="true"] .wwe-ei__acc-chevron {
    transform: rotate(180deg);
}

.wwe-ei__acc-panel {
    display: none;
    padding: 0 0 22px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--wwe-grau, #64748b);
}

.wwe-ei__acc-panel.is-offen {
    display: block;
}

.wwe-ei__acc-panel p {
    margin: 0 0 10px;
}

.wwe-ei__acc-panel p:last-child {
    margin-bottom: 0;
}

.wwe-ei__acc-panel a {
    color: var(--wwe-blau, #00acec);
}

.wwe-ei__button {
    display: inline-flex !important;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    margin-top: 6px;
    border-radius: 8px;
    background: var(--wwe-blau, #00acec);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
}
