/* ============================================================
   lauftreff-base.css
   Geteilte Design-Tokens und Basis-Komponenten für die
   öffentliche Vereinsseite. Mobile-first.
   ============================================================ */

:root {
    /* === Farben === */
    --blue:        #1e40af;
    --blue-dark:   #1e3a8a;
    --blue-light:  #3b82f6;
    --red:         #dc2626;
    --red-dark:    #b91c1c;

    --bg:          #f1f5f9;
    --card:        #ffffff;
    --text:        #0f172a;
    --muted:       #64748b;
    --border:      #e2e8f0;
    --border-soft: #f1f5f9;

    /* === Typografie === */
    --font-stack:  system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* === Radien === */
    --radius-sm:   8px;
    --radius:      12px;
    --radius-lg:   16px;

    /* === Schatten === */
    --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow:      0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-lg:   0 10px 25px rgba(15, 23, 42, 0.12);

    /* === Spacing === */
    --space-1:     4px;
    --space-2:     8px;
    --space-3:     12px;
    --space-4:     16px;
    --space-5:     24px;
    --space-6:     32px;
    --space-7:     48px;
    --space-8:     64px;
}

/* === Reset (minimal) === */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { margin: 0 0 var(--space-3); font-weight: 700; line-height: 1.25; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
@media (min-width: 640px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.45rem; }
}

p { margin: 0 0 var(--space-3); }

.muted { color: var(--muted); }
.text-center { text-align: center; }

/* === Layout-Container === */
.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}
@media (min-width: 640px) {
    .container { padding: 0 var(--space-5); }
}

/* === Card === */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-5);
}
@media (min-width: 640px) {
    .card { padding: var(--space-6); }
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}
.btn-primary:hover {
    background: var(--blue-dark);
    color: #fff;
}

.btn-accent {
    background: var(--red);
    color: #fff;
}
.btn-accent:hover {
    background: var(--red-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--blue);
    border-color: var(--border);
}
.btn-ghost:hover {
    background: var(--border-soft);
    border-color: var(--blue);
    color: var(--blue-dark);
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
