/* =====================================================
   Kitzrettung Ruhner Land e.V. – Stylesheet
   ===================================================== */

:root {
    --color-primary: #2d5016;
    --color-primary-dark: #1f3810;
    --color-primary-light: #4a7c2a;
    --color-accent: #f4a261;
    --color-accent-dark: #e8893a;
    --color-bg: #faf6f0;
    --color-bg-alt: #f0ebe1;
    --color-card: #ffffff;
    --color-text: #2b2b2b;
    --color-text-muted: #5a5a5a;
    --color-border: #d9d3c4;
    --color-success: #4caf50;
    --shadow-sm: 0 2px 8px rgba(45, 80, 22, 0.08);
    --shadow-md: 0 6px 24px rgba(45, 80, 22, 0.12);
    --shadow-lg: 0 12px 40px rgba(45, 80, 22, 0.18);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --max-width: 1180px;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ===== Layout helpers ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 4rem 0;
}
.section--alt {
    background: var(--color-bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* ===== Header / Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 246, 240, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.brand img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav a:hover { color: var(--color-primary); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    background: var(--color-primary-dark);
    height: 3px;
    width: 26px;
    border-radius: 2px;
    transition: transform 0.25s, top 0.25s;
}
.nav-toggle span { position: relative; margin: 0 auto; }
.nav-toggle span::before,
.nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.2;
}
.btn--primary {
    background: var(--color-accent);
    color: #2b1d0d;
    border-color: var(--color-accent);
}
.btn--primary:hover {
    background: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn--secondary {
    background: transparent;
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}
.btn--secondary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}
.btn--ghost {
    background: rgba(255,255,255,0.95);
    color: var(--color-primary-dark);
    border-color: rgba(255,255,255,0.95);
}
.btn--ghost:hover {
    background: #fff;
    transform: translateY(-1px);
}
.btn--block { display: flex; width: 100%; }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 5rem 0 5.5rem;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.92) 0%, rgba(74, 124, 42, 0.78) 100%),
                url('../img/hero-bg.svg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(244, 162, 97, 0.15), transparent 40%);
    pointer-events: none;
}
.hero h1 {
    color: #fff;
    margin-bottom: 0.8rem;
}
.hero p {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    opacity: 0.95;
    max-width: 720px;
    margin: 0 auto 2rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ===== Cards / Grids ===== */
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid var(--color-border);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}
.card h3 {
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

/* ===== About / Two-column section ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.two-col img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--color-bg-alt);
}

/* ===== Quote / Statute ===== */
.quote-box {
    background: var(--color-card);
    border-left: 5px solid var(--color-accent);
    padding: 1.75rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-style: italic;
    color: var(--color-text-muted);
    white-space: pre-line;
    margin-bottom: 2rem;
}

/* ===== Donation box ===== */
.donate-box {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-top: 2rem;
}
.donate-box h3 {
    color: var(--color-primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.iban-block {
    background: var(--color-bg-alt);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    margin: 1rem auto;
    display: inline-block;
}
.donate-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ===== Event/News card ===== */
.event-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.event-card h3 {
    color: var(--color-primary-dark);
    font-size: 1.5rem;
}
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    color: var(--color-text-muted);
    margin: 0.5rem 0 1.5rem;
    font-size: 0.95rem;
}

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.gallery-grid img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    background: var(--color-bg-alt);
}
.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: var(--radius-md);
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ===== Contact / Footer ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.contact-info {
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.contact-info h3 {
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}
.contact-info p {
    margin-bottom: 0.5rem;
}

.site-footer {
    background: var(--color-primary-dark);
    color: #e9e3d5;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}
.site-footer a {
    color: #e9e3d5;
    text-decoration: underline;
}
.site-footer a:hover { color: var(--color-accent); }

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.footer-cols h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-cols ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-cols li {
    margin-bottom: 0.4rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ===== Page (Imprint/Privacy) ===== */
.page-content {
    background: var(--color-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.page-content h2 {
    color: var(--color-primary-dark);
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
}
.page-content h2:first-child { margin-top: 0; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.transparency-grid {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.transparency-grid img {
    width: 100%;
    max-width: 200px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 1rem;
}
.transparency-grid h3 {
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}
.transparency-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.transparency-grid li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--color-border);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .transparency-grid { grid-template-columns: 1fr; }
    .transparency-grid img { max-width: 150px; margin: 0 auto; }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s;
    }
    .nav.is-open {
        max-height: 600px;
    }
    .nav a {
        padding: 0.85rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    .grid--3 { grid-template-columns: 1fr; }
    .grid--2 { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
    .hero { padding: 3.5rem 0 4rem; }
    .donate-box { padding: 1.5rem; }
}

/* ===== Print ===== */
@media print {
    .site-header, .nav-toggle, .hero-actions, .donate-actions, .site-footer { display: none; }
    body { background: #fff; color: #000; }
    .section { padding: 1rem 0; page-break-inside: avoid; }
}
