:root {
    --primary-yellow: #ffeb3b;
    --primary-orange: #ff9800;
    --primary-green: #00875f;
    --primary-blue: #2196f3;
    --brand-blue: #306e7f;
    --text-dark: #1c1c1e;
    --text-light: #555555;
    --bg-light: #fafafa;
    --bg-soft: #fff8da;
    --white: #ffffff;
    --line: rgba(28, 28, 30, 0.08);
    --shadow: 0 20px 60px rgba(28, 28, 30, 0.08);
    --focus: #1d6da3;
    --topbar-offset: 104px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-light);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(255, 235, 59, 0.24), transparent 24%),
        radial-gradient(circle at 85% 18%, rgba(255, 152, 0, 0.18), transparent 20%),
        linear-gradient(180deg, #fffdf6 0%, #fafafa 30%, #fff8ec 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 56px 0;
}

.section[id],
[id^="age-"],
#hoerspiele {
    scroll-margin-top: var(--topbar-offset);
}

/* ---------- Topbar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1120px, calc(100% - 2rem));
    margin: 16px auto 0;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(28, 28, 30, 0.05);
}

.brand,
.section-heading h2,
.hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 1rem;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.brand-name {
    color: var(--brand-blue);
}

.topbar-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex: 1;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid rgba(28, 28, 30, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.menu-toggle-label {
    line-height: 1;
}

.menu-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.menu-toggle-icon span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.nav-links a,
.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(255, 235, 59, 0.5);
    color: var(--text-dark);
}

.nav-links a[aria-current="page"] {
    background: rgba(255, 235, 59, 0.38);
}

.nav-link {
    background: #f0f0f0;
}

/* ---------- Hero (Startseite) ---------- */

.hero {
    padding-top: 48px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 420px);
    gap: 32px;
    align-items: center;
    padding: 36px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 235, 59, 0.12) 0%, rgba(255, 255, 255, 0.92) 100%);
    border: 1px solid rgba(255, 152, 0, 0.14);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 700;
    color: #8a5d00;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.05;
    max-width: 12ch;
    overflow-wrap: break-word;
}

.hero-copy {
    margin: 18px 0 0;
    max-width: 680px;
    font-size: clamp(17px, 2.8vw, 20px);
    color: var(--text-light);
}

.store-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 8px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(28, 28, 30, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover,
.store-btn:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(28, 28, 30, 0.16);
}

.btn-ios {
    background: rgba(0, 0, 0, 0.94);
}

.btn-android {
    background: var(--primary-green);
}

.store-badge {
    display: block;
    width: auto;
    max-width: 100%;
    height: 56px;
}

.store-badge-google {
    height: 84px;
    margin: -14px 0;
}

.store-note {
    margin: 12px 0 0;
    color: var(--text-light);
    font-size: 14px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-points span,
.kids-hero-points span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 152, 0, 0.15);
    font-size: 14px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% 10%;
    border-radius: 32px;
    background: radial-gradient(circle, rgba(255, 235, 59, 0.45), rgba(255, 152, 0, 0.08) 65%, transparent 70%);
    filter: blur(8px);
}

.hero-logo {
    position: relative;
    width: min(100%, 280px);
    border-radius: 32px;
    box-shadow: 0 24px 56px rgba(255, 152, 0, 0.24);
}

/* ---------- Screenshots ---------- */

.gallery-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding-top: 8px;
}

.screenshot-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
}

