/* ═══════════════════════════════════════════════════
   ASV Crailsheim – Landing Page Styles
   ═══════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────── */
:root {
    --clr-primary: #2A5A5E;       /* Dunkles Petrol */
    --clr-primary-light: #3D7478;
    --clr-primary-dark: #1D4245;
    --clr-accent: #A08060;        /* Sandstein/Taupe */
    --clr-accent-dark: #7D6248;
    --clr-bg: #F6F7F7;
    --clr-bg-card: #ffffff;
    --clr-text: #1F262E;
    --clr-text-muted: #6b7280;
    --clr-border: #e5e7eb;
    --clr-gradient: linear-gradient(135deg, #2A5A5E 0%, #224D50 50%, #2A5A5E 100%);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

    --nav-height: 72px;
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Header / Navigation ────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(22, 48, 52, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.nav-logo-icon { font-size: 1.75rem; }
.nav-logo-img { height: 48px; width: auto; display: block; }
.nav-logo-title { display: block; font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.2; }
.nav-logo-sub { display: block; font-size: .7rem; color: rgba(255,255,255,.6); font-weight: 400; }

.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-links li a,
.nav-links li .active {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    font-weight: 500;
    padding: .5rem .8rem;
    border-radius: var(--radius-sm);
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.btn-app {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem !important;
    background: var(--clr-accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    transition: background .15s, transform .1s !important;
}
.btn-app:hover {
    background: var(--clr-accent-dark) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: .2s;
}

/* ── Main ───────────────────────────────────────────── */
.site-main { min-height: calc(100vh - var(--nav-height) - 300px); }

/* ── Hero Section ───────────────────────────────────── */
.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-gradient);
    overflow: hidden;
    padding: 2.25rem 1.5rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/hero-bg.jpg') center/cover no-repeat;
    opacity: .25;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(160, 128, 96, .12);
    border: 1px solid var(--clr-accent);
    color: var(--clr-accent);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 50px;
    margin-top: 1.5rem;
}

.hero-logo {
    display: block;
    height: auto;
    width: 330px;
    max-width: 80vw;
    margin: 0 auto 1.75rem;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.hero p {
    font-size: 1.15rem;
    opacity: .85;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.75rem;
    background: var(--clr-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: background .15s, transform .1s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: var(--clr-accent-dark); transform: translateY(-2px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.75rem;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,.3);
    transition: background .15s, transform .1s;
    cursor: pointer;
}
.btn-secondary:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }

/* ── Section ────────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-sm { padding: 3rem 1.5rem; }
.section-dark { background: var(--clr-primary-dark); color: #fff; }
.section-alt { background: #EDF3F0; }

.container { max-width: 1180px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--clr-primary-dark);
    margin-bottom: .5rem;
}
.section-dark .section-header h2 { color: #fff; }
.section-header p { color: var(--clr-text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

.section-divider {
    display: block;
    width: 48px;
    height: 4px;
    background: var(--clr-accent);
    border-radius: 2px;
    margin: .75rem auto 0;
}

/* ── News Grid ──────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.news-card {
    background: var(--clr-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    border: 1px solid var(--clr-border);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--clr-primary);
}

.news-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2A5A5E, #224D50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.news-card-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}

.news-badge {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .2rem .6rem;
    background: #e8f5ed;
    color: var(--clr-primary);
    border-radius: 50px;
}

.news-date { font-size: .8rem; color: var(--clr-text-muted); }

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-primary-dark);
    margin-bottom: .6rem;
    line-height: 1.35;
}

.news-card-excerpt {
    font-size: .9rem;
    color: var(--clr-text-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-author { font-size: .8rem; color: var(--clr-text-muted); }
.read-more {
    font-size: .85rem;
    font-weight: 600;
    color: var(--clr-primary);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    transition: color .15s;
}
.read-more:hover { color: var(--clr-primary-light); }

/* ── Page Header ────────────────────────────────────── */
.page-hero {
    background: var(--clr-gradient);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    color: #fff;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
.page-hero p { margin-top: .5rem; opacity: .8; font-size: 1.05rem; }

/* ── Info Cards (Gewässer, etc.) ────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--clr-bg-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
    transition: box-shadow .2s, transform .2s;
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.info-card-icon {
    width: 48px;
    height: 48px;
    background: #e8f5ed;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--clr-primary-dark); margin-bottom: .5rem; }
.info-card p { font-size: .9rem; color: var(--clr-text-muted); line-height: 1.6; }
.info-card .tag { font-size: .75rem; color: var(--clr-text-muted); margin-top: .5rem; }

/* ── Stats Strip ────────────────────────────────────── */
.stats-strip {
    background: var(--clr-primary);
    padding: 2.5rem 1.5rem;
    color: #fff;
}
.stats-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-value { font-size: 2.5rem; font-weight: 800; color: var(--clr-accent); }
.stat-label { font-size: .9rem; opacity: .8; margin-top: .25rem; }

/* ── Content Prose ──────────────────────────────────── */
.prose {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.75;
}
.prose h2 { font-size: 1.6rem; font-weight: 700; color: var(--clr-primary-dark); margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; color: var(--clr-primary-dark); margin: 1.5rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: .4rem; list-style: disc; }
.prose a { color: var(--clr-primary); text-decoration: underline; }
.prose strong { color: var(--clr-primary-dark); }

/* ── Contact ────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.contact-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: var(--clr-primary-dark); }
.contact-info p, .contact-info a { font-size: .95rem; color: var(--clr-text-muted); line-height: 1.8; display: block; }
.contact-info a:hover { color: var(--clr-primary); }

/* ── Membership Table ───────────────────────────────── */
.membership-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
}
.membership-table th {
    background: var(--clr-primary);
    color: #fff;
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
}
.membership-table td {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--clr-border);
    font-size: .9rem;
    background: var(--clr-bg-card);
}
.membership-table tr:last-child td { border-bottom: none; }

/* ── Alert ──────────────────────────────────────────── */
.alert-info {
    background: #e8f5ed;
    border-left: 4px solid var(--clr-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem;
    color: var(--clr-primary-dark);
    font-size: .9rem;
    margin: 1.5rem 0;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--clr-primary-dark);
    color: rgba(255,255,255,.8);
    padding-top: 3.5rem;
}
.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.footer-col p { font-size: .85rem; line-height: 1.7; }
.footer-col ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col ul li a:hover { color: var(--clr-accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.45);
}

/* ── Pagination ─────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: .75rem; margin-top: 3rem; }
.pagination button {
    padding: .6rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border);
    background: var(--clr-bg-card);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    transition: background .15s;
}
.pagination button:hover { background: #e8f5ed; }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.pagination .page-info { font-size: .9rem; color: var(--clr-text-muted); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--clr-primary-dark);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 2px solid var(--clr-accent);
    }
    .nav-links.open { display: flex; }
    .nav-links li a { padding: .85rem 1.5rem; border-radius: 0; }
    .nav-links .btn-app { margin: .5rem 1.5rem; border-radius: var(--radius-sm) !important; }
    .site-header { position: relative; }

    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { min-height: 420px; }
}
