:root {
    --primary-color: #ee383a;
    --accent-color: #fecd08;
    --bg-light: #fff8e1;
    --text-dark: #222;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 860px;
    margin: auto;
    background: #fff;
    padding: 30px 20px;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 12px;
}

.logo img {
    height: 80px;
    max-width: 100%;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

input[type="search"] {
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 220px;
    transition: box-shadow 0.3s;
}

input[type="search"]:focus {
    outline: none;
    box-shadow: 0 0 6px var(--primary-color);
}

.ask-form textarea, form textarea {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.ask-form button, .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.ask-form button:hover, .submit-btn:hover {
    background: #d62828;
    transform: translateY(-1px);
}

.question, .question-box {
    padding: 18px 0;
    border-bottom: 1px solid #ddd;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.question a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    font-size: 17px;
}

.question small {
    color: #777;
    display: block;
    margin-top: 5px;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a {
    margin: 0 6px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}
.pagination a:hover {
    text-decoration: underline;
}

.success, .error {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}
.success {
    background-color: #e0ffe0;
    color: var(--primary-color);
}
.error {
    background-color: #ffe0e0;
    color: #b30000;
}

.fun-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    background: linear-gradient(90deg, #fff176, #fecd08);
    color: #000;
    border: 2px dashed #ee383a;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px auto;
    display: block;
    max-width: 220px;
    transition: all 0.2s ease-in-out;
}
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.fun-button:hover {
    background: #f8c600;
    transform: scale(1.03);
}

.tag-filter, .tag-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.tag-filter a, .tag-checkbox {
    padding: 6px 14px;
    background-color: #eee;
    color: #333;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tag-filter a:hover, .tag-checkbox:hover {
    background-color: var(--accent-color);
}
.tag-filter .active, .tag-checkbox.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tag-checkbox input[type="checkbox"] {
    display: none;
}

.tag-label {
    display: inline-block;
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 13px;
    margin-right: 6px;
    margin-top: 4px;
    color: #333;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.selected-tags .tag-pill {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.back-link {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}
.back-link:hover {
    text-decoration: underline;
}

.answer-box {
    background: var(--bg-light);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.answer-tags {
    margin-top: 5px;
}

@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    input[type="search"] {
        width: 100%;
    }
    .tag-filter, .tag-checkbox-group {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 6px;
    }
    .tag-filter a,
    .tag-checkbox {
        font-size: 12px;
        padding: 4px 10px;
    }
}


.question:nth-child(even),
.answer-box:nth-child(even) {
    background-color: #fecd08;  /* Gelb */
    color: #000;
}
.question:nth-child(odd),
.answer-box:nth-child(odd) {
    background-color: #ee383a;  /* Rot */
    color: #fff;
}

.question,
.answer-box {
    border-radius: 8px;
    padding: 12px;
    transition: background 0.3s;
}


.question:nth-child(even) small,
.answer-box:nth-child(even) small {
    color: #ee383a; /* rot auf gelbem Hintergrund */
}
.question:nth-child(odd) small,
.answer-box:nth-child(odd) small {
    color: #fecd08; /* gelb auf rotem Hintergrund */
}


/* Neuer Hero-Header */
.hero {
    background-color: #fecd08;
    color: #111;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 18px;
    text-align: center;
}

/* Frage-Karte */
.question {
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}
.question:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Button-Bar */
.button-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    justify-content: space-between;
}

/* Buttons */

    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    transition: background 0.3s, transform 0.2s;
}
.ask-form button:hover,
.fun-button:hover {
    transform: translateY(-2px);
}

/* Eingabeformular optisch hervorheben */
.ask-form {
    background-color: #fff7e0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Form-Titel */
.ask-form h2 {
    margin-top: 0;
    color: #ee383a;
}

/* Verbesserter Abstand bei Tags */
.ask-form small {
    display: block;
    margin-bottom: 8px;
}

/* Responsive Buttonbar */
@media (max-width: 600px) {
    .button-bar {
        flex-direction: column;
    }
}


.ask-form button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #006400;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}
.ask-form button:hover {
    background: #004d00;
}

.fun-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    background: linear-gradient(90deg, #fff176, #fecd08);
    color: #000;
    border: 2px dashed #ee383a;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px auto;
    display: block;
    max-width: 220px;
    transition: all 0.2s ease-in-out;
}
.fun-button:hover {
    transform: scale(1.05);
    background: #ffe066;
}


/* Zoom-Effekt auf Fragekarten */
.question {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.question:hover {
    transform: scale(1.015);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}


/* Klickbare Fragenbox */
.question-link {
    display: block;
    text-decoration: none;
}

/* Alternierende Farben über .question-link */
.question-link:nth-child(even) .question {
    background-color: #fecd08;
    color: #000;
}
.question-link:nth-child(odd) .question {
    background-color: #ee383a;
    color: #fff;
}
.question-link:nth-child(even) .question small {
    color: #ee383a;
}
.question-link:nth-child(odd) .question small {
    color: #fecd08;
}

/* Zoom-Effekt */
.question {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.question-link:hover .question {
    transform: scale(1.015);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}


/* Begrüßung über dem Formular */
.intro-box {
    background-color: #fff8dc;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}


.hero-subtext {
    display: block;
    font-size: 15px;
    font-weight: normal;
    color: #333;
    margin-top: 6px;
}


.gdpr-note {
    font-size: 13px;
    color: #666;
    margin-top: 20px;
    line-height: 1.5;
}



/* Suchfeld oben neben dem Logo */
.top-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.top-bar form {
    margin-left: auto;
}

input[type="search"] {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 220px;
}

/* Tag-Filter unterhalb des Formulars */
.tag-filter {
    margin-top: 20px;
}

.tag-filter strong {
    display: block;
    margin-bottom: 6px;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-bar form {
        margin-left: 0;
        width: 100%;
    }

    input[type="search"] {
        width: 100%;
    }

    .tag-filter {
        margin-top: 10px;
    }
    
    
/* Datenschutz / Impressum */
.legal {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.legal h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.legal a {
    color: #006400;
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}
.vote-btn.voted {
    background-color: #ffd966;
    font-weight: bold;
}

    
}
