/*
 * Quark 2 — Design Anpassungen für Wählergruppe „Einigkeit“ Jesenwang-Pfaffenhofen e.V.
 */

:root {
    --primary: #1e6f43;
    --primary-hover: #165634;
    --primary-focus: rgba(30, 111, 67, 0.2);
    --primary-inverse: #ffffff;
    --pico-primary: #1e6f43;
    --pico-primary-hover: #165634;
    --pico-primary-focus: rgba(30, 111, 67, 0.2);
    --pico-primary-inverse: #ffffff;
    --header-height: 80px;
}

/* Header & Logo */
.navbar-brand img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* Modul-Abstände */
.section {
    padding: 4.5rem 0;
}

.module-anchor {
    position: relative;
    top: -75px;
    visibility: hidden;
}

/* Hero Section */
.modular-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.modular-hero .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 54, 34, 0.88) 0%, rgba(20, 35, 25, 0.78) 100%);
}

.modular-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.modular-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.modular-hero h2 {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 600;
    color: #bbf7d0;
    margin-bottom: 1.5rem;
}

.modular-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #f0fdf4;
}

.modular-hero .btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    margin: 0.35rem;
    transition: all 0.2s ease;
}

.modular-hero .btn.btn-primary {
    background-color: #22c55e;
    color: #052e16;
    border: 2px solid #22c55e;
}

.modular-hero .btn.btn-primary:hover {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    transform: translateY(-2px);
}

.modular-hero .btn:not(.btn-primary) {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.modular-hero .btn:not(.btn-primary):hover {
    background-color: #ffffff;
    color: #14532d;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Features / Über uns Grid */
.modular-features {
    background-color: #f8fafc;
}

[data-theme="dark"] .modular-features {
    background-color: #0f172a;
}

.modular-features .frame-box > h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.modular-features .frame-box > p {
    max-width: 820px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.15rem;
    line-height: 1.7;
    text-align: center;
}

.modular-features .columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.modular-features .column {
    background: #ffffff;
    padding: 2.2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .modular-features .column {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.modular-features .column:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.modular-features .feature-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modular-features .feature-icon h6 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

/* Team Grid (Gemeinderat & Vorstand) */
.modular-team {
    padding: 5rem 0;
}

.team-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.team-header h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 1.2rem;
}

.team-header p {
    max-width: 780px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.2rem;
}

.team-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .team-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.team-image-wrapper {
    width: 100%;
    height: 340px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image {
    transform: scale(1.03);
}

.team-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #0f172a;
}

[data-theme="dark"] .team-name {
    color: #f8fafc;
}

.team-role {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.team-details {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
    margin: 0;
}

[data-theme="dark"] .team-details {
    color: #94a3b8;
}

/* Ziele Grid (Erfolge vs Zukunft) */
.ziele-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.ziele-card {
    background: #ffffff;
    padding: 2.4rem;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .ziele-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.ziele-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-erfolge h3 {
    color: #166534;
}

.card-zukunft h3 {
    color: #1e40af;
}

.ziele-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ziele-card li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1.1rem;
    line-height: 1.6;
    font-size: 1rem;
}

.card-erfolge li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
    font-size: 1.1rem;
}

.card-zukunft li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Kontakt-Bereich */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0;
}

.contact-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

[data-theme="dark"] .contact-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.contact-card i {
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.contact-card p {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

/* Footer Styling */
.footer-einigkeit {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-left p {
    margin: 0;
    color: #cbd5e1;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.3rem !important;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links .sep {
    margin: 0 0.6rem;
    color: #475569;
}


/* Spezielles Design für Vorstandschaft (4 Spalten, kompakte runde Portraits) */
.modular-team-vorstand {
    background-color: #f1f5f9;
}

.team-grid-vorstand {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .team-grid-vorstand {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .team-grid-vorstand {
        grid-template-columns: 1fr;
    }
}

.team-card-vorstand {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem 1.2rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card-vorstand:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.team-card-vorstand .team-image-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 14px rgba(30, 111, 67, 0.15);
    overflow: hidden;
    flex-shrink: 0;
}

.team-card-vorstand .team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.team-card-vorstand .team-info {
    padding: 0;
    width: 100%;
}

.team-card-vorstand .team-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.team-card-vorstand .team-role {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #dcfce7;
    color: #15803d;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.team-card-vorstand .team-details {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
}
