/* Lern-Zoo – Ergänzungen zum bestehenden Design (main.css bleibt unverändert) */

:root {
    --lz-green: #2f9e44;
    --lz-green-soft: #e6f6e9;
}

/* Navigation: Lern-Zoo hervorheben */
.main-nav a.nav-new {
    color: var(--lz-green);
    font-weight: 600;
}
.main-nav a.nav-new::after {
    background: var(--lz-green);
}
.main-nav a.is-active {
    color: var(--color-text);
}
.main-nav a.is-active::after {
    width: 100%;
}

/* "Neu"-Badge */
.pill-badge {
    display: inline-block;
    background: var(--lz-green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

.pill-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lz-green-soft);
    color: #1f6f30;
    border: 1px solid rgba(47, 158, 68, 0.3);
    border-radius: 999px;
    padding: 0.3rem 0.9rem 0.3rem 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    max-width: 100%;
}
a.pill-new:hover {
    background: #d6f0db;
}

/* Unterseite Lern-Zoo */
.lz-hero .hero-text h1 {
    margin-top: 0.8rem;
}
.lz-hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: block;
}

.btn-green {
    background: var(--lz-green);
    color: #fff;
    box-shadow: 0 12px 22px rgba(47, 158, 68, 0.3);
}
.btn-green:hover {
    background: #237a34;
    transform: translateY(-1px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.feature-grid .card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

/* Galerie (Karussell mit scroll-snap) */
.gallery {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--radius-lg);
    outline: none;
}
.gallery-track::-webkit-scrollbar {
    display: none;
}
.gallery-track:focus-visible {
    box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.45);
}

.gallery-slide {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}
.gallery-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    display: block;
    background: #eef6ea;
}
.gallery-slide figcaption {
    padding: 0.7rem 1rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
}

.gallery-btn {
    position: absolute;
    top: calc(50% - 1.6rem);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    font-size: 1.7rem;
    line-height: 1;
    padding: 0 0 0.2rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, opacity 0.15s ease;
}
.gallery-btn:hover {
    background: var(--lz-green-soft);
}
.gallery-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.gallery-prev {
    left: -22px;
}
.gallery-next {
    right: -22px;
}

.gallery-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
}
.gallery-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}
.gallery-dot[aria-selected="true"] {
    width: 26px;
    background: var(--lz-green);
}

/* Pilot */
.pilot-box {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    border: 2px solid rgba(47, 158, 68, 0.45);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    box-shadow: var(--shadow-soft);
}
.pilot-box h2 {
    margin: 0.6rem 0 0.4rem;
    font-size: 1.6rem;
}
.pilot-box p {
    margin: 0 auto 1.2rem;
    color: var(--color-text-muted);
    max-width: 34rem;
}
.pilot-box .hero-actions {
    justify-content: center;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .feature-grid,
    .audience-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .gallery-prev {
        left: 8px;
    }
    .gallery-next {
        right: 8px;
    }
}

@media (max-width: 768px) {
    .pill-new {
        font-size: 0.82rem;
    }
    .gallery-btn {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
    .gallery-slide figcaption {
        font-size: 0.85rem;
    }
}

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

/* Startseite: Abschnitt «Sicherheit & Lernen» */
.pillars {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 1.4rem;
    align-items: stretch;
}
.pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.4rem 1.3rem 1.3rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pillar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.pillar h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}
.pillar p {
    margin: 0 0 0.8rem;
    font-size: 0.93rem;
    color: var(--color-text-muted);
}
.pillar-list {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.pillar-list li + li {
    margin-top: 0.3rem;
}
.pillar-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--color-primary);
}
.pillar-lz {
    border-color: rgba(47, 158, 68, 0.35);
    background: linear-gradient(160deg, #ffffff, var(--lz-green-soft));
}
.pillar-lz .pill-badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 1;
}
.pillar-lz img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-bottom: 0.9rem;
    display: block;
}
.pillar-lz .pillar-link {
    color: var(--lz-green);
}

@media (max-width: 992px) {
    .pillars {
        grid-template-columns: minmax(0, 1fr);
    }
}
