/* ═══════════════════════════════════════════════════════════════════
   1. Viernheimer Judo-Club e.V. – SPOND Zugangsdaten
   Vereinsfarben: Rot #CC0000 · Schwarz #111 · Weiß #fff
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --red:       #CC0000;
    --red-dark:  #A00000;
    --red-light: #FF2222;
    --black:     #111111;
    --dark:      #1a1a1a;
    --gray-700:  #444444;
    --gray-500:  #777777;
    --gray-300:  #cccccc;
    --gray-100:  #f4f4f4;
    --white:     #ffffff;
    --green:     #28a745;

    --font-head: 'Oswald', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    --radius:    12px;
    --radius-lg: 20px;
    --shadow:
        0 0 0 1px rgba(0,0,0,.04),
        0 2px 4px rgba(0,0,0,.04),
        0 8px 24px rgba(0,0,0,.09),
        0 28px 64px rgba(0,0,0,.08);
    --trans:     220ms cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Hintergrund ───────────────────────────────────────────────── */
.bg-deco {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
    background: radial-gradient(ellipse 90% 40% at 50% -5%,
        rgba(204,0,0,.06) 0%, transparent 100%);
}
.bg-circle { position: absolute; border-radius: 50%; }
.bg-circle--1 { width: 800px; height: 800px; top: -320px; right: -220px;
    background: radial-gradient(circle, rgba(204,0,0,.07) 0%, transparent 60%); }
.bg-circle--2 { width: 600px; height: 600px; bottom: -200px; left: -180px;
    background: radial-gradient(circle, rgba(204,0,0,.05) 0%, transparent 60%); }
.bg-stripe { position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--black) 0%, var(--red) 50%, var(--black) 100%); }

/* ── Layout ────────────────────────────────────────────────────── */
.page-wrap {
    position: relative; z-index: 1;
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; padding: 0 16px 40px;
    background: linear-gradient(170deg, rgba(204,0,0,.035) 0%, transparent 28%);
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
    width: 100%; max-width: 560px; padding: 32px 0 24px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    margin-bottom: 8px;
}
.header-inner { display: flex; align-items: center; gap: 16px; }
.header-logo {
    width: 72px; height: 72px; object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
    transition: transform var(--trans);
}
.header-logo:hover { transform: scale(1.05) rotate(-2deg); }
.header-text { display: flex; flex-direction: column; }
.header-club {
    font-family: var(--font-head); font-weight: 700;
    font-size: clamp(14px, 3vw, 18px); letter-spacing: .04em;
    color: var(--black); text-transform: uppercase; line-height: 1.2;
}
.header-sub { font-size: 13px; color: var(--gray-500); letter-spacing: .06em;
    text-transform: uppercase; font-weight: 600; margin-top: 2px; }

/* ── Karten ────────────────────────────────────────────────────── */
.main-content { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 36px 40px; box-shadow: var(--shadow);
    animation: cardIn .4s ease both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card--form    { border-top: 5px solid var(--red); }
.card--success { border-top: 5px solid var(--green); }

/* ── Badge ─────────────────────────────────────────────────────── */
.card__eyebrow { margin-bottom: 12px; }
.badge {
    display: inline-block; background: rgba(204,0,0,.1); color: var(--red);
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(204,0,0,.2);
}

/* ── Texte ─────────────────────────────────────────────────────── */
.card__title {
    font-family: var(--font-head); font-size: clamp(26px, 5vw, 36px);
    font-weight: 700; color: var(--black); letter-spacing: .02em;
    line-height: 1.15; margin-bottom: 10px;
}
.card__desc { font-size: 15px; color: var(--gray-500); margin-bottom: 28px; line-height: 1.65; }

/* ── Formular ──────────────────────────────────────────────────── */
.form-wrap { display: flex; flex-direction: column; gap: 16px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-label { font-size: 13px; font-weight: 600; color: var(--gray-700);
    letter-spacing: .04em; text-transform: uppercase; }
.input-shell { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 14px; width: 18px; height: 18px;
    color: var(--gray-500); pointer-events: none; transition: color var(--trans); }
.input-field {
    width: 100%; padding: 14px 14px 14px 44px;
    border: 2px solid var(--gray-300); border-radius: var(--radius);
    font-family: var(--font-body); font-size: 16px; color: var(--dark);
    background: var(--white); outline: none;
    transition: border-color var(--trans), box-shadow var(--trans);
}
.input-field::placeholder { color: var(--gray-300); }
.input-field:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(204,0,0,.12); }
.input-shell:focus-within .input-icon { color: var(--red); }
.input-hint { font-size: 13px; color: var(--red); min-height: 18px; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px 24px; background: var(--red); color: var(--white);
    border: none; border-radius: var(--radius);
    font-family: var(--font-head); font-size: 16px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
    transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, transparent 60%);
    pointer-events: none;
}
.btn-primary:hover:not(:disabled) {
    background: var(--red-dark);
    box-shadow: 0 6px 20px rgba(204,0,0,.35);
    transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; }

