/*----------- Allgemein -------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
html, body { margin: 0; padding: 0; font-family: Arial, sans-serif; color: #fff; background: #000; }
img { display: block; max-width: 100%; }
#slider { list-style: none; }
* { margin: 0; padding: 0; box-sizing: border-box; }

/*----------- Header ----------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.header {
    position: fixed; top: 0; left: 0; right: 0; height: 60px; background: #fff; z-index: 20;
    border-top: 4px solid #fff; border-bottom: 2px solid #fff; box-shadow: inset 0 1px 0 #000, inset 0 -2px 0 #000;
    transform: translateY(0); transition: transform 0.4s ease, visibility 0s;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 10px; font-size: 20px; line-height: 1; color: #000; white-space: nowrap;
}
.header.versteckt { transform: translateY(-100%); visibility: hidden; transition: transform 0.4s ease, visibility 0s linear 0.4s; }
.header-links  { grid-column: 1; justify-self: start; }
.header-mitte  { grid-column: 2; justify-self: start; display: none; }
.header-rechts { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) {
    .header { gap: 35px; padding: 0 15px; font-size: 25px; }
    .header-mitte { display: block; }
}

/*----------- Hintergrundbilder: fixiert, pro Slide beschnitten ---------------------------------------------------------------------------------------------------------------------------*/
.bild { width: 100%; height: 100vh; clip-path: inset(0); }
.bild img { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; object-fit: cover; object-position: center; }
.bild-blur .bild img { filter: blur(4px) brightness(50%); transform: scale(1.01); }

/*----------- Ebene: Basis + Fallback  ----------------------------------------------------------------------------------------------------------------------------------------------------*/
.links {
    position: fixed; top: 50%; left: 50%; z-index: 10; text-align: center; color: #fff;
    width: min(575px, 90vw, calc(90vh * 575 / 280)); aspect-ratio: 575 / 280; min-height: 0;
    opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(1); transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
    display: flex; flex-direction: column; align-items: center;
    container-type: inline-size; --px: calc(100cqw / 575);
}

/*----------- Inhalt ----------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.links.sichtbar { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s; }
.links h1, .links h2 { align-self: stretch; padding: calc(20 * var(--px)) calc(10 * var(--px)) calc(12 * var(--px)); border-bottom: 2px solid #fff;
    font-size: calc(40 * var(--px)); line-height: 1.0; font-weight: normal; }
.icons { display: flex; justify-content: center; gap: calc(20 * var(--px)); margin-top: calc(10 * var(--px)); }
.icon { display: block; width: calc(115 * var(--px)); height: calc(115 * var(--px)); }
.icon img { width: 100%; height: 100%; object-fit: cover; }
.datatext { align-self: stretch; flex: 1 1 0; min-height: 0; margin-top: calc(8 * var(--px)); padding: calc(8 * var(--px)) calc(20 * var(--px)) calc(12 * var(--px));
    font-size: calc(22 * var(--px)); line-height: 1.1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.textbox { align-self: stretch; flex: 1 1 0; min-height: 0; margin-top: calc(8 * var(--px)); padding: calc(8 * var(--px)) calc(20 * var(--px)) calc(12 * var(--px));
    font-size: calc(22 * var(--px)); text-align: justify; line-height: 1.1; }
.textbox a { text-decoration: none; font-weight: normal; color: #fff; }
.textbox a:hover { text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor; }
.disclaimer { font-size: 0.65em; color: #ddd; text-align: justify; padding-bottom:8px;      }
.kontakt { unicode-bidi: bidi-override; direction: rtl; }
.seo-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/*----------- Moderne Browser: an Scrollposition gekoppelt --------------------------------------------------------------------------------------------------------------------------------*/
@supports (animation-timeline: view()) {
    li.bild-blur { view-timeline: --blur-slide block; }
    .links, .links.sichtbar { transition: none; animation: links-scroll linear both; animation-timeline: --blur-slide; animation-range: cover 0% cover 100%; }
    @keyframes links-scroll {
        0%, 25% { opacity: 0; visibility: hidden; transform: translate(-50%, calc(-50% + 40px)) scale(0.95); }
        45%, 55% { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
        75%, 100% { opacity: 0; visibility: hidden; transform: translate(-50%, calc(-50% - 40px)) scale(0.95); }
    }
}