/* Dateipfad: assets/css/bi-partner-werden.css
   Seite «Partner werden» (partner_werden.php): ruhig wie die übrigen Seiten (z. B. die Beispiele «Ohne Event»). Kacheln wie die
   Werkzeug-Karten im Ratgeber – Symbol auf getönter Fläche (--c) und ein weicher Kreis in der Ecke; sonst nur die Farbe der Webseite
   (--primary-color) für Knöpfe, Auswahl und Links – keine Farbverläufe. Farben der Flächen über die Variablen der Webseite.
   Die Live-Vorschau (Handy wie bei «Ohne Event») kommt aus assets/css/bi-partner-vorschau.css, der Kasten aus assets/css/bi-partner.css,
   die Häufigen Fragen aus includes/ratgeber/sec_faq.php (gleich wie auf der Startseite und im Ratgeber). */

html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; font-family: var(--font-family, "Segoe UI", Roboto, sans-serif); background-color: var(--bg-body, #f8fafc); color: var(--text-main, #0f172a); box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

.pw-wrap { max-width: var(--container-wide-width, 1140px); margin: 0 auto; padding: 8px 5% 64px; }
.pw-sec { margin: 0 0 64px; scroll-margin-top: 90px; }
.pw-h2 { font-size: clamp(1.4rem, 3.6vw, 1.95rem); line-height: 1.25; margin: 0 0 10px; text-align: center; letter-spacing: -0.01em; }
.pw-lead { text-align: center; color: var(--text-muted, #64748b); max-width: 640px; margin: 0 auto 26px; line-height: 1.6; font-size: 1rem; }

/* Symbol auf getönter Fläche (überall gleich) */
.pw-ic { width: 48px; height: 48px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem;
    color: var(--c, #2771c8); background: color-mix(in srgb, var(--c, #2771c8) 13%, transparent); }

/* ------------------------------------------------------------------ Warum: vier Kacheln wie im Ratgeber */
.pw-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.pw-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: 22px; background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03); min-width: 0; }
.pw-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c, #2771c8); opacity: 0.08; pointer-events: none; }
.pw-tile h3 { margin: 0 0 6px; font-size: 1.04rem; }
.pw-tile p { margin: 0; color: var(--text-muted, #64748b); font-size: 0.9rem; line-height: 1.55; }

/* ------------------------------------------------------------------ Probier es aus (Aufbau wie «Live ausprobieren» bei «Ohne Event») */
.pw-try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; align-items: center; }
.pw-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(39, 113, 200, 0.08); border: 1px solid rgba(39, 113, 200, 0.2); padding: 5px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; color: var(--primary-color, #2771c8); margin-bottom: 12px; }
.pw-try-form h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 900; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.4px; }
.pw-try-lead { margin: 0 0 22px; color: var(--text-muted, #64748b); line-height: 1.65; font-size: 0.95rem; }
.pw-f { margin: 0 0 14px; min-width: 0; }
.pw-f > label:not(.pw-sw), .pw-f-row label:not(.pw-sw), .pw-lab { display: block; font-size: 0.84rem; font-weight: 700; margin: 0 0 6px; }
.pw-in { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border-color, #e2e8f0); border-radius: 13px; font: inherit; font-size: 16px; line-height: 1.4;
    background: var(--bg-card, #fff); color: var(--text-main, #0f172a); }
textarea.pw-in { resize: vertical; min-height: 64px; }
.pw-in:focus { outline: none; border-color: var(--primary-color, #2771c8); box-shadow: 0 0 0 3px rgba(39, 113, 200, 0.15); }
.pw-f-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.pw-f-row > div { flex: 1 1 180px; min-width: 0; }
.pw-sw { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 0.88rem; font-weight: 700; padding: 0 0 11px; user-select: none; position: relative; }
.pw-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pw-knob { width: 40px; height: 23px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background 0.15s; flex-shrink: 0; }
.pw-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.pw-sw input:checked + .pw-knob { background: var(--primary-color, #2771c8); }
.pw-sw input:checked + .pw-knob::after { transform: translateX(17px); }
.pw-sw input:focus-visible + .pw-knob { outline: 2px solid var(--primary-color, #2771c8); outline-offset: 2px; }
/* Bereiche: ruhige Knöpfe, gewählt in der Farbe der Webseite */
.pw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-chip { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--border-color, #e2e8f0); background: var(--bg-card, #fff); color: var(--text-main, #0f172a);
    border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.pw-chip i { color: var(--text-muted, #64748b); }
.pw-chip:hover { border-color: var(--primary-color, #2771c8); }
.pw-chip.is-on { background: rgba(39, 113, 200, 0.08); border-color: var(--primary-color, #2771c8); color: var(--primary-color, #2771c8); }
.pw-chip.is-on i { color: var(--primary-color, #2771c8); }
.pw-chip:focus-visible, .pw-show:focus-visible, .pw-cta:focus-visible { outline: 2px solid var(--primary-color, #2771c8); outline-offset: 2px; }
.pw-cta.btn { margin-top: 8px; padding: 14px 24px; border-radius: 14px; font-weight: 800; font-size: 0.95rem; }
.pw-try-side { min-width: 0; }
.pw-try-note { display: flex; gap: 8px; align-items: flex-start; justify-content: center; font-size: 0.8rem; color: var(--text-muted, #64748b); margin: 16px 6px 0; line-height: 1.45; text-align: center; }
.pw-try-note i { color: var(--primary-color, #2771c8); margin-top: 2px; }
.pw-try-stage { min-width: 0; }
.pw-try-stage .bpv-bar { justify-content: center; margin-bottom: 16px; }
/* Auswahl «Stelle» ohne sichtbares Wort (steht unter dem Handy: «Hier erscheint es: …») – so passt alles auf eine Zeile */
.pw-try-stage .bpv-sel { flex: 0 1 200px; }
.pw-try-stage .bpv-sel > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Das Handy steht frei auf der Seite – wie bei den Beispielen */
.pw-try-stage .bpv-stage { background: none; padding: 4px 4px 2px; border-radius: 0; overflow: visible; }
.pw-try-stage .bpv-device { transition: outline-color 0.35s ease; outline: 3px solid transparent; outline-offset: 6px; }
.pw-try-stage.is-flash .bpv-device { outline-color: rgba(39, 113, 200, 0.4); }

/* ------------------------------------------------------------------ Wo du erscheinen kannst */
.pw-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.pw-area { position: relative; overflow: hidden; flex: 1 1 300px; max-width: 364px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px;
    border-radius: 22px; background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e2e8f0); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03); }
.pw-area::after { content: ""; position: absolute; right: -34px; top: -34px; width: 124px; height: 124px; border-radius: 50%; background: var(--c, #2771c8); opacity: 0.08; pointer-events: none; }
.pw-area h3 { margin: 4px 0 0; font-size: 1.08rem; }
.pw-area > p { margin: 0; color: var(--text-muted, #64748b); font-size: 0.9rem; line-height: 1.55; }
.pw-places { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pw-places li { font-size: 0.74rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: var(--text-muted, #64748b); background: var(--bg-hover, #f1f5f9); }
.pw-show { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 8px 0 0; font: inherit; font-size: 0.86rem; font-weight: 800;
    color: var(--primary-color, #2771c8); cursor: pointer; }
.pw-show:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Dein Partner-Bereich */
.pw-home { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 34px; align-items: center; }
.pw-home-text h2 { font-size: clamp(1.4rem, 3.4vw, 1.85rem); line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.01em; }
.pw-home-lead { margin: 0 0 20px; color: var(--text-muted, #64748b); line-height: 1.6; }
.pw-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.pw-feats li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.pw-feats li > i { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.98rem;
    color: var(--c, #2771c8); background: color-mix(in srgb, var(--c, #2771c8) 13%, transparent); }
.pw-feats b { display: block; font-size: 0.94rem; margin: 1px 0 3px; }
.pw-feats span { display: block; font-size: 0.85rem; color: var(--text-muted, #64748b); line-height: 1.5; }
/* Kleines Bild des Partner-Bereichs (Beispiel) */
.pw-mini { position: relative; border-radius: 22px; padding: 16px; background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10); transform: rotate(1.2deg); }
.pw-mini-bar { display: flex; align-items: center; gap: 6px; margin: -2px 0 12px; }
.pw-mini-bar span { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.pw-mini-bar span:nth-child(2) { background: #fbbf24; }
.pw-mini-bar span:nth-child(3) { background: #34d399; }
.pw-mini-bar b { margin-left: 8px; font-size: 0.78rem; color: var(--text-muted, #64748b); }
.pw-mini-hi { font-weight: 800; font-size: 0.98rem; margin: 0 0 10px; }
.pw-mini-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pw-mini-tiles div { position: relative; overflow: hidden; border-radius: 14px; padding: 10px 11px; background: var(--bg-body, #f8fafc); border: 1px solid var(--border-color, #e2e8f0); min-width: 0; }
.pw-mini-tiles div::after { content: ""; position: absolute; right: -16px; top: -16px; width: 52px; height: 52px; border-radius: 50%; background: var(--c); opacity: 0.12; }
.pw-mini-tiles i { color: var(--c); font-size: 0.85rem; }
.pw-mini-tiles b { display: block; font-size: 0.95rem; margin: 4px 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-mini-tiles small { display: block; font-size: 0.68rem; color: var(--text-muted, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-mini-chat { margin: 10px 0 0; max-width: 88%; font-size: 0.8rem; line-height: 1.45; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: var(--bg-body, #f1f5f9); border: 1px solid var(--border-color, #e2e8f0); }
.pw-mini-chat.is-team { margin-left: auto; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, #2771c8 10%, var(--bg-card, #fff)); border-color: color-mix(in srgb, #2771c8 22%, transparent); }
.pw-mini-ref { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 4px; font-size: 0.7rem; font-weight: 800; color: #7c3aed; background: color-mix(in srgb, #7c3aed 10%, transparent); padding: 2px 7px; border-radius: 999px; }
.pw-mini-ref + * { display: block; }
.pw-mini-cap { position: absolute; right: 14px; bottom: -22px; font-size: 0.72rem; color: var(--text-muted, #64748b); }

/* ------------------------------------------------------------------ Schon dabei */
.pw-firms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pw-firms a, .pw-firm-in { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px; background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #0f172a); text-decoration: none; font-size: 0.92rem; }
.pw-firms a:hover { border-color: var(--primary-color, #2771c8); }
.pw-firms img, .pw-firm-ini { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: var(--bg-body, #f8fafc); flex-shrink: 0; }
.pw-firm-ini { display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; background: var(--primary-color, #2771c8); }

/* ------------------------------------------------------------------ Aktuelles */
.pw-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.pw-newsitem { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e2e8f0); --c: var(--primary-color, #2771c8); min-width: 0; }
.pw-newsitem .pw-ic { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
.pw-newsitem small { display: block; font-size: 0.76rem; color: var(--text-muted, #64748b); }
.pw-newsitem h3 { margin: 2px 0 4px; font-size: 1rem; }
.pw-newsitem p { margin: 0 0 6px; font-size: 0.88rem; line-height: 1.55; color: var(--text-muted, #64748b); overflow-wrap: anywhere; }
.pw-newsitem a { font-size: 0.85rem; font-weight: 800; color: var(--primary-color, #2771c8); text-decoration: none; }
.pw-newsitem a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ So läuft es (eine Abfolge – deshalb Zahlen) */
.pw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: pw; position: relative; }
.pw-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 21px; border-top: 2px dashed var(--border-color, #e2e8f0); }
.pw-steps li { position: relative; text-align: center; padding: 0 6px; min-width: 0; }
.pw-steps li::before { counter-increment: pw; content: counter(pw); position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-weight: 900; font-size: 1.05rem; color: #fff; background: var(--primary-color, #2771c8); box-shadow: 0 0 0 6px var(--bg-body, #f8fafc); }
.pw-steps h3 { margin: 0 0 6px; font-size: 1rem; }
.pw-steps p { margin: 0; font-size: 0.88rem; color: var(--text-muted, #64748b); line-height: 1.55; }

/* ------------------------------------------------------------------ Häufige Fragen (includes/ratgeber/sec_faq.php, gleich wie Startseite und Ratgeber) */
.pw-faqwrap { margin: 0 0 24px; }
.pw-faqwrap .faq-clean-wrap { padding-left: 0; padding-right: 0; padding-bottom: 40px; }

/* ------------------------------------------------------------------ Formular */
.pa-form-card { position: relative; overflow: hidden; background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 24px; padding: 28px; max-width: 780px; margin: 0 auto;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); }
.pa-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.pa-field { margin-bottom: 14px; min-width: 0; }
.pa-field > label, .pa-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.pa-field > label small, .pa-label small { font-weight: 500; color: var(--text-muted, #64748b); }
.pa-in { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border-color, #e2e8f0); border-radius: 13px; font: inherit; font-size: 16px; background: var(--input-bg, var(--bg-body, #fff)); color: var(--text-main, #0f172a); }
.pa-in:focus { outline: none; border-color: var(--primary-color, #2771c8); box-shadow: 0 0 0 3px rgba(39, 113, 200, 0.15); }
textarea.pa-in { min-height: 130px; resize: vertical; }
.pa-field.has-err .pa-in { border-color: #e11d48; }
.pa-err { display: none; color: #be123c; font-size: 0.8rem; font-weight: 700; margin-top: 4px; }
.pa-field.has-err .pa-err { display: block; }
.pa-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-check { position: relative; display: inline-flex; gap: 8px; align-items: center; font-size: 0.88rem; font-weight: 700; border: 1.5px solid var(--border-color, #e2e8f0); border-radius: 999px; padding: 8px 14px 8px 12px;
    cursor: pointer; background: var(--bg-body, #f8fafc); line-height: 1.3; transition: border-color 0.15s, background 0.15s; }
.pa-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pa-check i { color: var(--text-muted, #64748b); }
.pa-check:hover { border-color: var(--primary-color, #2771c8); }
.pa-check:has(input:checked) { border-color: var(--primary-color, #2771c8); background: rgba(39, 113, 200, 0.08); color: var(--primary-color, #2771c8); }
.pa-check:has(input:checked) i { color: var(--primary-color, #2771c8); }
.pa-check:has(input:checked)::after { content: "\2713"; font-weight: 900; color: var(--primary-color, #2771c8); }
.pa-check:has(input:focus-visible) { outline: 2px solid var(--primary-color, #2771c8); outline-offset: 2px; }
.pa-field > label.pa-consent, .pa-consent { display: flex; font-weight: 500; margin: 0; gap: 10px; align-items: flex-start; font-size: 0.88rem; line-height: 1.5; color: var(--text-muted, #64748b); }
.pa-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary-color, #2771c8); flex-shrink: 0; }
.pa-consent a { color: var(--primary-color, #2771c8); font-weight: 700; }
.pa-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Senden: Hauptknopf der Webseite (blau), wie überall */
.pa-submit { margin-top: 16px; width: 100%; border: 1px solid var(--primary-color, #2771c8); border-radius: 14px; padding: 14px 18px; color: #fff; font-weight: 800; font-size: 0.98rem; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--primary-color, #2771c8); box-shadow: 0 4px 12px rgba(39, 113, 200, 0.2); transition: background 0.2s, box-shadow 0.2s; }
.pa-submit:hover { background: var(--primary-hover, #1d5bb0); border-color: var(--primary-hover, #1d5bb0); box-shadow: 0 6px 16px rgba(39, 113, 200, 0.3); }
.pa-submit:focus-visible { outline: 2px solid var(--primary-color, #2771c8); outline-offset: 3px; }
.pa-submit[disabled] { opacity: 0.65; cursor: wait; }
.pa-msg { display: none; margin-top: 12px; padding: 11px 14px; border-radius: 12px; font-size: 0.9rem; font-weight: 700; }
.pa-msg.is-err { display: block; background: rgba(225, 29, 72, 0.08); color: #be123c; border: 1px solid rgba(225, 29, 72, 0.25); }
.pa-done { text-align: center; padding: 20px 6px; }
.pa-done i { width: 64px; height: 64px; border-radius: 50%; background: rgba(16, 185, 129, 0.12); color: #059669; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 12px; }
.pa-done h3 { margin: 0 0 6px; font-size: 1.25rem; }
.pa-done p { color: var(--text-muted, #64748b); margin: 0; line-height: 1.55; }
.pa-field.is-hint .pa-in { border-color: var(--primary-color, #2771c8); box-shadow: 0 0 0 3px rgba(39, 113, 200, 0.18); }

/* ------------------------------------------------------------------ Schmaler */
@media (max-width: 1020px) {
    .pw-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pw-try, .pw-home { grid-template-columns: minmax(0, 1fr); }
    .pw-try { gap: 36px; }
    .pw-mini { max-width: 460px; margin: 0 auto 26px; width: 100%; }
}
@media (max-width: 760px) {
    .pw-sec { margin-bottom: 52px; }
    .pw-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .pw-steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 2px dashed var(--border-color, #e2e8f0); }
    .pw-steps li { text-align: left; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 0; }
    .pw-steps li::before { grid-row: span 2; margin: 0; }
    .pw-feats { grid-template-columns: minmax(0, 1fr); }
    .pa-row { grid-template-columns: minmax(0, 1fr); }
    .pa-form-card { padding: 24px 16px 18px; border-radius: 22px; }
}
@media (max-width: 520px) {
    .pw-try-stage .bpv-sel { flex: 1 1 100%; }
    .pw-why { grid-template-columns: minmax(0, 1fr); }
    .pw-tile { flex-direction: row; align-items: flex-start; padding: 18px; }
    .pw-area { padding: 18px 16px 14px; }
    .pw-cta.btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .pw-try-stage .bpv-device, .pw-chip, .pw-knob, .pw-knob::after, .pa-check, .pa-submit { transition: none; }
}
