/* styles/base.css */
/* Die Schriftart für font-family: sans-serif; hängt vom Browser und Betriebssystem ab:  */
/* Windows: Arial - macOS: Helvetica - Linux: Liberation Sans oder DejaVu Sans           */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 242, 245, 0.9), rgba(220, 223, 230, 0.9));
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-box {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 90vh;
    width: calc(90vh * 9 / 16);
}

.header, .footer {
    padding: 12px;
    background: rgba(50, 50, 50, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    text-align: center;
}

.header {
    position: relative; /* Für Toggleschalter-Positionierung */
}

.toggle-switch {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch input {
    display: none;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #6B7280;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-switch::before {
    transform: translateX(20px);
    background: #4B5563;
}

.iframe-wrapper {
    flex: 1;
    overflow: hidden;
    overflow: visible !important;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    width: 80vw;
    height: 90vh;
}

button {
    margin: 0 8px;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background-color: #6B7280;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #4B5563;
}