/* ============================================================
 *   Global Layout
 *   ============================================================ */

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
   /* background: #ffffff;
    color: #000;*/
    text-align: center;

        font-family: "Comic Neue", "Nunito", sans-serif;
        background: linear-gradient(180deg, #fffafc 0%, #ffeef5 100%);
        color: #333;

}

h1 {
    margin-top: 10px;
    font-size: 2.2rem;
    color: #003366;
}

/* ============================================================
 *   Skip-Link (Barrierefreiheit: Tastatur-Sprung zum Inhalt)
 *   ============================================================ */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #c6285b;
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

/* ============================================================
 *   Sichtbarer Fokus-Ring (Barrierefreiheit für Tastaturnutzung)
 *   ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
.tapzone:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #003366;
    outline-offset: 3px;
}


/* ============================================================
 *   Header (Logo + Hamburger + Breadcrumb)
 *   ============================================================ */

.site-header {
    position: relative;
    padding: 10px 20px;
    text-align: center;   /* LOGO ZENTRIEREN */
}

/* Logo */
.logo {
    display: inline-block;   /* wichtig für Zentrierung */
    margin-top: 10px;
}

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

/* Mobile: etwas kleiner */
@media (max-width: 480px) {
    .logo img {
        max-width: 240px;
    }
}


/* Hamburger rechts */
.hamburger {
    all: unset;                 /* setzt alle geerbten Button-Styles zurück */
    -webkit-appearance: none;
    appearance: none;

    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    color: #c6285b;                /* Farbe der Striche */
    user-select: none;
}

.hamburger:hover,
.hamburger:focus {
    color: #c6285b;              /* optisches Feedback, kein Kasten */
    outline: none;
}

.hamburger:focus-visible {
    outline: 2px solid #c6285b;  /* Fokus-Ring nur bei Tastaturnutzung, für Barrierefreiheit wichtig */
    outline-offset: 4px;
    border-radius: 4px;
}


/* Mobile Menu */
#mobile-menu {
display: none;
position: absolute;
right: 20px;
top: 70px;
background: #fff;
border-radius: 10px;
padding: 12px;
box-shadow: 0 2px 10px rgba(0,0,0,0.15);
z-index: 100;
}

#mobile-menu a,
#mobile-menu span {
display: block;
padding: 10px 0;
color: #0a2a66;
text-decoration: none;
font-size: 1rem;
}

#mobile-menu a:hover {
background: #f2f2f2;
}

#mobile-menu a.active {
    color: #c6285b;
    font-weight: bold;
}


/* ============================================================
 *   Breadcrumb (zentriert, dunkler Kasten, runde Ecken)
 *   ============================================================ */

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    margin: 10px auto 20px;
    padding: 10px 15px;

    background: #2b2b2b;        /* dunkler grauer Kasten */
    border-radius: 12px;        /* runde Ecken */
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #ffffff;             /* weißer Text */
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;         /* runde Ecken */
    background: #3a3a3a;        /* etwas helleres Grau */
}

.breadcrumb a:hover {
    background: #4a4a4a;        /* Hover-Grau */
}

.breadcrumb .active {
    background: #c6285b;        /* rosa für aktive Seite */
    color: white;
    font-weight: bold;
}



/* ============================================================
 *   Global Buttons
 *   ============================================================ */

.btn,
button {
    display: block;
    width: 80%;
    max-width: 300px;
    padding: 15px 20px;
    background-color: #c6285b;
    color: white;
    font-size: 1.2rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    margin: 15px auto;
    transition: background-color 0.2s;
}

.btn:hover,
button:hover {
    background-color: #a81f4a;
}

@media (max-width: 480px) {
    .btn,
    button {
        width: 90%;
        font-size: 1.1rem;
        padding: 14px;
    }
}


/* ============================================================
 *   Menu (index.html)
 *   ============================================================ */

.menu {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}


/* ============================================================
 *   Formulare (ask.html, answer.html)
 *   ============================================================ */

.form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
    padding: 10px;
}

.form label {
    display: block;
    margin-top: 15px;
    font-size: 1.1rem;
}

.form input,
.form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.form textarea {
    min-height: 120px;
    resize: vertical;
}

#result {
margin-top: 20px;
font-size: 1.1rem;
word-wrap: break-word;
}


/* ============================================================
 *   Frage-Box (answer.html)
 *   ============================================================ */

.question-box {
    background: #f2f2f2;
   /* border-left: 4px solid #003366;*/
    padding: 16px;
    margin: 20px auto;
    max-width: 400px;
    border-radius: 6px;
    text-align: left;
}

.question-box h2 {
    margin: 0 0 10px 0;
    color: #003366;
    font-size: 1.4rem;
}

.question-box p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}


/* ============================================================
 *   Info-Text (answer.html)
 *   ============================================================ */

.info-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}


/* ============================================================
 *   Antwort-Buttons (Ja / Nein / Vielleicht) — Legacy, aktuell ungenutzt
 *   ============================================================ */

.answerBtn {
    display: block;
    width: 80%;
    max-width: 300px;
    padding: 15px;
    margin: 10px auto;
    font-size: 1.3rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: white;
    transition: background-color 0.2s;
}

/* Ja = Grün */
.answerBtn[data-answer="Ja"] {
    background-color: #4CAF50;
}
.answerBtn[data-answer="Ja"]:hover {
    background-color: #43a047;
}

