* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    background: #465568;
    color: #eee;
    font-family: Arial, sans-serif;
}

.app {
    width: 100%;
    max-width: none;
    margin: 0;
}

header {
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    font-size: 34px;
    letter-spacing: 8px;
    margin-bottom: 5px;
}

header p {
    color: #999;
    font-size: 13px;
    letter-spacing: 2px;
}

/* Bildcontainer */

#image-container {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #222;
    isolation: isolate;
}

/* Vier deckungsgleiche Bildebenen */

#image-container .image-layer {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition-property: opacity;
    transition-duration: 6s; /* wird zusätzlich durch JavaScript gesteuert */
    transition-timing-function: ease-in-out;
    pointer-events: none;
}

/* Regler für die vier Bildebenen */

.controls {
    max-width: 650px;
    margin: 30px auto;
	display: none;
}

.slider-row {
    display: grid;
    grid-template-columns: 75px 1fr 50px;
    gap: 15px;
    align-items: center;
    margin: 16px 0;
}

.slider-row span {
    text-align: right;
    color: #aaa;
    font-variant-numeric: tabular-nums;
}

input[type="range"] {
    width: 100%;
    accent-color: #65a9d0;
    cursor: pointer;
}

/* Zusätzliche Animationsregler */

.setting-group {
    margin-top: 27px;
}

.setting-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 9px;
}

.setting-heading span {
    color: #aaa;
    font-variant-numeric: tabular-nums;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

/* Buttons */

.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 32px;
}

button {
    padding: 12px 20px;
    background: #30383e;
    border: 1px solid #59646c;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background: #48677b;
}

/* Footer */

footer {
    display: none;
}

/* Mobil */

@media (max-width: 600px) {
    #image-container {
        aspect-ratio: 16 / 9;
    }

    .slider-row {
        grid-template-columns: 65px 1fr 45px;
        gap: 10px;
    }
}


/* art3w Wasserzeichen */

#watermark {
    position: absolute;
    z-index: 10;

    width: 120px;
    max-width: 15%;

    height: auto;

    right: 25px;
    bottom: 25px;

    opacity: 0.65;

    pointer-events: none;
    object-fit: contain;
}

/* ENDLESS Präsentationstitel */

.title-overlay {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: #fff;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    pointer-events: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.title-overlay.is-visible {
    opacity: 1;
}

.title-overlay h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 6vw, 64px);
    font-weight: 400;
    letter-spacing: 0.22em;
}

.title-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(11px, 1.6vw, 17px);
    letter-spacing: 0.16em;
}


/* Dezenter Audio-Schalter */

.audio-toggle {
    position: absolute;
    z-index: 20;
    left: 25px;
    bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
    opacity: 1;
    color: #fff;
    background: transparent;
    outline: none;
}

.audio-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.audio-toggle svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.audio-toggle .sound-waves {
    fill: none;
}

.audio-toggle.is-muted .sound-waves {
    display: none;
}

@media (max-width: 600px) {
    .audio-toggle {
        left: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
    }
}


/* Dezenter Fullscreen-Schalter – oben rechts */
.fullscreen-toggle {
    position: absolute;
    z-index: 20;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.fullscreen-toggle:hover,
.fullscreen-toggle:focus-visible {
    opacity: 1;
    color: #fff;
    background: transparent;
    outline: none;
}
.fullscreen-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}
.fullscreen-toggle svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.fullscreen-toggle .fullscreen-collapse {
    display: none;
}
.fullscreen-toggle.is-fullscreen .fullscreen-expand {
    display: none;
}
.fullscreen-toggle.is-fullscreen .fullscreen-collapse {
    display: block;
}
#image-container:fullscreen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
}
#image-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
}
@media (max-width: 600px) {
    .fullscreen-toggle {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
}
