/* ═══════════════════════════════════════════════════
   MILO – DAS GLÜHWÜRMCHEN
   Stylesheet Version 1.0
   Farbpalette: Nachtblau + warmes Gold + weiches Orange
═══════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ─────────────────────────── */
:root {
    --forest-dark:    #08111f;
    --forest-deep:    #0a1628;
    --forest-mid:     #0d1f42;
    --forest-card:    rgba(13, 27, 62, 0.75);

    --gold:           #f4b942;
    --gold-light:     #ffd966;
    --gold-glow:      rgba(244, 185, 66, 0.35);
    --orange:         #e8784a;
    --orange-soft:    #f0a070;

    --cream:          #fdf3e3;
    --cream-soft:     #eedfc0;
    --text-muted:     #b8a890;

    --green-forest:   #2d6b46;
    --purple-magic:   #7b5ea7;

    --radius-sm:  10px;
    --radius-md:  18px;
    --radius-lg:  28px;
    --radius-xl:  48px;
    --radius-full: 9999px;

    --shadow-card: 0 12px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 32px rgba(244, 185, 66, 0.25);
    --ease: 0.3s ease;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Nunito', sans-serif;
    background: var(--forest-dark);
    color: var(--cream);
    line-height: 1.65;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ── UTILITIES ──────────────────────────────────── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { position: relative; padding: 100px 0; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius-full);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--ease);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--forest-dark);
    box-shadow: 0 4px 24px var(--gold-glow);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(244, 185, 66, 0.5);
}

.btn-amazon {
    background: #FF9900;
    color: #111;
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.35);
    width: 100%;
    font-size: 1.05rem;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 900;
}
.btn-amazon:hover {
    background: #e88a00;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 153, 0, 0.5);
}

.btn-bald {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: default;
    background: rgba(255, 255, 255, 0.04);
}

/* SECTION HEADERS */
.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
    display: inline-block;
    padding: 5px 18px;
    border-radius: var(--radius-full);
    background: rgba(244, 185, 66, 0.12);
    border: 1px solid rgba(244, 185, 66, 0.28);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-title.gold  { color: var(--gold); }
.section-title.cream { color: var(--cream); }

.section-desc {
    font-size: 1.05rem;
    max-width: 660px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.8;
}
.section-desc.cream { color: rgba(253, 243, 227, 0.8); }
.section-desc strong { color: var(--cream); }

/* SCROLL ANIMATIONS */
.js-fade {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.js-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── NAVIGATION ─────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 18px 0;
    transition: background 0.4s ease, padding 0.3s ease;
}
.navbar.scrolled {
    background: rgba(8, 17, 31, 0.96);
    backdrop-filter: blur(16px);
    padding: 12px 0;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}
.logo-milo {
    font-family: 'Fredoka One', cursive;
    font-size: 2.1rem;
    color: var(--gold);
    text-shadow: 0 0 24px var(--gold-glow);
}
.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-links {
    display: flex;
    gap: 4px;
}
.nav-links a {
    color: var(--cream-soft);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    transition: var(--ease);
}
.nav-links a:hover {
    background: rgba(244, 185, 66, 0.12);
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: var(--ease);
}

/* ── HERO ───────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(45, 107, 70, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 25%, rgba(123, 94, 167, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 55% 85%, rgba(244, 185, 66, 0.08) 0%, transparent 45%),
        url('../images/hero-bg.jpg') center / cover no-repeat,
        linear-gradient(170deg, #08111f 0%, #0d1f42 50%, #080f18 100%);
}

/* ── HERO MILO LEUCHT-TRICK ─────────────────────────
   milo-hero.png hat weißen Hintergrund. Durch einen
   warmen Lichtschein dahinter + mix-blend-mode:multiply
   wird das Weiß zur natürlichen Lichtstrahlung. ── */
.hero-image {
    position: relative;
    flex-shrink: 0;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -15%;
    border-radius: 50%;
    background: radial-gradient(
        ellipse 68% 78% at 50% 54%,
        rgba(255, 250, 228, 1.0)  8%,
        rgba(255, 238, 170, 0.95) 28%,
        rgba(244, 185, 66, 0.6)   50%,
        rgba(232, 120, 74, 0.18)  68%,
        transparent               82%
    );
    z-index: 0;
    pointer-events: none;
}

