/* Custom Styles for Strunz Klimatechnik */

/* Apply Roboto font family */
body,
.font-roboto {
    font-family: 'Roboto', sans-serif;
}

/* Global font size reduction (17.5% smaller for elegance) */
/* This reduces all rem-based font sizes by 17.5% */
html {
    font-size: 82.5%; /* Base 16px becomes ~13.2px (17.5% reduction) */
}

/* Dark mode only */
html {
    color-scheme: dark;
}

/* Custom color scheme for dark mode */
.dark {
    --bg-primary: rgb(30 41 59); /* slate-800 */
    --bg-secondary: rgb(15 23 42); /* slate-900 */
    --bg-tertiary: rgb(51 65 85); /* slate-700 */
    --text-primary: rgb(248 250 252); /* slate-50 */
    --text-secondary: rgb(203 213 225); /* slate-300 */
    --accent: rgb(14 165 233); /* sky-500 */
    --accent-hover: rgb(56 189 248); /* sky-400 - lighter for dark mode */
}


/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Hero section: full-width background image with overlaid content */
.hero-section img {
    min-width: 100%;
    min-height: 100%;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
}

@media (max-width: 767px) {
    .hamburger-menu {
        display: block;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        z-index: 1000;
    }
    
    .mobile-menu.active {
        display: block;
    }
}

/* Data grid styles */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 639px) {
    .data-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .data-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card styles for data grids */
.data-card {
    background-color: var(--bg-primary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


/* Language switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-switcher button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    border-radius: 0.25rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher button:hover,
.language-switcher button.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Sticky header */
.sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background-color: rgba(15, 23, 42, 0.9);
}


/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--accent);
}

/* Responsive typography */
@media (max-width: 639px) {
    h1 {
        font-size: 1.65rem; /* Reduced from 2rem by 17.5% */
    }
    
    h2 {
        font-size: 1.24rem; /* Reduced from 1.5rem by 17.5% */
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Improve inline code contrast in privacy content */
.privacy-section code {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgb(56 189 248 / 0.45);
    font-weight: 600;
}

