/* ====================================================================
   Familienzentrum Adliswil, Volksinitiative
   Farben aus dem Logo der Stadt Adliswil: Blau und Gelb.
   Ergaenzt Zurb Foundation (mobile first), ohne es zu ueberschreiben.
   ==================================================================== */

/* Bilder/Medien nie breiter als ihr Container (Schutz vor Overflow) */
img, svg, video { max-width: 100%; height: auto; }
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }

:root {
    /* Offizielle Logofarben der Stadt Adliswil (aus dem Logo-SVG):
       Blau #005CA9, Gelb #FFED00. Dunklere Töne für Hover/Footer abgeleitet. */
    --adliswil-blue:      #005ca9;
    --adliswil-blue-dark: #00427a;
    --adliswil-yellow:    #ffed00;
    --adliswil-yellow-dk: #d9c800;
    --ink:                #1c2333;
    --muted:              #525c70;
    --paper:              #ffffff;
    --paper-soft:         #f1f6fd;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: var(--ink);
    font-size: 1.1rem;
    line-height: 1.65;
    background: #fbfcff;
    scroll-padding-top: 80px;
}

h1, h2, h3, h4 { font-weight: 800; color: var(--adliswil-blue); line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: 2.6rem; margin-bottom: 1.1rem; }
.lead { font-size: 1.4rem; color: var(--muted); line-height: 1.55; }

/* Akzent-Strich unter den Abschnitts-Titeln */
.section h2::after, .cta-final h2::after {
    content: ""; display: block;
    width: 72px; height: 6px; border-radius: 3px;
    background: var(--adliswil-yellow);
    margin-top: .9rem;
}
.section h2.text-center::after, .cta-final h2::after { margin-left: auto; margin-right: auto; }
.cta-final h2::after { background: var(--adliswil-blue); }

/* Accessibility: skip link */
.show-on-focus {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--adliswil-yellow); color: var(--ink);
    padding: .6rem 1rem; font-weight: 700;
}
.show-on-focus:focus { left: 0; }

/* -------- Buttons -------- */
.button {
    background: var(--adliswil-blue);
    border-radius: 999px;
    font-weight: 800;
    transition: transform .12s ease, background .12s ease;
}
.button:hover, .button:focus { background: var(--adliswil-blue-dark); transform: translateY(-1px); }
.hero-button {
    background: var(--adliswil-yellow);
    color: var(--ink);
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    font-size: 1.3rem;
    padding: 1.1rem 2.6rem;
}
.hero-button:hover, .hero-button:focus { background: var(--adliswil-yellow-dk); color: var(--ink); }

/* -------- Banner -------- */
.top-banner {
    background: var(--adliswil-blue-dark);
    color: #d7e2f8;
    text-align: center;
    font-size: .92rem;
    font-weight: 600;
    padding: .55rem 1rem;
    letter-spacing: .02em;
    border-top: 4px solid var(--adliswil-yellow);
}

