body {
    margin: 0;
    background: #f5f1eb;
    color: #1f1f1f;
    font-family: Arial, Helvetica, sans-serif;
}

.survey-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.survey-container {
    flex: 1;
    max-width: 760px;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.survey-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.survey-logo {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.survey-headline {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.survey-section-title {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.survey-intro,
.survey-section-text,
.contact-fields-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}

.survey-raffle-note {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-top: 12px;
}

.survey-image-wrap {
    text-align: center;
    margin-top: 20px;
}

.survey-main-image {
    display: block;
    width: 70%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
}

.survey-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 320px;

    padding: 12px 16px;

    border-radius: 12px;

    text-align: center;
    text-decoration: none; /* WICHTIG für <a> */

    line-height: 1.2;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.topic-card {
    background: #f8f6f3;
    border: 2px solid #ddd4c8;
    border-radius: 16px;
    min-height: 130px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.topic-card.active {
    background: #2d2d2d;
    border-color: #2d2d2d;
    color: #ffffff;
}

.topic-card:focus-visible {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.topic-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.topic-icon-wrap {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-icon {
    max-width: 32px;
    max-height: 32px;
    width: auto;
    height: auto;
}

.topic-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
}

.survey-label {
    font-weight: 600;
    margin-bottom: 6px;
}

.survey-input,
.survey-textarea {
    border-radius: 12px;
    border: 1px solid #cfc7bc;
    min-height: 50px;
    font-size: 1rem;
}

.survey-textarea {
    min-height: 120px;
}

.selection-block,
.contact-fields-block,
.privacy-block {
    background: #f8f6f3;
    border: 1px solid #e1dbd2;
    border-radius: 16px;
    padding: 16px;
}

.contact-fields-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.survey-check .form-check-input {
    margin-top: 0.3rem;
}

.survey-check label {
    font-size: 1rem;
    line-height: 1.4;
}

.survey-footer {
    padding: 20px 0 28px;
}

.footer-link {
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover,
.footer-link:focus {
    text-decoration: underline;
}

.footer-separator {
    margin: 0 10px;
    color: #666;
}

@media (min-width: 768px) {
    .survey-card {
        padding: 32px 28px;
    }

    .survey-logo {
        max-width: 380px;
    }

    .survey-main-image {
        width: 70%;
        max-width: 380px;
    }

    .topic-grid {
        gap: 16px;
    }

    .topic-card {
        min-height: 150px;
    }
}

.survey-button,
.topic-card {
    touch-action: manipulation;
}

nav[aria-label="Fortschritt der Umfrage"] ol {
    font-size: 0.9rem;
    color: #666;
}

nav[aria-label="Fortschritt der Umfrage"] li[aria-current="step"] {
    font-weight: 700;
    color: #000;
}

/* Accessibility helpers (Fallback für Bootstrap-Probleme) */

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

.visually-hidden-focusable:active,
.visually-hidden-focusable:focus {
    position: static !important;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

button.topic-card {
    appearance: none;
    -webkit-appearance: none;

    /* WICHTIG: Design NICHT entfernen */
    display: block;
    width: 100%;

    background: #f8f6f3;
    border: 2px solid #ddd4c8;
    border-radius: 16px;

    padding: 12px;
    cursor: pointer;

    color: #1f1f1f;
    text-align: center;
    font: inherit;
}

/* Sicherstellen, dass KEINE Linkfarbe greift */
.topic-card {
    color: #1f1f1f; /* oder dein Standard */
    text-decoration: none;
}

/* Aktiver Zustand */
.topic-card.active {
    color: #ffffff;
}

/* =========================================
   Admin / Auswertung – Desktop Breite
========================================= */

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Desktop größer machen */
@media (min-width: 1200px) {
    .admin-container {
        max-width: 1600px;
    }
}

/* Ultra Wide optional */
@media (min-width: 1600px) {
    .admin-container {
        max-width: 1800px;
    }
}

.table-responsive {
    overflow-x: auto;
}