/* CSS-Sterne Hintergrund */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at  8% 12%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px   1px   at 22% 28%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(2px   2px   at 38%  8%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px   1px   at 55% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 70%  5%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px   1px   at 84% 18%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px   1px   at 92% 38%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 14% 52%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px   1px   at 48% 42%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(2px   2px   at  5% 78%, rgba(244, 185, 66, 0.5) 0%, transparent 100%),
        radial-gradient(2px   2px   at 30% 72%, rgba(244, 185, 66, 0.4) 0%, transparent 100%),
        radial-gradient(2px   2px   at 65% 68%, rgba(244, 185, 66, 0.6) 0%, transparent 100%),
        radial-gradient(1px   1px   at 88% 82%, rgba(255,255,255,0.3) 0%, transparent 100%);
    animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%   { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Glühwürmchen / Fireflies */
.fireflies { position: absolute; inset: 0; pointer-events: none; }

.firefly {
    position: absolute;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 8px 3px rgba(255, 217, 102, 0.7);
    animation: ff-float linear infinite;
}

@keyframes ff-float {
    0%          { opacity: 0;   transform: translate(0, 0); }
    10%         { opacity: 1; }
    45%         { opacity: 0.8; }
    50%         { opacity: 0;   transform: translate(var(--fx), var(--fy)); }
    51%         { opacity: 0;   transform: translate(var(--rx), var(--ry)); }
    60%         { opacity: 0.9; }
    90%         { opacity: 0.7; }
    100%        { opacity: 0;   transform: translate(calc(var(--rx) + var(--ex)), calc(var(--ry) + var(--ey))); }
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 56px;
    max-width: 1100px;
    width: 100%;
    padding: 100px 24px 60px;
}

.hero-image { flex-shrink: 0; }

.hero-milo {
    position: relative;
    z-index: 1;
    width: 400px;
    max-width: 100%;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 12px 32px rgba(244, 185, 66, 0.35));
    animation: milo-float 4s ease-in-out infinite;
}

@keyframes milo-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-18px); }
}

.hero-eyebrow {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(4.5rem, 10vw, 7.5rem);
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 80px rgba(244, 185, 66, 0.5);
    margin-bottom: 12px;
}

.hero-tagline {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    color: var(--cream);
    line-height: 1.25;
    margin-bottom: 24px;
}

.hero-motto {
    border-left: 3px solid var(--gold);
    padding-left: 18px;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadein-up 1s ease 1.5s both;
}

.scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    animation: arrow-bounce 1.6s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%       { transform: rotate(45deg) translateY(7px); }
}

@keyframes fadein-up {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── MILO SECTION ───────────────────────────────── */
/* ── MILO SECTION ───────────────────────────────── */
.milo-section {
    background: linear-gradient(180deg, var(--forest-dark) 0%, var(--forest-deep) 100%);
    padding: 0 0 80px;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.70; }
    50%       { opacity: 1;   }
}

/* 1. Große Vorstellung */
.milo-grande {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    min-height: 520px;
    overflow: hidden;
}
.milo-grande-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 35% 50%,
        rgba(244, 185, 66, 0.13) 0%,
        rgba(244, 185, 66, 0.04) 50%,
        transparent 75%);
    pointer-events: none;
}
.milo-grande-portrait {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 60px 40px 60px 60px;
}
.milo-grande-portrait img {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(244, 185, 66, 0.28),
        0 0 0 1px rgba(244, 185, 66, 0.15);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.milo-grande-portrait img:hover {
    transform: scale(1.02);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 0 100px rgba(244, 185, 66, 0.42),
        0 0 0 1px rgba(244, 185, 66, 0.28);
}
.milo-grande-text {
    padding: 60px 60px 60px 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.milo-grande-text h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    color: var(--cream);
    line-height: 1.1;
    margin: 8px 0;
}
.milo-grande-text p {
    font-size: 1.1rem;
    color: var(--cream-soft);
    line-height: 1.85;
}
.milo-grande-text p strong { color: var(--gold); }

/* 2. Großes Zitat */
.milo-quote-section {
    padding: 60px 24px;
    background: linear-gradient(135deg,
        rgba(244, 185, 66, 0.07) 0%,
        rgba(232, 120, 74, 0.05) 100%);
    border-top: 1px solid rgba(244, 185, 66, 0.12);
    border-bottom: 1px solid rgba(244, 185, 66, 0.12);
}
.milo-quote-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.quote-sparkle {
    font-size: 2.4rem;
    flex-shrink: 0;
    animation: glow-pulse 2.5s ease-in-out infinite;
    will-change: opacity;
}
.quote-sparkle.right { animation-delay: -1.25s; }
.milo-big-quote {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    color: var(--cream);
    text-align: center;
    line-height: 1.45;
    font-style: normal;
}

/* 3. Charakterkarten */
.milo-heart-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 64px 0 16px;
}
.heart-card {
    background: rgba(13, 27, 62, 0.85);
    border: 1px solid rgba(244, 185, 66, 0.12);
    border-radius: var(--radius-lg);
    padding: 36px 24px 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.heart-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 185, 66, 0.35);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 32px rgba(244,185,66,0.15);
}
.heart-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}
.heart-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 12px;
}
.heart-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 4. Markenzeichen-Streifen */
.milo-facts-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding: 36px 40px;
    margin: 40px 0 0;
    background: rgba(244, 185, 66, 0.05);
    border-top: 1px solid rgba(244, 185, 66, 0.1);
    border-bottom: 1px solid rgba(244, 185, 66, 0.1);
}
.strip-fact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--cream-soft);
    font-weight: 600;
}
.strip-icon { font-size: 1.4rem; }
.strip-dot {
    color: var(--gold);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* 5. Moods-Überschrift */
.milo-moods-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    color: var(--cream);
    text-align: center;
    margin: 56px 0 32px;
}

