/* ============================ HELD AUSWÄHLEN + ERSCHAFFEN ============================ */

/* ─────────────────────────────────────────────────────────
   HELDENAUSWAHL  (.select)
   ───────────────────────────────────────────────────────── */
.select {
    padding: 8px 0 24px;
}
.select__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.select__title {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 22px;
    margin: 0;
}
.select__count {
    color: var(--text-dim);
    font-size: 13px;
}
.select__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Hero-Card */
.hero-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(175deg, var(--panel-2) 0%, var(--panel) 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(0,0,0,.45);
    transition: border-color .18s, box-shadow .2s, transform .15s;
}
.hero-card:hover {
    border-color: rgba(216,175,85,.4);
    box-shadow: 0 8px 30px rgba(0,0,0,.6), 0 0 20px rgba(216,175,85,.07);
    transform: translateY(-3px);
}
.hero-card.is-active {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(216,175,85,.3), 0 6px 30px rgba(0,0,0,.55), 0 0 40px rgba(216,175,85,.06);
}

/* Portrait stripe */
.hero-card__portrait {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(216,175,85,.1) 0%, transparent 65%),
        linear-gradient(160deg, #3e2e16 0%, #1c1309 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.hero-card__portrait::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(216,175,85,.08) 0%, transparent 55%);
    pointer-events: none;
}
.hero-card.is-active .hero-card__portrait::after {
    content: '▶ Aktiv';
    position: absolute;
    top: 7px; right: 9px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    color: var(--gold);
    background: rgba(0,0,0,.45);
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid rgba(216,175,85,.4);
}

/* Card body */
.hero-card__body {
    padding: 12px 14px 10px;
    flex: 1;
}
.hero-card__name {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 17px;
    margin-bottom: 4px;
}
.hero-card__meta {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 2px;
}
.hero-card__faction {
    color: var(--gold-soft);
    font-size: 12px;
    margin-bottom: 4px;
}
.hero-card__hp {
    color: var(--text);
    font-size: 12px;
    opacity: .85;
}

/* Actions */
.hero-card__actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px 12px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,.15);
}
.hero-card__actions form { margin: 0; flex: 1; }
.hero-card__actions form:last-child { flex: none; }
.hero-card__actions .btn--primary { width: 100%; }

/* New hero card */
.hero-card--new {
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    border-style: dashed;
    color: var(--text-dim);
    min-height: 180px;
    gap: 8px;
    padding: 24px;
}
.hero-card--new:hover {
    border-color: var(--gold);
    color: var(--gold);
    text-decoration: none;
    background: rgba(216,175,85,.05);
}
.hero-card__plus {
    font-size: 48px;
    line-height: 1;
    color: var(--gold-soft);
    transition: color .15s, transform .15s;
}
.hero-card--new:hover .hero-card__plus {
    color: var(--gold);
    transform: scale(1.12);
}
.hero-card__newlabel {
    font-family: 'Cinzel', serif;
    font-size: 14px;
}

/* Footer */
.select__foot {
    margin-top: 28px;
    text-align: center;
}

@media (max-width: 600px) {
    .select__grid { grid-template-columns: 1fr; }
    .select__title { font-size: 18px; }
}


/* ─────────────────────────────────────────────────────────
   HELD ERSCHAFFEN  (.create)
   ───────────────────────────────────────────────────────── */

.creator-view .guest-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(216,175,85,.06) 0%, transparent 60%),
        radial-gradient(ellipse at 15% 50%, rgba(100,60,160,.07) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 70%, rgba(60,100,160,.06) 0%, transparent 50%);
}
.creator-view .brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 24px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,.25);
}
.creator-view .brand__link { font-size: 22px; }
.creator-view .brand__sigil { font-size: 20px; }
.creator-view .brand__subtitle { margin: 0; font-size: 12px; display: inline; }
.creator-view .flash { flex-shrink: 0; margin: 6px 20px 0; }
.creator-view .guest-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    min-height: 0;
}
.creator-view .guest-footer {
    flex-shrink: 0;
    padding: 6px 24px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,.2);
    font-size: 12px;
    color: var(--text-dim);
}

/* ---- .create wrapper ---- */
.create {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 28px 6px;
    gap: 6px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 0;
}
.create__title {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 20px;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
    text-shadow: 0 0 20px rgba(216,175,85,.3);
    letter-spacing: .04em;
}
.create__back {
    text-align: center;
    margin: -8px 0 0;
    font-size: 13px;
    flex-shrink: 0;
}

/* ---- Step number badge ---- */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #e0b659, #b08c3a);
    color: #1e1407;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    flex-shrink: 0;
}

/* ---- Hauptbereich ---- */
.create__body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-top: 1px solid rgba(216,175,85,.25);
    border-radius: 10px 10px 0 0;
    background: var(--panel);
    box-shadow: 0 4px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(216,175,85,.08);
}

/* Linke Spalte */
.create__left {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}
.create__section {
    display: flex;
    flex-direction: column;
    padding: 14px 14px 12px;
}
.create__left .create__section:last-child {
    flex: 1;
    border-top: 1px solid var(--border);
}

/* Rechte Seite */
.create__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 18px 12px;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
}

/* Spalten-Kopf */
.create__col-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(216,175,85,.22);
    margin-bottom: 12px;
}
.create__col-hint {
    flex-shrink: 0;
    color: var(--text-dim);
    font-style: italic;
    font-size: 13px;
    margin: 6px 0 0;
}
.create__col--locked {
    opacity: .38;
    pointer-events: none;
    user-select: none;
}

