/* =====================================================
   RIDE & ROLL WEYARN e.V. — style.css
   Gemeinsames Designsystem für alle Seiten.

   FARBEN & SCHRIFTEN hier zentral ändern:
   → Abschnitt 1: Custom Properties
   ===================================================== */

/* ─────────────────────────────────────────
   0. SCHRIFTEN — lokal gehostet (kein Google Fonts)
──────────────────────────────────────────── */
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/instrument-sans-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal; font-weight: 500; font-display: swap;
    src: url('fonts/instrument-sans-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal; font-weight: 600; font-display: swap;
    src: url('fonts/instrument-sans-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal; font-weight: 700; font-display: swap;
    src: url('fonts/instrument-sans-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: italic; font-weight: 400; font-display: swap;
    src: url('fonts/instrument-sans-400-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: italic; font-weight: 500; font-display: swap;
    src: url('fonts/instrument-sans-500-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: italic; font-weight: 600; font-display: swap;
    src: url('fonts/instrument-sans-600-italic.woff2') format('woff2');
}


/* ─────────────────────────────────────────
   1. CUSTOM PROPERTIES
   Farben, Schriften, Abstände — alles hier
──────────────────────────────────────────── */
:root {
    /* Markenfarben */
    --color-primary:    #00538D;   /* Blau — Hauptakzent */
    --color-accent:     #00CED1;   /* Cyan — zweiter Akzent */

    /* Neutrale Töne */
    --color-bg:         #ffffff;
    --color-bg-soft:    #f7f6f2;
    --color-fg:         #0a0a0a;
    --color-fg-muted:   #666666;
    --color-fg-soft:    #999999;
    --color-line:       #e8e8e6;

    /* Schriften */
    --font-display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --max-width: 1400px;
    --gutter:    clamp(1.25rem, 4vw, 3rem);

    /* Aliase für bestehenden Code (rückwärtskompatibel) */
    --color-blue-deep:  var(--color-primary);
    --color-cyan:       var(--color-accent);
}


/* ─────────────────────────────────────────
   2. RESET + BASE
──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    color: var(--color-fg);
    background: var(--color-bg);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }


/* ─────────────────────────────────────────
   3. HEADER + NAVIGATION
──────────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem var(--gutter);
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-line);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { height: 42px; width: auto; }
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
}
nav a {
    position: relative;
    padding: 0.25rem 0;
    transition: opacity 0.2s ease;
}
nav a:hover { opacity: 0.6; }
nav .donate {
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.01em;
}
nav .donate::before {
    content: '';
    position: absolute;
    left: -10px; right: -10px; top: -4px; bottom: -4px;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
nav .donate:hover::before { opacity: 0.3; }
nav a.current{font-weight:600}
nav a.current::before,nav a.current::after{content:'';position:absolute;left:0;right:0;height:2px;background:var(--color-cyan)}
nav a.current::before{top:-2px}nav a.current::after{bottom:-2px}
.menu-toggle {
    display: none;
    width: 28px; height: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 100%; height: 1.5px;
    background: var(--color-fg);
    transition: all 0.3s ease;
}


/* ─────────────────────────────────────────
   4. SECTION-DEFAULTS
──────────────────────────────────────────── */
section { padding: clamp(4rem, 10vh, 8rem) var(--gutter); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-fg-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.section-eyebrow::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--color-fg-muted);
    flex-shrink: 0;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 18ch;
}
.section-title em { font-style: italic; font-weight: 300; }


/* ─────────────────────────────────────────
   5. BUTTONS
──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid currentColor;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    background: none;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
.btn-primary {
    background: var(--color-accent);
    color: #003030;
    border-color: var(--color-accent);
}
.btn-primary:hover { background: transparent; color: var(--color-accent); }
.btn-secondary { color: white; }
.btn-secondary:hover { background: white; color: var(--color-primary); }
.btn-light { background: white; color: var(--color-primary); border-color: white; }
.btn-light:hover { background: transparent; color: white; }
.btn-ghost { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { color: white; border-color: white; }
.btn-dark { color: var(--color-fg); border-color: var(--color-fg); }
.btn-dark:hover { background: var(--color-fg); color: white; }


/* ─────────────────────────────────────────
   6. NEWS-KARTEN (index.html + aktuelles.html)
──────────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.news-card { cursor: pointer; display: flex; flex-direction: column; }
.news-img {
    aspect-ratio: 4/3;
    background: var(--color-bg-soft);
    background-size: cover;
    background-position: center;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.news-meta {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-fg-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.news-meta span.cat { color: var(--color-accent); font-weight: 500; }
.news-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.375rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}
.news-card:hover .news-title { color: var(--color-primary); }
.news-excerpt { color: var(--color-fg-muted); font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; gap: 2rem; } }


/* ─────────────────────────────────────────
   7. BESUCHER-INFOBAR
──────────────────────────────────────────── */
.visitor-info {
    background: var(--color-bg-soft);
    padding: 3rem var(--gutter);
    border-top: 1px solid var(--color-line);
}
.visitor-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.visitor-block h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-line);
}
.visitor-block p {
    color: var(--color-fg-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.visitor-block .small { font-size: 0.8125rem; opacity: 0.8; }
@media (max-width: 768px) { .visitor-grid { grid-template-columns: 1fr; gap: 2rem; } }


/* ─────────────────────────────────────────
   8. FOOTER
──────────────────────────────────────────── */
footer {
    background: var(--color-fg);
    color: white;
    padding: 4rem var(--gutter) 2rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}
.footer-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 22rem;
}
.footer-grid h4 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}
.footer-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}
.footer-grid a { color: rgba(255,255,255,0.85); transition: color 0.2s ease; }
.footer-grid a:hover { color: white; }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-leader {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}
.footer-leader img {
    max-width: 560px;
    width: 100%;
    background: white;
    padding: 1.5rem;
    border-radius: 2px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }


/* ─────────────────────────────────────────
   9. MOBILE NAVIGATION
──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .menu-toggle { display: flex; position: relative; z-index: 100; }
    nav ul {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 99;
    }
    nav ul.mobile-active { right: 0; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}


/* ─────────────────────────────────────────
   10. EINFACHER SEITEN-HERO (Unterseiten)
──────────────────────────────────────────── */
.page-hero {
    position: relative;
    min-height: 52vh;
    padding: 8rem var(--gutter) 4rem;
    overflow: hidden;
    color: white;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.page-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,30,60,0.4) 0%, rgba(0,30,60,0.82) 100%);
}
.page-hero-inner {
    position: relative; z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}
.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}
.page-hero-eyebrow::before {
    content: ''; width: 28px; height: 1px; background: white;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 18ch;
}
.page-hero h1 em { font-style: italic; font-weight: 300; }


/* ─────────────────────────────────────────
   11. UTILITY-KLASSEN
──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--color-fg-muted); }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
