/* ============================================
   Lebenshof am Rüstlinberg – Stylesheet
   Palette: Waldgrün / Sandgelb / Off-White
   Mobile First
   ============================================ */

:root {
    --gruen-dunkel: #2d4a2b;
    --gruen: #4a7c47;
    --gruen-hell: #7ba05b;
    --sand: #e8d5a3;
    --sand-hell: #f5edd8;
    --off-white: #faf8f3;
    --text: #2b2b26;
    --text-grau: #6b6b60;
    --weiss: #ffffff;
    --accent: #c98a3d;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(45, 74, 43, 0.10);
}

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

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--off-white);
    line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--gruen); text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--gruen-dunkel); line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }

section { padding: 3.5rem 0; }
.section-alt { background: var(--sand-hell); }

.lead { font-size: 1.15rem; color: var(--text-grau); max-width: 46rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--gruen); color: var(--weiss); }
.btn-primary:hover { background: var(--gruen-dunkel); }
.btn-secondary { background: transparent; color: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
    background: var(--weiss);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; color: var(--gruen-dunkel); font-weight: 700; line-height: 1.15; }
.logo-icon { font-size: 1.8rem; }
.logo-text small { font-weight: 400; color: var(--text-grau); }

.main-nav ul { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.main-nav a { color: var(--text); font-weight: 500; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--gruen); border-color: var(--gruen); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--gruen-dunkel);
}

.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.social-icons { display: flex; gap: 0.5rem; }
.social-icons a {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--sand);
    color: var(--gruen-dunkel);
    font-size: 0.9rem;
    transition: background 0.15s;
}
.social-icons a:hover { background: var(--gruen-hell); color: var(--weiss); }

@media (max-width: 900px) {
    .nav-toggle { display: block; order: 3; }
    .header-actions .btn-small { display: none; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--weiss);
        padding: 1rem 1.25rem;
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    }
    body.nav-open .main-nav { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--weiss);
    background:
        linear-gradient(rgba(30, 48, 28, 0.55), rgba(30, 48, 28, 0.65)),
        url("https://images.unsplash.com/photo-1500595046743-cd271d694d30?w=1600&q=70") center/cover no-repeat;
}
.hero-inner { max-width: 46rem; margin: 0 auto; padding: 5rem 1.25rem; }
.hero h1 { color: var(--weiss); margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-secondary { color: var(--weiss); border-color: var(--weiss); }

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.card {
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-4px); }
.card-img {
    height: 180px;
    background: var(--sand) center/cover no-repeat;
    display: grid; place-items: center;
    font-size: 3rem;
}
.card-body { padding: 1.4rem; }
.card-body h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.card-body p { color: var(--text-grau); font-size: 0.97rem; margin-bottom: 1rem; }

.badge {
    display: inline-block;
    background: var(--sand);
    color: var(--gruen-dunkel);
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ---------- Zwei-Spalten ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 800px) {
    .two-col { grid-template-columns: 1fr 1fr; }
}
.col-img {
    min-height: 280px;
    border-radius: var(--radius);
    background: var(--sand) center/cover no-repeat;
    display: grid; place-items: center;
    font-size: 4rem;
}

.highlight-box {
    background: var(--sand-hell);
    border-left: 5px solid var(--gruen);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.2rem 1.4rem;
    margin-top: 1.5rem;
    font-weight: 500;
}

/* ---------- Social Hub ---------- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.social-tile {
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--sand);
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    color: var(--gruen-dunkel);
    position: relative;
}
.social-tile span.platform {
    position: absolute;
    bottom: 0.5rem; right: 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.7;
}
.video-placeholder {
    aspect-ratio: 16 / 9;
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--radius);
    background: var(--gruen-dunkel);
    display: grid;
    place-items: center;
    color: var(--weiss);
    font-size: 1.1rem;
    cursor: pointer;
}
.social-banner {
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--gruen-dunkel);
}

/* ---------- Fortschritt ---------- */
.progress-track {
    background: var(--sand);
    border-radius: 999px;
    height: 14px;
    overflow: hidden;
    margin: 0.75rem 0 0.35rem;
}
.progress-fill {
    background: var(--gruen);
    height: 100%;
    border-radius: 999px;
}
.progress-label { font-size: 0.9rem; color: var(--text-grau); }

/* ---------- Zitate ---------- */
.quote {
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem;
    font-style: italic;
    color: var(--text-grau);
}
.quote footer { margin-top: 0.8rem; font-style: normal; font-weight: 700; color: var(--gruen-dunkel); }

/* ---------- Formulare ---------- */
.form-card {
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    max-width: 620px;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #ddd6c4;
    border-radius: 10px;
    font: inherit;
    background: var(--off-white);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gruen);
}

.flash-area { margin-top: 1rem; }
.flash {
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    font-weight: 500;
}
.flash-success { background: #e3efdd; color: var(--gruen-dunkel); }
.flash-error { background: #f8e0dc; color: #8a3324; }
.flash-info { background: var(--sand-hell); color: var(--gruen-dunkel); }

.newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.9rem;
    border: none;
    border-radius: 999px;
    font: inherit;
}

/* ---------- Links-Seite (Linktree) ---------- */
.links-page {
    min-height: 80vh;
    background: linear-gradient(var(--sand-hell), var(--off-white));
    padding: 3rem 1.25rem;
    text-align: center;
}
.links-page h1 { margin-bottom: 0.5rem; }
.links-page > p { color: var(--text-grau); margin-bottom: 2rem; }
.link-list { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }
.link-list a {
    display: block;
    background: var(--weiss);
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-weight: 700;
    color: var(--gruen-dunkel);
    transition: transform 0.15s;
}
.link-list a:hover { transform: scale(1.03); background: var(--gruen); color: var(--weiss); }
.link-list a small { display: block; font-weight: 400; opacity: 0.8; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--gruen-dunkel);
    color: #dfe8da;
    margin-top: 3rem;
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}
.site-footer h3, .site-footer h4 { color: var(--weiss); margin-bottom: 0.7rem; }
.site-footer a { color: #dfe8da; }
.site-footer a:hover { color: var(--sand); }
.site-footer li { margin-bottom: 0.4rem; }
.badge-gemeinnuetzig {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 0.3rem 1rem;
    font-size: 0.88rem;
    margin-top: 0.5rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.88rem;
}
.footer-bottom ul { display: flex; gap: 1.2rem; }

/* ---------- Page Header (Unterseiten) ---------- */
.page-header {
    background: var(--sand-hell);
    padding: 3rem 0;
    text-align: center;
}
.page-header p { color: var(--text-grau); max-width: 44rem; margin: 0.5rem auto 0; }

/* ---------- Admin & Tabellen ---------- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    font-size: 0.92rem;
}
.admin-table th, .admin-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--gruen-hell, #dce8dc);
    text-align: left;
    vertical-align: top;
}
.admin-table thead th {
    background: var(--gruen-dunkel, #2e5339);
    color: #fff;
}
.admin-table tbody tr:hover { background: rgba(46, 83, 57, 0.06); }

.btn-danger {
    background: #b23b3b;
    color: #fff;
    border: none;
    cursor: pointer;
}
.btn-danger:hover { background: #8f2f2f; }

.badge-warn {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #fff3cd;
    color: #7a5c00;
    font-size: 0.8rem;
}
