/* =========================================
   BEWERBUNG (apply.php, https://sd.winku.de/apply) — Vorsilbe bw-.
   Knöpfe, Felder (.feld/.feld-name), Meldungen und Leer-Hinweise kommen aus main.css; hier nur Seiteneigenes.
   Getönte Flächen mit color-mix auf --bg-card (deckend, kein durchscheinender Hintergrund) — passt hell wie dunkel.
   ========================================= */

.bw-seite { max-width: 1120px; }

/* --- Kopf --- */
.bw-kopf {
    position: relative;
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--twitch-purple) 22%, var(--bg-card)) 0%, var(--bg-card) 62%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 30px;
    margin: 6px 0 20px;
}
.bw-titel { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; line-height: 1.15; margin: 2px 0 12px; overflow-wrap: anywhere; }
.bw-phase {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
    padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
    border: 1px solid var(--border-color); background: var(--bg-input);
}
.bw-phase-offen { border-color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--bg-card)); }
.bw-phase-zu { color: var(--text-muted); }
.bw-phase-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--success); flex: none; animation: bwPuls 2s infinite ease-in-out; }
.bw-phase-rest { background: var(--twitch-yellow); color: #000; font-size: 0.75rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.bw-kopf-text { color: var(--text-muted); margin-top: 14px; max-width: 62ch; }
@keyframes bwPuls { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 0%, transparent); } }

/* --- Fortschritt --- */
.bw-schritte { margin: 0 0 20px; }
.bw-schritte ol { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bw-schritt {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-align: center; color: var(--text-muted); font-weight: 600; font-size: 0.85rem; min-width: 0;
}
/* Verbindungslinie zum vorigen Schritt (liegt hinter den Kreisen) */
.bw-schritt + .bw-schritt::before {
    content: ""; position: absolute; top: 17px; right: calc(50% + 18px); width: calc(100% - 30px); height: 2px;
    background: var(--rand-stark); border-radius: 2px;
}
.bw-schritt.ist-fertig::before, .bw-schritt.ist-aktiv::before { background: var(--twitch-purple); }
.bw-schritt-nr {
    width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 2px solid var(--rand-stark); font-weight: 800; color: var(--text-muted); flex: none;
}
.bw-schritt.ist-fertig .bw-schritt-nr { background: var(--twitch-purple); border-color: var(--twitch-purple); color: #fff; }
.bw-schritt.ist-aktiv { color: var(--text-main); }
.bw-schritt.ist-aktiv .bw-schritt-nr { border-color: var(--twitch-purple); color: var(--akzent-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--twitch-purple) 25%, transparent); }
.bw-schritt-name { overflow-wrap: anywhere; line-height: 1.25; }
.bw-schritt-jetzt { display: none; text-align: center; font-weight: 700; margin-top: 10px; font-size: 0.95rem; }

/* --- Raster: Inhalt + Seitenleiste --- */
.bw-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px; align-items: start; }
.bw-haupt, .bw-seitenleiste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.bw-seitenleiste { position: sticky; top: calc(var(--nav-hoehe, 70px) + 16px); }

/* --- Karten --- */
.bw-karte { position: relative; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 22px; min-width: 0; }
.bw-karte p + p { margin-top: 8px; }
.bw-karte-titel { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 14px; }
.bw-karte-titel > i { color: var(--akzent-text); }

