/* ============================================================
   style.css  –  Wandergruppe
   Farbschema: Waldgrün + Erde + Himmelblau
   ============================================================ */

/* ---- Variablen -------------------------------------------- */
:root {
    --gruen:        #3a7d44;
    --gruen-dunkel: #2c5f34;
    --gruen-hell:   #e8f5eb;
    --erde:         #7d5a3a;
    --erde-hell:    #f5ede6;
    --himmel:       #4a7fa5;
    --himmel-hell:  #e6f0f7;

    --text:         #1e2d1f;
    --text-leicht:  #5a6a5b;
    --rand:         #ccd8cd;
    --hintergrund:  #f7faf7;
    --weiss:        #ffffff;

    --radius:       8px;
    --radius-lg:    14px;
    --schatten:     0 2px 12px rgba(0,0,0,.08);
    --uebergang:    0.2s ease;
}

/* ---- Reset & Basis ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--hintergrund);
}

a { color: var(--gruen); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: .5rem; }
h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: .4rem; }

/* ---- Header ----------------------------------------------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 60px;
    background: var(--gruen-dunkel);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: .02em;
}

.site-header nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.site-header nav a {
    color: rgba(255,255,255,.88);
    font-size: .95rem;
    transition: color var(--uebergang);
}

.site-header nav a:hover,
.site-header nav a.active { color: #fff; text-decoration: none; }

/* ---- Buttons ---------------------------------------------- */
.btn {
    display: inline-block;
    padding: .55rem 1.2rem;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--uebergang), opacity var(--uebergang);
    text-align: center;
    line-height: 1.4;
}
.btn:hover { opacity: .88; text-decoration: none; }

.btn-primary  { background: var(--gruen); color: #fff; }
.btn-secondary{ background: var(--rand);  color: var(--text); }
.btn-danger   { background: #c0392b;      color: #fff; }
.btn-nav      { padding: .38rem 1rem; font-size: .9rem; }
.btn-xs       { padding: .25rem .6rem; font-size: .82rem; }

/* ---- Hero ------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, var(--gruen-dunkel) 0%, var(--gruen) 60%, #5a9e6a 100%);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero h1 { color: #fff; font-size: 2rem; margin-bottom: .8rem; }
.hero p   { font-size: 1.1rem; opacity: .9; margin-bottom: 1.4rem; }

/* ---- Inhaltsbereiche -------------------------------------- */
.content-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--rand);
}
.content-section:last-child { border-bottom: none; }

/* Mitglieder-Bereich */
.members-only {
    background: var(--gruen-hell);
    border-radius: var(--radius-lg);
    border: 1px solid #b2d4b8;
    margin: 1.5rem auto;
    position: relative;
}

.members-badge {
    display: inline-block;
    background: var(--gruen);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 4px;
    margin-bottom: .6rem;
}

/* ---- Login-Seite ------------------------------------------ */
.login-page { background: var(--gruen-hell); min-height: 100vh; }

.login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
    min-height: calc(100vh - 60px);
}

.login-card {
    background: var(--weiss);
    border-radius: var(--radius-lg);
    box-shadow: var(--schatten);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
}

.login-card h1 { font-size: 1.5rem; margin-bottom: 1rem; }

.login-card label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .3rem;
    color: var(--text-leicht);
}

.login-card input[type="email"],
.login-card input[type="text"] {
    width: 100%;
    padding: .65rem .9rem;
    border: 1.5px solid var(--rand);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color var(--uebergang);
}
.login-card input:focus { border-color: var(--gruen); }

.login-card .btn { width: 100%; margin-top: .2rem; }

.info-text  { color: var(--text-leicht); margin-bottom: 1rem; font-size: .95rem; }
.small-hint { text-align: center; margin-top: .8rem; font-size: .88rem; color: var(--text-leicht); }

/* ---- Alerts ----------------------------------------------- */
.alert {
    padding: .8rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .93rem;
}
.alert-error   { background: #fdecea; color: #a02020; border: 1px solid #f5b8b8; }
.alert-success { background: var(--gruen-hell); color: var(--gruen-dunkel); border: 1px solid #b2d4b8; }

/* ---- Admin ------------------------------------------------ */
.admin-main { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
.admin-main h1 { margin-bottom: 1.5rem; }

.admin-card {
    background: var(--weiss);
    border: 1px solid var(--rand);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--schatten);
}
.admin-card h2 { margin-bottom: .8rem; }

.inline-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
}
.inline-form input { flex: 1; min-width: 200px; padding: .5rem .8rem; border: 1.5px solid var(--rand); border-radius: var(--radius); font-size: .95rem; }
.inline-form input:focus { outline: none; border-color: var(--gruen); }

.hint { font-size: .84rem; color: var(--text-leicht); margin-top: .5rem; }

/* Filter */
.admin-filter { margin-bottom: 1rem; }
.filter-form  { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filter-form select,
.filter-form input[type="search"] {
    padding: .45rem .75rem;
    border: 1.5px solid var(--rand);
    border-radius: var(--radius);
    font-size: .92rem;
}

/* Tabelle */
.table-scroll { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    background: var(--weiss);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--schatten);
}

.admin-table th {
    background: var(--gruen-dunkel);
    color: #fff;
    padding: .6rem .9rem;
    text-align: left;
    font-weight: 600;
    font-size: .85rem;
}

.admin-table td {
    padding: .55rem .9rem;
    border-bottom: 1px solid var(--rand);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gruen-hell); }

.actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.inline-action { display: flex; gap: .3rem; align-items: center; }
.inline-action select { padding: .2rem .4rem; font-size: .82rem; border-radius: 4px; border: 1px solid var(--rand); }

.empty { text-align: center; color: var(--text-leicht); padding: 2rem; }

/* Status-Badges */
.status-badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 4px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.status-eingeladen { background: var(--himmel-hell);  color: var(--himmel); }
.status-beantragt  { background: #fef9e7;             color: #b7950b; }
.status-zugelassen { background: var(--gruen-hell);   color: var(--gruen-dunkel); }
.status-geaendert  { background: var(--erde-hell);    color: var(--erde); }
.status-gesperrt   { background: #fdecea;             color: #a02020; }

/* ---- Footer ----------------------------------------------- */
.site-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: .88rem;
    color: var(--text-leicht);
    border-top: 1px solid var(--rand);
    margin-top: 2rem;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.5rem; }
    .site-header { padding: 0 1rem; }
    .site-header nav { gap: .7rem; }
    .admin-table th, .admin-table td { padding: .4rem .5rem; font-size: .84rem; }
}
