/* Layout: Mobile-First Responsive Design */
/* VERPFLICHTEND: Horizontal Overflow verhindern (Regel 011-ui-css-mobile.mdc Regel 002, 003, 005) */

/* ============================================
   MOBILE (Base - bis 575px)
   ============================================ */

body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.base-layout-page-wrapper {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    position: relative;
    left: 0;
    right: 0;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    z-index: 1;
}

.base-layout-main-content {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    flex: 1;
    padding: 40px 20px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
    z-index: 1;
}

/* Container (Vorlage kategorie.html) – max-width 1120px, zentriert */
.base-layout-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ============================================
   TABLET (600px - 1023px)
   ============================================ */

@media (min-width: 600px) {
    .base-layout-main-content {
        padding: 60px 40px;
    }
}

/* ============================================
   DESKTOP (1024px - 1439px)
   ============================================ */

@media (min-width: 1024px) {
    .base-layout-main-content {
        padding: 80px 60px;
    }
}

/* ============================================
   WIDESCREEN (1440px+)
   ============================================ */

@media (min-width: 1440px) {
    .base-layout-main-content {
        padding: 80px 60px;
    }
}