.bw-schritt-titel { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 10px; }
.bw-schritt-marke {
    width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-input); border: 2px solid var(--rand-stark); font-weight: 800; font-size: 0.9rem; color: var(--text-muted);
}
.bw-schritt-karte.ist-aktiv { border-color: var(--twitch-purple); box-shadow: 0 10px 30px color-mix(in srgb, var(--twitch-purple) 14%, transparent); }
.bw-schritt-karte.ist-aktiv .bw-schritt-marke { background: var(--twitch-purple); border-color: var(--twitch-purple); color: #fff; }
.bw-schritt-karte.ist-fertig { padding-block: 16px; }
.bw-schritt-karte.ist-fertig .bw-schritt-titel { margin-bottom: 6px; }
.bw-schritt-karte.ist-fertig .bw-schritt-marke { background: var(--success); border-color: var(--success); color: #04170b; }
.bw-schritt-karte.ist-spaeter { background: var(--flaeche-2); }
.bw-schritt-karte.ist-spaeter .bw-schritt-titel { color: var(--text-muted); }

.bw-gross { padding: 12px 22px; min-height: 46px; font-size: 1rem; margin-top: 12px; }
.bw-hinweis-klein { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }
.bw-hinweis-klein > i { margin-right: 4px; }
.bw-konto-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.bw-konto-zeile strong { overflow-wrap: anywhere; }
.bw-mini-bild { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--border-color); }
.bw-marke-twitch { color: #a970ff; font-size: 1.15rem; }
.bw-marke-discord { color: #7983f5; font-size: 1.15rem; }
[data-theme="light"] .bw-marke-twitch { color: #7b3be0; }
[data-theme="light"] .bw-marke-discord { color: #4752c4; }
.bw-haken { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--success); color: #04170b; font-size: 0.7rem; flex: none; }

/* --- Reichweite --- */
.bw-kanal { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 14px; }
.bw-kanal-bild { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--twitch-purple); flex: none; background: var(--bg-input); }
.bw-kanal-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 140px; }
.bw-kanal-name { font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; }
.bw-kanal-link { color: var(--akzent-text); font-size: 0.85rem; overflow-wrap: anywhere; }
.bw-kanal-link:hover { color: var(--text-main); text-decoration: underline; }
.bw-plakette { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.bw-plakette-partner { background: #9146FF; color: #fff; }
.bw-plakette-affiliate { background: var(--bg-input); color: var(--akzent-text); border: 1px solid var(--twitch-purple); }
.bw-plakette-live { background: #d90000; color: #fff; }
.bw-plakette-live > i { font-size: 0.55rem; animation: pulseRed 1.5s infinite; }
.bw-zahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bw-zahl { background: var(--flaeche-2); border: 1px solid var(--border-color); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.bw-zahl dt { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }
.bw-zahl dd { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.3; overflow-wrap: anywhere; }
.bw-kanal-fuss { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }
.bw-kanal-fuss:empty { display: none; }

/* --- Formular --- */
.bw-formular { margin-top: 6px; }
.bw-feld-alter input { max-width: 160px; }
.bw-freiwillig {
    display: inline-block; font-weight: 600; font-size: 0.72rem; color: var(--text-muted); background: var(--bg-input);
    border: 1px solid var(--border-color); border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: 1px;
}
.bw-zaehler { display: block; text-align: right; font-size: 0.78rem; color: var(--text-muted); margin: -10px 0 12px; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.bw-zaehler.ist-zu-kurz, .bw-zaehler.ist-fast-voll { color: var(--gelb-text); }
.hat-fehler input, .hat-fehler textarea { border-color: var(--danger); }
.bw-feld-fehler { display: block; color: var(--danger); font-size: 0.85rem; font-weight: 600; margin: -8px 0 14px; }
.bw-zustimmung { background: var(--flaeche-2); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; margin: 4px 0 6px; }
.bw-zustimmung.hat-fehler { border-color: var(--danger); }
.bw-zustimmung .haken-zeile { align-items: flex-start; font-weight: 500; }
.bw-zustimmung .haken-zeile input { margin-top: 5px; flex: none; width: 18px; height: 18px; }
.bw-zustimmung .bw-feld-fehler { margin: 8px 0 0; }
.bw-absenden { margin-top: 10px; }
.bw-absenden .bw-gross { margin-top: 0; }

/* --- Stand nach dem Abschicken --- */
.bw-stand { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; border-width: 2px; }
.bw-stand-symbol { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; background: var(--bg-input); color: var(--text-muted); }
.bw-stand-pille {
    display: inline-block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    padding: 3px 10px; border-radius: 999px; background: var(--bg-input); color: var(--text-muted); margin-bottom: 8px;
}
.bw-stand h2 { font-size: 1.45rem; line-height: 1.25; margin-bottom: 8px; overflow-wrap: anywhere; }
.bw-stand-zeit { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }
.bw-stand-knoepfe { margin-top: 16px; }
.bw-stand-knoepfe form { margin: 0; }
.bw-stand-offen { border-color: var(--twitch-purple); }
.bw-stand-offen .bw-stand-symbol { background: color-mix(in srgb, var(--twitch-purple) 16%, var(--bg-card)); color: var(--akzent-text); }
.bw-stand-offen .bw-stand-pille { background: var(--twitch-purple); color: #fff; }
.bw-stand-angenommen { border-color: var(--success); }
.bw-stand-angenommen .bw-stand-symbol { background: color-mix(in srgb, var(--success) 16%, var(--bg-card)); color: var(--success); }
.bw-stand-angenommen .bw-stand-pille { background: var(--success); color: #04170b; }
[data-theme="light"] .bw-stand-angenommen .bw-stand-pille { color: #fff; }
.bw-stand-abgelehnt { border-color: var(--rand-stark); }
.bw-stand-nachruecker { border-color: var(--twitch-yellow); }
.bw-stand-nachruecker .bw-stand-symbol { background: color-mix(in srgb, var(--twitch-yellow) 18%, var(--bg-card)); color: var(--gelb-text); }
.bw-stand-nachruecker .bw-stand-pille { background: var(--twitch-yellow); color: #000; }
.bw-stand-ausgefallen { border-color: var(--rand-stark); }
/* Spoilerschutz: Rollen und Teamkanal kommen erst mit den veröffentlichten Teams */
.bw-spoiler-hinweis { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--text-muted); font-size: 0.92rem; }
.bw-spoiler-hinweis > i { margin-top: 3px; color: #7983f5; flex: none; }
[data-theme="light"] .bw-spoiler-hinweis > i { color: #4752c4; }

.bw-team {
    display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; line-height: 1.25;
    padding: 8px 16px; border-radius: 10px; border: 2px solid var(--team, var(--twitch-purple)); background: var(--flaeche-2);
    margin: 6px 0 10px; max-width: 100%; overflow-wrap: anywhere;
}
.bw-team-punkt { width: 14px; height: 14px; border-radius: 50%; background: var(--team, var(--twitch-purple)); flex: none; }

.bw-discord-hinweis {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 14px 16px;
    border: 1px solid #5865F2; border-radius: 12px; background: color-mix(in srgb, #5865F2 12%, var(--bg-card));
}
.bw-discord-hinweis > i { font-size: 1.6rem; color: #7983f5; flex: none; }
[data-theme="light"] .bw-discord-hinweis > i { color: #4752c4; }
.bw-discord-hinweis > div { display: flex; flex-direction: column; flex: 1 1 220px; min-width: 0; }
.bw-discord-hinweis span { color: var(--text-muted); font-size: 0.9rem; }

.bw-antwort { margin: 12px 0; padding: 12px 16px; background: var(--flaeche-2); border-left: 4px solid var(--rand-stark); border-radius: 8px; }
.bw-antwort figcaption { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.bw-antwort blockquote { margin: 0; overflow-wrap: anywhere; }

.bw-angaben-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.bw-angaben-liste dt { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.bw-angaben-liste dd { margin-top: 2px; overflow-wrap: anywhere; }

/* --- Schritt 3: auf dem Showdown-Discord? --- */
.bw-unterschritt { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--flaeche-2); }
.bw-unterschritt-titel { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 6px; }
.bw-unterschritt p { margin: 0 0 10px; color: var(--text-muted); }
.bw-unterschritt .knopf-reihe { margin: 0; }
.bw-unterschritt.ist-fertig { border-color: var(--success); }
.bw-unterschritt.ist-fertig .bw-unterschritt-titel i { color: var(--success); }
.bw-unterschritt.ist-offen { border-color: #5865F2; }
.bw-unterschritt.ist-offen .bw-unterschritt-titel i { color: #7983f5; }
[data-theme="light"] .bw-unterschritt.ist-offen .bw-unterschritt-titel i { color: #4752c4; }
.bw-gesperrt { display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid #5865F2; background: color-mix(in srgb, #5865F2 10%, var(--bg-card)); font-weight: 600; }
.bw-gesperrt > i { margin-top: 3px; color: #7983f5; flex: none; }
[data-theme="light"] .bw-gesperrt > i { color: #4752c4; }

/* --- Minecraft-Name mit Skin --- */
.bw-mc { margin-bottom: 6px; }
.bw-feld-mc input { max-width: 280px; font-family: inherit; }
.bw-mc-meldung { font-size: 0.85rem; color: var(--text-muted); margin: -8px 0 12px; min-height: 1.2em; }
.bw-mc-meldung.bw-feld-fehler { color: var(--danger); }
.bw-skin {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin: 0 0 16px;
    padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--flaeche-2);
}
.bw-skin[hidden] { display: none; }
.bw-skin-koerper { width: 64px; height: 128px; image-rendering: pixelated; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
.bw-skin-name { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.bw-skin-name i { color: var(--success); }
.bw-skin-frage { font-weight: 700; margin: 0 0 6px; }
.bw-skin .haken-zeile input { width: 18px; height: 18px; flex: none; }
.bw-skin .bw-feld-fehler { margin: 6px 0 0; }
.bw-mc.hat-fehler .bw-skin { border-color: var(--danger); }
.bw-mc-angabe { display: inline-flex; align-items: center; gap: 8px; }
.bw-mc-kopf { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 3px; }

/* --- Social-Links (freiwillig, wie im Profil) --- */
.bw-socials { border: 0; padding: 0; margin: 4px 0 8px; min-width: 0; }
.bw-socials legend { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.bw-socials .bw-hinweis-klein { margin: 0 0 10px; }

/* --- So läuft's --- */
.bw-ablauf-liste { list-style: none; counter-reset: bwablauf; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.bw-ablauf-liste li { position: relative; padding-left: 40px; display: flex; flex-direction: column; min-width: 0; counter-increment: bwablauf; }
.bw-ablauf-liste li::before {
    content: counter(bwablauf); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem;
    background: var(--bg-input); border: 2px solid var(--twitch-purple); color: var(--akzent-text);
}
.bw-ablauf-liste span { color: var(--text-muted); font-size: 0.88rem; }
.bw-ablauf-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }

/* --- Handy --- */
@media (max-width: 900px) {
    .bw-raster { grid-template-columns: minmax(0, 1fr); }
    .bw-seitenleiste { position: static; }
}
@media (max-width: 560px) {
    .bw-kopf { padding: 20px 16px; }
    .bw-karte { padding: 18px 16px; }
    /* Nur noch Kreise, darunter EIN Satz zum aktuellen Schritt */
    .bw-schritt-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .bw-schritt-jetzt { display: block; }
    .bw-stand { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .bw-stand-symbol { width: 48px; height: 48px; font-size: 1.3rem; border-radius: 12px; }
    .bw-gross, .bw-absenden .btn { width: 100%; }
    .bw-stand-knoepfe > *, .bw-stand-knoepfe form .btn { width: 100%; }
    .bw-discord-hinweis .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bw-phase-punkt { animation: none; } }
