/* HoopsHub – Bestellseite. Nutzt die Farb-Variablen aus style.css. */
.order { padding: 56px 0 110px; }
.order-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.order-back:hover { color: var(--text); }
.order-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.order-head { margin: 22px 0 40px; max-width: 720px; }
.order-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; letter-spacing: -.03em; margin-top: 14px; }
.order-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.order-form { display: grid; gap: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card legend, .card h2 { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; padding: 0; margin: 0 0 18px; }
fieldset.card { margin: 0; min-width: 0; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; margin-right: 10px; vertical-align: 2px; font-family: var(--body); }

.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.field .hint { color: var(--dim); font-size: 14px; }
.input, .select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--dim); }
.input:focus, .select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 53, .18); }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%239aa6ba' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.select option { background: #151d2d; color: #eef1f6; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: #ff6b74; }
.error { color: #ff8a92; font-size: 14px; min-height: 0; }
.error:empty { display: none; }
.ok { color: var(--green); font-size: 14px; }
.ok:empty { display: none; }

.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); margin-top: 18px; }
.switch input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; cursor: pointer; }
.switch strong { display: block; font-size: 15px; }
.switch span span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.club-picker { margin-top: 18px; }
.club-picker[hidden], .club-new[hidden] { display: none; }
.badge-info { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: #63d17f; background: rgba(99, 209, 127, .08); border: 1px solid rgba(99, 209, 127, .3); padding: 6px 12px; border-radius: 999px; }
.source-note { font-size: 13px; color: var(--dim); }

.billing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.billing label { position: relative; display: grid; gap: 4px; padding: 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; }
.billing input { position: absolute; opacity: 0; pointer-events: none; }
.billing label:has(input:checked) { border-color: var(--red); background: rgba(208, 32, 47, .1); box-shadow: inset 0 0 0 1px var(--red); }
.billing label:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.billing .b-name { font-weight: 600; }
.billing .b-price { font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.billing .b-note { color: var(--muted); font-size: 14px; }
.billing .b-save { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; color: var(--green); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.consent a { color: var(--text); }
.submit-row { display: grid; gap: 12px; }
.submit-row .btn { width: 100%; padding: 17px 24px; font-size: 17px; }
.submit-row small { color: var(--dim); font-size: 13px; text-align: center; }

/* Zusammenfassung */
.summary { position: sticky; top: 94px; }
.summary dl { margin: 0; display: grid; gap: 12px; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.summary .total { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; display: flex; justify-content: space-between; align-items: baseline; }
.summary .total strong { font-family: var(--display); font-size: 34px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.summary .total span { color: var(--muted); font-size: 15px; }
.summary .fine { color: var(--dim); font-size: 13px; margin-top: 12px; }
.summary ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.summary ul li::before { content: "✓"; color: var(--green); margin-right: 8px; font-weight: 700; }

/* Bestätigung */
.done { text-align: center; padding: 48px 28px; }
.done[hidden] { display: none; }
.done .check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: rgba(99, 209, 127, .14); color: #63d17f; }
.done .check svg { width: 32px; height: 32px; }
.done h2 { font-size: 30px; margin-bottom: 12px; }
.done p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.done .demo { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); border: 1px dashed rgba(255, 107, 53, .6); padding: 6px 12px; border-radius: 8px; }
.done .btn { margin-top: 26px; }

.order-header-actions { margin-left: auto; display: flex; gap: 10px; }

@media (max-width: 960px) {
  .order-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
}
@media (max-width: 760px) {
  .order { padding: 32px 0 80px; }
  .card { padding: 22px 18px; }
  .billing { grid-template-columns: 1fr; }
  .order-header-actions .btn-login-text { display: none; }
}

[hidden] { display: none !important; }
.card legend { float: left; width: 100%; }
/* ~ statt +: das direkt folgende Element kann [hidden] sein (z. B. das
   Teamname-Feld bei einer Vereinslizenz-Bestellung) — ein verstecktes
   Element cleart nichts, und das Mengen-Feld quetschte sich dann neben
   die gefloatete legend. Alle Geschwister clearen zu lassen ist harmlos,
   nur die legend floatet. */
.card legend ~ * { clear: both; }
.club-new[hidden] + .switch { margin-top: 0; }

/* --------------------------------------------------------------------------
   Ergänzungen (nicht aus dem Original-Design-Download):
   Plan-Auswahlseite (plaene.html) & Zahlungs-Dummy (zahlung.html)
   -------------------------------------------------------------------------- */

/* Dynamisches Plan-Grid — passt sich der Anzahl aktiver Pläne an (1–n
   Karten), statt des festen 3-Spalten-Grids der Startseite. */
.plans--dynamic { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 20px; align-items: stretch; justify-content: center; }
.plans--dynamic .plan { min-width: 0; }
.plan .trial-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 700; color: #63d17f; background: rgba(99, 209, 127, .1); border: 1px solid rgba(99, 209, 127, .3); padding: 5px 12px; border-radius: 999px; }
.plans-status { color: var(--muted); text-align: center; padding: 40px 0; font-size: 16px; }
.plans-status.is-error { color: #ff8a92; }

/* Klub-Prüfung (ersetzt das Dropdown des Design-Downloads — Vereinsnamen
   bleiben privat, geprüft wird nur ein exakt eingegebener Name/ID). */
.club-check-row { display: flex; gap: 10px; }
.club-check-row .input { flex: 1; }
.club-check-row .btn { flex: none; white-space: nowrap; }

/* Zahlungs-Dummy */
.pay-wrap { max-width: 560px; margin: 0 auto; display: grid; gap: 22px; }
.pay-note { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); border: 1px dashed rgba(255, 107, 53, .6); padding: 6px 12px; border-radius: 8px; justify-self: center; }