/* Die Bilder enthalten Statusleiste und Dynamic Island bereits, der Rahmen ist nur das Gehäuse */
.screenshot-wrapper {
    position: relative;
    flex: 0 1 200px;
    min-width: 0;
    padding: 5px;
    border-radius: 32px;
    background: linear-gradient(160deg, #2c2c30, #141416);
    box-shadow: 0 28px 60px rgba(28, 28, 30, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-row .screenshot-wrapper:nth-child(odd) {
    margin-top: 30px;
}

@media (hover: hover) {
    .screenshot-wrapper:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 36px 72px rgba(28, 28, 30, 0.28);
    }
}

.screenshot-img {
    border-radius: 27px;
}

/* ---------- Section headings & grids ---------- */

.section-heading-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-intro {
    margin: 14px 0 0;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.75;
}

.section-intro a {
    text-decoration: underline;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.08;
}

.feature-grid,
.content-grid,
.team-grid,
.kids-teaser-grid {
    display: grid;
    gap: 24px;
}

.feature-grid,
.content-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* Vier Feature-Karten: 2 × 2 statt 3 + 1 auf mittleren Breiten */
@media (min-width: 561px) and (max-width: 1060px) {
    .feature-grid,
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card,
.content-card,
.team-card,
.disclaimer-box {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.feature-card,
.content-card,
.team-card {
    padding: 28px;
}

.feature-card,
.team-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
    .feature-card:hover,
    .team-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 60px rgba(28, 28, 30, 0.1);
    }
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    padding: 0 12px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.icon-box svg {
    width: 26px;
    height: 26px;
}

.icon-blue {
    color: var(--primary-blue);
    background: rgba(33, 150, 243, 0.12);
}

.icon-green {
    color: var(--primary-green);
    background: rgba(0, 135, 95, 0.12);
}

.icon-orange {
    color: var(--primary-orange);
    background: rgba(255, 152, 0, 0.14);
}

.icon-teal {
    color: var(--brand-blue);
    background: rgba(48, 110, 127, 0.12);
}

.feature-card h3,
.content-card h3,
.team-name {
    margin: 0 0 10px;
    font-size: 22px;
}

.feature-card p,
.content-card p,
.team-bio,
.disclaimer-box p,
.copyright {
    margin: 0;
    color: var(--text-light);
}

.content-card p,
.team-bio,
.disclaimer-box p {
    font-size: 16px;
    line-height: 1.75;
}

/* ---------- Kids-Teaser (Startseite) ---------- */

.kids-teaser-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.kids-teaser-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 6px 16px;
    align-items: center;
    padding: 20px;
    border-radius: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
    .kids-teaser-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 60px rgba(28, 28, 30, 0.12);
    }
}

.kids-teaser-card img {
    grid-row: span 3;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(28, 28, 30, 0.14);
}

.kids-teaser-card h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.kids-teaser-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.kids-teaser-age {
    justify-self: start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kids-teaser-card-2-3 {
    background: linear-gradient(180deg, rgba(255, 224, 229, 0.72), rgba(255, 255, 255, 0.96));
}

.kids-teaser-card-2-3 .kids-teaser-age {
    color: #a04b5f;
}

.kids-teaser-card-4-6 {
    background: linear-gradient(180deg, rgba(255, 245, 184, 0.78), rgba(255, 255, 255, 0.96));
}

.kids-teaser-card-4-6 .kids-teaser-age {
    color: #7a5d00;
}

.kids-teaser-card-7-11 {
    background: linear-gradient(180deg, rgba(209, 238, 255, 0.86), rgba(255, 255, 255, 0.96));
}

.kids-teaser-card-7-11 .kids-teaser-age {
    color: #1d6da3;
}

.kids-teaser-cta {
    margin-top: 24px;
    text-align: center;
}

.button-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1c1c1e, #4a4a4f);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(28, 28, 30, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-dark:hover,
.button-dark:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(28, 28, 30, 0.24);
}

/* ---------- Team, Download, Hinweis, Footer ---------- */

.team-section {
    padding-bottom: 36px;
}

.team-card {
    text-align: center;
}

.team-img {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 12px 24px rgba(28, 28, 30, 0.12);
}

.team-card:nth-child(1) .team-img {
    border-color: var(--primary-orange);
}

.team-card:nth-child(2) .team-img {
    border-color: var(--primary-yellow);
}

.team-role {
    margin: 0 0 18px;
    color: #b45f00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.disclaimer-section {
    padding-top: 16px;
}

.download-section {
    padding-top: 8px;
}

.download-panel {
    padding: 34px;
    text-align: center;
    border-radius: 32px;
    border: 1px solid rgba(255, 152, 0, 0.12);
    background: linear-gradient(180deg, rgba(255, 235, 59, 0.14), rgba(255, 255, 255, 0.94));
    box-shadow: var(--shadow);
}

.download-panel h2 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.08;
}

.download-panel p {
    max-width: 700px;
    margin: 16px auto 0;
    color: var(--text-light);
}

.download-panel .download-note {
    margin-top: 10px;
    font-size: 15px;
}

.store-buttons-centered {
    justify-content: center;
}

.disclaimer-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    background: #fffde7;
    border-left: 5px solid var(--primary-orange);
}

.disclaimer-box strong {
    display: block;
    margin-bottom: 10px;
}

.footer {
    margin-top: 32px;
    padding: 56px 20px 72px;
    text-align: center;
    background: #111111;
    color: #cccccc;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #cccccc;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--primary-yellow);
}

.footer :focus-visible {
    outline-color: var(--primary-yellow);
}

.copyright {
    margin-top: 20px;
    font-size: 12px;
    color: #a8a8a8;
}