.btn-primary.is-loading .btn-text,
.btn-primary.is-loading .btn-arrow { display: none; }
.btn-spinner {
    display: none; width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,.3); border-top-color: var(--white);
    border-radius: 50%;
}
.btn-primary.is-loading .btn-spinner { display: block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-arrow { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--trans); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: transparent; color: var(--gray-700);
    border: 2px solid var(--gray-300); border-radius: var(--radius);
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all var(--trans); margin-top: 24px;
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.btn-secondary svg { width: 16px; height: 16px; }

/* ── Alerts ────────────────────────────────────────────────────── */
.alert {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 18px; border-radius: var(--radius); margin-top: 16px;
    animation: alertIn .3s ease both;
}
@keyframes alertIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.alert--error   { background: rgba(204,0,0,.07); border: 1px solid rgba(204,0,0,.25); }
.alert--blocked { background: rgba(17,17,17,.06); border: 1px solid rgba(17,17,17,.2); }
.alert__icon { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; }
.alert--error .alert__icon   { color: var(--red); }
.alert--blocked .alert__icon { color: var(--gray-700); }
.alert__title { display: block; font-family: var(--font-head); font-size: 15px;
    font-weight: 600; letter-spacing: .03em; margin-bottom: 3px; }
.alert--error .alert__title   { color: var(--red-dark); }
.alert--blocked .alert__title { color: var(--gray-700); }
.alert__msg { font-size: 14px; color: var(--gray-700); line-height: 1.5; }
.alert__contact {
    display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600;
    color: var(--red); text-decoration: none;
}
.alert__contact:hover { text-decoration: underline; }

/* ── Erfolg ────────────────────────────────────────────────────── */
.success-header { text-align: center; margin-bottom: 28px; }
.success-check {
    width: 64px; height: 64px;
    background: rgba(40,167,69,.12); border: 2px solid rgba(40,167,69,.3);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; animation: popIn .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.success-check svg { width: 32px; height: 32px; color: var(--green); }
.success-title { font-family: var(--font-head); font-size: clamp(22px,4vw,30px);
    font-weight: 700; color: var(--black); letter-spacing: .02em; margin-bottom: 8px; }
.success-sub { font-size: 15px; color: var(--gray-500); max-width: 400px; margin: 0 auto; }

/* ── SPOND-Karte ───────────────────────────────────────────────── */
.spond-card { background: var(--black); border-radius: var(--radius);
    padding: 28px; margin-bottom: 24px; color: var(--white); }
.spond-logo-wrap { display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.spond-brand { font-family: var(--font-head); font-size: 22px; font-weight: 700;
    letter-spacing: .08em; color: var(--white); }
.spond-data { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.spond-row { display: flex; flex-direction: column; gap: 3px; }
.spond-row__label { font-size: 11px; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.45); }
.spond-row__value { font-size: 16px; color: var(--white); font-weight: 500; word-break: break-all; }
.spond-row__value--code {
    font-family: 'Courier New', monospace; font-size: 20px; font-weight: 700;
    letter-spacing: .15em; color: var(--red-light);
    background: rgba(255,255,255,.06); padding: 8px 12px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: space-between;
}
.copy-btn {
    background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer;
    padding: 2px 8px; border-radius: 4px; font-size: 12px; font-family: var(--font-body);
    transition: all var(--trans); white-space: nowrap;
}
.copy-btn:hover { background: rgba(255,255,255,.1); color: var(--white); }
.copy-btn.copied { color: #4cff7a; }
.spond-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.spond-btn {
    flex: 1; min-width: 120px; display: inline-flex; align-items: center;
    justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 8px;
    font-family: var(--font-body); font-size: 13px; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none; transition: all var(--trans);
}
.spond-btn--primary { background: var(--red); color: var(--white); }
.spond-btn--primary:hover { background: var(--red-light); }
.spond-btn--outline { background: rgba(255,255,255,.08); color: var(--white);
    border: 1px solid rgba(255,255,255,.2); }
.spond-btn--outline:hover { background: rgba(255,255,255,.15); }

/* ── Schritte ──────────────────────────────────────────────────── */
.steps { margin-bottom: 8px; }
.steps__title { font-family: var(--font-head); font-size: 16px; font-weight: 600;
    color: var(--black); margin-bottom: 14px; letter-spacing: .03em; text-transform: uppercase; }
.steps__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.step-item { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
    width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
    background: var(--red); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-size: 13px; font-weight: 700; margin-top: 1px;
}
.step-text { display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.step-text strong { color: var(--dark); font-weight: 600; }
.step-text span { color: var(--gray-500); font-size: 13px; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
    width: 100%; max-width: 560px; text-align: center;
    padding: 24px 0 8px; font-size: 13px; color: var(--gray-500); line-height: 1.8;
}
.site-footer a { color: var(--red); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.footer-note { font-size: 12px; opacity: .8; }

/* ── Utility ───────────────────────────────────────────────────── */
[hidden] { display: none !important; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .card { padding: 24px 20px; border-radius: var(--radius); }
    .spond-card { padding: 20px 16px; }
    .header-logo { width: 56px; height: 56px; }
    .spond-actions { flex-direction: column; }
    .spond-btn { width: 100%; }
}
@media (min-width: 640px) {
    .card { padding: 44px 52px; }
    .header-logo { width: 88px; height: 88px; }
}
