@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("../fonts/AtkinsonHyperlegibleNext-wght.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible Mono";
    src: url("../fonts/AtkinsonHyperlegibleMono-wght.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --paper: #f4f0e8;
    --paper-strong: #fbf8f1;
    --ink: #1c1c22;
    --ink-soft: #595860;
    --line: rgba(28, 28, 34, 0.14);
    --line-strong: rgba(28, 28, 34, 0.24);
    --violet: #5d52b4;
    --violet-dark: #363064;
    --violet-wash: #e9e5fb;
    --teal: #147c7f;
    --teal-dark: #14585b;
    --teal-wash: #dcefed;
    --signal: #b55234;
    --green: #216645;
    --green-wash: #e3efe8;
    --shadow: 0 18px 60px rgba(38, 34, 51, 0.09);
    --radius-lg: 28px;
    --radius-md: 18px;
    --shell: 1180px;
    --font-sans: "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;
    --font-mono: "Atkinson Hyperlegible Mono", "SFMono-Regular", Consolas, monospace;
}

* {
    box-sizing: border-box;
}

/* Author-CSS mit display:flex/inline-flex darf das native hidden-Attribut nie
   überstimmen. Das betrifft u. a. beendete Counter und progressive Buttons. */
[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(93, 82, 180, 0.07), transparent 25rem),
        radial-gradient(circle at 92% 9%, rgba(20, 124, 127, 0.08), transparent 24rem),
        var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(28, 28, 34, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 28, 34, 0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-thickness: 2px;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
    font: inherit;
}

svg {
    display: block;
}

.shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1000;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid #0b67c2;
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(28, 28, 34, 0.08);
    background: rgba(244, 240, 232, 0.96);
    background: color-mix(in srgb, var(--paper) 91%, transparent);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(28, 28, 34, 0.18);
    border-radius: 12px 12px 12px 3px;
    background: var(--ink);
    color: var(--paper-strong);
    font-family: var(--font-mono);
    font-weight: 750;
    font-size: 22px;
    letter-spacing: -0.08em;
}

.brand-mark i {
    position: absolute;
    right: -8px;
    bottom: 6px;
    width: 24px;
    height: 5px;
    transform: rotate(-45deg);
    background: #7cd3c6;
}

.brand-mark span {
    position: relative;
    z-index: 1;
    transform: translateX(-1px);
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: -0.035em;
}

.brand-copy strong span {
    color: var(--violet);
}

.brand-copy small {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    position: relative;
    padding: 10px 0;
    color: #37363e;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--violet);
    transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.country-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 750;
}

.country-switch span {
    min-width: 35px;
    padding: 6px 8px;
    border-radius: 999px;
    text-align: center;
}

.country-current {
    background: var(--ink);
    color: #fff;
}

.country-future {
    color: #6b6971;
    cursor: default;
}

.hero {
    padding-top: clamp(24px, 3vw, 44px);
    padding-bottom: 50px;
}

.hero-intro {
    max-width: 1080px;
    margin-bottom: 24px;
}

.noscript-note {
    max-width: 820px;
    margin: -18px 0 30px;
    padding: 12px 15px;
    border-left: 3px solid var(--violet);
    background: rgba(255, 255, 255, 0.52);
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}

.noscript-note strong {
    color: var(--ink);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--violet-dark);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 20px;
    height: 2px;
    background: currentColor;
}

.hero h1,
.section-heading h2,
.legal-page h1 {
    margin: 0;
    font-size: clamp(42px, 5.4vw, 76px);
    line-height: 0.97;
    letter-spacing: -0.058em;
    font-weight: 760;
}

.hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 5vw, 72px);
}

.hero-lead {
    max-width: 800px;
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.45;
}

@media (min-width: 900px) {
    .hero h1 {
        white-space: nowrap;
    }
}

.counter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.election-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: clamp(26px, 3vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(251, 248, 241, 0.88);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.election-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.48;
    background-image: radial-gradient(circle, rgba(28, 28, 34, 0.13) 0.75px, transparent 0.9px);
    background-size: 14px 14px;
    mask-image: linear-gradient(120deg, transparent 34%, #000 92%);
}

.election-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -100px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    opacity: 0.15;
}

.election-card-state::after {
    background: var(--violet);
}

.election-card-federal::after {
    background: var(--teal);
}

