:root {
    --background: #1b232b;
    --foreground: #eaf1f7;
    --accent: #bac5d4;
    --accent-hover: #8fa6bd;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    /* Grain-Effekt */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='grain'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' /></filter><rect width='100%' height='100%' filter='url(%23grain)' opacity='0.12'/></svg>");
}

header, footer {
    background: linear-gradient(90deg, var(--accent) 60%, var(--accent-hover) 100%);
    padding: 0.8rem 1.5rem; /* vorher: 1.5rem */
    text-align: center;
    box-shadow: 0 2px 12px rgba(125,160,195,0.10);
    color: var(--background);
    border-radius: 0 0 24px 24px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0; /* Noch weniger Abstand */
    min-height: 0;
}

.header-row {
    display: flex;
    align-items: baseline; /* Baseline statt center */
    justify-content: center;
    gap: 5rem;
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    border-radius: 24px 24px 0 0; /* oben-links, oben-rechts, unten-rechts, unten-links */
    font-size: 1rem;
    letter-spacing: 0.02em;
    z-index: 10;
    overflow: hidden;
}

h1 {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin: 0 0 0.5em 0;
    color: var(--background);
    text-shadow:
        0 2px 8px rgba(125,160,195,0.10),
        0 0 8px var(--accent-hover);
}

h2 {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 0.5em 0;
    color: var(--background);
    text-shadow: 0 2px 8px rgba(125,160,195,0.10);
}

a, button {
    color: var(--background);
    background: var(--accent);
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

a:hover, button:hover,
.big-button:hover,
.footer-nav-btn:hover,
.joker-btn:hover:not(.used),
.heart-btn:hover {
    box-shadow: 0 0 16px 4px var(--accent-hover), 0 2px 12px rgba(125,160,195,0.15);
    background: var(--accent-hover);
    color: var(--foreground);
    transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}

main {
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: rgba(191, 207, 231, 0.12);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--accent-hover);
    font-size: 2.1rem;
}

.card p, .card ul {
    font-size: 2rem;   /* oder dein gewünschter Wert */
    line-height: 1.3;
    margin-bottom: 0;
    margin-top: 0.5rem;
    color: var(--foreground);
}

.center {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.center.row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.2rem;
}

.big-button {
    font-size: 1.3rem;
    padding: 1rem 2.5rem;
    border-radius: 32px;
    background: linear-gradient(90deg, var(--accent) 60%, var(--accent-hover) 100%);
    box-shadow: 0 4px 16px rgba(125,160,195,0.15);
    font-weight: 600;
    letter-spacing: 0.03em;
    border: none;
    color: var(--background);
    transition: background 0.2s, box-shadow 0.2s;
}

.big-button:hover {
    background: linear-gradient(90deg, var(--accent-hover) 60%, var(--accent) 100%);
    color: var(--foreground);
    box-shadow: 0 6px 24px rgba(125,160,195,0.25);
}

.hearts {
    display: flex;
    gap: 1rem;
    font-size: 3.5rem; /* vorher: 2.5rem */
}

.heart {
    color: #bfcfe7;
    font-size: 1.2em;
}

body, footer {
    box-sizing: border-box;
}

.heart-btn {
    background: none;
    border: none;
    font-size: 3.5rem;
    color: #bfcfe7;
    cursor: pointer;
    transition: color 0.2s, box-shadow 0.2s;
    padding: 0; /* Padding entfernt */
    width: 1em; /* Breite auf Icon begrenzt */
    height: 1em; /* Höhe auf Icon begrenzt */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI Symbol', 'Arial', sans-serif;
    line-height: 1;
}

.heart-btn:focus {
    outline: none;
    color: var(--accent-hover);
}

.heart-btn:hover {
    box-shadow: none; /* Gloweffekt entfernt */
    background: none !important;
    color: var(--accent-hover);
    transition: color 0.2s;
}

/* Neu hinzugefügter CSS-Code für das Popup */
#solution-popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 20;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: var(--background);
    color: var(--foreground);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.popup-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-hover);
}

.popup-content p {
    font-size: 2.1rem;   /* gleiche Größe wie in den Karten */
    line-height: 1.3;
    margin: 1rem 0;
}

#next-question-btn {
    margin-top: 1.5rem;
}

.footer-nav-btn {
    background: var(--accent);
    color: var(--background);
    border: none;
    border-radius: 24px;
    padding: 0.7em 1.5em;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0.5em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.footer-nav-btn:hover {
    background: var(--accent-hover);
    color: var(--foreground);
}

#rules-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27,35,43,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

#joker-row {
    margin-top: 0;    /* Kein Abstand mehr nach oben */
    margin-bottom: 1.2rem;
}

.joker-btn {
    background: var(--accent);
    color: var(--background);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(125,160,195,0.10);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.joker-btn.used {
    background: #ccc;
    color: #888;
    opacity: 0.6;
}

.joker-btn.used .joker-icon::after {
    content: "✓";
    position: absolute;
    right: 6px;
    bottom: 6px;
    font-size: 1.2rem;
    color: #4caf50;
}

.joker-icon {
    font-size: 1.7rem;
    pointer-events: none;
}

#rules-btn {
    font-size: 2.4rem;
    font-weight: 800;
    background: none;
    color: #1b232b;
    border: none;
    border-radius: 24px;
    padding: 0.4em 1em;
    margin: 0;
    cursor: pointer;
    line-height: 1.1;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    height: auto;
    box-shadow: none;
}

#rules-btn:hover, #rules-btn:focus {
    background: var(--accent-hover);
    color: var(--foreground);
    outline: none;
    box-shadow: 0 0 16px 4px var(--accent-hover), 0 2px 12px rgba(125,160,195,0.15);
}

.footer-text {
    display: inline-block;
    margin: 0 2rem;
}