* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: monospace;
    background: #e9e7e2;
}

.scene {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* ===== SKY – sehr subtil ===== */
.sky {
    position: absolute;
    top: 0;
    width: 100%;
    height: 35%;

    background-image:
        radial-gradient(#000 1px, transparent 1px),
        radial-gradient(#000 1px, transparent 1px);

    background-size: 90px 90px, 120px 120px;
    background-position:
        left 0 top 20px,
        right 0 top 60px;

    opacity: 0.25;
}

/* SUN */
.sun {
    position: fixed;
    top: 70px;
    right: 130px;
    font-size: 14px;
    opacity: 0.85;
    animation: sunBob 7s ease-in-out infinite;
    pointer-events: none;
}

/* CENTER TEXT */
.openfield {
    position: absolute;
    top: 45%;
    width: 100%;
    text-align: center;
    font-size: 14px;
    letter-spacing: 3px;
    opacity: 0.8;
}

/* BASELINE */
.baseline {
    position: absolute;
    bottom: 120px;
    width: 100%;
    height: 2px;
    background: black;
    opacity: 0.8;
}

/* LINKS */
a {
    text-decoration: none;
    color: black;
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}

a:hover {
    opacity: 0.9;
    transform: scale(1.04) translateY(-3px);
    filter: drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.22));
}

/* ===== CLOUD BASE ===== */
.cloud {
    position: fixed;
    white-space: pre;
    font-size: 14px;
    pointer-events: none;
}

/* Link-Wolken sind klickbar */
a.cloud {
    pointer-events: auto;
    cursor: pointer;
}

/* ===== FLOAT — Overlap-Berechnung =====
   Gleiche bottom-Werte (Abstand 0 px < 80 px) brauchen gesicherten Stagger.
   60 % Crossing, linear → Sichtbarkeits-Fenster = 110vw ÷ (220vw / crossing_s):

   Gruppe 130px (c1/c4/c7) — 110s — crossing 66s → 110/3,33=33s Einfahrt → sichtbar 33–63s ≈ 30s
     Stagger = 110÷3 = 36,7s > 30s → Gap 6,7s ✓
   Gruppe 260px (c2/c5/c8) —  85s — crossing 51s → 110/4,31=25,5s → sichtbar 25,5–48,7s ≈ 23s
     Stagger =  85÷3 = 28,3s > 23s → Gap 5,1s ✓
   Gruppe 390px (c3/c6/balloon) — 110s — identisch Gruppe 130px → Gap 6,7s ✓

   Auf Seitenstart sichtbar: c4 + c5 + balloon (alle bei translateX≈12vw, 130px Abstand).
   Weitere Elemente folgen nach: c1/c2/c3 starten bei delay=0 von links.
   Flugzeug: eigene floatPlane-Animation (65s, linear, flinker als Wolken). */

.c1, .c3, .c4, .c6, .c7, .balloon { animation: floatCloud 110s linear infinite; will-change: transform, opacity; }
.c2, .c5, .c8, .birds              { animation: floatCloud  85s linear infinite; will-change: transform, opacity; }

.c1 { bottom: 130px; opacity: 0.95; z-index: 10; animation-delay:     0s; }
.c2 { bottom: 260px; opacity: 0.80; z-index: 10; animation-delay:     0s; }
.c3 { bottom: 390px; opacity: 0.55; z-index: 10; animation-delay:     0s; }
.c4 { bottom: 130px; opacity: 0.85; z-index: 10; animation-delay: -36.7s; }
.c5 { bottom: 260px; opacity: 1.00; z-index: 10; animation-delay: -28.3s; }
.c6 { bottom: 390px; opacity: 0.70; z-index: 10; animation-delay: -73.3s; }
.c7 { bottom: 130px; opacity: 0.75; z-index: 10; animation-delay: -73.3s; }
.c8 { bottom: 260px; opacity: 0.50; z-index: 10; animation-delay: -56.7s; }

/* ===== BALLOON ===== */
.balloon {
    position: fixed;
    bottom: 390px;
    white-space: pre;
    font-size: 14px;
    opacity: 0.95;
    z-index: 10;
    pointer-events: none;
    animation-delay: -36.7s;
}

/* ===== PLANE ===== */
.plane {
    position: fixed;
    top: 28%;
    white-space: pre;
    font-size: 14px;
    opacity: 0.85;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    animation: floatPlane 65s linear infinite;
    will-change: transform, opacity;
    animation-delay: -20s;
}

/* ===== BIRDS ===== */
.birds {
    position: fixed;
    top: 13%;
    left: 8%;
    font-size: 13px;
    opacity: 0.35;
    white-space: pre;
    pointer-events: none;
    z-index: 10;
    animation-delay: -20s;
}

/* ===== HILLS – Landschaftssilhouette ===== */
.hills {
    position: absolute;
    bottom: 121px;
    left: 0;
    font-size: 12px;
    opacity: 0.30;
    white-space: pre;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    max-width: 100%;
}

/* ===== ANIMATIONS ===== */

/* Wolken: 0–60 % Durchquerung linear mit sanftem Y-Bobbing (±4 px), 60–100 % geparkt. */
@keyframes floatCloud {
    0%    { transform: translateX(-110vw) translateY(0px);  }
    15%   { transform: translateX(-55vw)  translateY(-4px); }
    30%   { transform: translateX(0vw)    translateY(3px);  }
    45%   { transform: translateX(55vw)   translateY(-2px); }
    60%   { transform: translateX(110vw)  translateY(0px);  }
    100%  { transform: translateX(110vw)  translateY(0px);  }
}

/* Flugzeug: schlanker Zyklus ohne Y-Bob – spürbar flinker als Wolken. */
@keyframes floatPlane {
    0%    { transform: translateX(-110vw); }
    70%   { transform: translateX(110vw);  }
    100%  { transform: translateX(110vw);  }
}

/* ===== SUN BOB ===== */
@keyframes sunBob {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-4px); }
}