/* ---- Choice-Listen ---- */
.choices--faction-col {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
}
.choices--faction-col .choice {
    flex: 1;
}
.choices--faction-col .choice__body {
    height: 100%;
    box-sizing: border-box;
}
.choices--race-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
    align-content: start;
}
.choices--class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    align-content: start;
}

/* ---- Einzelne Choice ---- */
.choice {
    position: relative;
    cursor: pointer;
    display: block;
}
.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.choice__body {
    display: block;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(160deg, rgba(255,255,255,.03) 0%, transparent 100%);
    padding: 11px 13px;
    transition: border-color .15s, background .15s, transform .13s, box-shadow .15s;
}
.choice:hover .choice__body {
    border-color: var(--gold-soft);
    background: linear-gradient(160deg, rgba(216,175,85,.1) 0%, rgba(216,175,85,.04) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.choice input:checked + .choice__body {
    border-color: var(--gold);
    background: linear-gradient(160deg, rgba(216,175,85,.22) 0%, rgba(216,175,85,.07) 100%);
    box-shadow: 0 0 0 2px rgba(216,175,85,.35), 0 4px 18px rgba(0,0,0,.4);
    transform: translateY(-2px);
}

.choice__name {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    color: #e8e0cc;
    margin-bottom: 4px;
    line-height: 1.3;
    letter-spacing: .02em;
}
.choice input:checked + .choice__body .choice__name {
    color: var(--gold);
}
.choice__desc {
    display: block;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.45;
}
.choice__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gold-soft);
}
.choice__stats .stat--best { color: #7ee67e; font-weight: 600; }
.choice__detail {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
}
.choice__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.spec-pill {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text);
}
.spec-pill small { opacity: .7; }
.spec-pill--tank    { border-color: #5b9bd5; color: #8bbff0; }
.spec-pill--healer  { border-color: #5fa84e; color: #8fd080; }
.spec-pill--dd      { border-color: #c94444; color: #e88080; }
.spec-pill--support { border-color: #c9a33e; color: #e8c87a; }

.choice.is-hidden { display: none; }
.choice.is-locked { opacity: .3; pointer-events: none; }
.choice.is-locked .choice__body { filter: grayscale(.7); }

/* Gender choices */
.choice--gender .choice__body { padding: 8px 10px; text-align: center; }
.choice--gender .choice__name { font-size: 13px; margin: 0; }
.create__gender-row { display: flex; gap: 6px; }
.choice--gender { flex: 1; min-width: 80px; }

/* ---- Tags ---- */
.tag {
    font-family: 'EB Garamond', serif;
    font-size: 11px;
    color: #1e1407;
    background: var(--gold);
    border-radius: 8px;
    padding: 1px 7px;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: 700;
}
.tag--sm   { font-size: 10px; padding: 1px 5px; margin-left: 4px; }
.tag--ok   { background: #4f7a3a; color: #d8f0c0; font-weight: 400; }
.tag--warn { background: #7a5a10; color: #f0d060; font-weight: 400; }
.tag--spec { background: #3d3270; color: #c9bdf5; font-weight: 400; }

/* ---- Untere Leiste (Schritt 4: Name + Absenden) ---- */
.create__bar {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-top: 1px solid rgba(216,175,85,.18);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--panel-2) 0%, rgba(10,8,4,.5) 100%);
    min-height: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.create__bar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 16px;
    border-right: 1px solid var(--border);
}
.create__bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.create__bar-step {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
}
.create__bar-step .step-num {
    width: 22px; height: 22px;
    font-size: 12px;
}
.create__name-row .field__input {
    width: 160px;
    padding: 4px 10px;
    font-size: 13px;
}
.create__bar .btn--lg {
    padding: 5px 16px;
    font-size: 13px;
}
.create__bar .create__col-hint {
    font-size: 11px;
    margin: 0;
}
.create__submit-btn:disabled {
    opacity: .4;
    cursor: default;
    transform: none !important;
}

/* Gender-Buttons in der Bar: kompakt */
.create__bar .choice--gender .choice__body {
    padding: 4px 10px;
}
.create__bar .choice--gender .choice__name {
    font-size: 12px;
    margin: 0;
}

.create__bar-ad {
    width: 160px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: rgba(0,0,0,.2);
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .create__left { width: 280px; }
}

@media (max-width: 860px) {
    .create { padding: 10px 14px 16px; }
    .create__body {
        flex-direction: column;
        border-radius: 10px;
    }
    .create__left {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .create__left .create__section { flex: 1; }
    .create__left .create__section:last-child {
        border-top: none;
        border-left: 1px solid var(--border);
    }
    .choices--class-grid { grid-template-columns: repeat(3, 1fr); }
    .create__bar { flex-direction: column; border-radius: 0 0 10px 10px; }
    .create__bar-center { border-right: none; border-bottom: 1px solid var(--border); }
    .create__bar-ad { width: 100%; height: 60px; }
    .select__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 560px) {
    .create__left { flex-direction: column; }
    .create__left .create__section:last-child {
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .choices--faction-col { flex-direction: column; }
    .choices--race-col { grid-template-columns: 1fr 1fr; }
    .choices--class-grid { grid-template-columns: repeat(2, 1fr); }
    .create__bar-inner { gap: 6px; }
    .create__name-row .field__input { width: 130px; }
    .select__grid { grid-template-columns: 1fr; }
}
