/* =========================================================
   FPÖ Krottendorf-Gaisfeld – Stylesheet
   ========================================================= */

:root {
    --blue-900: #082744;
    --blue-800: #0a3a63;
    --blue-700: #0f4c81;
    --blue-600: #1462a3;
    --blue-500: #1f7ac0;
    --blue-100: #e6f0f8;
    --ink: #16232e;
    --muted: #5c6b78;
    --line: #dde5ec;
    --bg: #ffffff;
    --bg-alt: #f3f7fb;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 6px 24px rgba(8, 39, 68, 0.08);
    --shadow-lg: 0 14px 40px rgba(8, 39, 68, 0.14);
    --max: 1140px;
    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Passwort-Sperre */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.pw-gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #082744, #1462a3);
}
.pw-gate.hidden { display: none; }
body.gate-locked { overflow: hidden; }
.pw-box {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 34px 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.pw-mark {
    margin: 0 auto 14px;
    width: 56px; height: 56px;
    font-size: 1.1rem;
}
.pw-box h1 { margin: 0 0 6px; font-size: 1.4rem; }
.pw-box p { margin: 0 0 20px; color: #5c6b78; font-size: 0.95rem; }
.pw-box input[type="password"] {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dde5ec;
    border-radius: 10px;
    font: inherit;
    background: #f3f7fb;
    margin-bottom: 14px;
    text-align: center;
}
.pw-box input[type="password"]:focus {
    outline: none;
    border-color: #1462a3;
    background: #fff;
}
.pw-box .btn-primary {
    width: 100%;
    background: #0f4c81;
    color: #fff;
}
.pw-box .btn-primary:hover { background: #0a3a63; }
.pw-msg { margin: 14px 0 0 !important; min-height: 1.2em; color: #b02a37; font-weight: 600; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--blue-700);
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: 0.75rem; }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
}
.main-nav a:hover {
    background: var(--blue-100);
    color: var(--blue-700);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    color: var(--white);
    padding: 92px 0;
}
.hero-inner { max-width: 760px; }
.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #bfe0f7;
    margin: 0 0 12px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 18px;
    font-weight: 800;
}
.hero-lead {
    font-size: 1.15rem;
    color: #e3eef8;
    margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--white); color: var(--blue-700); }
.btn-primary:hover { background: var(--blue-100); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 0 40px; }
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue-600);
    margin-bottom: 8px;
}
.section-head h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    margin: 0 0 10px;
    font-weight: 800;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- News ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.news-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-thumb {
    height: 160px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
}
.news-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.news-date { font-size: 0.8rem; color: var(--blue-600); font-weight: 600; }
.news-card h3 { margin: 0; font-size: 1.15rem; }
.news-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.news-more { margin-top: 6px; font-weight: 600; }

/* ---------- Team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}
.team-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.team-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
}
.team-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.team-role { color: var(--blue-600); font-weight: 600; font-size: 0.9rem; margin: 0 0 8px; }
.team-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Two column ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.two-col .eyebrow { margin-top: 0; }
.two-col h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 14px; font-weight: 800; }

.check-list { list-style: none; margin: 18px 0 0; padding: 0; }
.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--ink);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--blue-700);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.stat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 1.8rem; color: var(--blue-700); }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Topics ---------- */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.topic-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue-600);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: 0.2s;
}
.topic-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.topic-icon { font-size: 1.8rem; margin-bottom: 12px; }
.topic-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.topic-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Lokale Schwerpunkte (In Planung) */
.sub-head { margin-top: 56px; }
.sub-head h3 {
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    margin: 0 0 10px;
    font-weight: 800;
}
.local-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.local-card {
    position: relative;
    border-top-color: #d68a00;
}
.status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff4e0;
    color: #a86400;
    border: 1px solid #f0c674;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.local-card h3 { padding-right: 90px; }

/* ---------- Join form ---------- */
.join-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.field input[type="text"],
.field input[type="email"],
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    background: var(--bg-alt);
}
.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--blue-600);
    background: var(--white);
}
.field.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.field.checkbox label { font-weight: 400; margin: 0; }
.field.checkbox input { margin-top: 4px; }
.join-form .btn-primary { background: var(--blue-700); color: #fff; }
.join-form .btn-primary:hover { background: var(--blue-800); }
.form-msg { margin: 14px 0 0; font-weight: 600; font-size: 0.95rem; min-height: 1.2em; }
.form-msg.ok { color: #157347; }
.form-msg.err { color: #b02a37; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.contact-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.contact-card h3 { margin: 0 0 12px; color: var(--blue-700); }
.contact-card address { font-style: normal; color: var(--ink); }
.contact-card p { margin: 4px 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--blue-900);
    color: #cdd9e3;
    padding: 40px 0;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-nav a { color: #cdd9e3; font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal { width: 100%; margin: 6px 0 0; font-size: 0.85rem; color: #8fa3b5; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-nav.open { max-height: 420px; }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px; gap: 2px; }
    .main-nav a { padding: 12px; }
    .two-col { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
    .stats { grid-template-columns: 1fr; }
    .hero { padding: 64px 0; }
}
