/* Layout CSS - Professional Dark Mode */
/* Dark Mode für alle Screens */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Container - Dark Mode */
/* VERPFLICHTEND laut ui-css.mdc Regel 018.001: overflow-x: hidden; auf body Element */
body {
    overflow-x: hidden;
}

body.layout-main-container {
    background: var(--color-background);
    color: var(--color-text-primary);
    font-family: var(--font-family-primary);
    line-height: var(--line-height-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header Layout - Dark Mode with enhanced shadow - laut ui-widget-navigation.mdc Regel 025: non-sticky */
.layout-header {
    background: var(--color-header-navigation-bg);
    height: 116px;
    width: 100%;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-small);
}

/* Statischer Gradient-Border (wie arzt: keine Animation, kein Wackeln) */
.layout-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--color-primary) 20%, 
        var(--color-secondary) 50%, 
        var(--color-primary) 80%,
        transparent 100%);
    opacity: 0.8;
}

.layout-header-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

/* Main Content Layout */
.layout-main-content {
    flex: 1;
    padding: 2rem 0;
    min-height: calc(100vh - 116px - 80px); /* Full height minus header and footer */
    background: var(--color-background);
}

.layout-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.layout-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.layout-section {
    margin-bottom: 3rem;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    padding: 2rem;
    box-shadow: var(--shadow-small);
    position: relative;
    overflow: hidden;
}

.layout-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Footer Layout - laut ui-footer.mdc Regel 006: minimalistisch */
/* laut ui-footer.mdc Regel 002: Footer muss gleiche Farbe wie Navigation haben */
.layout-footer {
    background: var(--color-header-navigation-bg);
    min-height: 80px;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
}

.layout-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
}

/* Responsive Design - laut ui-css.mdc Regel 022: 4 Breakpoints */

/* Mobile: max-width 576px */
/* VERPFLICHTEND laut ui-css.mdc Regel 018.002: Container-Elemente müssen max-width: 100% auf Mobile haben */
/* VERPFLICHTEND laut ui-widget-navigation.mdc Regel 010: Header-Container muss padding-left: 20px und padding-right: 20px auf Mobile haben */
@media (max-width: 576px) {
    .layout-header-content {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
        width: 100%;
    }
    
    .layout-content-container,
    .layout-footer-content {
        padding: 0 0.75rem;
        max-width: 100%;
        width: 100%;
    }
    
    .layout-main-content {
        padding: 0.75rem 0;
        max-width: 100%;
        width: 100%;
    }
    
    .layout-page-header {
        padding: 0.75rem 0;
        margin-bottom: 1.5rem;
    }
    
    .layout-section {
        margin-bottom: 1.5rem;
        padding: 1rem;
        max-width: 100%;
        width: 100%;
    }
}

/* Tablet/iPad: 600px-768px */
@media (min-width: 600px) and (max-width: 768px) {
    .layout-header-content,
    .layout-content-container,
    .layout-footer-content {
        padding: 0 1rem;
    }
    
    .layout-main-content {
        padding: 1rem 0;
    }
    
    .layout-page-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .layout-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
}

/* Kleiner Desktop/13-Zoll: 1024px-1366px */
@media (min-width: 1024px) and (max-width: 1366px) {
    .layout-header-content,
    .layout-content-container,
    .layout-footer-content {
        padding: 0 1.5rem;
    }
    
    .layout-main-content {
        padding: 1.5rem 0;
    }
}

/* Großer Desktop/Widescreen: min-width 1440px */
@media (min-width: 1440px) {
    .layout-header-content,
    .layout-content-container,
    .layout-footer-content {
        max-width: 1400px;
    }
}
