:root {
	--videoheight: 75dvh;
	--headerheight: 280px;
    --footerheight: 190px;
    --footerblend: 50px;
}



/* -----------------------------------------------------------
   Grundlayout
----------------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: sans-serif;
    color: #fff;
    height: 100%;
    overflow-x: hidden;
}

/* -----------------------------------------------------------
   Header (global)
----------------------------------------------------------- */
.header-bar {
/*
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 100;
    padding: 30px 0 0 30px;
    background: #0000;
    background: linear-gradient(0deg,#0000 0%, #000 70%, #000 100%);    
*/
    position: fixed;    
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #0000;
    background: linear-gradient(0deg,#0000 0%, #0000 40%,#000 50%, #000 100%);
    height:var(--headerheight);
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top:40px;

}

.header-bar .logo img {
    width: 130px;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.7));
}

/* H1 bewusst unsichtbar */
.header-bar .logo h1 {
    visibility: hidden;
    text-indent: -4000px;
    height: 1px;
    padding:0;
    margin:0;
}

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
.footer-bar {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #0000;
    background: linear-gradient(180deg,#0000 0%, #000 100%);
    margin-top:calc(var(--headerheight) * -1);
    display: flex;
    flex-direction: column;
   justify-content: flex-end;
   height:var(--footerblend);
}

.footer-bar .logo img {
    width: 300px;
    max-width: 60%;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.7));
}

/* H1 bewusst unsichtbar */
.footer-bar .logo h1 {
    visibility: hidden;
    text-indent: -4000px;
    height: 1px;
    padding:0;
    margin:0;
}

/* -----------------------------------------------------------
   Wrapper Startseite
----------------------------------------------------------- */
.wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* -----------------------------------------------------------
   Vollbild-Video
   (transform wurde entfernt, um Safari-Control-Probleme zu vermeiden)
----------------------------------------------------------- */
video {
    position: absolute;
    top: calc( var(--headerheight) / 2);
    left: 0;

    width: 100%;
    height: calc(100dvh - (var(--headerheight) / 2) - (var(--footerheight) / 1.2) + 10px);

    object-fit: cover;
    object-position: center center;

    z-index: 1;
}

/* -----------------------------------------------------------
   Player Controls
----------------------------------------------------------- */
.controls {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 22px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 40px;
    z-index: 20;
    border: 1px solid #444;
    max-width: 80%;

    position: relative;
}

/* Buttons – iOS-fest (immer rund) */
.controls button {
    width: 44px !important;
    height: 44px !important;

    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    flex-grow: 0;

    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.15s;
}

.controls button:hover {
    background: rgba(255,255,255,0.25);
}

.controls button:active {
    transform: scale(0.92);
}

.controls button img {
    width: 22px;
    height: 22px;
    pointer-events: none; /* wichtig für iOS Touch */
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}

/* Zeitangaben */
.controls span {
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

/* Fortschrittsbalken */
.progress {
    width: 220px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 6px;
    background: #fff;
    width: 0;
    border-radius: 3px;
}

/* Pulsierender Leuchtring für Mute-Warnung */
@keyframes pulse-ring {
    0% {
        box-shadow: 0px 0px 5px 7px rgb(146, 255, 214);
    }
    70% {
        box-shadow: 0 0 18px 8px rgba(255,255,255,0.0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}

/* Klasse für pulsierende Warnung */
.warn-mute {
    animation: pulse-ring 1.2s infinite;
}

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
footer {
    position: absolute;
    left: 0;
    bottom:0px;
    width: 100%;
    height: var(--footerheight);
    font-size: 14px;
    text-align: center;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;    
}

.footer-black {
    background-color: #000;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;   
    padding-bottom:10px;
    height: calc(100% - var(--footerblend));
}

/* Footerlinks Container */
.footerlinks {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80%;
    position: relative;
    z-index: 60;
}

/* Standard-Footerlinks */
.footerlinks a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    text-shadow: 0 0 6px rgba(0,0,0,0.7);
}

.footerlinks a.atext:hover {
    text-decoration: underline;
}

/* Social Icons */
footer a.social img {
    width: 30px;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
    transition: opacity 0.2s ease;
}

footer a.social:hover img {
    opacity: 0.75;
}

/* -----------------------------------------------------------
   Neue Icon Buttons (Standort / Mail / Telefon)
----------------------------------------------------------- */
.icon-btn img {
    width: 30px;
    height: 30px;
    vertical-align: middle;

    filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
    transition: opacity 0.2s ease;

    pointer-events: none; /* wichtig: verhindert Touch-Blocker */
}

.icon-btn:hover img {
    opacity: 0.75;
}

/* -----------------------------------------------------------
   Info-Boxen unter Footer
----------------------------------------------------------- */
.info-box {
    display: none;
    position: absolute;
    bottom: 150px;                     /* Abstand über Footer */
    left: 50%;
    transform: translateX(-50%);

    background: rgba(0, 0, 0, 0.45);
    border: 1px solid #444;
    backdrop-filter: blur(4px);

    padding: 14px 20px;
    border-radius: 12px;

    width: fit-content;
    max-width: 90%;
    text-align: center;
    white-space: nowrap;

    font-size: 16px;
    line-height: 1.5;

    color: #fff;

    z-index: 200;
}

.info-box.visible {
    display: block;
}

.info-box a {
    color: #fff;
    text-decoration: none;
}
.info-box a:hover {
    color: #fff;
    text-decoration: underline;
}
.info-box button {
    background: none;
    border: none;
    color: #fff;
    font: inherit;
    text-align: center;
    padding: 0;
    cursor: pointer;
}
.info-box button:hover {
    color: #fff;
    text-decoration: underline;
}

/* -----------------------------------------------------------
   Unterseiten (Impressum, Datenschutz, Kontakt)
----------------------------------------------------------- */
.impressum-wrapper,
.datenschutz-wrapper,
.kontakt-wrapper {
    max-width: 800px;
    margin: 140px auto 60px auto; /* Platz für Header */
    padding: 40px;
    color: #fff;
    line-height: 1.6;
}
