/* Landing-Page: Spielauswahl Wortspatz / Wortbiene / Worthamster / Wortkreuz */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #2a2a2a;
    background: linear-gradient(160deg, #fff8df 0%, #ffe7a8 60%, #f3c641 100%);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 18px 36px;
    min-height: 100vh;
    min-height: 100dvh;
}

.landing {
    max-width: 820px;
    width: 100%;
    text-align: center;
}

.landing-header {
    margin-bottom: 18px;
}

.landing-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #5e4326;
    margin: 0 0 4px;
    letter-spacing: 0.01em;
}

.landing-sub {
    font-size: 0.95rem;
    color: #6b5a2a;
    opacity: 0.85;
    margin: 0;
}

/* ---- WebApp-Install-Hinweis ---- */
.install-hint {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border: 2px solid #f3c641;
    border-radius: 16px;
    padding: 14px 44px 14px 16px;
    margin-bottom: 22px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(180, 130, 0, 0.14);
}

.install-hint__icon {
    color: #b97a05;
    flex: 0 0 auto;
    padding-top: 2px;
}

.install-hint__body {
    flex: 1 1 auto;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #4a3a00;
}

.install-hint__body strong {
    display: block;
    font-size: 0.98rem;
    color: #5e4326;
    margin-bottom: 2px;
}

.install-hint__body p {
    margin: 0 0 6px;
}

.install-hint__how summary {
    cursor: pointer;
    font-size: 0.86rem;
    color: #b97a05;
    font-weight: 600;
    padding: 2px 0;
    list-style: none;
}
.install-hint__how summary::-webkit-details-marker { display: none; }
.install-hint__how summary::after {
    content: " ▾";
    font-size: 0.8em;
}
.install-hint__how[open] summary::after { content: " ▴"; }

.install-hint__how ol {
    margin: 6px 0 0;
    padding-left: 22px;
    font-size: 0.88rem;
    line-height: 1.45;
}
.install-hint__how li { margin-bottom: 4px; }

.install-hint__result {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #f3c641;
    color: #5e4326;
    font-weight: 600;
    list-style: none;
    margin-left: -22px;
    padding-left: 0;
}

.install-hint__app-icon {
    width: 18px;
    height: 18px;
    vertical-align: -4px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    margin: 0 2px;
}

.install-hint__close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: 0;
    font-size: 1.4rem;
    line-height: 1;
    color: #b97a05;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 999px;
}
.install-hint__close:hover {
    background: #fde7a3;
    color: #4a3a00;
}

/* ---- Karten-Grid (festes 2×2) ---- */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 18px 18px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(180, 130, 0, 0.16);
    text-decoration: none;
    color: inherit;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    border: 3px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(180, 130, 0, 0.24);
    color: inherit;
    text-decoration: none;
}

.card-spatz:hover   { border-color: #7d5a3a; }
.card-biene:hover   { border-color: #f3a93a; }
.card-hamster:hover { border-color: #b97a05; }
.card-kreuz:hover   { border-color: #7a4dbf; }

.card .illu {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 200px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #faf6ea;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card .illu-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card .illu-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.card .title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.card-spatz   .title { color: #5e4326; }
.card-biene   .title { color: #b97a05; }
.card-hamster .title { color: #8a5a00; }
.card-kreuz   .title { color: #5e3a99; }

.card .desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.35;
    text-align: center;
}

.landing-footer {
    font-size: 0.8rem;
    color: #6b5a2a;
    opacity: 0.8;
}

.landing-footer a {
    color: inherit;
    text-decoration: underline;
}

.landing-footer a:hover {
    color: #4a3a00;
}

.landing-footer .sep {
    margin: 0 8px;
    opacity: 0.5;
}

.landing-footer .donate-link { opacity: 0.85; }
.landing-footer .donate-link:hover { opacity: 1; }

/* ---- Datenschutz-Banner ---- */
.privacy-banner {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    padding: 18px;
}

.privacy-banner.hidden { display: none; }

.privacy-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 22px 18px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.privacy-card h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: #2a2a2a;
}

.privacy-card p {
    margin: 0 0 12px;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.5;
}

.privacy-details {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: #555;
}

.privacy-details summary {
    cursor: pointer;
    color: #6b5a2a;
    font-weight: 600;
    padding: 4px 0;
}

.privacy-details ul {
    margin: 8px 0 0;
    padding-left: 20px;
    line-height: 1.45;
}

.privacy-details li { margin-bottom: 6px; }

.privacy-actions {
    text-align: right;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.privacy-ok {
    appearance: none;
    border: 0;
    background: #2a2a2a;
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.privacy-ok:hover { background: #1a1a1a; }

.privacy-decline {
    appearance: none;
    border: 1.5px solid #b8b8b8;
    background: #ffffff;
    color: #444;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.privacy-decline:hover {
    background: #f5f5f5;
    border-color: #888;
    color: #222;
}

.privacy-details code {
    background: #f5f0db;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

@media (max-width: 520px) {
    .landing-title { font-size: 1.4rem; }
    .cards { gap: 14px; }
    .card { padding: 16px 14px 14px; border-radius: 18px; }
    .card .illu { max-width: 160px; margin-bottom: 10px; }
    .card .title { font-size: 1.1rem; }
    .install-hint { padding: 12px 40px 12px 14px; gap: 10px; }
    .privacy-card { padding: 18px 18px 16px; }
    .privacy-banner { align-items: center; }
}
