* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #000;
}

.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    position: absolute;
    width: 105%;
    height: 105%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 2s ease-in-out;
    opacity: 0;
    top: 0%;
    left: -2.5%;
}

.background-image.active {
    opacity: 1;
}

.light-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.section {
    min-height: 190vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45vh 20px;
    position: relative;
}

.glass-panel {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    border-radius: 22px;
    z-index: -1;
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, transparent 70%);
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}

.glass-panel.visible {
    transform: translateY(0);
    opacity: 1;
}

.glass-panel h1 {
    font-size: 3em;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: #f0f0f0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.glass-panel h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #e0e0e0;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.glass-panel p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #d0d0d0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    line-height: 1.8;
}

.glass-panel ul {
    list-style: none;
    margin-bottom: 20px;
}

.glass-panel li {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #d0d0d0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    line-height: 1.8;
    padding-left: 25px;
    position: relative;
}

.glass-panel li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-size: 0.8em;
    text-shadow: 
        0 0 8px rgba(0,255,136,0.6),
        0 1px 3px rgba(0,0,0,0.8);
    filter: drop-shadow(0 0 4px rgba(0,255,136,0.4));
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 100;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.5);
}

.scroll-dot.active {
    background: rgba(255,255,255,0.8);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255,255,255,0.6);
}

/* Navigation Buttons */
.navigation-buttons {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.nav-button:active {
    transform: translateY(0);
}

.nav-icon {
    font-size: 1.3em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.nav-back:hover .nav-icon {
    transform: translateX(-3px);
}

.nav-forward:hover .nav-icon {
    transform: translateX(3px);
}

.nav-text {
    font-size: 1em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Spezielle Button-Stile */
.sketch-button {
    background: rgba(42, 82, 152, 0.8);
    border-color: rgba(42, 82, 152, 0.6);
}

.sketch-button:hover {
    background: rgba(42, 82, 152, 0.9);
    border-color: rgba(42, 82, 152, 0.8);
}

/* Highlight Boxen */
.highlight-box {
    background: rgba(0, 100, 200, 0.2);
    border: 1px solid rgba(0, 150, 255, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.highlight-box h4 {
    color: #7dd3fc;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.warning-box {
    background: rgba(139, 69, 19, 0.3);
    border: 2px solid rgba(255, 140, 0, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.warning-box h4 {
    color: #ff8c00;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.wisdom-box {
    background: rgba(25, 25, 112, 0.3);
    border: 2px solid rgba(100, 149, 237, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.wisdom-box h4 {
    color: #6495ed;
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Bereich-spezifische Styles */
.bereich-icon {
    font-size: 2em;
    margin-right: 15px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.bereich-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #00ff88;
}

.bereich-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.bereich-content h4 {
    color: #00ff88;
    font-size: 1.4em;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(0,255,136,0.3);
}

/* Listen-Icons */
.statik-list li::before {
    content: '📐';
}

.material-list li::before {
    content: '🪵';
}

.helper-list li::before {
    content: '👥';
}

/* Tabellen */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
}

.comparison-table td {
    color: #d0d0d0;
}

.comparison-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.calculation-table {
    background: rgba(50, 50, 50, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.calculation-table table {
    width: 100%;
    border-collapse: collapse;
}

.calculation-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #e0e0e0;
}

.calculation-table td:first-child {
    font-weight: bold;
    color: #7dd3fc;
}

/* Dachformen Layout */
.roof-type {
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.roof-type:first-of-type {
    border-top: none;
}

.roof-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.roof-text {
    flex: 2;
    min-width: 300px;
}

.roof-image {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
}

.roof-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.roof-image img:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.roof-type h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Sketch Modal Styles */
.sketch-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.sketch-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.sketch-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.sketch-modal-title {
    color: #2a5298;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.sketch-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sketch-close:hover,
.sketch-close:focus {
    color: #000;
    background-color: #f8f9fa;
}

.sketch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.sketch-item {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.sketch-item:hover {
    border-color: #2a5298;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.15);
    transform: translateY(-2px);
}

.sketch-preview {
    width: 120px;
    height: 80px;
    margin: 0 auto 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sketch-title {
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 8px;
    font-size: 16px;
}

.sketch-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.sketch-download-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sketch-item:hover .sketch-download-btn {
    opacity: 1;
}

.sketch-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
    color: #1565c0;
}

.sketch-info strong {
    color: #0d47a1;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .section {
        min-height: 100vh;
        padding: 20vh 10px;
    }
    
    .glass-panel {
        padding: 25px 20px;
        margin: 15px;
        max-width: calc(100vw - 30px);
    }
    
    .glass-panel h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }
    
    .glass-panel h2 {
        font-size: 1.5em;
        line-height: 1.3;
    }
    
    .glass-panel h3 {
        font-size: 1.3em;
    }
    
    .glass-panel p {
        font-size: 1em;
        line-height: 1.6;
    }
    
    .glass-panel li {
        font-size: 1em;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 30px 20px;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
        padding: 18px 25px;
    }

    .bereich-header {
        flex-direction: column;
        text-align: center;
    }

    .bereich-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .roof-content {
        flex-direction: column;
        gap: 20px;
    }

    .roof-image {
        max-width: 100%;
        align-self: center;
    }

    .comparison-table {
        font-size: 0.9em;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
    }
    
    /* Mobile Sketch Modal */
    .sketch-modal-content {
        margin: 10% 10px;
        padding: 20px;
        width: calc(100% - 20px);
        max-height: 85vh;
    }
    
    .sketch-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sketch-modal-title {
        font-size: 20px;
    }
    
    /* Mobile Hintergrund-Optimierung */
    .background-image {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center !important;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }
    
    /* Mobile: Deaktiviere komplexe Animationen */
    .background-image {
        animation: none !important;
        transform: none !important;
        filter: brightness(1) contrast(1) !important;
    }
}

/* Mobile Landscape Orientierung */
@media (max-width: 768px) and (orientation: landscape) {
    .section {
        min-height: 180vh;
        padding: 40vh 10px;
    }
    
    .glass-panel {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .glass-panel h1 {
        font-size: 1.6em;
    }
    
    .glass-panel h2 {
        font-size: 1.4em;
    }
    
    .glass-panel p {
        font-size: 0.95em;
    }
}