/* -------- Navigation -------- */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: .6rem 0;
}
.nav-brand a { font-weight: 800; color: var(--adliswil-blue); font-size: 1.2rem; }
.brand-short { display: none; }  /* nur auf Mobil sichtbar */
.nav-links { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.nav-links > a { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.nav-links > a:hover { color: var(--adliswil-blue); }
.nav-cta { color: #fff !important; padding: .6rem 1.3rem; margin: 0; font-size: 1rem; }
.lang-switch { display: inline-flex; gap: .35rem; font-size: .85rem; }
.lang-switch a { color: var(--muted); font-weight: 700; padding: .15rem .35rem; border-radius: 4px; }
.lang-switch a.is-active { background: var(--adliswil-yellow); color: var(--ink); }

@media screen and (max-width: 39.99em) {
    .nav-links { gap: .5rem; font-size: .9rem; }
    .nav-links > a:not(.nav-cta) { display: none; } /* Mobil: nur Sprache + CTA */
    .brand-full { display: none; }
    .brand-short { display: inline; }

    /* Nav garantiert einzeilig: Marke flexibel + kuerzbar, Button fix rechts */
    .site-nav .grid-x { flex-wrap: nowrap; }
    .nav-brand { flex: 1 1 auto; min-width: 0; }
    .nav-brand a {
        display: block;
        font-size: .95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-links { flex: 0 0 auto; }
    .nav-cta { padding: .5rem 1rem; font-size: .9rem; white-space: nowrap; }
}

/* -------- Hero -------- */
.hero {
    background: linear-gradient(135deg, rgba(0,92,169,.96), rgba(0,66,122,.93)),
                url('/assets/img/hero.svg');
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero-overlay { padding: 6.5rem 0 5rem; }
.hero-content { max-width: 840px; }
.hero-kicker {
    display: inline-block;
    background: var(--adliswil-yellow);
    color: var(--ink);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .92rem;
    padding: .45rem 1.05rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.hero h1 { color: #fff; font-size: 3.7rem; margin-bottom: 1.1rem; line-height: 1.06; }
.hero-sub { font-size: 1.45rem; color: #eaf0fc; margin-bottom: 2rem; line-height: 1.5; }
.hero-scroll { margin-top: 1.6rem; }
.hero-scroll a { color: #cdd7f5; font-weight: 600; }


.signature-meter { margin: 1.6rem 0 0; max-width: 440px; }
.signature-meter .progress { background: rgba(255,255,255,.25); border-radius: 999px; height: 1rem; }
.signature-meter .progress-meter { background: var(--adliswil-yellow); border-radius: 999px; }
.meter-label { color: #fff; margin-top: .4rem; font-size: .95rem; }

/* -------- Stats -------- */
.stats { margin-top: -2.8rem; position: relative; z-index: 5; padding-bottom: 1rem; }
.stat-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.2rem;
    box-shadow: 0 14px 40px rgba(0,66,122,.12);
    border: 1.5px solid #f2d64f;   /* dezenter Gelbton (Stadtfarbe) */
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0,66,122,.2); }
.stat-value { display: block; font-size: 2.7rem; font-weight: 800; color: var(--adliswil-blue); line-height: 1.1; }
.stat-label { display: block; color: var(--muted); font-size: 1.05rem; margin-top: .4rem; }

/* -------- Sections -------- */
.section { padding: 5rem 0; }
.section--blue { background: var(--adliswil-blue); }
.section--blue h2, .section--blue .lead { color: #fff; }
.section--blue .lead { color: #d7def6; }
.section--light { background: var(--paper-soft); }

/* -------- Angebote als Chips -------- */
.offerings-intro { font-weight: 700; color: var(--adliswil-blue); font-size: 1.15rem; margin: 1.4rem 0 .9rem; }
.offerings {
    list-style: none; margin: 0 0 1.6rem; padding: 0;
    display: flex; flex-wrap: wrap; gap: .65rem;
}
.offerings li {
    background: #eef3fb;
    color: var(--adliswil-blue-dark);
    font-weight: 600;
    font-size: 1.05rem;
    padding: .6rem 1.1rem .6rem .95rem;
    border-radius: 999px;
    border: 1px solid #d6e1f4;
}
.offerings li::before {
    content: "✓";
    color: var(--adliswil-blue);
    font-weight: 800;
    margin-right: .4rem;
}

/* -------- Statement-Band (Pull-Quote) -------- */
.pullquote {
    background: var(--adliswil-blue-dark);
    padding: 3.5rem 0;
    text-align: center;
}
.pq-lead {
    color: #d3e2f6;
    font-size: 1.5rem;
    font-weight: 600;
    max-width: 860px;
    margin: 0 auto .9rem;
}
.pq-punch {
    color: var(--adliswil-yellow);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    max-width: 920px;
    margin: 0 auto;
}

/* -------- Forderungen -------- */
.demand-card {
    background: #fff;
    border-radius: 18px;
    padding: 2.3rem 1.8rem 1.9rem;
    height: 100%;
    position: relative;
    box-shadow: 0 12px 32px rgba(0,66,122,.12);
    border-bottom: 6px solid var(--adliswil-yellow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.demand-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0,66,122,.18); }
.demand-rank {
    position: absolute; top: 1.1rem; right: 1.1rem;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--muted); font-weight: 700;
}
.demand-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3.6rem; height: 3.6rem; border-radius: 50%;
    background: var(--adliswil-blue); color: var(--adliswil-yellow);
    font-size: 1.8rem; font-weight: 800; margin-bottom: 1.1rem;
    box-shadow: 0 8px 18px rgba(0,66,122,.28);
}
.demand-card h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.demand-card p { color: var(--muted); margin: 0; font-size: 1.08rem; }

/* -------- Warum / Sirup-Zitat -------- */
.syrup {
    border-left: 6px solid var(--adliswil-yellow);
    background: #fffdf0;
    padding: 1.5rem 1.8rem;
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1.55;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 8px 24px rgba(0,66,122,.07);
}
.why-flag {
    font-weight: 700;
    color: var(--adliswil-blue);
    font-size: 1.2rem;
    border-top: 3px solid var(--adliswil-yellow);
    padding-top: 1.1rem;
    margin-top: 1.6rem;
}

/* -------- Zeitungsartikel / Medien -------- */
.news-card {
    display: flex; flex-direction: row; align-items: stretch;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,66,122,.10);
    border: 1px solid #e6ecf6;
    color: var(--ink);
    transition: transform .15s ease, box-shadow .15s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,66,122,.16); color: var(--ink); }
.news-thumb { flex: 0 0 92px; width: 92px; background: #e9eff8; display: flex; align-items: center; justify-content: center; }
.news-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.news-body { display: flex; flex-direction: column; padding: 1.1rem 1.3rem; flex: 1; min-width: 0; }
.news-source { font-weight: 800; color: var(--adliswil-blue); text-transform: uppercase; letter-spacing: .04em; font-size: .76rem; margin-bottom: .25rem; }
.news-headline { font-weight: 800; color: var(--adliswil-blue); font-size: 1.18rem; line-height: 1.25; }
.news-teaser { color: var(--muted); font-size: 1rem; margin: .45rem 0 .7rem; flex: 1; }
.news-more { font-weight: 800; color: var(--adliswil-blue-dark); }
.news-card:hover .news-more { text-decoration: underline; }

@media screen and (max-width: 39.99em) {
    .news-thumb { flex-basis: 76px; width: 76px; }
    .news-headline { font-size: 1.1rem; }
}

/* -------- Team -------- */
.team-card { text-align: center; padding: 1rem .5rem; transition: transform .15s ease; }
.team-card:hover { transform: translateY(-4px); }
.team-photo {
    width: 124px; height: 124px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 1rem;
    border: 5px solid var(--adliswil-yellow);
    background: #e8edf9;
    box-shadow: 0 8px 22px rgba(0,66,122,.18);
}
.team-quote { font-style: italic; color: var(--ink); font-size: 1.08rem; line-height: 1.5; }
.team-name { font-weight: 800; color: var(--adliswil-blue); margin: .5rem 0 0; font-size: 1.05rem; }
.team-role { color: var(--muted); font-size: .92rem; margin: 0; }

/* -------- CTA final -------- */
.cta-final {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, var(--adliswil-yellow), var(--adliswil-yellow-dk));
    text-align: center;
}
.cta-final h2 { color: var(--adliswil-blue-dark); }
.cta-final .lead { color: var(--adliswil-blue-dark); }
.cta-final .hero-button { background: var(--adliswil-blue); color: #fff; }
.cta-final .hero-button:hover { background: var(--adliswil-blue-dark); }
.share { margin-top: 1.8rem; font-weight: 700; font-size: 1.05rem; color: var(--adliswil-blue-dark); }
.share a {
    display: inline-block; margin: 0 .35rem; padding: .45rem 1.05rem;
    background: rgba(255,255,255,.55); border-radius: 999px; font-size: 1rem;
    color: var(--adliswil-blue-dark);
}
.share a:hover { background: #fff; }

/* -------- Footer -------- */
.site-footer { background: var(--adliswil-blue-dark); color: #c6d0ee; padding: 3rem 0 2.5rem; }
.site-footer h4 { color: #fff; }
.site-footer a { color: var(--adliswil-yellow); }
.disclaimer { font-size: .9rem; color: #9fb0e0; }
.committee { font-weight: 700; color: #fff; margin-top: .6rem; }

/* Quellen-Block ganz unten */
.sources {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.18);
}
.sources h4 { color: #fff; margin-bottom: .8rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.sources ol { margin: 0; padding-left: 1.2rem; }
.sources li { color: #9fb0e0; font-size: .85rem; margin-bottom: .5rem; line-height: 1.45; }
.sources a { color: #c6d0ee; text-decoration: underline; word-break: break-word; }
.sources a:hover { color: var(--adliswil-yellow); }

/* -------- Hinweis-Modal (Platzhalter-Link) -------- */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,30,60,.55);
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 1rem;
}
.modal-overlay:target { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 16px;
    max-width: 480px; width: 100%;
    padding: 2.2rem 2rem 2rem;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
    border-top: 6px solid var(--adliswil-yellow);
    position: relative;
    text-align: left;
}
.modal-box h3 { margin: 0 0 .8rem; font-size: 1.5rem; }
.modal-box p { color: var(--ink); margin: 0 0 .8rem; font-size: 1.05rem; }
.modal-box code {
    background: #eef3fb; color: var(--adliswil-blue-dark);
    padding: .1rem .4rem; border-radius: 5px; font-size: .92em;
}
.modal-close {
    position: absolute; top: .5rem; right: 1rem;
    font-size: 2rem; line-height: 1; color: var(--muted);
    text-decoration: none;
}
.modal-close:hover { color: var(--ink); }
.modal-ok { color: #fff; display: inline-block; margin-top: .6rem; padding: .6rem 1.6rem; }

/* ====================================================================
   MOBILE-OPTIMIERUNG  (Smartphones, bis 639px)
   ==================================================================== */
@media screen and (max-width: 39.99em) {

    body { scroll-padding-top: 64px; }

    /* Typografie: gut lesbar, aber nicht winzig */
    h2 { font-size: 1.95rem; }
    .lead { font-size: 1.2rem; }

    /* Banner: ggf. zweizeilig statt abgeschnitten */
    .top-banner { font-size: .82rem; padding: .45rem .8rem; line-height: 1.3; }

    /* Hero: weniger Polster, grosse tippbare Buttons */
    .hero-overlay { padding: 3rem 0 2.75rem; }
    .hero h1 { font-size: 2.4rem; }
    .hero-sub { font-size: 1.2rem; margin-bottom: 1.5rem; }
    .hero-kicker { font-size: .82rem; }

    /* CTA-Buttons vollbreit = leicht mit dem Daumen treffbar */
    .hero-button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 1rem;
        font-size: 1.18rem;
    }
    .nav-cta { display: inline-block; width: auto; } /* Nav-Button bleibt klein */

    /* Stat-Karten: vertikaler Abstand beim Stapeln */
    .stats { margin-top: -1.6rem; }
    .stats .cell { margin-bottom: 1rem; }
    .stats .cell:last-child { margin-bottom: 0; }
    .stat-value { font-size: 2.3rem; }

    /* Abschnitte: kompaktere vertikale Abstaende */
    .section { padding: 3rem 0; }
    .cta-final { padding: 3.25rem 0; }

    /* Statement-Band */
    .pullquote { padding: 2.75rem 0; }
    .pq-lead { font-size: 1.2rem; }
    .pq-punch { font-size: 2.05rem; }

    /* Forderungs-Karten etwas schlanker */
    .demand-card { padding: 1.8rem 1.4rem 1.5rem; }
    .demand-card h3 { font-size: 1.35rem; }

    /* Sirup-Zitat: weniger seitliches Polster */
    .syrup { padding: 1.2rem 1.3rem; font-size: 1.12rem; }

    /* Team: Avatare etwas kleiner, damit zwei pro Reihe passen */
    .team-photo { width: 92px; height: 92px; }
    .team-quote { font-size: .92rem; }

    /* Teilen-Buttons mit Zeilenabstand beim Umbrechen */
    .share a { margin: 0 .25rem .5rem; }

    /* Footer-Spalten stapeln mit Abstand */
    .site-footer .cell + .cell { margin-top: 1.5rem; }
}

/* Tablet (640px bis 1023px): Hero-Titel nicht zu riesig */
@media screen and (min-width: 40em) and (max-width: 63.99em) {
    .hero h1 { font-size: 3rem; }
    h2 { font-size: 2.3rem; }
}

/* Geraete ohne Hover (Touch): kein Hover-Versatz, der "klemmt" */
@media (hover: none) {
    .button:hover, .button:focus,
    .hero-button:hover, .hero-button:focus,
    .stat-card:hover, .demand-card:hover, .team-card:hover { transform: none; }
}
