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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
    background: #000;
    height: 100dvh;
    width: 100vw;
}

#container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#video {
    display: none;
}

#canvas {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#controls {
    position: absolute;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

#shutterBtn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    border: 5px solid #333;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    outline: none;
}

#shutterBtn:hover {
    transform: scale(1.1);
}

#shutterBtn:active {
    transform: scale(0.95);
    background: #ddd;
}

.loading {
    color: #ffa500;
}

.ready {
    color: #00ff00;
}

.error {
    color: #ff4444;
}

#aboutBtn {
    position: absolute;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    left: 30px;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: 2px solid #555;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    user-select: none;
    -webkit-user-select: none;
}

#aboutBtn:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.85);
}

#aboutBtn:active {
    transform: scale(0.95);
}

#switchCameraBtn {
    display: none;
    position: absolute;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    right: 30px;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: 2px solid #555;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    outline: none;
}

#switchCameraBtn:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.85);
}

#switchCameraBtn:active {
    transform: scale(0.95);
}

#switchCameraBtn img {
    width: 26px;
    height: 26px;
}

/* Slide Panel */
.panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 70%;
    background: none; /* nur Content wird halbtransparent */
    transition: bottom 0.5s ease;
    z-index: 25;
    display: flex;
    flex-direction: column;
}

.panel.open {
    bottom: 0;
}

/* Panel Header */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-weight: bold;
    background: black; /* schwarzer Balken */
    color: white;
}

/* Close Button */
.close-btn {
    cursor: pointer;
    font-size: 20px;
}

/* Panel Content */
.panel-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    background: rgba(0,0,0,0.6); /* halbtransparent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white; 
}

/* Sprachbuttons */
.panel-content button {
    background: #222;
    color: white;
    border: none;
    padding: 8px 14px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 50px; /* rund */
}

.panel-content button:hover {
    background: #444;
}
