/**
 * SmartHomeConsulting
 * Name: Arthur Peter Lorenzen
 * Adresse: Bachtelstrasse 68, 8342 Wernetshausen, Schweiz
 * Telefon: +41 44 938 07 15
 * E-Mail: info@smarthomeconsulting.ch
 * web: www.smarthomeconsulting.ch
 */

/* 1. Allgemeine Stile */

/* 1.1 Reset und Grundstile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Roboto, sans-serif;
}

body {
    font-family: 'Helvetica Neue', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 1.2 Container und Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 1.2.1 Hauptinhalt */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 1.3 Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.3;
}

/* 1.3.1 Überschriften-Größen */
h1 {
    font-size: 2.5rem;
    color: #8b0000;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* 1.3.2 Absätze und Links */
p {
    margin-bottom: 1rem;
}

a {
    color: #8b0000;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #a50000;
    text-decoration: underline;
}

/* 1.4 Header-Stile */
.header {
    background-color: #8b0000;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 1.4.1 Header-Titel */
.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 1.4.2 Logo-Container */
.logo-container {
    display: flex;
    align-items: center;
}

/* 1.4.3 Header-Logo */
.header-logo {
    height: 40px;
    margin-right: 15px;
}

/* 1.5 Footer-Stile */
.footer {
    background-color: #f0f0f0;
    color: #555;
    padding: 15px 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
    margin-top: auto;
    position: relative;
}

/* 1.5.1 Footer-Text */
.footer p {
    margin: 0;
}

/* 1.5.2 Footer-Links */
.footer a {
    color: #8b0000;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 1.5.3 Admin-Link im Footer */
.admin-link {
    position: absolute;
    right: 15px;
    bottom: 15px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.admin-link:hover {
    opacity: 1;
}

/* 1.5.4 Admin-Icon */
.admin-icon {
    width: 20px;
    height: 20px;
    fill: #666;
}

/* 1.6 Buttons und interaktive Elemente */
.btn {
    display: inline-block;
    background-color: #8b0000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 1.6.1 Button-Hover */
.btn:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

/* 1.6.2 Button-Active */
.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

/* 1.6.3 Sekundärer Button */
.btn-secondary {
    background-color: #666;
}

.btn-secondary:hover {
    background-color: #777;
}

/* 1.6.4 Kleine Buttons */
.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* 1.6.5 Große Buttons */
.btn-large {
    padding: 12px 24px;
    font-size: 1.2rem;
}

/* 1.7 Hamburger-Menü */
.hamburger-menu {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

/* 1.7.1 Hamburger-Menü-Balken */
.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
}

/* 1.8 Mobile-Menü */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* 1.8.1 Aktiver Overlay */
.mobile-overlay.active {
    display: block;
}

/* 1.8.2 Mobile-Menü-Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: #f0f0f0;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    overflow-y: auto;
}

/* 1.8.3 Aktives Menü */
.mobile-menu.active {
    right: 0;
}

/* 1.8.4 Mobile-Menü-Header */
.mobile-menu-header {
    background-color: #8b0000;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 1.8.5 Mobile-Menü-Titel */
.mobile-menu-title {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

/* 1.8.6 Mobile-Menü-Schließen-Button */
.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 1.8.7 Mobile-Raum-Buttons */
.mobile-room-buttons {
    padding: 3px;
}

/* 1.8.8 Buttons im Mobile-Menü */
.mobile-room-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 3px;
    text-align: left;
    background-color: white;
    color: #8b0000;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.9rem;
}

/* 1.8.9 Aktiver Button im Mobile-Menü */
.mobile-room-buttons .btn.active {
    background-color: #8b0000;
    color: white;
    border-color: #8b0000;
}

/* 1.8.10 Hover-Effekt für Buttons im Mobile-Menü */
.mobile-room-buttons .btn:hover {
    background-color: #f9f9f9;
}

/* 1.9 Welcome-Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1000;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 1.9.1 Welcome-Content */
.welcome-content {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow-y: auto;
}

/* 1.9.2 Welcome-Logo */
.welcome-logo {
    max-width: 200px;
    max-height: 150px;
    margin-bottom: 20px;
}

/* 1.9.3 Welcome-Screen Überschrift */
.welcome-screen h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* 1.9.4 Welcome-Screen Text */
.welcome-screen p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-align: center;
    max-width: 700px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 1.9.5 Immobilien-Info im Welcome-Screen */
.property-info-welcome {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

/* 1.9.6 Einzelne Info-Items im Welcome-Screen */
.welcome-info-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* 1.9.7 Info-Label im Welcome-Screen */
.welcome-info-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

/* 1.9.8 Info-Wert im Welcome-Screen */
.welcome-info-value {
    font-size: 1.1rem;
    font-weight: bold;
}

/* 1.9.9 Property-Info-Grid */
.property-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

/* 1.9.10 Zusätzliche Features */
.additional-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

/* 1.9.11 Start-Button */
.start-button {
    background-color: #8b0000;
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 1.9.12 Start-Button Hover */
.start-button:hover {
    background-color: #a00000;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* 1.9.13 Start-Button Active */
.start-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 1.10 Responsive Design */
/* 1.10.1 Tablet */
@media (max-width: 992px) {
    /* 1.10.1.1 Welcome-Screen auf Tablets */
    .welcome-screen h1 {
        font-size: 2.2rem;
    }
    
    .welcome-screen p {
        font-size: 1.1rem;
    }
    
    .property-info-welcome {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* 1.10.2 Mobile */
@media (max-width: 768px) {
    /* 1.10.2.1 Header auf Mobilgeräten */
    .header-title {
        font-size: 1.2rem;
    }
    
    .header-logo {
        height: 30px;
        margin-right: 10px;
    }
    
    /* 1.10.2.2 Typographie auf Mobilgeräten */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    /* 1.10.2.3 Welcome-Screen auf Mobilgeräten */
    .welcome-screen h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .welcome-screen p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .welcome-logo {
        max-width: 120px;
        max-height: 90px;
        margin-bottom: 15px;
    }
    
    .start-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .property-info-welcome {
        grid-template-columns: 1fr;
    }
    
    /* 1.10.2.4 Vollbildmodus für Mobile */
    #panorama.fullscreen {
        height: 100vh;
        margin-top: 0;
    }
    
    .fullscreen-controls {
        padding: 10px;
    }
    
    .fullscreen-controls .icon-btn {
        width: 44px;
        height: 44px;
        margin: 0 10px;
    }
    
    /* 1.10.2.5 Button Container Anpassung für Mobile */
    .button-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
}

/* 1.10.3 Small Mobile */
@media (max-width: 480px) {
    /* 1.10.3.1 Welcome-Screen auf kleinen Mobilgeräten */
    .welcome-screen {
        padding: 10px;
    }
    
    .welcome-content {
        padding: 15px;
    }
    
    .welcome-logo {
        max-width: 100px;
        max-height: 80px;
    }
    
    .welcome-screen h1 {
        font-size: 1.3rem;
    }
    
    .welcome-screen p {
        font-size: 0.8rem;
    }
    
    .welcome-info-item {
        padding: 8px;
    }
    
    .welcome-info-label {
        font-size: 0.7rem;
    }
    
    .welcome-info-value {
        font-size: 0.9rem;
    }
    
    .start-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* 1.11 Animationen */
/* 1.11.1 Fade-In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 1.11.2 Fade-Out Animation */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

/* 1.12 Touch-Unterstützung */
@media (pointer: coarse) {
    /* 1.12.1 Anpassungen für Touch-Geräte */
    .fullscreen-controls {
        /* Immer etwas sichtbar halten, damit der Benutzer weiß, dass es Steuerelemente gibt */
        transform: translateY(70%);
        opacity: 0.5;
    }
    
    .fullscreen-controls:hover,
    .fullscreen-controls:active,
    .fullscreen-controls.visible {
        transform: translateY(0);
        opacity: 1;
    }
    
    .icon-btn {
        /* Verbesserte Touch-Ziele */
        width: 48px;
        height: 48px;
    }
}
/* 1.5.5 SSL-Indikator im Footer */
.ssl-indicator {
    margin-left: 10px;
    font-size: 0.8rem;
}

.ssl-indicator a {
    color: #4CAF50;
    text-decoration: none;
    border-bottom: 1px dotted #4CAF50;
}

.ssl-indicator a:hover {
    color: #45a049;
    border-bottom: 1px solid #45a049;
}