/* ---------- Rechtliches ---------- */

.legal-page {
    min-height: 100vh;
}

.legal-shell {
    width: min(920px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(28, 28, 30, 0.06);
}

.legal-card {
    margin-top: 20px;
    padding: 32px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.legal-card h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.legal-card h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.legal-card a {
    text-decoration: underline;
}

.legal-section-block p,
.legal-section-block li {
    color: var(--text-light);
}

.legal-section-block {
    padding-top: 18px;
    border-top: 1px solid rgba(28, 28, 30, 0.08);
}

.legal-section-block + .legal-section-block {
    margin-top: 18px;
}

/* ---------- Kids-Seite: Hero ---------- */

.kids-main {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.kids-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 40px;
}

.kids-hero-main {
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 36px;
    box-shadow: var(--shadow);
    background: linear-gradient(150deg, rgba(255, 245, 184, 0.85) 0%, rgba(255, 232, 238, 0.7) 55%, rgba(209, 238, 255, 0.7) 100%);
}

.kids-hero-main h1 {
    margin: 0;
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.kids-hero-claim {
    margin: 16px 0 0;
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.kids-hero-copy {
    max-width: 700px;
    margin: 18px 0 0;
    font-size: 18px;
    color: var(--text-light);
}

.kids-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.kids-hero-main .button-dark {
    margin-top: 26px;
}

.kids-hero-covers {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.kids-hero-cover {
    position: absolute;
    width: min(58%, 230px);
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(28, 28, 30, 0.22);
    transition: transform 0.35s ease;
}

.kids-hero-cover-1 {
    z-index: 3;
    transform: rotate(-7deg) translateX(-30%);
}

.kids-hero-cover-2 {
    z-index: 2;
    transform: rotate(2deg) translateY(8%);
}

.kids-hero-cover-3 {
    z-index: 1;
    transform: rotate(11deg) translateX(30%);
}

@media (hover: hover) {
    .kids-hero-covers:hover .kids-hero-cover-1 {
        transform: rotate(-10deg) translateX(-42%);
    }

    .kids-hero-covers:hover .kids-hero-cover-3 {
        transform: rotate(14deg) translateX(42%);
    }
}

/* ---------- Kids-Seite: Altersauswahl ---------- */

.kids-library-head {
    margin-bottom: 18px;
}

.kids-library-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.kids-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 8px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(28, 28, 30, 0.05);
}

.kids-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 8px 12px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kids-tab img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(28, 28, 30, 0.14);
}

.kids-tab-text {
    display: grid;
    min-width: 0;
    line-height: 1.25;
}

.kids-tab-text strong {
    font-size: 17px;
}

.kids-tab-text small {
    color: var(--text-light);
    font-size: 13px;
}

.kids-tab:hover {
    background: rgba(28, 28, 30, 0.04);
}

.kids-tab[aria-selected="true"] {
    background: var(--tab-soft);
    border-color: var(--tab-accent);
}

.kids-tab-2-3 {
    --tab-soft: #ffe8ee;
    --tab-accent: #ff8cab;
}

.kids-tab-4-6 {
    --tab-soft: #fff4c4;
    --tab-accent: #ffb300;
}

.kids-tab-7-11 {
    --tab-soft: #e1f3ff;
    --tab-accent: #2a90f0;
}

/* ---------- Kids-Seite: Erklärung Versionen ---------- */

.kids-explainer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.kids-explainer-item {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
}

.kids-explainer-item h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.kids-explainer-item p,
.kids-explainer-note {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.kids-explainer-note {
    grid-column: 1 / -1;
    padding: 0 4px;
}

.kids-library.has-tabs[data-active="2-3"] .kids-explainer {
    display: none;
}

/* ---------- Kids-Seite: Altersgruppen & Geschichten ---------- */

.kids-age {
    --age-soft: #ffe8ee;
    --age-accent: linear-gradient(135deg, #ffb8c9, #ff8cab);
    --age-ink: #58192a;
    margin-top: 24px;
    padding: 28px;
    border-radius: 32px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--age-soft), rgba(255, 255, 255, 0.96) 70%);
    box-shadow: var(--shadow);
}

.kids-age-4-6 {
    --age-soft: #fff4c4;
    --age-accent: linear-gradient(135deg, #ffe36a, #ffb300);
    --age-ink: #4d3500;
}

.kids-age-7-11 {
    --age-soft: #e1f3ff;
    --age-accent: linear-gradient(135deg, #79c6ff, #2a90f0);
    --age-ink: #0a345d;
}

.kids-library.has-tabs .kids-age[hidden] {
    display: none;
}

.kids-age-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.kids-age-cover {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(28, 28, 30, 0.18);
}

.kids-age-head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
}

.kids-age-head p {
    margin: 6px 0 0;
    color: var(--text-light);
    font-size: 15px;
}

.kids-story-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kids-story {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid transparent;
    box-shadow: 0 8px 24px rgba(28, 28, 30, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kids-story.is-current {
    border-color: var(--age-ink);
    box-shadow: 0 14px 34px rgba(28, 28, 30, 0.12);
}

.kids-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--age-accent);
    color: var(--age-ink);
    box-shadow: 0 8px 18px rgba(28, 28, 30, 0.16);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.kids-play:active {
    transform: scale(0.94);
}

.kids-play svg,
.kids-player-toggle svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.icon-pause {
    display: none;
}

.is-playing .icon-play {
    display: none;
}

.is-playing .icon-pause {
    display: block;
}

.kids-story-text h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
}

.kids-story-meta {
    margin: 2px 0 0;
    color: var(--text-light);
    font-size: 14px;
}

.kids-download {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 64px;
    min-height: 56px;
    padding: 6px 10px;
    border-radius: 16px;
    border: 1px solid rgba(28, 28, 30, 0.1);
    background: #ffffff;
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.kids-download:hover {
    background: #f4f4f4;
}

.kids-download svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kids-version,
.kids-chapters {
    grid-column: 2 / -1;
}

.kids-version {
    display: inline-flex;
    justify-self: start;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(28, 28, 30, 0.06);
}

.kids-version button {
    min-height: 40px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.kids-version button[aria-pressed="true"] {
    background: #ffffff;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(28, 28, 30, 0.12);
}

.kids-chapters summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.kids-chapters summary::after {
    content: "+";
    font-size: 17px;
}

.kids-chapters[open] summary::after {
    content: "−";
}

.kids-chapters ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: chapter;
}

.kids-chapter {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgba(28, 28, 30, 0.08);
    border-radius: 14px;
    background: #ffffff;
    color: var(--text-dark);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    counter-increment: chapter;
}

.kids-chapter::before {
    content: counter(chapter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--age-soft);
    color: var(--age-ink);
    font-size: 12px;
    font-weight: 800;
}

.kids-chapter-name {
    flex: 1;
    font-weight: 600;
}

.kids-chapter-time {
    color: var(--text-light);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.kids-chapter[aria-current="true"] {
    border-color: var(--age-ink);
    background: var(--age-soft);
}

/* ---------- Kids-Seite: Mini-Player ---------- */

.kids-player {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 1100;
    width: min(920px, calc(100% - 1.5rem));
    transform: translateX(-50%);
    padding: 12px 14px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(28, 28, 30, 0.22);
}

.kids-player[hidden] {
    display: none;
}

.kids-player-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
        "cover info controls close"
        "progress progress progress progress";
    align-items: center;
    gap: 8px 12px;
}

.kids-player-cover {
    grid-area: cover;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.kids-player-info {
    grid-area: info;
    min-width: 0;
}

.kids-player-title,
.kids-player-sub {
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kids-player-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.kids-player-sub {
    color: var(--text-light);
    font-size: 13px;
}

.kids-player-controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kids-player-btn,
.kids-player-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
}

.kids-player-btn:hover,
.kids-player-close:hover {
    background: rgba(28, 28, 30, 0.06);
}

.kids-player-btn svg,
.kids-player-close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kids-player-toggle {
    width: 52px;
    height: 52px;
    background: var(--text-dark);
    color: #ffffff;
}

.kids-player-toggle svg {
    fill: currentColor;
    stroke: none;
}

.kids-player-toggle:hover {
    background: #3a3a3e;
}

.kids-player-close {
    grid-area: close;
    color: var(--text-light);
}

.kids-player-progress {
    grid-area: progress;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kids-player-time {
    min-width: 40px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.kids-player-time:last-child {
    text-align: right;
}

.kids-player-seek {
    --progress: 0%;
    flex: 1;
    height: 28px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.kids-player-seek::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--text-dark) var(--progress), rgba(28, 28, 30, 0.14) var(--progress));
}

.kids-player-seek::-moz-range-track {
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--text-dark) var(--progress), rgba(28, 28, 30, 0.14) var(--progress));
}

.kids-player-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--text-dark);
    box-shadow: 0 2px 6px rgba(28, 28, 30, 0.3);
}

.kids-player-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--text-dark);
    box-shadow: 0 2px 6px rgba(28, 28, 30, 0.3);
}

