/* =========================================================================
   Trittsiegel – Startseite (Landing)
   ========================================================================= */

.home .ts-main { max-width: none; padding: 0; }
.home-main { display: block; }

/* ---- Header / Nav (Home-Variante, transparent über dem Hero) ---- */
.ts-header--home {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    background: transparent;
    border-bottom: none;
}
.ts-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.ts-nav a {
    text-decoration: none;
    color: var(--ts-ink);
    font-weight: 500;
    font-size: .95rem;
    opacity: .8;
    transition: opacity .2s;
}
.ts-nav a:hover { opacity: 1; }
.ts-nav__cta {
    padding: .5rem 1rem;
    border: 1.5px solid var(--ts-ink);
    border-radius: 999px;
    opacity: 1 !important;
}
.ts-nav__cta:hover { background: var(--ts-ink); color: var(--ts-bg); }
/* Mobile-Nav (Hamburger-Panel) global in main.css/mobile-nav.js – die frühere
   Regel „.ts-nav a:not(.ts-nav__cta) { display:none }" ist damit entfallen. */

/* ---- Buttons: kanonisch in main.css (global) ---- */

/* ---- HERO ---- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: min(92vh, 820px);
    display: flex;
    align-items: center;
    padding: 7rem clamp(1.25rem, 5vw, 4rem) 4rem;
    background:
        radial-gradient(1200px 600px at 78% -8%, #ffffff 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, #efe9db 0%, var(--ts-bg) 70%);
}
/* Deko-Pfotenspur im Hintergrund entfernt (Artur: keine Tierpfoten im Hintergrund). */
.hero__trail { display: none; }
.hero__trail--off {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero__trail .paw { fill: #6f5a33; opacity: 0; animation: pawIn .7s ease forwards; }
.hero__trail .paw:nth-child(1) { animation-delay: .15s; }
.hero__trail .paw:nth-child(2) { animation-delay: .30s; }
.hero__trail .paw:nth-child(3) { animation-delay: .45s; }
.hero__trail .paw:nth-child(4) { animation-delay: .60s; }
.hero__trail .paw:nth-child(5) { animation-delay: .75s; }
.hero__trail .paw:nth-child(6) { animation-delay: .90s; }
.hero__trail .paw:nth-child(7) { animation-delay: 1.05s; }
.hero__trail .paw:nth-child(8) { animation-delay: 1.20s; }

.hero__grid {
    position: relative; z-index: 1;
    width: 100%; max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__inner { max-width: 620px; }
.hero__eyebrow { animation: fadeUp .7s .05s ease both; }
.hero__title   { animation: fadeUp .8s .15s ease both; }
.hero__lead    { animation: fadeUp .8s .30s ease both; }
.hero__actions { animation: fadeUp .8s .45s ease both; }
.hero__stats   { animation: fadeUp .8s .60s ease both; }

.hero__visual { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.medallion {
    width: min(88%, 430px); height: auto;
    filter: drop-shadow(0 24px 48px rgba(43,38,32,.22));
    animation: medIn 1s .25s cubic-bezier(.2,.7,.2,1) both;
}
.medallion__ring {
    transform-box: view-box;
    transform-origin: 200px 200px;
    animation: spin 90s linear infinite;
}
.medallion__track { animation: trackIn 1.1s .7s ease both; }
.hero__visual-cap {
    font-size: .82rem; letter-spacing: .04em; color: var(--ts-muted);
    text-transform: uppercase; margin: 0;
    animation: fadeUp .8s .8s ease both;
}
@media (max-width: 880px) {
    .hero { padding-top: 6rem; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { order: -1; }
    .medallion { width: min(64%, 300px); }
    .hero__lead { max-width: none; }
}

@keyframes pawIn   { to { opacity: .08; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes medIn   { from { opacity: 0; transform: scale(.9) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes trackIn { from { opacity: 0; } to { opacity: 1; } }

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ts-accent);
    margin: 0 0 1.2rem;
}
.hero__title {
    font-family: var(--ts-font-head);
    font-weight: 900;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: .98;
    letter-spacing: -.02em;
    margin: 0 0 1.5rem;
}
.hero__title em {
    font-style: italic;
    color: var(--ts-accent);
    position: relative;
}
.hero__lead {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.6;
    color: var(--ts-muted);
    max-width: 38ch;
    margin: 0 0 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3rem; }

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    margin: 0;
    padding-top: 1.6rem;
    border-top: 1px solid var(--ts-line);
}
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ts-muted); }
.hero__stats dd { margin: 0; font-family: var(--ts-font-head); font-weight: 700; font-size: 1.9rem; line-height: 1; }

/* ---- Section scaffolding ---- */
section { scroll-margin-top: 5rem; }
.wege, .habitate, .lizenz {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem);
}
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-eyebrow {
    text-transform: uppercase; letter-spacing: .16em; font-size: .8rem;
    font-weight: 600; color: var(--ts-accent); margin: 0 0 .8rem;
}
.section-title {
    font-family: var(--ts-font-head);
    font-weight: 600;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.01em;
    margin: 0;
}
.section-lead { color: var(--ts-muted); font-size: 1.1rem; margin: 1rem 0 0; }

/* ---- Zwei Wege ---- */
.wege__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
@media (max-width: 720px) { .wege__grid { grid-template-columns: 1fr; } }
.card {
    position: relative;
    background: var(--ts-surface);
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius);
    padding: 2.2rem;
    box-shadow: var(--ts-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(43,38,32,.16); }
a.card { text-decoration: none; color: inherit; display: block; }
.card__tag--go { background: var(--ts-accent); color: #fff; }
.card::after {
    content: ""; position: absolute; right: -40px; bottom: -40px;
    width: 160px; height: 160px; border-radius: 50%;
    background: var(--ts-accent); opacity: .06;
}
.card__icon { font-size: 2.4rem; margin-bottom: 1rem; }
.card h3 { font-family: var(--ts-font-head); font-size: 1.6rem; margin: 0 0 .6rem; }
.card p { color: var(--ts-muted); margin: 0; line-height: 1.6; }
.card__tag {
    display: inline-block; margin-top: 1.3rem;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
    color: var(--ts-accent);
    background: color-mix(in srgb, var(--ts-accent) 12%, transparent);
    padding: .3rem .7rem; border-radius: 999px;
}

/* ---- Habitate ---- */
.habitate { background: var(--ts-surface); max-width: none; }
.habitate > .section-head, .habitate > .habitat-grid { max-width: 1100px; margin-inline: auto; }
.habitat-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem;
}
.habitat-chip {
    position: relative;
    border-radius: 12px;
    padding: 1.3rem 1.2rem;
    min-height: 96px;
    display: flex; align-items: flex-end;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(150deg, var(--c) 0%, color-mix(in srgb, var(--c) 70%, #000) 100%);
    box-shadow: var(--ts-shadow);
    overflow: hidden;
    transition: transform .18s ease;
}
.habitat-chip:hover { transform: translateY(-3px); }
.habitat-chip::before {
    content: "🐾"; position: absolute; top: .7rem; right: .8rem;
    font-size: 1.4rem; opacity: .55;
}
.habitat-chip span { position: relative; z-index: 1; }

/* ---- Lizenz / Steps ---- */
.steps {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    counter-reset: step;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step {
    position: relative;
    padding: 2rem 1.6rem 1.6rem;
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius);
    background: var(--ts-surface);
}
.step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--ts-accent); color: #fff;
    font-family: var(--ts-font-head); font-weight: 700; font-size: 1.2rem;
    margin-bottom: 1rem;
}
.step h3 { font-family: var(--ts-font-head); font-size: 1.3rem; margin: 0 0 .5rem; }
.step p { color: var(--ts-muted); margin: 0; line-height: 1.6; }

/* ---- CTA Band ---- */
.cta-band {
    text-align: center;
    padding: clamp(4rem, 8vw, 6rem) 1.5rem;
    background: linear-gradient(160deg, #2f2a22 0%, #3c3424 100%);
    color: #f3ecdd;
}
.cta-band h2 {
    font-family: var(--ts-font-head); font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 .8rem;
}
.cta-band p { color: #c9bfa9; margin: 0 0 2rem; font-size: 1.1rem; }
.cta-band .btn--primary { background: #d9a441; color: #2b2620; }

/* ---- Startseiten-Promo: Spiele ---- */
.home-games { background: var(--ts-surface); border-top: 1px solid var(--ts-line); }
.home-games__inner { max-width: 1100px; margin: 0 auto; padding: clamp(3rem,7vw,5rem) clamp(1.25rem,5vw,3rem); text-align: center; }
.home-games .section-eyebrow, .home-games .section-title { text-align: center; }
.home-games .section-lead { max-width: 62ch; margin: 1rem auto 0; }
.home-games__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; max-width: 820px; margin: 2rem auto; }
.home-games__olympiad { max-width: 62ch; margin: 0 auto 1.6rem; color: var(--ts-muted); }
.home-games__olympiad a { color: var(--ts-accent); }

/* ---- Trittsiegel des Monats ---- */
.aom { padding: clamp(2rem,5vw,3.5rem) clamp(1.25rem,5vw,3rem); }
.aom__inner { max-width: 900px; margin: 0 auto; }
.aom__card { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.2rem,4vw,2.5rem); padding: clamp(1.5rem,4vw,2.5rem); background: var(--ts-surface); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); box-shadow: var(--ts-shadow); }
.aom__media { flex: 0 0 auto; width: clamp(120px,20vw,180px); height: clamp(120px,20vw,180px); display: flex; align-items: center; justify-content: center; background: var(--ts-bg); border-radius: 50%; }
.aom__media .track-glyph, .aom__media svg { width: 60%; height: 60%; }
.aom__text { flex: 1 1 280px; }
.aom__name { font-family: var(--ts-font-head); font-weight: 600; font-size: clamp(1.8rem,4vw,2.6rem); margin: .2rem 0 .1rem; }
.aom__sci { font-style: italic; color: var(--ts-muted); margin: 0 0 .3rem; }
.aom__hab { margin: 0 0 1.1rem; font-weight: 600; }
.home-game { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.6rem 1rem; border: 1px solid var(--ts-line); border-radius: var(--ts-radius); background: var(--ts-bg); text-decoration: none; color: var(--ts-ink); transition: transform .15s, border-color .15s; }
.home-game:hover { transform: translateY(-4px); border-color: var(--ts-accent); }
.home-game__icon { font-size: 2rem; }
.home-game__name { font-family: var(--ts-font-head); font-weight: 700; font-size: 1.15rem; }
.home-game__desc { color: var(--ts-muted); font-size: .85rem; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
    .btn, .card, .habitat-chip { transition: none; }
    .hero__trail .paw { opacity: .08; animation: none; }
    .hero__eyebrow, .hero__title, .hero__lead, .hero__actions, .hero__stats,
    .medallion, .medallion__track, .hero__visual-cap { animation: none; opacity: 1; transform: none; }
    .medallion__ring { animation: none; }
}
