/* kommunalwahl2026.css – complete version with centered buttons, SVG arrows & candidate overlays */

/* ---------- Root Variables ---------- */
:root {
    --bg: #f6f7fb;
    --bg-section: #ffffff;
    --accent-blue: #2a76aa;
    --accent-green: #31925b;
    --accent-green-dark: #277348;
    --text: #222222;
    --muted: #666666;
    --radius-box: 22px;
    --shadow-strong: 0 22px 60px 4px rgba(0, 0, 0, 0.35);
    --shadow-medium: 0 14px 40px rgba(0, 0, 0, 0.25);
    --max-width: 1040px;
}

/* ---------- Base Layout ---------- */
*,*::before,*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    scroll-behavior: smooth;
    background: transparent;
}

/* ---------- Background Images ---------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;

    /* zwei Hintergrundbilder */
    background-image:
        url("../images/historisch.png"),
        url("../images/neues.png");
    background-repeat: no-repeat;
    background-position: left top, right top;
    background-size: 50% 100vh, 50% 100vh;
    background-attachment: fixed;

    /* WEICHER ÜBERGANG */
    mask-image: linear-gradient(
        to right,
        black 45%,
        transparent 50%,
        black 55%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        black 45%,
        transparent 50%,
        black 55%
    );
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: none;
}

/* ---------- Section Box Layout ---------- */
.section-block {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.content-box {
    background: var(--bg-section);
    border-radius: var(--radius-box);
    max-width: var(--max-width);
    width: 100%;
    padding: 3rem 3.5rem;
    box-shadow: var(--shadow-strong);
}


/* ---------- HERO: KOMMUNALWAHL 2026 ---------- */
#header {
    position: relative;
    z-index: 0;
}

#header .content-box {
    position: relative;
    text-align: center;
    padding: 4rem 3.5rem 5.5rem; /* extra bottom space for overlapping button */
    border-radius: 30px;
}

#header .hero-title h1 span {
    display: inline-block;
    font-size: clamp(2.0rem, 3.2vw, 3.0rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-blue);
}

#header .hero-subtitle {
    margin-top: 2.5rem;
    font-size: 2.0rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

/* floating nav button on first block */
#header .section-nav {
    position: absolute;
    left: 50%;
    bottom: -2.6rem;
    transform: translateX(-50%);
    margin-top: 0;
}

/* transparent blue overlay only for first (hero) section */
#header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at top,
        rgba(53, 112, 167, 0.9),
        rgba(31, 73, 125, 0.9)
    );
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
    margin: 0 0 1rem 0;
    font-weight: 600;
}

h2 { 
    font-size: clamp(1.9rem, 2.4vw, 2.4rem);
}

/* Hervorhebung der einzelnen UWG-Buchstaben */
.uwg {
    color: var(--accent-blue);     /* gleiche Farbe wie KOMMUNALWAHL-Schrift */
    font-weight: 700;              /* deutliche Betonung */
    letter-spacing: 0.02em;        /* leichte Öffnung */
}


/* ---------- Überschrift immer einzeilig ---------- */
.header-title-nowrap {
    white-space: nowrap;
    font-size: clamp(1rem, 2.4vw, 1.9rem);
}


/* ---------- Fließtext: Abstand größer ---------- */
.hinweis {
  margin-top: 60px; /* Abstand nach oben */
}



/* ---------- Buttons & Arrows ---------- */
.section-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 999px;
    padding: 0.85rem 2.6rem;
    border: 2px solid var(--accent-green);
    background: var(--accent-green);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
    background: var(--accent-green-dark);
    transform: translateY(-1px);
}
/* Sekundärer Button – visuell zurückgenommen */
.button-secondary {
    background: transparent;
    color: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: none;
    font-weight: 500;
}

.button-secondary:hover {
    background: rgba(49, 146, 91, 0.08);
    transform: translateY(-1px);
}

/* Auf schmalen Screens Buttons untereinander */
@media (max-width: 640px) {
    .section-nav {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* SVG Arrow styling */
.button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 3px;
    fill: none;
    position: relative;
}

/* vertical line on arrows */
.button .arrow-down::before,
.button .arrow-up::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 8px;
    border-left: 2px solid currentColor;
    border-radius: 999px;
}

.button .arrow-down::before {
    top: 2px;
}

.button .arrow-up::after {
    bottom: 2px;
}

/* Arrow Down Animation */
@keyframes arrow-bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(6px); }
    100% { transform: translateY(0); }
}
.arrow-down { animation: arrow-bounce 1.3s infinite ease-in-out; }

/* Arrow Up Animation */
@keyframes arrow-bounce-up {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}
.arrow-up { animation: arrow-bounce-up 1.3s infinite ease-in-out; }

/* ---------- Candidate Grid ---------- */
.kandidaten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.kandidaten-card {
    background: #f7fafc;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.kandidaten-photo {
    position: relative;
    cursor: pointer;
}

.kandidaten-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.kandidaten-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 60%);
    color: #ffffff;
    padding: 0.6rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.kandidaten-photo:hover .kandidaten-overlay {
    opacity: 1;
}