body.has-player {
    padding-bottom: 150px;
}

@media (min-width: 761px) {
    .kids-player-inner {
        grid-template-columns: auto minmax(140px, 0.8fr) auto minmax(0, 1.4fr) auto;
        grid-template-areas: "cover info controls progress close";
        gap: 14px;
    }

    body.has-player {
        padding-bottom: 110px;
    }
}

/* ---------- Reveal-Animation ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 100ms;
}

.delay-2 {
    transition-delay: 180ms;
}

.delay-3 {
    transition-delay: 260ms;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

/* ---------- Breakpoints ---------- */

@media (max-width: 960px) {
    .menu-toggle {
        display: inline-flex;
    }

    .topbar {
        border-radius: 28px;
    }

    .topbar-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 16px 36px rgba(28, 28, 30, 0.1);
    }

    .topbar.menu-open .topbar-menu {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-links a,
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 14px;
        font-size: 16px;
    }
}

@media (max-width: 920px) {
    .hero-inner,
    .kids-hero {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 100%;
    }

    .hero-logo {
        width: 180px;
    }

    .kids-hero-covers {
        min-height: 240px;
    }

    .kids-hero-cover {
        width: min(42%, 190px);
    }
}

@media (max-width: 760px) {
    :root {
        --topbar-offset: 92px;
    }

    .hero-inner,
    .feature-card,
    .content-card,
    .team-card,
    .kids-hero-main,
    .kids-age {
        padding: 22px;
    }

    .store-btn {
        min-width: 0;
    }

    .store-badge {
        height: 50px;
    }

    .store-badge-google {
        height: 74px;
        margin: -12px 0;
    }

    .download-panel,
    .legal-card {
        padding: 24px;
    }

    /* Screenshots als wischbares Karussell */
    .screenshot-row {
        justify-content: flex-start;
        gap: 18px;
        width: calc(100% + 2rem);
        margin: 0 -1rem;
        padding: 6px 1rem 28px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .screenshot-row::-webkit-scrollbar {
        display: none;
    }

    .screenshot-wrapper {
        flex: 0 0 auto;
        width: min(62vw, 230px);
        scroll-snap-align: center;
    }

    .screenshot-row .screenshot-wrapper:nth-child(odd) {
        margin-top: 0;
    }

    .kids-tabs {
        gap: 4px;
        padding: 6px;
        border-radius: 24px;
    }

    .kids-tab {
        flex-direction: column;
        gap: 6px;
        padding: 10px 4px;
        text-align: center;
    }

    .kids-tab img {
        flex-basis: auto;
        width: 44px;
        height: 44px;
    }

    .kids-tab-text strong {
        font-size: 15px;
    }

    .kids-tab-text small {
        font-size: 12px;
    }

    .kids-explainer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .section {
        width: calc(100% - 2rem);
        padding: 40px 0;
    }

    .topbar {
        width: calc(100% - 1rem);
        margin-top: 8px;
        padding: 10px 10px 10px 14px;
    }

    .hero {
        padding-top: 24px;
    }

    .hero-inner {
        padding: 20px;
        border-radius: 28px;
    }

    .hero h1 {
        font-size: clamp(2rem, 9.5vw, 2.6rem);
    }

    .hero-logo {
        width: 140px;
        border-radius: 26px;
    }

    .kids-main {
        padding-top: 20px;
    }

    .kids-hero-main h1 {
        font-size: clamp(2.1rem, 11vw, 2.8rem);
    }

    .kids-hero-copy {
        font-size: 17px;
    }

    .kids-hero {
        margin-bottom: 28px;
    }

    .kids-hero-covers {
        display: none;
    }

    .kids-age {
        margin-top: 16px;
        padding: 16px;
        border-radius: 26px;
    }

    .kids-age-head {
        gap: 14px;
        margin-bottom: 16px;
    }

    .kids-age-cover {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .kids-story {
        gap: 10px 12px;
        padding: 12px;
    }

    .kids-play {
        width: 52px;
        height: 52px;
    }

    .kids-version,
    .kids-chapters {
        grid-column: 1 / -1;
    }

    .kids-version {
        justify-self: stretch;
    }

    .kids-version button {
        flex: 1;
    }

    .kids-player {
        width: calc(100% - 1rem);
        bottom: max(8px, env(safe-area-inset-bottom));
        padding: 10px 12px;
    }

    .kids-player-btn[data-action="forward"] {
        display: none;
    }
}