.card-index {
    position: absolute;
    top: 23px;
    right: 27px;
    color: rgba(28, 28, 34, 0.08);
    font-family: var(--font-mono);
    font-size: clamp(44px, 6vw, 70px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.08em;
    pointer-events: none;
}

.election-card-header {
    position: relative;
    z-index: 1;
    min-height: 104px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.card-kicker {
    margin: 0 0 9px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.election-card h2 {
    max-width: 390px;
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.status-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.status-badge i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 11%, transparent);
}

.status-confirmed {
    background: var(--green-wash);
    color: var(--green);
}

.status-open {
    background: #eee9dd;
    color: #6b5d35;
}

.region-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 34px;
    margin: 6px 0 24px;
}

.region-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    color: #4c4a52;
    font-size: 13px;
    font-weight: 700;
}

.countdown {
    position: relative;
    min-height: 193px;
    display: grid;
    align-content: center;
    padding: 25px 0 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.countdown-primary {
    display: grid;
    grid-template-columns: minmax(0, auto) auto minmax(0, auto);
    align-items: start;
    justify-content: start;
    gap: clamp(8px, 1.4vw, 18px);
}

.time-unit {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.time-unit strong,
.time-separator {
    font-family: var(--font-mono);
    font-size: clamp(54px, 7vw, 88px);
    font-weight: 680;
    line-height: 0.88;
    letter-spacing: -0.075em;
    font-variant-numeric: tabular-nums;
}

.time-days strong {
    min-width: 2ch;
}

.election-card-state .time-unit strong,
.election-card-state .time-separator {
    color: var(--violet-dark);
}

.election-card-federal .time-unit strong,
.election-card-federal .time-separator {
    color: var(--teal-dark);
}

.time-separator {
    transform: translateY(-0.04em);
    opacity: 0.34;
}

.time-unit span {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 730;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.countdown-secondary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 650;
}

.countdown-secondary strong {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.secondary-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line-strong);
}

.countdown-ended {
    margin: 0;
    padding: 18px 0;
    color: var(--violet-dark);
    font-size: 22px;
    font-weight: 750;
}

.election-target {
    display: grid;
    gap: 4px;
    padding: 19px 0 0;
}

.target-label {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.election-target strong {
    font-size: 15px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 130ms ease, background 130ms ease, border-color 130ms ease;
}

.button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.button svg,
.event-links svg,
.hero-note a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

.button-primary {
    background: var(--ink);
    color: #fff;
}

.button-primary:hover {
    background: #34323a;
}

.button-secondary {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.48);
    color: var(--ink);
}

.button-secondary:hover {
    border-color: rgba(28, 28, 34, 0.38);
    background: #fff;
}

.multi-calendar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
}

.source-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed var(--line-strong);
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

.source-line a {
    color: var(--ink);
    font-weight: 700;
}

.source-checked {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
}

.period-display {
    min-height: 193px;
    display: grid;
    align-content: center;
    padding: 25px 0 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.period-overline {
    margin-bottom: 5px;
    color: var(--teal-dark);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.period-display > strong {
    color: var(--teal-dark);
    font-family: var(--font-mono);
    font-size: clamp(44px, 5.6vw, 70px);
    font-weight: 680;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.period-display p {
    max-width: 440px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

.hero-note {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(251, 248, 241, 0.58);
}

.hero-note-mark {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 0 6px var(--violet-wash);
}

.hero-note p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.hero-note p strong {
    color: var(--ink);
}

.hero-note a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.hero-note a svg {
    width: 15px;
    height: 15px;
}

.poll-section {
    padding: 70px 0 76px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.2);
}

.poll-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
    align-items: end;
    gap: 56px;
    margin-bottom: 22px;
}

.poll-section-heading h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.poll-section-heading > p {
    margin: 0 0 3px;
    color: var(--ink-soft);
    font-size: 15px;
}

.data-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.data-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(251, 248, 241, 0.72);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 720;
}

.data-status i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
}

.data-status-ok {
    color: var(--green);
}

.data-status-warn {
    color: #745c21;
}

.data-status-error {
    color: #a9472c;
}

.poll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 20px;
}

.poll-card {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(251, 248, 241, 0.82);
    box-shadow: 0 12px 42px rgba(38, 34, 51, 0.055);
}

