/* =====================================================
   Fonts – lokal, DSGVO-konform, woff2 only
   ===================================================== */

/* Open Sans Condensed – Body */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSansCondensed-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSansCondensed-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =====================================================
   Global Typography
   ===================================================== */
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #3f3f3f;
    background-color: #f2f2f2;
}

.paper {
    background-color: #ffffff;
    box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.05),
            0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Headlines */
h1, h2, h3 {
    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: 24px;
    color: #009aaf;
}

h2 {
    font-size: 32px;
    color: #009aaf;
}

h3 {
    font-size: 24px;
    color: #009aaf;
}

.image-box {
    width: 100%;
    height: 100%;
}

.image-box img {
    width: 100%;
    height: auto;
    object-fit: fill;
    display: block;
}


/* =====================================================
   Hero Image
   ===================================================== */

.hero-image {
    width: 100%;
    height: 360px;
    margin: 0;
    background-image: url('../images/background-image.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Hero Label */
.hero-label {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;

    background-color: #00a6b4;
    color: #ffffff;
    padding: 6px 15px;

    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

/* =====================================================
   Info Blocks
   ===================================================== */

.info-block {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 16px 16px;
}

/* Alternating background colors */
.info-block:nth-of-type(odd) {
    background-color: #fde8c8;
}

.info-block:nth-of-type(even) {
    background-color: #fbdca9;
}

/* Arrow Icon */
.info-icon {
    width: 36px;
    height: 36px;
    border-right: 8px solid #00a6b4;
    border-bottom: 8px solid #00a6b4;
    transform: rotate(-45deg);
    flex-shrink: 0;
}

/* Text inside info blocks */
.info-content strong {
    display: block;
    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.info-content p {
    margin: 0;
}

/* =====================================================
   Responsive (Bootstrap-aligned)
   ===================================================== */

@media (max-width: 768px) {

    body {
        font-size: 18px;
    }

    .hero-image {
        height: 220px;
    }

    .hero-label {
        font-size: 38px;
        bottom: 0px;
        left: 0px;
    }

    .info-block {
        padding: 20px;
        gap: 20px;
    }

    .info-icon {
        width: 28px;
        height: 28px;
        border-width: 6px;
    }
}

/* =====================================================
   Trust Headline below table (clean)
   ===================================================== */

.trust-wrapper {
    margin-top: 50px;   /* Abstand zur Tabelle */
    padding: 0;
    text-align: left;   /* linksbündig */
}

.trust-headline {
    display: inline-block;  /* Balken nur um Text */
    margin: 0;              /* kein h2-Default-Margin */
    padding: 6px 15px;

    background-color: #00a6b4;
    color: #ffffff;

    /* KEINE font-size Angabe → globales h2 gilt */
    line-height: 1.2;
    text-transform: uppercase;
}

.label {
    display: inline-block;
    margin: 0;
    padding: 6px 15px;

    background-color: #00a6b4;
    color: #ffffff;

    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

/* Orange Variante */
.label-orange {
    background-color: #f6a600;
}

/* =====================================================
   Feature Boxes (2-column layout)
   ===================================================== */

/* Section full width */
.feature-section {
    width: 100%;
    margin: 50px 0;
}

/* CSS Grid – replaces Bootstrap row/col */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;                 /* Abstand NUR zwischen Boxen */
}

/* Equal height boxes */
.feature-box {
    display: flex;
    flex-direction: column;
}

/* Title bar */
.feature-title {
    margin: 0;
    padding: 8px 16px;
    background-color: #00a6b4;
    color: #ffffff;
    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Body */
.feature-body {
    flex-grow: 1;
    padding: 20px 24px;
    background-color: #fbdca9;
}

.feature-body p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Info Text Sections
   ========================= */

.info-section {
    background-color: #ededed;
    padding-bottom: 24px;
}

/* Full-width headline bar */
.info-headline {
    margin: 0;
    padding: 8px 16px;
    background-color: #00a6b4;
    color: #ffffff;

    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

/* Two-column text layout */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 24px;
}

.info-grid p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .info-headline {
        font-size: 28px;
        padding: 14px 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }
}

/* =========================
           Reset & Base
           ========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f2f2f2;
    color: #000;
}

/* =========================
   Ballot Wrapper
   ========================= */
.ballot {
    width: 100%;
    margin: 0;
    background: #ffffff;

}

/* =========================
   Header
   ========================= */
.ballot-header {
    display: flex;
    width: 100%;
}

.ballot-logo,
.ballot-hint {
    width: 50%;
}

.ballot-logo img,
.ballot-hint img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ballot-logo img {
    max-height: 90px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;   /* <-- das ist der Schlüssel */
}


/* Optional: rechts ausrichten */
.ballot-logo {
    text-align: right;
}

/* Mobile */
@media (max-width: 768px) {
    .ballot-header {
        flex-direction: column;
    }

    .ballot-hint {
        width: 100%;
        order: 2;
    }

    .ballot-logo {
        order: 1;
    }

}

.core-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.core-headline {
    display: inline-block;
    margin: 0 0 24px 0;
    padding: 6px 15px;
    background-color: #f6a600;
    color: #ffffff;
    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
}

.core-item h3 {
    margin: 0 0 6px 0;
    padding: 6px 12px;
    background-color: #00a6b4;
    color: #ffffff;
    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.core-item p {
    margin: 0 0 20px 0;
}

/* Mobile */
@media (max-width: 768px) {
    .core-columns {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Election Info
   ========================= */
.election-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* Headline */
.election-headline {
    display: inline-block;
    margin: 0 0 12px 0;
    padding: 6px 15px;
    background-color: #f6a600;
    color: #ffffff;

    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

/* Items */
.election-item {
    margin-top: 20px;
}

.election-item h3 {
    margin: 0 0 6px 0;
    color: #00a6b4;
    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.election-item p {
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .election-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   Head rows
   ========================= */
.ballot-list-head {
    background: #f6a600;
    color: #ffffff;
    font-weight: 700;
    padding: 6px 10px;
    margin-top: 12px;
    font-size: 14px;
}

.ballot-party {
    background: #00a6b4;
    color: #ffffff;
    padding: 8px 10px;
    font-weight: 700;
    font-size: 15px;
}

/* =========================
   Grid
   ========================= */
.ballot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #bdbdbd;
}

.ballot-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ballot-grid li {
    display: grid;
    grid-template-columns: 52px 1fr;
    padding: 5px 8px;
    border-bottom: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    font-size: 14px;
}

.ballot-grid li:last-child {
    border-bottom: none;
}

.ballot-grid li span {
    color: #00a6b4;
    font-weight: 700;
}

/* =========================
   Footer
   ========================= */
.ballot-footer {
    margin-top: 12px;
    font-size: 12px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
    .ballot-grid {
        grid-template-columns: 1fr;
    }

    .ballot-header {
        flex-direction: column;
        gap: 12px;
    }
}


/* =========================
   Footer
   ========================= */
.site-footer {
    margin-top: 20px;
    padding: 8px 12px;
    font-size: 14px;
    color: #3f3f3f;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #3f3f3f;
    text-decoration: none;
    margin-left: 8px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* =========================
   Info Boxes (3 Columns)
   ========================= */

.info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-box {
    border: 1px solid #00a6b4;
    padding: 20px;
    background: #ffffff;

    box-shadow:
            0 2px 6px rgba(0,0,0,0.08),
            0 6px 18px rgba(0,0,0,0.06);
}

.info-box h3 {
    margin: 0 0 8px 0;
    color: #00a6b4;
    font-family: 'Open Sans Condensed', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.info-box p {
    margin: 0 0 12px 0;
}

.info-link {
    color: #f7a400;
    font-weight: 400;
    text-decoration: none;
}

.info-link:hover,
.info-link:focus {
    color: #f7a400;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    .info-boxes {
        grid-template-columns: 1fr;
    }
}