.milo-expressions {
    display: flex;
    gap: 14px;
}
.expression-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.expression-wrap:hover {
    transform: translateY(-4px);
}
.expression-img-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 250, 224, 0.18) 30%,
        rgba(244, 185, 66, 0.10) 60%,
        transparent 80%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    animation: glow-pulse 3.5s ease-in-out infinite;
    will-change: opacity;
}
.expression-wrap:nth-child(2) .expression-img-circle { animation-delay: -0.9s; }
.expression-wrap:nth-child(3) .expression-img-circle { animation-delay: -1.8s; }
.expression-wrap:nth-child(4) .expression-img-circle { animation-delay: -2.7s; }
.expression-img-circle img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.35));
    transition: transform 0.3s ease;
}
.expression-wrap:hover .expression-img-circle img {
    transform: scale(1.08);
}
.expression-wrap span {
    font-family: 'Fredoka One', cursive;
    font-size: 0.85rem;
    color: var(--gold);
    text-align: center;
    letter-spacing: 0.03em;
}

/* ── WELT SECTION ───────────────────────────────── */
.welt-section {
    overflow: hidden;
    background:
        url('../images/hero-bg.jpg') center / cover no-repeat,
        var(--forest-deep);
}

.welt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--forest-dark)   0%,
        rgba(8, 17, 31, 0.72) 20%,
        rgba(8, 17, 31, 0.65) 70%,
        var(--forest-dark)   100%
    );
    z-index: 0;
}

.welt-section .container { position: relative; z-index: 1; }

.orte-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ort-card {
    background: rgba(10, 22, 40, 0.92);
    border: 1px solid rgba(244, 185, 66, 0.14);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: card-glow-pulse 4s ease-in-out infinite;
    will-change: box-shadow;
    transform: translateZ(0);
}
.ort-card:nth-child(2) { animation-delay: -1.3s; }
.ort-card:nth-child(3) { animation-delay: -2.6s; }
.ort-card:nth-child(4) { animation-delay: -0.7s; }
.ort-card:nth-child(5) { animation-delay: -2.0s; }
.ort-card:nth-child(6) { animation-delay: -3.3s; }

.ort-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 185, 66, 0.45);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(244, 185, 66, 0.35);
    animation-play-state: paused;
}

@keyframes card-glow-pulse {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.5),
            0 0 28px rgba(244, 185, 66, 0.35),
            0 0 0 1px rgba(244, 185, 66, 0.28);
    }
    50% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.5),
            0 0 70px rgba(244, 185, 66, 0.80),
            0 0 0 2px rgba(244, 185, 66, 0.55);
    }
}

.ort-img {
    height: 190px;
    background: linear-gradient(135deg, #0d2a1a, #1a3d28) center / cover no-repeat;
    transition: transform 0.5s ease;
    position: relative;
}
.ort-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, transparent 100%);
}
.ort-card:hover .ort-img { transform: scale(1.04); }

.ort-info { padding: 18px 20px 22px; }
.ort-info h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 8px;
}
.ort-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── FREUNDE SECTION ────────────────────────────── */
.freunde-section {
    background: linear-gradient(180deg, var(--forest-dark) 0%, var(--forest-deep) 100%);
}