/* Nein = Rot */
.answerBtn[data-answer="Nein"] {
    background-color: #E53935;
}
.answerBtn[data-answer="Nein"]:hover {
    background-color: #d32f2f;
}

/* Vielleicht = Orange */
.answerBtn[data-answer="Vielleicht"] {
    background-color: #FB8C00;
}
.answerBtn[data-answer="Vielleicht"]:hover {
    background-color: #F57C00;
}


/* ============================================================
 *   View Page (view.html)
 *   ============================================================ */

.output-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 10px;
    background: #f5f5f5;
    text-align: left;
    font-size: 1.1rem;
    word-wrap: break-word;
}


/* ============================================================
 *   Footer
 *   ============================================================ */

.legal-footer {
    margin-top: 40px;
    padding: 20px;
    background: #f5f5f5;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #ddd;
}

.legal-footer a {
    color: #d63384;  /* Dunkles Rosa - konsistent mit Theme */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-footer a:hover {
    color: #a82361;  /* Dunkleres Rosa beim Hover */
    text-decoration: underline;
}

.legal-footer .donate-link {
    color: #d63384;
    font-weight: 600;
}

.legal-footer .donate-link:hover {
    color: #a82361;
}

/* ============================================================
 *   Modal (Help)
 *   ============================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0,0,0,0.6);
    overflow: hidden;
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 25px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.modal-content ul,
.modal-content ol {
    text-align: left;
    margin-left: 20px;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}


/* ============================================================
 *   Answer Icons
 *   ============================================================ */

.answer-icons {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.answer-icons li {
    font-size: 20px;
    margin: 5px 0;
}

/* ============================================================
 *   Spickzettel (answer.html) — interaktiv, Ja/Nein/Vielleicht
 *   ============================================================ */

.spickzettel-bg {
    background-image: url("../img/wdmmgo_Frage.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

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

    /* KORREKTES Seitenverhältnis des generierten Bildes */
    aspect-ratio: 3 / 4;

    position: relative;
    margin: 20px auto;
}

/* Klickbereiche: jetzt relativ zentriert statt in festen Pixeln,
   damit die Markierung auf jeder Bildschirmgröße korrekt sitzt */
.tapzone {
    position: absolute;
    width: 40%;
    height: 8%;
    left: 18%;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
    box-sizing: border-box;

    border-radius: 8px;
}

.tapzone:hover,
.tapzone:focus-visible {
    background: rgba(198, 40, 91, 0.08);
}

/* X sichtbar machen — jetzt Teil des Flex-Layouts statt fester Pixelposition */
.tapzone .mark {
    position: static;
    font-size: 1.4rem;
    font-weight: 700;
    color: #c6285b;
    display: none;
    pointer-events: none;
}

/* Positionen der Klickbereiche selbst (unverändert, prozentual) */
#tap-ja        { top: 41%; }
#tap-nein      { top: 49%; }
#tap-vielleicht{ top: 58%; }


#view-spickzettel {
background-image: url("../img/wdmmgo_Frage.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
width: 100%;
max-width: 600px;
aspect-ratio: 3 / 4;
position: relative;
margin: 20px auto;
}

/* Klickbereiche */
#view-ja, #view-nein, #view-vielleicht {
position: absolute;
width: 40%;
height: 8%;
left: 20%;
}

/* Prozentuale Positionen statt Pixel */
#view-ja        { top: 41%; }
#view-nein      { top: 49%; }
#view-vielleicht{ top: 58%; }

/* X-Markierung */
#view-spickzettel .mark {
position: absolute;
top: 5%;          /* leicht nach unten innerhalb der Tapzone */
left: 17%;         /* mittig über der Box */
font-size: 2.6rem;
font-weight: 700;
color: #c6285b;
display: none;
pointer-events: none;
z-index: 10;
}
.intro-box {
    max-width: 600px;
    margin: 30px auto;
    background: #f2f2f2;
    padding: 24px;
    border-radius: 10px;
    font-size: 1.1em;
    line-height: 1.6em;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.intro-steps {
    margin: 20px 0;
    padding-left: 20px;
}

.intro-steps li {
    margin-bottom: 8px;
}
.primary-action {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #c6285b;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    transition: background 0.2s ease;
}

.primary-action:hover {
    background: #a81f4a;
}
/* Stats direkt unter der H1 */
.stats {
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #c6285b;
}
.help-button {
    margin-top: 20px;
    padding: 10px 16px;
    background: #c6285b;
    color: white;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.help-button:hover {
    background: #a81f4a;
}

.thx-image {
    text-align: center;
    margin: 20px 0;
}

.thx-image img {
    max-width: 350px;
    width: 100%;
    height: auto;
    display: inline-block;
}
.donate-link {
    color: #c6285b;
    font-weight: 600;
    text-decoration: none;
}
.donate-link:hover {
    text-decoration: underline;
}
.frage-image {
    text-align: center;
    margin: 20px 0;
}

.frage-image img {
    max-width: 350px;   /* oder 100%, wenn du es größer willst */
    width: 100%;
    height: auto;
    display: inline-block;
}

.error-msg {
    color: #b30000;
    font-weight: 600;
    margin-top: 5px;
}
