/* ==========================================================================
   WAHLHILFEN
   Wird nach app.css geladen und enthält ausschließlich seitenbezogene Komponenten.
   ========================================================================== */

.content-section-muted {
    background: color-mix(in srgb, var(--surface-subtle) 78%, var(--bg) 22%);
}

.wahlhilfen-page main {
    --surface: #ffffff;
    --surface-subtle: #f4f7f9;
    --bg: #eef2f5;
    --text: #17212a;
    --muted: #596875;
    --accent: #1d6f91;
    --accent-soft: #e2f1f7;
    --accent-strong: #155f7f;
    --line: #c9d3db;
    --shadow-sm: 0 12px 34px rgba(23, 33, 42, 0.08);
    background: var(--bg);
    color: var(--text);
}

.wahlhilfen-hero {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
    background: radial-gradient(circle at 85% 18%, rgb(100 216 255 / 18%), transparent 28rem),
        linear-gradient(135deg, #081735 0%, #0b3d78 58%, #096d8a 100%);
    color: #fff;
}

.wahlhilfen-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.wahlhilfen-hero .eyebrow {
    color: #bcecff;
}

.wahlhilfen-lead {
    max-width: 880px;
    margin: 1.5rem 0 0;
    color: rgb(255 255 255 / 86%);
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    line-height: 1.75;
}

.jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.8rem;
}

.jump-links a {
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: rgb(255 255 255 / 8%);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.jump-links a:hover,
.jump-links a:focus-visible {
    background: rgb(255 255 255 / 17%);
}

.wahlhilfen-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.wahlhilfe-top-card,
.wahlhilfe-portrait,
.notice-card,
.evaluation-scale {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.wahlhilfe-top-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: clamp(1.35rem, 2vw, 2rem);
    overflow: hidden;
}

.wahlhilfe-top-card::after {
    position: absolute;
    inset: auto -3rem -4.5rem auto;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    content: "";
}

.wahlhilfe-rank {
    display: inline-grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border-radius: 1rem;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font: 900 1.05rem/1 var(--font-data);
}

.wahlhilfe-best-for {
    margin: 1.35rem 0 0.35rem;
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wahlhilfe-top-card h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.wahlhilfe-top-card > p:not(.wahlhilfe-best-for, .wahlhilfe-stars) {
    flex: 1;
}

.wahlhilfe-stars {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 0.8rem 0;
    color: #d18a00;
    font-family: var(--font-data);
    letter-spacing: 0.05em;
}

.wahlhilfe-stars strong {
    color: var(--text);
    font-family: var(--font-sans);
    letter-spacing: 0;
}

.wahlhilfe-star-row {
    display: inline-flex;
    gap: 0.16rem;
    line-height: 1;
}

.wahlhilfe-star {
    position: relative;
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 1.15rem;
    background: url("../img/stern-inaktiv.png") center / contain no-repeat;
}

.wahlhilfe-star::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: url("../img/stern-voll.png") left center / 1.15rem 1.15rem no-repeat;
    content: "";
}

.wahlhilfe-star.is-full::before {
    width: 100%;
}

.wahlhilfe-star.is-half::before {
    width: 50%;
}

.wahlhilfen-portraits {
    display: grid;
    gap: 1rem;
}

.wahlhilfe-portrait {
    padding: clamp(1.4rem, 3vw, 2.4rem);
}

.wahlhilfe-portrait header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.15rem;
}

.wahlhilfe-portrait header h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.wahlhilfe-portrait header p {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.wahlhilfe-portrait-rank {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.wahlhilfe-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.35rem 0;
}

.wahlhilfe-facts div {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: var(--surface-subtle);
}

.wahlhilfe-facts dt {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wahlhilfe-facts dd {
    margin: 0.35rem 0 0;
    color: var(--text);
    font-weight: 750;
}

.wahlhilfe-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
}

.comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.comparison-table-wrap:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
    outline-offset: 3px;
}

.comparison-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    text-align: left;
    vertical-align: top;
}

.comparison-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface-subtle);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comparison-table tbody tr:hover {
    background: color-mix(in srgb, var(--accent-soft) 45%, transparent);
}

.comparison-table tbody th {
    width: 15rem;
}

.comparison-table p {
    margin: 0;
}

.comparison-table small {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    line-height: 1.5;
}

.comparison-rating {
    min-width: 10rem;
}

.comparison-rating .wahlhilfe-stars {
    margin: 0 0 0.35rem;
}

.comparison-rating > a {
    display: block;
    margin-top: 0.55rem;
}

.comparison-data-stand {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: right;
}

.evaluation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 1.2rem;
    align-items: start;
}

.evaluation-scale {
    padding: 1.3rem;
}

.evaluation-scale dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.evaluation-scale div {
    display: grid;
    grid-template-columns: 4.2rem 1fr;
    gap: 0.75rem;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
}

.evaluation-scale div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.evaluation-scale dt {
    color: var(--accent-strong);
    font-weight: 900;
}

.evaluation-scale dd {
    margin: 0;
}

.notice-card {
    padding: clamp(1.35rem, 3vw, 2.2rem);
}

.notice-card h2 {
    margin-top: 0;
}

.notice-card ol {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 0;
    padding-left: 1.35rem;
}

@media (max-width: 980px) {    .wahlhilfen-top-grid {
        grid-template-columns: 1fr;
}

    .wahlhilfe-facts {
        grid-template-columns: 1fr;
}
}

@media (max-width: 720px) {    .wahlhilfe-portrait header {
        grid-template-columns: 1fr;
}

    .wahlhilfe-portrait header .wahlhilfe-stars {
        margin: 0;
}

    .evaluation-grid {
        grid-template-columns: 1fr;
}
}

.wahlhilfen-page {
    font-synthesis: none;
}

.wahlhilfen-page .content-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
    border-top: 1px solid var(--line);
    background: radial-gradient(circle at 88% 2%, rgba(100, 196, 232, 0.10), transparent 26rem),
        linear-gradient(180deg, #f5f8fa 0%, var(--bg) 100%);
}

.wahlhilfen-page .content-section-muted {
    background: radial-gradient(circle at 10% 10%, rgba(29, 111, 145, 0.06), transparent 24rem),
        linear-gradient(180deg, #e7edf1 0%, #edf2f5 100%);
}

.wahlhilfen-page .section-heading {
    color: var(--text);
}

.wahlhilfen-page .section-heading > p {
    color: var(--muted);
}

.wahlhilfen-page .section-heading .eyebrow,
.wahlhilfen-page .content-section .eyebrow {
    color: var(--accent-strong);
}

.wahlhilfen-page .jump-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.62);
    text-decoration-thickness: 1px;
}

.wahlhilfen-page .jump-links a::before {
    content: "\2192";
    flex: 0 0 auto;
    font-family: var(--font-data);
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
}

.wahlhilfen-page .jump-links a:hover,
.wahlhilfen-page .jump-links a:focus-visible {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.24);
}

.wahlhilfen-page .wahlhilfe-links a,
.wahlhilfen-page .comparison-table a {
    color: var(--accent-strong);
}

@media (max-width: 720px) {    .wahlhilfen-page .content-section {
        padding: 3.4rem 0;
}
}