.freunde-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.freund-card {
    background: rgba(13, 27, 62, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 32px 24px 28px;
    text-align: center;
    transition: var(--ease);
    position: relative;
    overflow: hidden;
}
.freund-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    opacity: 0;
    transition: var(--ease);
}
.freund-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 185, 66, 0.22);
    box-shadow: var(--shadow-card);
}
.freund-card:hover::before { opacity: 1; }

.freund-img-wrap {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 250, 224, 1.0) 28%,
        rgba(255, 228, 130, 0.65) 52%,
        rgba(244, 185, 66, 0.12) 70%,
        transparent 84%
    );
    animation: glow-pulse 3.5s ease-in-out infinite;
    will-change: opacity;
}

.freund-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}
.freund-card:hover .freund-img-wrap img {
    transform: scale(1.1) rotate(-3deg);
}

.freund-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 4px;
}
.freund-art {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--orange-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.freund-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── BÜCHER SECTION ─────────────────────────────── */
.buecher-section {
    background: linear-gradient(180deg, var(--forest-deep) 0%, var(--forest-dark) 100%);
}

/* Band 1 – Featured */
.buch-featured {
    position: relative;
    display: flex;
    gap: 48px;
    align-items: center;
    background: linear-gradient(135deg, rgba(244, 185, 66, 0.07), rgba(232, 120, 74, 0.05));
    border: 1px solid rgba(244, 185, 66, 0.25);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 0 48px rgba(244, 185, 66, 0.08);
}

.buch-featured-badge {
    position: absolute;
    top: -14px;
    left: 40px;
    background: var(--gold);
    color: var(--forest-dark);
    font-weight: 900;
    font-size: 0.82rem;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.buch-featured-cover {
    position: relative;
    flex-shrink: 0;
    width: 340px;   /* Querformat-Cover braucht mehr Breite */
}
.buch-featured-cover img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.cover-shine {
    position: absolute;
    top: 0; left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
    border-radius: var(--radius-md);
    animation: shine 5s ease-in-out 2s infinite;
}
@keyframes shine {
    0%   { left: -80%; }
    40%  { left: 130%; }
    100% { left: 130%; }
}

.buch-featured-info { flex: 1; }
.buch-featured-info h3 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--cream);
    margin-bottom: 12px;
    line-height: 1.25;
}
.buch-featured-info p {
    font-size: 1rem;
    color: var(--cream-soft);
    line-height: 1.8;
    margin-bottom: 12px;
}
.buch-alter {
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
    font-weight: 700;
    margin-bottom: 24px !important;
}
.amazon-note {
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    margin-top: 10px !important;
    text-align: center;
    font-style: italic;
}

/* Weitere Bände */
.buecher-sub-heading {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--cream-soft);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.buecher-sub-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.buecher-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.buch-card {
    background: var(--forest-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--ease);
}
.buch-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 185, 66, 0.2);
    box-shadow: var(--shadow-card);
}

.buch-cover-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #0d1f3c, #1a2f5a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.buch-num {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: rgba(244, 185, 66, 0.18);
    line-height: 1;
}
.buch-icon { font-size: 2.2rem; opacity: 0.45; }

.buch-card-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.buch-card-info h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    color: var(--cream);
    margin-bottom: 8px;
    line-height: 1.3;
}
.buch-card-info p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.buch-band-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.buch-wert {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--orange-soft);
    margin-bottom: 12px;
}
.buch-wert.small { font-size: 0.8rem; margin-bottom: 10px; }
.buch-wert strong { color: var(--cream); }

/* Ausblick */
.buecher-ausblick {
    background: linear-gradient(135deg, rgba(123, 94, 167, 0.12), rgba(244, 185, 66, 0.06));
    border: 1px solid rgba(123, 94, 167, 0.22);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}
.ausblick-deco {
    font-size: 1.5rem;
    margin-bottom: 16px;
    letter-spacing: 8px;
}
.buecher-ausblick h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 24px;
}
.ausblick-liste {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-bottom: 24px;
}
.ausblick-liste li {
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
}
.buecher-ausblick > p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ── LIGHTBOX ───────────────────────────────────── */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(4, 11, 21, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lb-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgba(10, 22, 40, 0.98);
    border: 1px solid rgba(244, 185, 66, 0.28);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 64px rgba(244, 185, 66, 0.1);
    transform: scale(0.8) translateY(24px);
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#lightbox.open .lb-box {
    transform: scale(1) translateY(0);
}

.lb-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cream);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease);
    line-height: 1;
}
.lb-close:hover {
    background: rgba(244, 185, 66, 0.2);
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.12);
}