.poll-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.poll-kicker {
    margin: 0 0 3px;
    color: var(--violet-dark);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.poll-card h3 {
    margin: 0;
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.poll-date {
    flex: 0 0 auto;
    padding-top: 3px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}

.poll-institute-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 8px;
    margin: 17px 0 18px;
    font-size: 13px;
}

.poll-institute-line strong {
    font-size: 16px;
}

.poll-institute-line span {
    color: var(--ink-soft);
}

.poll-results {
    display: grid;
    gap: 11px;
}

.poll-result-row {
    display: grid;
    gap: 5px;
}

.poll-result-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

.poll-result-label span {
    min-width: 0;
    overflow: hidden;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poll-result-label strong {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.poll-bar {
    width: 100%;
    height: 6px;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    appearance: none;
    background: #ddd8cf;
}

.poll-bar::-webkit-progress-bar {
    border-radius: 999px;
    background: #ddd8cf;
}

.poll-bar::-webkit-progress-value {
    border-radius: 999px;
    background: var(--violet);
}

.poll-bar::-moz-progress-bar {
    border-radius: 999px;
    background: var(--violet);
}

.poll-card:nth-child(even) .poll-bar::-webkit-progress-value {
    background: var(--teal);
}

.poll-card:nth-child(even) .poll-bar::-moz-progress-bar {
    background: var(--teal);
}

.poll-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px dashed var(--line-strong);
}

.poll-meta div {
    min-width: 0;
}

.poll-meta dt {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.poll-meta dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 680;
    line-height: 1.35;
}

.poll-source {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 12px;
}

.poll-source a {
    color: var(--ink);
    font-weight: 720;
}

.poll-empty {
    min-height: 210px;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 20px 0;
}

.poll-empty strong {
    font-size: 17px;
}

.poll-empty p {
    max-width: 440px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.poll-empty-wide {
    min-height: 0;
    padding: 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
}

.timeline-section {
    padding: 88px 0 96px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.26);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
    align-items: end;
    gap: 56px;
    margin-bottom: 42px;
}

.section-heading h2,
.legal-page h1 {
    max-width: 760px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.01;
}

.section-heading > p {
    margin: 0 0 4px;
    color: var(--ink-soft);
    font-size: 15px;
}

.timeline-list {
    border-top: 1px solid var(--line-strong);
}

.timeline-row {
    display: grid;
    grid-template-columns: 116px 1fr;
    border-bottom: 1px solid var(--line);
}

.timeline-date {
    display: grid;
    align-content: start;
    justify-items: start;
    padding: 25px 20px 25px 0;
    border-right: 1px solid var(--line);
    font-family: var(--font-mono);
}

.timeline-date span {
    color: var(--violet);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.timeline-date strong {
    margin: 2px 0 -1px;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.07em;
}

.timeline-date small {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 650;
}

.timeline-events {
    min-width: 0;
}

.timeline-event {
    min-height: 126px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 24px 0 24px 28px;
}

.timeline-event + .timeline-event {
    border-top: 1px dashed var(--line-strong);
}

.event-type {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.timeline-event h3 {
    margin: 3px 0 2px;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.timeline-event p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.event-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.event-links a:hover {
    border-color: var(--line-strong);
    background: #fff;
}

.event-links svg {
    width: 15px;
    height: 15px;
}

.principle-section {
    padding-top: 100px;
    padding-bottom: 108px;
}

.principle-heading {
    align-items: start;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.principle-grid article {
    position: relative;
    min-height: 248px;
    padding: 30px 30px 34px 0;
}

.principle-grid article + article {
    padding-left: 30px;
    border-left: 1px solid var(--line);
}

.principle-number {
    display: block;
    color: var(--violet);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.principle-grid h3 {
    margin: 55px 0 10px;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.principle-grid p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.accessibility-note {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 20px;
    max-width: 770px;
    margin: 42px 0 0 auto;
    padding: 20px 24px;
    border: 1px solid rgba(20, 124, 127, 0.24);
    border-radius: var(--radius-md);
    background: var(--teal-wash);
}

.accessibility-symbol {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(20, 88, 91, 0.24);
    border-radius: 50%;
    color: var(--teal-dark);
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 800;
}

.accessibility-note h3 {
    margin: 0 0 3px;
    font-size: 18px;
}

.accessibility-note p {
    margin: 0;
    color: #315e5e;
    font-size: 13px;
}

.site-footer {
    padding: 45px 0 52px;
    border-top: 1px solid var(--line);
    background: #ebe6dd;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 50px;
}

.brand-footer .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px 10px 10px 3px;
    font-size: 19px;
}

.brand-footer .brand-copy strong {
    font-size: 18px;
}

.footer-brand > p {
    max-width: 560px;
    margin: 15px 0 0 50px;
    color: var(--ink-soft);
    font-size: 12px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 22px;
}

.footer-nav a {
    font-size: 13px;
    font-weight: 700;
}

/* Rechtliche Seiten */
.legal-page {
    padding: 72px 0 100px;
}

.legal-page article {
    width: min(100%, 820px);
}

.legal-page h1 {
    margin-bottom: 44px;
}

.legal-page h2 {
    margin: 46px 0 13px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.legal-page p,
.legal-page address {
    color: #4c4b52;
    font-size: 16px;
    font-style: normal;
}

.legal-page strong {
    color: var(--ink);
}

.legal-page code {
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.48);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.legal-callout {
    margin: 28px 0 42px;
    padding: 22px 24px;
    border-left: 4px solid var(--teal);
    border-radius: 0 14px 14px 0;
    background: var(--teal-wash);
}

.legal-callout p {
    margin: 0;
    color: #315e5e;
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
    }

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

    .election-card h2 {
        max-width: 620px;
    }

    .time-unit strong,
    .time-separator {
        font-size: clamp(62px, 12vw, 96px);
    }

    .section-heading,
    .poll-section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-heading > p {
        max-width: 640px;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .header-inner {
        min-height: 70px;
        gap: 14px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
        font-size: 19px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy small {
        display: none;
    }

    .country-switch {
        gap: 2px;
        padding: 4px;
    }

    .country-switch span {
        min-width: 31px;
        padding: 5px 6px;
        font-size: 12px;
    }

    .country-future {
        display: none;
    }

    .hero {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .hero-intro {
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: clamp(44px, 15vw, 66px);
    }

    .hero-lead {
        margin-top: 14px;
        font-size: 18px;
    }

    .election-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .election-card-header {
        min-height: 0;
        display: block;
    }

    .status-badge {
        margin-top: 16px;
    }

    .card-index {
        top: 18px;
        right: 20px;
        font-size: 48px;
    }

    .region-row {
        margin-top: 19px;
    }

    .countdown,
    .period-display {
        min-height: 170px;
    }

    .countdown-primary {
        gap: 8px;
    }

    .time-unit strong,
    .time-separator {
        font-size: clamp(48px, 16vw, 72px);
    }

    .time-unit span {
        font-size: 12px;
    }

    .period-display > strong {
        font-size: clamp(40px, 13vw, 58px);
    }

    .source-checked {
        width: 100%;
        margin: 5px 0 0;
    }

    .hero-note {
        grid-template-columns: auto 1fr;
    }

    .hero-note a,
    .hero-note-source {
        grid-column: 2;
        justify-self: start;
    }

    .poll-section,
    .timeline-section,
    .principle-section {
        padding-top: 58px;
        padding-bottom: 62px;
    }

    .poll-card {
        padding: 21px 18px;
    }

    .poll-card-header {
        display: block;
    }

    .poll-date {
        display: block;
        margin-top: 8px;
    }

    .poll-meta {
        grid-template-columns: 1fr 1fr;
    }

    .poll-meta div:last-child {
        grid-column: 1 / -1;
    }

    .timeline-row {
        grid-template-columns: 74px 1fr;
    }

    .timeline-date {
        padding-right: 10px;
    }

    .timeline-date strong {
        font-size: 33px;
    }

    .timeline-event {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-left: 18px;
    }

    .event-links {
        flex-wrap: wrap;
    }

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

    .principle-grid article,
    .principle-grid article + article {
        min-height: 0;
        padding: 25px 0 28px;
        border-left: 0;
    }

    .principle-grid article + article {
        border-top: 1px solid var(--line);
    }

    .principle-grid h3 {
        margin-top: 25px;
    }

    .accessibility-note {
        grid-template-columns: 44px 1fr;
        margin-top: 30px;
        padding: 18px;
    }

    .accessibility-symbol {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 32px;
    }

    .footer-brand > p {
        margin-left: 0;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .legal-page {
        padding-top: 54px;
    }
}

@media (max-width: 430px) {
    .card-actions .button {
        width: 100%;
    }

    .countdown-secondary {
        gap: 8px;
        font-size: 12px;
    }

    .timeline-row {
        grid-template-columns: 64px 1fr;
    }

    .timeline-date strong {
        font-size: 29px;
    }

    .event-links a {
        padding-inline: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .site-header,
    .card-actions,
    .event-links,
    .hero-note a,
    .site-footer {
        display: none !important;
    }

    body {
        background: #fff;
    }

    body::before,
    .election-card::before,
    .election-card::after {
        display: none;
    }

    .election-card {
        break-inside: avoid;
        box-shadow: none;
    }
}

.hero-note-source {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}

.timeline-empty {
    margin: 0;
    padding: 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    color: var(--ink-soft);
    background: rgba(251, 248, 241, 0.5);
}
