:root {
    /* CUSTOMIZER - Hier Werte anpassen */
    --bg-gradient: radial-gradient(circle, #ffffff 0%, #e0e0e0 100%);
    --accent-color: #0071e3; /* Apple Blue */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #1d1d1f;
    --text-sub: #424245;
    
    --font-title: 22px;
    --font-desc: 15px;
    --icon-size: 22px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: var(--bg-gradient);
    overflow: hidden;
}

.app-container {
    position: relative;
    width: 100%;
    height: 100dvh; /* Dynamic Viewport Height für Mobile */
    display: flex;
    flex-direction: column;
}

model-viewer {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Glassmorphism Design */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.glass-panel {
    position: absolute;
    z-index: 10;
    padding: 20px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-panel {
    top: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
}

#title { font-size: var(--font-title); font-weight: 700; margin: 0; color: var(--text-main); }
#description { font-size: var(--font-desc); margin: 8px 0 0; color: var(--text-sub); line-height: 1.4; }

/* Button Dock am unteren Rand */
.button-dock {
    position: absolute;
    bottom: calc(30px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
    padding: 10px;
}

.circle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    color: var(--text-main);
}

.circle-btn:active { transform: scale(0.9); }

.accent-btn {
    background: var(--accent-color) !important;
    color: white !important;
}

/* Modal Style */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    width: 90%;
    max-width: 320px;
}

#qrcode-container img {
    margin: 20px auto;
    border-radius: 15px;
}

.close-text {
    background: none; border: none; color: var(--accent-color);
    font-weight: 600; margin-top: 10px; cursor: pointer;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .top-panel { top: 10px; left: 10px; right: 10px; }
    .circle-btn { width: 50px; height: 50px; }
}