/*
 * Themen-Seiten: Detail (templates/default/_topic_layout.html.twig) und Übersicht (offer.html.twig)
 * Referenzen: docs/redesign/thema-detail.html, docs/redesign/themen.html
 * Präfix tt-; gemeinsame Bausteine stehen in components.css.
 */

/* ---------- Detail ---------- */
.tt-intro {
    padding: 72px 0 56px;
}
.tt-lead {
    max-width: none;
}
.tt-questions {
    padding-bottom: 64px;
}
.tt-questions__head {
    flex: 1 1 280px;
}
.tt-questions__intro {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--tv-muted);
}
.tt-questions__list {
    flex: 2 1 520px;
}
.tt-questions__list li:first-child {
    border-top: 0;
}
.tt-questions__list li:last-child {
    border-bottom: 0;
}
.tt-content {
    padding-bottom: 64px;
}
.tt-content p {
    max-width: none;
}
.tt-content .tv-h3 {
    margin-top: 40px;
}
.tt-content .tv-h3:first-child {
    margin-top: 0;
}

@media (max-width: 575.98px) {
    .tt-intro {
        padding: 48px 0 40px;
    }
}

/* Negative Glaubenssätze: Affirmationen in Akzentfarbe */
.tt-accent {
    color: var(--tv-accent);
}
.tt-content .tt-affirmations {
    gap: 12px;
}

/* ---------- Übersicht (offer.html.twig), Präfix to- ---------- */
.to-hero {
    margin-top: 56px;
    background: var(--tv-sand-100);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
/* Bild links, weil der Kopf nach rechts zum Text blickt; multiply blendet den weißen Bildhintergrund aus */
.to-hero__figure {
    flex: 2 1 320px;
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px 24px 0;
}
.to-hero__figure img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    mix-blend-mode: multiply;
}
.to-hero__text {
    flex: 3 1 440px;
    min-width: 0;
    align-self: center;
    padding: 64px 56px;
}
.to-hero__text .tv-h1 {
    margin-bottom: 24px;
}
.to-hero__text .tv-lead {
    max-width: 44ch;
}
.to-note {
    margin: 24px 0 52px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    border: 1px solid var(--tv-line);
    border-radius: 6px;
    background: #fff;
}
.to-note svg {
    flex: none;
    margin-top: 2px;
    color: var(--tv-accent);
}
.to-note p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--tv-text-soft);
}
.to-h2 {
    font-size: 40px;
}

.to-topics {
    padding: 48px 0 32px;
    border-top: 0;
    scroll-margin-top: 24px;
}
.to-topics__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 32px;
    margin-bottom: 24px;
}
.to-topics__head .tv-h2,
.to-topics__head p {
    margin: 0;
}
.to-topics__head p {
    font-size: 15px;
}
.to-topics__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    column-gap: 40px;
}
.to-topics__list li {
    border-bottom: 1px solid var(--tv-line);
}
.to-topics__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 0 8px;
    font-size: 17px;
    color: var(--tv-text);
    text-decoration: none;
}
.to-topics__list a:hover {
    color: var(--tv-accent-dark);
    background: var(--tv-sand-50);
}
.to-arrow {
    flex: none;
    color: var(--tv-arrow);
    transition: transform .15s ease;
}
.to-topics__list a:hover .to-arrow {
    transform: translateX(3px);
    color: var(--tv-accent-dark);
}
.to-topics__more {
    margin: 32px 0 0;
    font-size: 16px;
    line-height: 1.75;
    color: var(--tv-text-soft);
}

.to-levels {
    padding: 80px 0 72px;
}
.to-levels .to-h2 {
    margin-bottom: 40px;
}
.to-levels__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 40px 32px;
}
.to-levels__grid svg {
    color: var(--tv-accent);
}
.to-level__head {
    margin-bottom: 2px;
}
.to-level__title {
    font-family: 'Handlee', cursive;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.2;
    color: var(--tv-accent);
}
.to-level__sub {
    margin-bottom: 14px;
    letter-spacing: .08em;
}
.to-levels__grid ul {
    padding-left: 20px;
    gap: 6px;
    font-size: 16px;
}

.to-quote {
    padding: 60px 32px;
}
.to-quote svg {
    color: var(--tv-accent);
}
.to-quote blockquote {
    font-size: 24px;
    line-height: 1.5;
}
.to-quote blockquote p {
    margin: 0 0 8px;
}
.to-quote blockquote p:last-child {
    margin-bottom: 0;
}

.to-story {
    padding-top: 96px;
}
.to-story .tv-h2 {
    margin-bottom: 20px;
}
.to-story p {
    max-width: none;
}

.to-kids {
    padding: 96px 0 72px;
    gap: 40px 72px;
}
.to-kids__text {
    flex: 3 1 480px;
}
.to-kids__heading {
    margin-bottom: 6px;
}
.to-kids__age {
    margin-bottom: 24px;
    letter-spacing: .08em;
}
.to-kids__aside {
    flex: 2 1 300px;
    margin-top: 8px;
}
.to-kids__aside ul {
    padding-left: 20px;
    font-size: 16px;
}

.to-cta {
    padding-bottom: 96px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}
.to-cta .tv-band__title {
    font-size: 32px;
}
.to-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 575.98px) {
    .to-hero {
        margin-top: 32px;
    }
    .to-hero__figure {
        order: 2;
        padding: 24px 24px 0;
    }
    .to-hero__figure img {
        max-width: 260px;
    }
    .to-hero__text {
        order: 1;
        padding: 40px 24px 8px;
    }
    .to-hero__text .tv-h1 {
        font-size: 40px;
    }
    .to-h2 {
        font-size: 32px;
    }
    .to-levels,
    .to-kids {
        padding: 56px 0 48px;
    }
    .to-story {
        padding-top: 56px;
    }
    .to-quote {
        padding: 40px 20px;
    }
    .to-quote blockquote {
        font-size: 20px;
    }
}