.kandidaten-overlay-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
}
.kandidaten-overlay-content strong {
    font-size: 0.95rem;
}

/* ---------- Termine Cards ---------- */
.termine-grid {
    display: flex;
    gap: 1.8rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.termine-card {
    flex: 1 1 260px;
    background: #f3f7ff;
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: var(--shadow-medium);
    border-top: 4px solid var(--accent-blue);
}

/* ---------- Footer ---------- */
footer.page-footer {
    padding: 2rem;
    text-align: center;
    background: rgba(10,28,46,0.9);
    color: #f1f5f9;
}
/* -------------------------------------------------- */
/* 📌 TEXTBLOCK: größer für Claim + Liste             */
/* -------------------------------------------------- */

.text-block-large {
    font-size: 1.6rem;  
    line-height: 1.3rem;
    text-align: center;  
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.text-block-large ul li {
    margin: 0.35rem 0;
}
/* -------------------------------------------------- */
/* 💬 Dezente Hervorhebung für die Claims             */
/* -------------------------------------------------- */

.claim-wrapper {
    margin-top: 1.8rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.claim {
    padding: 0.2rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;

    /* ✔ Schriftgröße exakt wie .text-block-large */
    font-size: 1.35rem;
    line-height: 1.35;

    letter-spacing: 0.03em;

    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    color: var(--accent-blue);
}



/* Listenpunkte im UWG-Abschnitt vollständig entfernen */
#wir-sind .list-clean {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

#wir-sind .list-clean li {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}


/* -------------------------------------------------- */
/* 📱 Überschriften sollen mobil umbrechen (max 768px) */
/* -------------------------------------------------- */
/* ---------- Tablet & große Smartphones ---------- */
@media (max-width: 768px) {

    .section-block {
        padding: 3rem 1.25rem;
    }

    .content-box {
        padding: 2.4rem 1.8rem;
        border-radius: 20px;
    }

    #header .content-box {
        padding-top: 5.5rem;
        padding-bottom: 4rem;
    }

    #header .section-nav {
        bottom: -1.6rem;
    }

    body::before {
        background-position: top, bottom;    /* sauberere Kurzschreibweise */
        background-size: 100% 50vh, 100% 50vh; /* beide zusammen = 100vh */
        background-repeat: no-repeat;
        background-attachment: scroll;

        mask-image: none;
        -webkit-mask-image: none;
    }

    #wir-sind .header-title-nowrap {
        white-space: normal;
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .text-block-large { font-size: 1.2rem; }

    .kandidaten-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.9rem;
    }

    .termine-grid { flex-direction: column; }
}

/* ---------- Kleine Smartphones ---------- */
@media (max-width: 600px) {

    .claim-wrapper { flex-direction: column; gap: 0.35rem; }

    .kandidaten-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.25),
            rgba(0,0,0,0.20) 55%,
            transparent 100%
        );
    }
}

/* ---------- Sehr schmale Geräte ---------- */
@media (max-width: 480px) {

    #header .hero-title h1 span {
        letter-spacing: 0.08em;
        font-size: 1.1rem !important;
        display: inline;
    }

    #header .hero-title h1 {
        font-size: 1.3rem !important;
        line-height: 1.2;
        white-space: normal;
    }

    #header .hero-subtitle {
        font-size: 1.35rem;
        letter-spacing: 0.18em;
        margin-top: 1.6rem;
    }

    .hinweis {
        margin-top: 1.8rem;
        font-size: 0.95rem;
    }

    .button {
        width: 100%;
        padding-inline: 1.4rem;
        white-space: normal;
        text-align: center;
    }
}
/* Gruppenfoto im Fließtext: kein Vollbild-Abstand */
#gruppenfoto.section-block {
    min-height: auto;
    padding: 0rem 0;   /* ggf. auf 1rem oder 0rem verkleinern */
    display: block;      /* Flex-Layout der .section-block überschreiben */
    align-items: stretch;
    justify-content: flex-start;
}

/* -------------------------------------------------- */
/* Bürgermeister-Portrait			      */
/* -------------------------------------------------- */

.bm-portrait-float {
    float: right;
    width: 230px;                 /* ggf. anpassen */
    height: auto;
    margin: 0 0 1.6rem 2rem;      /* Abstand links + unten */
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    display: block;
}

/* Gruppenfoto darunter nicht vom Float überlagern */
#gruppenfoto.section-block {
    clear: both;                  /* neu dazu */
}

/* Mobile: float aufheben, Bild mittig über dem Text */
@media (max-width: 768px) {
    .bm-portrait-float {
        float: none;
        width: 65%;
        max-width: 260px;
        margin: 1.2rem auto 1.6rem auto;
    }
}
.bgm-ruecklink {
    max-width: var(--max-width);
    margin: 1.5rem auto 0 auto;
    padding: 0 1rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.bgm-ruecklink a {
    color: var(--accent-blue);
    text-decoration: underline;
}
