﻿/* ============================================================
   🔹 BASISLAYOUT (gilt für alle Seiten)
   ============================================================ */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

/* ============================================================
   🔹 FORMULARSTEUERUNG (Admin / Eingabeformulare)
   ============================================================ */

.textbox {
    height: 20px;
    padding-left: 10px;
    border: 1px solid #555;
    border-radius: 2px;
    outline: none;
    font-size: 10pt;
    -webkit-appearance: none;
    box-sizing: border-box;
}

    .textbox:focus {
        background-color: #e6f4ff;
        border-color: #0078d4;
    }

.label, .linkbutton {
    border: none;
    background: none;
    font-size: 10pt;
    font-family: "Arial";
    height: 20px;
}

.dropdownlist {
    height: 22px;
    padding-left: 10px;
    border: 1px solid #555;
    font-size: 10pt;
    background-color: #fff;
    background: url('arrow.png') no-repeat right 8px center;
    background-size: 12px;
}

.button {
    background-color: #04AA6D;
    color: white;
    border: none;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    width: 135px;
    height: 30px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

    .button:hover {
        background-color: #029c62;
    }

/* ============================================================
   🔹 REGISTER / TAB-LAYOUT
   ============================================================ */
.tabs {
    position: relative;
    top: 1px;
    left: 10px;
}

.tab {
    border: 1px solid #ccc;
    background-color: #f2f2f2;
    padding: 4px 10px;
    cursor: pointer;
}

.selectedTab {
    background-color: #fff;
    border-bottom: 1px solid #fff;
}

.tabContents {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: white;
    width: 820px;
}

/* ============================================================
   🔹 MODAL-DIALOGE
   ============================================================ */
.modalBackground {
    background-color: rgba(0, 0, 0, 0.5);
}

.modalPopup {
    border: 1px solid #000;
    background-color: #fff;
    border-radius: 4px;
}

/* ============================================================
   🔹 PANORAMA VIEWER (Default.aspx)
   ============================================================ */

/* Body im Viewer-Modus */
/*body.viewer {
    background-color: #000;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
}*/

body.viewer {
    background-color: #000;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    /*overflow: hidden;*/
    /* display:flex;  ← RAUS */
    /* flex-direction: column; ← RAUS */
    /* height: 100vh; ← RAUS */
    /* width: 100vw;  ← RAUS */
}


/* Formular nimmt den gesamten Viewport ein */
#form1 {
    /*position: fixed; /* nimmt den ganzen Bildschirm ein */
    /*inset: 0; /* top:0; right:0; bottom:0; left:0 */
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Viewer-Container füllt das Formular vollständig aus */
#viewer-container {
    position: fixed; /* war: absolute */
    inset: 0;
    background-color: #000;
    overflow: hidden;
    z-index: 1;
}

/* Pannellum-Canvas füllt den Container */
#panorama {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Ladeanzeige & Copyright */
#loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-family: Arial, sans-serif;
    opacity: 0.7;
    z-index: 10;
}

#copyright-link {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    z-index: 10;
}

    #copyright-link:hover {
        color: rgba(255, 255, 255, 1);
    }

/* ============================================================
   🔹 RESPONSIVE DESIGN (Smartphone / Tablet)
   ============================================================ */
@media (max-width: 1024px) {
    .button {
        width: 100%;
        max-width: 300px;
        height: 40px;
        font-size: 16px;
    }

    .tabContents {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    #copyright-link {
        font-size: 10px;
        bottom: 5px;
    }

    /*body.viewer #viewer-container {
        height: 100vh;
    }*/
}