/* Medienbereich – Freunde (weißer Hintergrund → Licht-Trick) */
.lb-media {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.lb-media.lb-img-mode {
    background: radial-gradient(
        circle at 50% 52%,
        rgba(255, 250, 224, 1.0) 22%,
        rgba(255, 228, 130, 0.65) 48%,
        rgba(244, 185, 66, 0.12) 68%,
        rgba(10, 22, 40, 1.0)    84%
    );
    padding: 28px;
}
.lb-media.lb-img-mode img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.2));
}

/* Medienbereich – Orte */
.lb-media.lb-bg-mode {
    background: #000;
    padding: 0;
}
.lb-bg-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

/* Größere Box für Orte */
.lb-box.lb-ort {
    max-width: min(92vw, 880px);
    border-color: rgba(244, 185, 66, 0.45);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(244, 185, 66, 0.35),
        0 0 0 1.5px rgba(244, 185, 66, 0.30);
}

/* Buchcover – Hochformat begrenzen */
.lb-bg-img.lb-cover-img {
    aspect-ratio: auto;
    max-height: 85vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}
.lb-box.lb-ort:has(.lb-cover-img) {
    max-width: min(92vw, 480px);
}

.lb-caption {
    padding: 20px 24px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lb-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 8px;
}
.lb-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Karten anklickbar machen */
.freund-card,
.ort-card { cursor: pointer; }

/* ── FOOTER ─────────────────────────────────────── */
.footer {
    background: #040b15;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px 0 24px;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand .footer-logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--gold);
    display: block;
    text-shadow: 0 0 24px var(--gold-glow);
    margin-bottom: 4px;
}
.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
}
.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--ease);
}
.footer-nav a:hover { color: var(--gold); }

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}
.footer-legal p {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.footer-legal a {
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: var(--ease);
}
.footer-legal a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(184, 168, 144, 0.45);
    font-style: italic;
}

/* ── RESPONSIVE ─────────────────────────────────── */

/* Tablet: ab 1025px → Grids auf 2 Spalten reduzieren */
@media (max-width: 1024px) {
    .orte-grid    { grid-template-columns: repeat(2, 1fr); }
    .freunde-grid { grid-template-columns: repeat(2, 1fr); }
    .buecher-grid { grid-template-columns: repeat(2, 1fr); }
    .milo-grande       { grid-template-columns: 1fr; min-height: auto; }
    .milo-grande-portrait { justify-content: center; padding: 60px 24px 20px; }
    .milo-grande-text  { padding: 20px 24px 60px; text-align: center; align-items: center; }
    .milo-heart-grid   { grid-template-columns: repeat(2, 1fr); }
    .milo-quote-inner  { gap: 16px; }
}

