/* Fonts */
@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
body {
    font-family: 'Quicksand', sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 40px;
    color: #232e57;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

h1, h2, h3 {
    color: #1a224f;
}

header, footer {
    text-align: center;
    margin-bottom: 20px;
}

section {
    margin-bottom: 30px;
}

/* Chart */
.chart img {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 10px;
}

.chart-caption {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    margin-top: 5px;
}

.chart canvas {
    margin-top: 20px;
}

.muni-wappen img.wappen-img {
    width: 70px;
    height: auto;
    border-radius: 4px;
    opacity: 0.95;
}

.muni-wappen {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Logo size */
.site-logo {
    max-width: 160px;
    height: auto;
    display: block;
}

/* Header layout (desktop) */
.muni-header {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 20px;
    text-align: center;
}

.header-left {
    text-align: left;
}

.header-center {
    text-align: center;
}

.header-right {
    text-align: right;
}

/* Lists */
ul {
    padding-left: 20px;
}
ul li {
    margin-bottom: 8px;
}

/* CTA */
.cta {
    background-color: transparent;
    border: 2px solid #ea5540;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}
.cta-button {
    background-color: #ea5540;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.cta-top {
    margin: 30px auto 40px auto;
    padding: 28px;
    border: 2px solid #ea5540;
    border-radius: 12px;
    background: #fff8f5;
    text-align: center;
}

.cta-top h2 {
    margin-bottom: 8px;
    font-size: 1.6rem;
}

.cta-top .cta-sub {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #444;
}

.cta-button {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.cta-button:hover {
    background-color: #ea5540;
}

.subtle-cta {
    border: 1px solid #e3b5a9;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 35px 0;
    background: #fffdfc;
    text-align: center;
}

.subtle-cta .cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2f2f39;
}

.subtle-cta .cta-sub {
    font-size: 0.95rem;
    margin: 4px 0 14px;
    color: #444;
}

.subtle-cta .cta-link {
    padding: 8px 18px;
    background: #ea5540;
    color: white;
    border-radius: 6px;
    font-size: 0.95rem;
    text-decoration: none;
}

.subtle-cta .cta-link:hover {
    background: #d14533;
}

.cta-inline {
    border: 1px solid #e3b5a9;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fffdfc;
}

.cta-inline-left {
    flex: 1;
    font-size: 1rem;
    color: #232e57;
}

.cta-inline-sub {
    font-size: 0.85rem;
    color: #555;
    margin-top: 2px;
}

.cta-inline-right {
    white-space: nowrap;
}

.cta-inline-button {
    background: #ea5540;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
}

.cta-inline-button:hover {
    background: #d14533;
}

@media (max-width: 700px) {
    .cta-inline {
        flex-direction: column;
        text-align: center;
    }

    .cta-inline-right {
        white-space: normal;
        width: 100%;
        text-align: center;
    }

    .cta-inline-button {
        display: inline-block;
        max-width: 100%;
        text-align: center;
    }
}

.icon-small {
    height: 40px;
    width: auto;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}

/* Breadcrumbs */
.internal-links-inline {
    text-align: center;
    margin: 8px 0 16px;
    font-size: 0.85rem;
    color: #555;
}

.internal-links-inline a {
    color: #ea5540;
    text-decoration: none;
    padding: 0 4px;
    font-weight: 400;
}

.internal-links-inline a:hover {
    text-decoration: underline;
}

.internal-links-inline .separator {
    color: #999;
    padding: 0 3px;
}

.county-muni-list {
    margin-top: 10px;
    padding-left: 20px;
}

.county-muni-list li {
    margin: 3px 0;
}

.county-muni-list a {
    color: #ea5540;
    text-decoration: none;
}

.county-muni-list a:hover {
    text-decoration: underline;
}

.sub-explanation {
    margin-bottom: 12px;
    color: #444;
    font-size: 0.92rem;
    line-height: 1.4;
}

.breadcrumbs {
    text-align: center;
    margin: 12px 0 20px;
    font-size: 0.9rem;
    color: #ea5540;
    font-weight: 500;
}

.breadcrumbs a {
    color: #ea5540;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 6px;
    color: #ea5540;
}

/* Forms */
form {
    margin-top: 20px;
}

input[type="text"] {
    padding: 10px;
    width: 60%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

button[type="submit"] {
    padding: 10px 20px;
    background-color: #ea5540;
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 1rem;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #cc4735;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

/* Details */
details summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Footer */
footer {
    font-size: 0.9rem;
    color: #555;
}

footer a {
    color: #232e57;
    text-decoration: none;
    margin: 0 8px;
}

/* Header + Footer container */
.header-container {
    display: flex;
    gap: 20px;
    margin: 0 auto;
}

.logo-container {
    flex: 0 0 auto;
}

.logo-container img {
    width: 200px;
    height: auto;
    cursor: pointer;
    margin-top: 8px;
    margin-left: 8px;
}

.header-right {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.trust-signal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
    margin-right: 8px;
}

.trust-signal img {
    width: 100px;
    height: auto;
}

.main-content {
    margin: 0 auto;
}

.footer-container {
    display: flex;
    padding: 8px;
    margin-top: 8px;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    gap: 16px;
    padding: 0 16px;
}

.social-links a {
    color: #232e57;
    text-decoration: none;
    font-size: 1.5rem;
}

.social-links a:hover {
    opacity: 0.7;
}

.footer-menu {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding: 0 16px;
}

.footer-menu a {
    color: #232e57;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
}

.footer-menu a:hover {
    text-decoration: underline;
}

/* Misc */
.subline {
    display: block;
    font-size: 0.7em;
    font-weight: normal;
    color: #232e57;
    margin-top: 4px;
}

.info-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.info-text {
    flex: 1 1 60%;
    min-width: 280px;
}

.info-icon {
    flex: 0 0 160px;
    text-align: center;
}

.info-icon img {
    max-width: 140px;
    height: auto;
}

.source-note {
    font-size: 0.85em;
    color: #666;
    margin-top: 12px;
}

.source-note a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .muni-header {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .header-left,
    .header-center,
    .header-right {
        text-align: center !important;
        width: 100%;
    }

    .site-logo {
        max-width: 140px;
        margin: 0 auto;
    }

    .wappen-img {
        max-width: 90px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-menu {
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
    }
}