/* =====================================================
   LISTENANSICHT — Toggle-Feature
   ===================================================== */

.listview-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    background: none;
    border: none;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    color: #000;
    opacity: 0.45;
    padding: 8px 10px;
    transition: opacity 0.2s ease;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
}

.listview-btn:hover,
.listview-btn:focus-visible {
    opacity: 1;
    outline: 1px dashed rgba(0,0,0,0.4);
    outline-offset: 2px;
}

.listview-btn.active {
    opacity: 1;
}

.listview-panel {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: #e9e7e2;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.listview-panel.active {
    opacity: 1;
    pointer-events: auto;
}

.listview-inner {
    padding: 72px 32px 64px;
    max-width: 640px;
}

.listview-title {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 36px;
}

#listviewNav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
    font-family: monospace;
    font-size: 16px;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.10);
    opacity: 0.75;
    transform: none;
    filter: none;
    transition: opacity 0.2s ease, padding-left 0.15s ease;
}

#listviewNav a:hover,
#listviewNav a:focus-visible {
    opacity: 1;
    padding-left: 10px;
    transform: none;
    filter: none;
    outline: none;
}

.listview-arrow {
    margin-right: 14px;
    opacity: 0.35;
    flex-shrink: 0;
}

.listview-foot {
    margin-top: 48px;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.3;
}

.listview-foot a {
    color: #000;
    text-decoration: none;
    margin-right: 20px;
    transform: none;
    filter: none;
    transition: opacity 0.2s ease;
}

.listview-foot a:hover {
    opacity: 0.7;
    transform: none;
    filter: none;
}

@media (max-width: 480px) {
    .listview-inner {
        padding: 68px 20px 56px;
    }
    #listviewNav a {
        font-size: 15px;
        padding: 12px 0;
    }
}