/* Mobil: ab 769px → Navigation + Layout anpassen */
@media (max-width: 768px) {
    .section { padding: 72px 0; }

    /* Navigation: Hamburger-Menü */
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(8, 17, 31, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }
    .nav-links.open { display: flex; }
    .nav-links a    { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 1rem; }

    /* Hero: untereinander statt nebeneinander */
    .hero-inner  { flex-direction: column; text-align: center; padding: 110px 20px 72px; gap: 28px; }
    .hero-milo   { width: 220px; }
    .hero-motto  { text-align: left; font-size: 0.95rem; }
    .hero-scroll { display: none; }
    .hero-image::before { inset: -8%; }

    .milo-expressions  { flex-wrap: wrap; }
    .expression-wrap   { width: calc(50% - 8px); }
    .milo-heart-grid   { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .milo-facts-strip  { gap: 10px 20px; padding: 28px 24px; }

    /* Leuchtwald + Freunde: 2 Spalten auf Tablet/Mobil */
    .orte-grid    { grid-template-columns: repeat(2, 1fr); }
    .freunde-grid { grid-template-columns: repeat(2, 1fr); }

    /* Bücher: Featured zentriert, Grid bleibt 2-spaltig */
    .buch-featured       { flex-direction: column; padding: 28px 20px; align-items: center; }
    .buch-featured-cover { width: min(320px, 82vw); }
    .buch-featured-badge { left: 50%; transform: translateX(-50%); }
    .buecher-sub-heading { font-size: 1.2rem; }

    /* Footer */
    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-legal { text-align: left; }
    .footer-nav   { gap: 8px 20px; }
}

/* Kleines Mobil: iPhone SE, Galaxy S (< 480px) */
@media (max-width: 480px) {
    .section { padding: 56px 0; }

    /* Hero noch kompakter */
    .hero-title  { font-size: 3.5rem; }
    .hero-tagline { font-size: 1.4rem; }
    .hero-milo   { width: 190px; }

    .milo-heart-grid { grid-template-columns: repeat(1, 1fr); }
    .milo-big-quote  { font-size: 1.4rem; }
    .quote-sparkle   { font-size: 1.6rem; }

    /* Leuchtwald + Freunde: 1 Spalte auf sehr kleinen Screens */
    .orte-grid    { grid-template-columns: 1fr; }
    .freunde-grid { grid-template-columns: 1fr; }

    /* Bücher: 1 Spalte */
    .buecher-grid { grid-template-columns: 1fr; }

    /* Ausblick-Liste untereinander */
    .ausblick-liste { flex-direction: column; align-items: center; }

    /* Motto-Box kompakter */
    .motto-box { flex-direction: column; gap: 10px; text-align: center; font-size: 1.05rem; padding: 18px 20px; }

    /* Section-Beschreibung */
    .section-desc { font-size: 0.95rem; }

    /* Featured-Buch */
    .buch-featured { padding: 24px 16px; }
    .buch-featured-info h3 { font-size: 1.3rem; }

    /* Buecher Ausblick */
    .buecher-ausblick { padding: 28px 20px; }
}

/* ═══════════════════════════════════════════════════
   NEU – KINDERFREUNDLICHE EXTRAS (Milo_neu.html)
═══════════════════════════════════════════════════ */

/* ── SKIP-LINK (Barrierefreiheit) ───────────────── */
.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 2000;
    background: var(--gold);
    color: var(--forest-dark);
    font-weight: 800;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Sichtbarer Tastatur-Fokus */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ── WELLEN-TRENNER (Bilderbuch-Look) ───────────── */
.wave-divider {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 56px;
    margin: -55px 0 0;
    pointer-events: none;
}
.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── HERO: MILO IST ANKLICKBAR ──────────────────── */
.hero-milo-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
}
.hero-hint {
    position: absolute;
    top: 4%;
    right: -6%;
    z-index: 3;
    background: rgba(253, 243, 227, 0.95);
    color: var(--forest-dark);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 8px 14px;
    border-radius: 16px 16px 16px 4px;
    transform: rotate(6deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    animation: hint-bounce 2.4s ease-in-out infinite;
    white-space: nowrap;
    pointer-events: none;
}
@keyframes hint-bounce {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50%       { transform: rotate(6deg) translateY(-7px); }
}

/* Sprechblase */
.milo-bubble {
    position: absolute;
    left: 50%;
    top: -12px;
    transform: translate(-50%, -100%) scale(0.6);
    z-index: 5;
    min-width: 200px;
    max-width: 280px;
    background: var(--cream);
    color: var(--forest-dark);
    font-family: 'Fredoka One', cursive;
    font-size: 1.02rem;
    line-height: 1.4;
    text-align: center;
    padding: 14px 20px;
    border-radius: 22px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45), 0 0 24px var(--gold-glow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.milo-bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border: 11px solid transparent;
    border-top-color: var(--cream);
    border-bottom: 0;
}
.milo-bubble.show {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
}

/* Freudiges Wackeln beim Anklicken */
@keyframes milo-wiggle {
    0%, 100% { transform: rotate(0deg)  scale(1); }
    20%       { transform: rotate(-7deg) scale(1.06); }
    40%       { transform: rotate(6deg)  scale(1.08); }
    60%       { transform: rotate(-5deg) scale(1.06); }
    80%       { transform: rotate(3deg)  scale(1.02); }
}
.hero-milo.wiggle { animation: milo-wiggle 0.7s ease; }

/* ── KLICK-FUNKEN (Sternchen beim Tippen) ───────── */
.click-spark {
    position: fixed;
    z-index: 8000;
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    animation: spark-fly 0.9s ease-out forwards;
}
@keyframes spark-fly {
    0%   { opacity: 1; transform: translate(0, 0) scale(0.6) rotate(0deg); }
    100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(1.25) rotate(var(--sr)); }
}

