:root{
    --bg:#000000;/* #0b0f14*/;
    --fg:#e8f0f7;
    --accent:#3aa675;
    /*--brand-green:#0b7a4b;*/
    /*--brand-dark:#0b1e14;*/
    /*--brand-light:#ffffff;*/
    /*--backdrop:rgba(0,0,0,.35);*/
}

[hidden]{ display: none !important; }

html,body{
    /*height:100vh;*/
    background:var(--bg);
    color:var(--fg);
    font-family:system-ui,-apple-system,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;
}

footer {
    /*position:relative;*/
    bottom:0;
    left:0;
    height: 10vh;
    width: 100%;
    background:var(--bg);
    color:var(--fg);
    font-family:system-ui,-apple-system,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;
}

header {
    /*height:35vh;*/
}

/* Sanfter Hero-Verlauf passend zu Bootstrap */
.hero-gradient{
    background: linear-gradient(90deg, rgba(58,166,117,.18), rgba(0,0,0,.35));
}

a{ color:var(--accent); }
a:hover{ opacity:.9; }

/* 3D-Szene: Größe/Look */
#scene{
    width:100%;
    height:60vh;           /* gute Standardhöhe */
    min-height:300px;
    background:var(--bg);
    border-radius:.75rem;
    /*overflow:hidden;*/
    position: relative;
}
canvas{ display:block; }

/* Optional: VR-Button (von WebXR) optisch etwas einblenden */
#VRButton {
    position: relative;
    /*right: 1rem;*/
    /*bottom: 1rem;*/
    z-index: 1040;
    border-radius: .3rem !important;
}

/* Karten-/Komponentenfeinschliff */
.card.bg-body-tertiary{
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}


/* Kleine Toolbar über der Szene */
.scene-toolbar {
    z-index: 1000;
    position: absolute;
    top: 10px;
    right:10px;
    /*background: #2fa1d6;*/
}

.button-on-screen {
    padding: 2px;
    min-height: 30px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: 1px solid white;
    cursor: pointer;
    min-width: 25px;
    border-radius: .3rem !important;
    /*margin-top: 5px;*/
}

.button-on-screen:hover  {
    background: #c6c7c9;
}
.button-on-screen:focus {
    outline: none;
}

.button-on-screen.enabled {
    background: #CCCCCC;
}

.button-on-screen.disabled {
    color: #CCCCCC;
    /*background-color: #CCCCCC;*/
}

/* "Großansicht": Intro ausblenden, Szene fast bildschirmfüllend */
.scene-expanded header,
.scene-expanded footer,
.scene-expanded .col-lg-5 {  /* linke Textspalte */
    display: none !important;
}

.scene-expanded .container {
    max-width: 100% !important;
}

.scene-expanded #scene {
    height: 88vh !important;     /* groß, aber nicht Vollbild */
    border-radius: 0.5rem;
}

.infobox {
    position: absolute;
    padding: 2px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: 1px solid white;
    min-width: 50px;
    max-width: 250px;
    overflow: hidden;
    font-size: 10px;
}

.infobox#currentPosition {
    text-align: left;
    width: 300px;
    right: 10px;
    bottom: 25px;
    border-radius: .3rem !important;
    /*height: 25px;*/
}

.infobox#objectDetails {
    text-align: left;
    width: 300px;
    right: 10px;
    bottom: 47px;
    border-radius: .3rem !important;
}

.infobox#attributions {
    text-align: left;
    width: 300px;
    right: 10px;
    bottom: 2px;
    border-radius: .3rem !important;
}

#webcam-wrap {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 250px;           /* oder: 30vw;  */
    /*height: 100px;*/
    aspect-ratio: 16 / 9;   /* hält Seitenverhältnis */
    max-width: 100%;
    max-width: 100%;
    z-index: 10001;
    display: none;
}

#webcam,
#output_canvas {
    position: absolute;
    inset: 0;           /* top/right/bottom/left: 0 */
    width: 100%;
    height: 100%;
}

#output_canvas{
    transform: rotateY(180deg);
    border: red 1px solid;
}

#webcam {
    transform: rotateY(180deg);
    object-fit: cover;  /* oder 'contain', wenn alles sichtbar sein soll */
}

.output {
    /*display: none;*/

    position: absolute;
    bottom: 0px;
    width: 100%;
    font-size: 8px;
    /*background-color: red;*/
    z-index: 10002;

}

#blocker {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

#instructions {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    font-size: 18px;
    color: white;
    cursor: pointer;
}

#scene { position: relative; } /* ist bereits gesetzt */
#loader-spinner{
    z-index: 1000;           /* über der Canvas/Toolbar */
    border-radius: inherit;  /* übernimmt Rundungen von #scene */
    pointer-events: all;     /* blockiert Interaktionen darunter */
}

#datetime-controls-container {
    width: 360px;
    z-index: 1000;
    position: absolute;
    top: 80px;
    right: 10px;
    /*background-color: #00ff00;*/
}

#datetime-controls {
    float: right;
    z-index: 10000;
    height: 50px;
    width: 310px;
    /*background-color: #2fa1d6;*/
    display: none;
}

#time-slider {
    float: left;
    border-radius: 0;
    width: 100px;
    height: 10px;
    background: rgba(0,0,0,0.5);
    margin-top: 10px;
    /*display: none;*/
}

#date-picker{
    float: left;
    margin-left: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
}

#time-play{
    float: left;
    margin-left: 10px;
}

#time-slider .noUi-tooltip {
    /*color: red;*/
    /*height: 5px;*/
    background-color: black;
    color: white;

}

#time-slider .noUi-handle {
    border-radius: 0;
    background: white;
    height: 10px;
    width: 20px;
    top: -1px;
    right: -9px;
}

#time-slider .noUi-handle::after {
    border-radius: 0;
    background: black;
    height: 1px;
    width: 5px;
    top: -1px;
    right: -9px;
}

#time-slider .noUi-handle::before {
    border-radius: 0;
    background: black;
    height: 1px;
    width: 5px;
    top: -1px;
    right: -9px;
}


/* falls noch nicht vorhanden */
[hidden]{ display: none !important; }

#scene{ position: relative; } /* Basis fürs Overlay */
#loader-progress{
    z-index: 1000;
    border-radius: inherit;
    pointer-events: all; /* blockiert Interaktionen darunter */
}

