/* ================================================================
   Mitgliedsantrag — Stylesheet
   TC Schwarz-Weiß Golkrath e.V.
   Farbschema: Schwarz / Weiß / Grau (passend zum Buchungssystem)
   ================================================================ */

/* ── Variablen ─────────────────────────────────────────── */
:root {
    --bg-body:       #0a0a0a;
    --bg-card:       #141414;
    --bg-input:      #1a1a1a;
    --text:          #ffffff;
    --text-secondary:#b0b0b0;
    --text-muted:    #666666;
    --accent:        #ffffff;
    --accent-hover:  #cccccc;
    --border:        #2a2a2a;
    --border-light:  #333333;
    --success:       #22c55e;
    --success-dim:   #14532d;
    --danger:        #ef4444;
    --danger-dim:    #7f1d1d;
    --radius:        8px;
    --radius-lg:     12px;
    --header-h:      60px;
    --transition:    0.2s ease;
    --font:          'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.5;
    min-height: 100%;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1 { font-size: 1.4rem; font-weight: 700; }
h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
h3 { font-size: 1rem; font-weight: 600; }

ul { list-style: none; }

/* ── Loading Bar ───────────────────────────────────────── */
.loading-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s ease;
    z-index: 9999;
}

/* ── Toast ─────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 76px; right: 16px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text);
    animation: toastIn 0.3s ease;
    max-width: 360px;
}
.toast.success { background: var(--success-dim); border: 1px solid var(--success); }
.toast.error   { background: var(--danger-dim);  border: 1px solid var(--danger); }
.toast.info    { background: #1e3a5f; border: 1px solid #3b82f6; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn:hover { background: var(--border-light); }

.btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-light);
    color: var(--text-secondary);
}
.btn-outline:hover { background: var(--bg-input); color: var(--text); }

.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }

.btn-submit {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Spinner ───────────────────────────────────────────── */
.spinner {
    width: 18px; height: 18px;
    border: 2px solid transparent;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ────────────────────────────────────────────── */
.app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--bg-body);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.back-btn { font-size: 0.8rem; }

/* ── Main Content ──────────────────────────────────────── */
.main-content {
    max-width: 720px;
    margin: 0 auto;
    padding: calc(var(--header-h) + 24px) 16px 100px;
}

/* ── Steps Indicator ───────────────────────────────────── */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 8px;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.step-number {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    transition: all 0.3s ease;
}
.step-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    white-space: nowrap;
}
.step.active .step-number {
    border-color: var(--accent);
    color: #000;
    background: var(--accent);
}
.step.active .step-label {
    color: var(--text);
}
.step.done .step-number {
    border-color: var(--success);
    color: #000;
    background: var(--success);
}
.step.done .step-label {
    color: var(--success);
}
.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin: 0 8px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}
.step-line.done {
    background: var(--success);
}

/* ── Card ──────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}
.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* ── Tarif Grid ────────────────────────────────────────── */
.tarif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.tarif-grid-small {
    margin-top: 12px;
}
.card-inner {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.card-inner h3 {
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.card-inner .form-row {
    margin-top: 16px;
}
.tarif-card {
    cursor: pointer;
}
.tarif-card input[type="radio"] {
    display: none;
}
.tarif-inner {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-input);
    transition: all 0.2s ease;
}
.tarif-card input:checked + .tarif-inner {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}
.tarif-inner:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.03);
}
.tarif-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.tarif-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.tarif-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success);
}

/* ── Info Box ──────────────────────────────────────────── */
.info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.info-box ul {
    margin-top: 8px;
    padding-left: 16px;
    list-style: disc;
}
.info-box li {
    margin-bottom: 6px;
}

/* ── Form Elements ─────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
    flex: 1;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus {
    border-color: var(--accent);
}
.form-group input.invalid {
    border-color: var(--danger);
}
.form-group input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 12px;
}
.flex-2 { flex: 2; }

/* ── Checkbox ──────────────────────────────────────────── */
.checkbox-group {
    margin-bottom: 12px;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-input);
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: all var(--transition);
}
.checkbox-label input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 14px;
    font-weight: 700;
}

/* ── Form Navigation ───────────────────────────────────── */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
}

/* ── Form Steps ────────────────────────────────────────── */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Summary ───────────────────────────────────────────── */
.summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    font-size: 0.9rem;
}
.summary-label {
    color: var(--text-muted);
    font-weight: 500;
}
.summary-value {
    color: var(--text);
}
.summary-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* ── Datenschutz Box ───────────────────────────────────── */
.datenschutz-box {
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.datenschutz-box h3 {
    color: var(--text);
    margin: 16px 0 8px;
    font-size: 0.88rem;
}
.datenschutz-box h3:first-child {
    margin-top: 0;
}
.datenschutz-box p {
    margin-bottom: 8px;
}
.datenschutz-box::-webkit-scrollbar {
    width: 6px;
}
.datenschutz-box::-webkit-scrollbar-track {
    background: var(--bg-input);
}
.datenschutz-box::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

/* ── Success Card ──────────────────────────────────────── */
.success-card {
    text-align: center;
    padding: 48px 24px;
}
.success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--success);
    color: #000;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.4s ease;
}
@keyframes scaleIn {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}
.success-card h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.success-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.success-ref {
    margin: 24px 0;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
}
.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 16px 20px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition);
}
.footer-social a:hover {
    border-color: var(--accent);
    color: var(--text);
}
.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.footer-legal {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 12px 0;
}
.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-legal a:hover {
    color: var(--text);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .tarif-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .steps-indicator {
        gap: 0;
    }
    .step-label {
        font-size: 0.6rem;
    }
    .step-number {
        width: 30px; height: 30px;
        font-size: 0.75rem;
    }
    .success-actions {
        flex-direction: column;
    }
    .card {
        padding: 16px;
    }
    h1 { font-size: 1.1rem; }
}