/* ── STERNE-SUCHSPIEL ───────────────────────────── */
.hidden-star {
    display: none;               /* ohne JS unsichtbar */
    position: absolute;
    z-index: 5;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
    filter: drop-shadow(0 0 6px rgba(244, 185, 66, 0.8));
    opacity: 0.85;
    transition: transform 0.25s ease, opacity 0.3s ease;
    animation: star-twinkle 2.8s ease-in-out infinite;
}
body.js-on .hidden-star { display: block; }
.hidden-star:hover { transform: scale(1.35) rotate(12deg); }
.hidden-star.found {
    animation: star-found 0.7s ease forwards;
    pointer-events: none;
}
@keyframes star-twinkle {
    0%, 100% { opacity: 0.55; }
    50%       { opacity: 1; }
}
@keyframes star-found {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(2) rotate(30deg); opacity: 1; }
    100% { transform: scale(0) rotate(120deg); opacity: 0; }
}

/* Sterne-Zähler unten rechts */
.star-counter {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 950;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 17, 31, 0.92);
    border: 1.5px solid rgba(244, 185, 66, 0.5);
    border-radius: var(--radius-full);
    padding: 9px 18px;
    color: var(--gold-light);
    font-family: 'Fredoka One', cursive;
    font-size: 0.95rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 185, 66, 0.2);
    backdrop-filter: blur(8px);
}
.star-counter .sc-pop { display: inline-block; }
.star-counter.pop .sc-pop { animation: counter-pop 0.45s ease; }
@keyframes counter-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* Gewonnen-Overlay */
.star-win {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 11, 21, 0.9);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.star-win.open { opacity: 1; pointer-events: all; }
.star-win-box {
    max-width: 460px;
    width: 100%;
    text-align: center;
    background: linear-gradient(160deg, #12244a, #0a1628);
    border: 1.5px solid rgba(244, 185, 66, 0.55);
    border-radius: var(--radius-lg);
    padding: 44px 32px 36px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 80px rgba(244, 185, 66, 0.3);
    transform: scale(0.7) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.star-win.open .star-win-box { transform: scale(1) translateY(0); }
.star-win-box img {
    width: 130px;
    height: auto;
    margin: 0 auto 12px;
}
.star-win-box h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.7rem;
    color: var(--gold);
    margin-bottom: 12px;
}
.star-win-box p {
    color: var(--cream-soft);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ── NACH-OBEN-GLÜHWÜRMCHEN ─────────────────────── */
.to-top {
    position: fixed;
    right: 18px;
    bottom: 74px;
    z-index: 940;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(244, 185, 66, 0.5);
    background: rgba(8, 17, 31, 0.92);
    color: var(--gold-light);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(244, 185, 66, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.to-top.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.to-top:hover { transform: translateY(-3px) scale(1.08); }

/* ── GEFÜHLE-SEKTION (Bilder-Feinschliff) ───────── */
.milo-expressions {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}
.expression-img-circle img {
    width: 130px;
    height: 96px;
    object-fit: contain;
}
.expression-wrap { border: none; background: none; padding: 0; font: inherit; }

/* ── REDUZIERTE BEWEGUNG ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .js-fade { opacity: 1; transform: none; }
    .firefly { display: none; }
}

/* ── RESPONSIVE FÜR NEUE ELEMENTE ───────────────── */
@media (max-width: 768px) {
    .hero-hint { right: 2%; font-size: 0.75rem; }
    .milo-bubble { min-width: 170px; font-size: 0.92rem; }
    .star-counter { padding: 8px 14px; font-size: 0.85rem; }
    .to-top { bottom: 68px; width: 42px; height: 42px; }
    .hidden-star { font-size: 1.3rem; }
}

/* ── SPIEL-ECKE (Puzzle-Teaser) ─────────────────── */
.spiel-ecke {
    margin-top: 72px;
    text-align: center;
    background: var(--forest-card);
    border: 1.5px solid rgba(244, 185, 66, 0.35);
    border-radius: var(--radius-lg);
    padding: 44px 28px 40px;
    box-shadow: var(--shadow-card);
}
.spiel-ecke .spiel-icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 12px;
}
.spiel-ecke h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 10px;
}
.spiel-ecke p {
    color: var(--cream-soft);
    max-width: 520px;
    margin: 0 auto 24px;
}

/* ── MILO-PUZZLE (Spielfenster) ─────────────────── */
.pz-overlay {
    position: fixed;
    inset: 0;
    z-index: 9200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 11, 21, 0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.pz-overlay.open { opacity: 1; pointer-events: all; }

.pz-box {
    position: relative;
    max-width: 860px;
    width: 100%;
    max-height: 94vh;
    overflow: auto;
    text-align: center;
    background: linear-gradient(160deg, #12244a, #0a1628);
    border: 1.5px solid rgba(244, 185, 66, 0.55);
    border-radius: var(--radius-lg);
    padding: 44px 24px 30px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 80px rgba(244, 185, 66, 0.25);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Wichtig: „none" statt scale(1), damit ein gezogenes Teil (position:fixed)
   sich am Bildschirm und nicht am Fenster-Kasten ausrichtet */
.pz-overlay.open .pz-box { transform: none; }

.pz-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(244, 185, 66, 0.5);
    background: rgba(8, 17, 31, 0.85);
    color: var(--gold-light);
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform var(--ease);
}
.pz-close:hover { transform: scale(1.12) rotate(90deg); }

.pz-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.7rem;
    color: var(--gold);
    margin-bottom: 6px;
}
.pz-sub {
    color: var(--cream-soft);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto 22px;
}

.pz-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 3vw, 40px);
    margin-bottom: 18px;
}

/* Ablage (links) und Zielbild (rechts) – gleiches Seitenverhältnis wie das Porträt */
.pz-tray,
.pz-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    width: min(300px, 43vw);
    aspect-ratio: 533 / 800;
    padding: 6px;
    border-radius: var(--radius-sm);
}
.pz-tray {
    background: rgba(8, 17, 31, 0.6);
    border: 1.5px dashed rgba(244, 185, 66, 0.3);
}
.pz-board {
    position: relative;
    background: rgba(8, 17, 31, 0.6);
    border: 1.5px solid rgba(244, 185, 66, 0.5);
    box-shadow: 0 0 28px rgba(244, 185, 66, 0.15);
}
/* Schwaches Vorschaubild als Hilfe im Zielfeld */
.pz-board::before {
    content: '';
    position: absolute;
    inset: 6px;
    background: url('../images/milo-portrait.jpg') center / 100% 100% no-repeat;
    opacity: 0.16;
    border-radius: 4px;
    pointer-events: none;
}

