
/* ====================================  Overlay Typ 1 (fuer Foto/Video-Anzeige)  ==================================== */

.overlay__typ_1__container
{
    display:none; /* wird beim Einblenden ueberschrieben */
    
    position:fixed; 
    width:100%; height:100%; 
    top:0px; left:0px; /* braeuchte man nicht, wenn das Container-Div nicht am Ende der Seite, sondern am Anfang des body-tags platziert wuerde */
    
    z-index:60000;
}


.overlay__typ_1__div_1 
{ 
    width:100%; height:100%;
    
    /* Zentrierung des inneren Divs mittels Flexbox: */
    display: flex;
    
    /* ### T-ACK #204 !!! ### */
    justify-content: safe center;   /* horizontal zentrieren */
    align-items: safe center;       /* vertikal zentrieren */ 
    
    background-color: rgba(0,0,0,0.7);   
}

.overlay__typ_1__div_2 
{ 
    display: flex;
    flex-flow: column; /* vertikale Anordnung der Div-Items */

    z-index:60001; width:96%; height:96%; /* margin-top:auto; margin-bottom:auto; margin-left:auto; margin-right:auto; */
    background-color: rgba(0,0,0,1); border:1px solid #ffffff;

    overflow:hidden;
}

.overlay__typ_1__div_3 
{ 
    display:flex;
    align-items: center; /* Items vertikal zentrieren */
    background-color: rgba(15,39,67,0.95);
}
.overlay__typ_1__div_4 
{  
    flex-grow:1; flex-shrink: 1; padding:13px 15px 8px 20px;
    font-size: calc(15px + 0.3vw);
    font-weight:normal; color:#ffffff; 
    text-align: center;
}

.overlay__typ_1__div_5 
{ 
    /* Breite des oberen Schliessen-Buttons */
    /* ### T-ACK #126 ### */
    flex-basis: calc(15px + 1vw);
    flex-basis: min(4vw, 30px);   
    
    flex-grow:0; flex-shrink: 0;  
    padding:15px 20px 8px 0px; cursor:pointer; 
}

.overlay__SchliessenGrafik_oben
{
    width:100%; 
    display:block; /* ### T-ACK #125 ### */
}

.overlay__typ_1__div_6 
{ 
    flex-basis: 100px; flex-grow:1; flex-shrink: 1;
    min-height: 0px; /* Unverzichtbar! */
    
    padding:1vw;

    background-color: rgba(0,0,0,0.8);
    /* border:1px solid #888888; */

}
.overlay__typ_1__div_7 
{ 
    /*
    flex-basis: 36px; 
    flex-grow:0; flex-shrink: 0; 
    */
    background-color: #0f2d4e;
}

.overlay__typ_1__div_8 
{ 
    padding-top:calc(12px + 0.2vw); padding-bottom:calc(12px + 0.2vw);
    text-align:center; 
    font-size: calc(15px + 0.3vw); letter-spacing: 2px;
    font-weight:normal; color:#ffffff; 
    cursor:pointer; 
}


.overlay__typ_1__img
{
    width: 100%; height: 100%;
    object-fit: scale-down; /* Bild-Einpassung ggf. mit Verkleinerung, aber stets ohne Vergroesserung. Keine Verzerrung, Seitenverhaeltnis bleibt erhalten. */
    /* object-fit: contain; */ /* Bild-Einpassung mit Verkleinerung oder Vergroesserung */
}

.overlay__typ_1__video
{
    width: 100%; height: 100%; 
    /* object-fit: cover; */    /* nicht noetig */
}


/* =========================================  Overlay Typ 2 (für normales HTML, z.B. eine Klima-Tabelle) ========================================= */

.overlay__typ_2__containerDiv_1
{
    display:none; /* wird beim Einblenden mit 'display:flex' ueberschrieben */
    position:fixed; 
    width:100%; height:100%; 
    top:0px; left:0px; /* nötig, wenn der Container-Code am Ende der Seite steht (und nicht am Anfang des body-Tags) */
    z-index:50000;
    
    /* ### T-ACK #204 !!! ### */
    justify-content: safe center;   /* horizontal zentrieren */
    align-items: safe center;       /* vertikal zentrieren */
}

.overlay__typ_2__containerDiv_2 
{ 
    display: flex;
    flex-flow: column; /* vertikale Anordnung der Div-Items */
  
    width:86%; max-width:1800px;
    height:56%; 
    border:15px solid #47a6e3; border-radius:5px; background-color:#04365b; box-shadow: 20px 20px 25px 0px rgba(0,0,0,0.7);
}

.overlay__typ_2__HeaderDiv_1 
{ 
    display:flex; padding:24px 10px 20px 10px; background-color:#001f34;  
    align-items: center; /* Items vertikal zentrieren */
}
.overlay__typ_2__HeaderDiv_2 
{  
    flex-grow:1; flex-shrink: 1; padding:3px 15px 0px 70px;
    font-family: var(--font_2); font-size:calc(21px + 0.3vw); font-weight:400; color:#ffffff;
    text-align: center;
}
.overlay__typ_2__HeaderDiv_3 
{ 
    /* Breite des oberen Schliessen-Buttons */
    /* ### T-ACK #126 ### */
    flex-basis: calc(15px + 1vw);
    flex-basis: min(4vw, 30px);   
    
    flex-grow:0; flex-shrink: 0;  
    padding:0.5vw 20px 0.5vw 0px; cursor:pointer; 
}

.overlay__typ_2__ContentDiv
{
    flex-grow:1; flex-shrink: 1; flex-basis: 100px;
    display:flex; flex-direction: column;
    padding:3% 10px 3% 5px; overflow: scroll;
    
    /* ### T-ACK #204 !!! ### */
    align-items: safe center;            /* ergibt vertikale Zentrierung, wenn "flex-direction: row". Bei  "flex-direction: column" ergibt sich horizontale Zentrierung */ 
    /* justify-content: safe center; */  /* ergibt horizontal Zentrierung, wenn "flex-direction: row". Bei  "flex-direction: column" ergibt sich vertikale Zentrierung  */
}

.overlay__typ_2__ContentTextBlock
{
    padding-top:50px; padding-left:10%; padding-right: 10%; max-width:1000px;
    font-size:85%;
}

.overlay__typ_2__CloseDiv 
{ 
    margin-top:20px; /* damit Content nicht bis an Close-Leise heranreichen kann */
    padding:24px 10px 20px 10px; background-color: #001f34; text-align: center; color:#ffffff; cursor: pointer;
}
/* ----------------------------------------------- */
@media only screen and (max-width: 1500px) 
{
    .overlay__typ_2__containerDiv_2 { width:95%; border:5px solid #47a6e3; }
}
@media only screen and (max-width: 1150px) /* hier erfolgt in klimatabelle.css der Umbau der Klima-Tabelle */
{
    .overlay__typ_2__containerDiv_2 { height:88%; border:5px solid #47a6e3; }
}

