/* Startseite: Vollbild-Slideshow (Ablauf wie chris.emil-janssen.de) */
html, body { overflow: hidden; height: 100%; }

.control-btn {
    position: fixed;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: color-mix(in srgb, var(--surface) 85%, transparent);
    border: 1px solid var(--border-strong);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1rem;
    z-index: 30;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.control-btn:hover { background-color: var(--surface-raised); }
.control-btn.is-paused { border: 2px solid var(--text); }
.btn-prev { left: 70px; }
.btn-pause { left: 120px; }
.btn-next { left: 170px; }

.headline {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    margin: 0;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}
.headline img {
    width: clamp(260px, 44vw, 760px);
    height: auto;
    filter: drop-shadow(0 0 22px rgba(0, 0, 0, 0.85));
}
.tagline {
    display: block;
    margin-top: 0.4rem;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    letter-spacing: 0.02em;
    color: var(--text);
    text-shadow: 0 0 14px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}
.headline.fade-out, .menu-container.fade-out { opacity: 0; pointer-events: none; }

.menu-container {
    position: absolute;
    top: calc(25% + clamp(7rem, 11vw, 13rem));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    z-index: 11;
    width: 100%;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}
@media (orientation: portrait) {
    .headline { top: auto; bottom: 56%; }
    .menu-container { top: 48%; }
}

.box {
    width: clamp(240px, 30vw, 420px);
    box-sizing: border-box;
    padding: clamp(10px, 1.6vw, 18px) clamp(20px, 3vw, 40px);
    font-size: clamp(1rem, 1.8vw, 1.45rem);
    font-weight: 400;
    text-align: center;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-md);
    background-color: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid var(--border-strong);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: 0.2s ease-in-out;
}
.box:hover { background-color: var(--surface-raised); }
/* Der eine primäre Button der Ansicht */
.box.primary {
    background-color: var(--brand-action);
    border-color: var(--brand-action);
    color: var(--on-brand);
}
.box.primary:hover { filter: brightness(1.08); background-color: var(--brand-action); }

#slideshow {
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
}
#slideshow .slide {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transform: translateX(100%);
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
#slideshow .slide.active { transform: translateX(0); z-index: 2; }