.pz-cell,
.pz-slot {
    position: relative;
    border-radius: 4px;
}
.pz-slot {
    border: 1px dashed rgba(244, 185, 66, 0.25);
    cursor: pointer;
}
.pz-slot.filled { border-color: transparent; cursor: default; }

.pz-piece {
    width: 100%;
    height: 100%;
    background-size: 400% 400%;
    background-repeat: no-repeat;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pz-piece:hover { transform: scale(1.05); }
.pz-piece.selected {
    outline: 3px solid var(--gold);
    outline-offset: 1px;
    transform: scale(1.06);
    box-shadow: 0 0 18px var(--gold-glow);
}
.pz-piece.dragging {
    position: fixed;
    z-index: 9600;
    pointer-events: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px var(--gold-glow);
    transition: none;
}
.pz-piece.placed {
    pointer-events: none;
    cursor: default;
    box-shadow: none;
    animation: pz-snap 0.35s ease;
}
.pz-piece.placed:hover { transform: none; }
@keyframes pz-snap {
    0%   { transform: scale(1.15); }
    60%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}

/* Falsches Feld: kurzes Kopfschütteln */
.pz-wrong { animation: pz-shake 0.4s ease; }
@keyframes pz-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    50%      { transform: translateX(5px); }
    75%      { transform: translateX(-3px); }
}

.pz-status {
    font-family: 'Fredoka One', cursive;
    color: var(--gold-light);
    font-size: 1rem;
    margin-bottom: 16px;
}
.pz-restart { font-size: 0.95rem; }

@media (max-width: 640px) {
    .pz-box { padding: 40px 12px 24px; }
    .pz-sub { font-size: 0.85rem; }
    .pz-tray, .pz-board { width: min(300px, 44vw); gap: 3px; padding: 4px; }
    .pz-board::before { inset: 4px; }
}
@media (max-height: 720px) {
    .pz-tray, .pz-board { width: min(240px, 43vw); }
    .pz-title { font-size: 1.4rem; }
}

/* ── SPRACHSCHALTER (DE/EN) ─────────────────────── */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 14px;
    background: rgba(13, 27, 62, 0.55);
    border: 1px solid rgba(244, 185, 66, 0.35);
    border-radius: var(--radius-full);
    padding: 3px;
    flex-shrink: 0;
}
.lang-switch a {
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    transition: var(--ease);
}
.lang-switch a:hover { color: var(--gold); }
.lang-switch a.aktiv {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--forest-dark);
}
@media (max-width: 900px) {
    .lang-switch { order: 2; margin-left: auto; margin-right: 12px; }
    .nav-toggle { order: 3; }
}
