/* ============================================
   Ostfriesland Games - WordPress Plugin Styles
   v2.0 – Hero + Standalone Logo
   ============================================ */

/* Bühne */
.hero-stage {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.hero-stage *,
.hero-stage *::before,
.hero-stage *::after {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Himmel */
.hero-stage .layer-sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
    z-index: 1;
}

/* Wolken */
.hero-stage [class^="layer-cloud-"] {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    left: -700px;
    opacity: 0.5;
    z-index: 2;
}

.hero-stage .layer-cloud-1 {
    top: 30px;
    width: 300px;
    height: 96px;
    background-image: url('gfx/OG_Pixel_Wolke_Header01.png');
    animation: og-move-clouds 35s linear infinite;
}

.hero-stage .layer-cloud-2 {
    top: 80px;
    width: 360px;
    height: 120px;
    background-image: url('gfx/OG_Pixel_Wolke_Header02.png');
    animation: og-move-clouds 28s linear infinite;
    animation-delay: -10s;
}

.hero-stage .layer-cloud-3 {
    top: 15px;
    width: 516px;
    height: 93px;
    background-image: url('gfx/OG_Pixel_Wolke_Header03.png');
    animation: og-move-clouds 40s linear infinite;
    animation-delay: -20s;
}

.hero-stage .layer-cloud-4 {
    bottom: 193px;
    width: 660px;
    height: 174px;
    background-image: url('gfx/OG_Pixel_Wolke_Header04.png');
    animation: og-move-clouds 80s linear infinite;
    animation-delay: -5s;
}

.hero-stage .layer-cloud-5 {
    top: 100px;
    width: 381px;
    height: 84px;
    background-image: url('gfx/OG_Pixel_Wolke_Header05.png');
    animation: og-move-clouds 30s linear infinite;
    animation-delay: -15s;
}

/* Meer */
.hero-stage .layer-sea {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 193px;
    background: #2a5c8a;
    z-index: 2;
}

/* Deich */
.hero-stage .layer-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 546px;
    background: url('gfx/deich.png') repeat-x 0 bottom / 1776px 546px;
    z-index: 3;
    animation: og-scroll-terrain 12s linear infinite;
}

/* Container hinter Radfahrer (Bank) */
.hero-stage .layer-objects-back {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

/* Container vor Radfahrer (Schafe) */
.hero-stage .layer-objects-front {
    position: absolute;
    inset: 0;
    z-index: 11;
    pointer-events: none;
}

/* Deich-Objekte (Bank, Schafe) */
.hero-stage .deich-object {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
}

.hero-stage .deich-object.bank {
    width: 195px;
    height: 66px;
    bottom: 186px;
    background-image: url('gfx/OG_Pixel_Bank01.png');
}

.hero-stage .deich-object.schaf1,
.hero-stage .deich-object.schaf2,
.hero-stage .deich-object.schaf-black,
.hero-stage .deich-object.schaf-pink {
    background-size: contain;
}

/* Radfahrer */
.hero-stage .layer-cyclist {
    position: absolute;
    bottom: 186px;
    left: 75%;
    transform: translateX(-50%) rotate(0deg);
    transform-origin: 85% 110%;
    width: 150px;
    height: 159px;
    background: url('gfx/radfahrer_sprite.png') 0 0 / 1350px 159px;
    z-index: 10;
    animation: og-cycle-frames 0.6s steps(9) infinite;
    transition: transform 0.4s ease-out;
}

.hero-stage .layer-cyclist.jump-active {
    transform: translateX(-50%) rotate(25deg);
}

/* Logo (in hero-stage) */
.hero-stage .layer-logo {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 250px;
    z-index: 9;
}

.hero-stage .layer-logo img,
.og-logo-standalone .layer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
}

/* ============================================
   Standalone Logo mit Glitzersternen
   ============================================ */

.og-logo-standalone {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.og-logo-standalone .layer-logo {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.og-logo-standalone .layer-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Glitzersterne (in beiden Kontexten) */
.hero-stage .sparkle,
.og-logo-standalone .sparkle {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

.hero-stage .sparkle.stern,
.og-logo-standalone .sparkle.stern {
    width: 72px;
    height: 69px;
    background: url('gfx/stern_sprite.png') 0 0 / 144px 69px;
    animation: og-sparkle-stern 0.15s steps(2) 3, og-sparkle-fade 0.45s ease-out forwards;
}

.hero-stage .sparkle.sternchen,
.og-logo-standalone .sparkle.sternchen {
    width: 60px;
    height: 63px;
    background: url('gfx/sternchen_sprite.png') 0 0 / 120px 63px;
    animation: og-sparkle-sternchen 0.12s steps(2) 4, og-sparkle-fade 0.48s ease-out forwards;
}

/* Animationen (og- Prefix gegen Kollisionen) */
@keyframes og-scroll-terrain {
    from { background-position: 0 bottom; }
    to   { background-position: 1776px bottom; }
}

@keyframes og-move-clouds {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(100vw + 700px)); }
}

@keyframes og-cycle-frames {
    from { background-position-x: 0; }
    to   { background-position-x: -1350px; }
}

@keyframes og-sparkle-stern {
    from { background-position-x: 0; }
    to   { background-position-x: -144px; }
}

@keyframes og-sparkle-sternchen {
    from { background-position-x: 0; }
    to   { background-position-x: -120px; }
}

@keyframes og-sparkle-fade {
    0%   { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}

/* Responsive – Hero Logo */
@media (max-width: 1024px) {
    .hero-stage .layer-logo {
        width: 500px;
        height: 250px;
        top: calc(3% + 5px);
    }
}

@media (max-width: 768px) {
    .hero-stage .layer-logo {
        width: 414px;
        height: 207px;
        top: calc(2% + 80px);
    }
}

@media (max-width: 480px) {
    .hero-stage .layer-logo {
        width: 322px;
        height: 161px;
        top: calc(2% + 80px);
    }
}
