/* Optimized Core Styles for deutschelabzone.com */

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    background: #1a0b2e;
}

/* Container System */
.sb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sb-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.sb-row_center {
    justify-content: center;
}

.sb-row-square {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0;
}

/* Column System */
.sb-col_lg-3 { flex: 0 0 25%; max-width: 25%; }
.sb-col_lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.sb-col_lg-6 { flex: 0 0 50%; max-width: 50%; }
.sb-col_lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.sb-col_lg-12 { flex: 0 0 100%; max-width: 100%; }

.sb-col_md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.sb-col_md-6 { flex: 0 0 50%; max-width: 50%; }
.sb-col_md-12 { flex: 0 0 100%; max-width: 100%; }

.sb-col_sm-6 { flex: 0 0 50%; max-width: 50%; }
.sb-col_sm-12 { flex: 0 0 100%; max-width: 100%; }

.sb-col_xs-12 { flex: 0 0 100%; max-width: 100%; }

/* Typography */
.sb-font-h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.sb-font-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.sb-font-h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.4;
    margin: 0 0 0.8rem 0;
}

.sb-font-h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    line-height: 1.4;
    margin: 0 0 0.6rem 0;
}

.sb-font-h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}

.sb-font-p1 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.sb-font-p2 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    line-height: 1.6;
    margin: 0 0 0.8rem 0;
}

.sb-font-p3 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    line-height: 1.5;
    margin: 0 0 0.6rem 0;
}

.sb-font-title {
    font-weight: 700;
}

.sb-text-white { color: #ffffff; }
.sb-text-dark { color: #333333; }
.sb-text-opacity { opacity: 0.9; }
.sb-align-center { text-align: center; }
.sb-align-left { text-align: left; }

/* Spacing System */
.sb-m-clear-top > :first-child { margin-top: 0 !important; }
.sb-m-clear-bottom > :last-child { margin-bottom: 0 !important; }
.sb-m-clear > :first-child, .sb-m-clear > :last-child { margin: 0 !important; }

.sb-m-3-bottom { margin-bottom: 1.5rem; }
.sb-m-5-bottom { margin-bottom: 2rem; }
.sb-m-6-bottom { margin-bottom: 2.5rem; }
.sb-m-11-top { margin-top: 1rem; }
.sb-m-11-top-minus { margin-top: -1rem; }
.sb-m-12-bottom { margin-bottom: 1rem; }
.sb-m-14-bottom { margin-bottom: 1.2rem; }

.sb-p-6-top { padding-top: 1.5rem; }
.sb-p-6-bottom { padding-bottom: 1.5rem; }
.sb-padding-top_l { padding-top: 3rem; }
.sb-padding-bottom_l { padding-bottom: 3rem; }

/* Background System */
.sb-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.sb-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sb-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.sb-background_clear {
    background: transparent;
}

.sb-background_top-background {
    z-index: 1;
}

.sb-background_bottom-background {
    z-index: 0;
}

/* Layout Classes */
.sb-block {
    position: relative;
    overflow: hidden;
}

.sb-block_fullscreen {
    min-height: 100vh;
}

.sb-content-size_m {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sb-container {
        padding: 0 15px;
    }
    
    .sb-row {
        margin: 0 -5px;
    }
    
    .sb-col_lg-3,
    .sb-col_lg-4,
    .sb-col_lg-6,
    .sb-col_lg-10,
    .sb-col_md-4,
    .sb-col_md-6,
    .sb-col_sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sb-row-square {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .sb-container {
        padding: 0 10px;
    }
    
    .sb-padding-top_l,
    .sb-padding-bottom_l {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Utility Classes */
.sb-body_with-footer .site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sb-body_with-footer .site-wrapper > section:last-child {
    margin-top: auto;
}

.font-jost-pt-root-ui {
    font-family: 'Inter', sans-serif;
}

.sb-buttons-border_round {
    border-radius: 8px;
}

/* Performance Optimizations */
.sb-skeleton .sb-skeleton__button *,
.sb-skeleton .sb-skeleton__field > *,
.sb-textarea__content {
    visibility: hidden;
}

/* Focus and Selection */
* {
    outline-color: #ffdd2d;
}

::selection {
    background-color: #ffdd2d;
    color: #000;
}

/* Form Elements */
button, input, select, textarea {
    border: none;
    font-family: inherit;
    color: inherit;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: 0;
}

/* Lists */
ol, ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffd700;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Common Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b69 50%, #4a148c 100%);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
