/* ============================================================================
   BASE CSS - höchstmass staff GmbH
   ============================================================================
   
   Design System für alle Seiten
   - CSS Custom Properties (Variables)
   - Reset & Basis-Styles
   - Typography
   - Container & Layout Utilities
   - Button Styles
   
   ============================================================================ */

:root {
    /* Primary Colors */
    --primary: #1e3a5f;
    --primary-light: #2c4a6e;
    --primary-dark: #152840;
    
    /* Accent Colors */
    --accent: #e67e22;
    --accent-light: #f39c12;
    --accent-dark: #d35400;

     /* Accent Shadow (for buttons etc.)
         Default = orange brand accent; can be overridden per page/theme */
     --accent-shadow: 0 4px 14px rgba(230, 126, 34, 0.3);
     --accent-shadow-hover: 0 6px 20px rgba(230, 126, 34, 0.4);
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Success/Trust */
    --success: #10b981;
    --success-light: #d1fae5;
    
    /* Bereichsfarben - Aushilfen & Leiharbeiter (Petrol/Teal) */
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --teal-dark: #0f766e;
    --teal-bg: rgba(13, 148, 136, 0.08);
    
    /* Bereichsfarben - Messe & Event (Fuchsia/Magenta) */
    --fuchsia: #c026d3;
    --fuchsia-light: #d946ef;
    --fuchsia-dark: #a21caf;
    --fuchsia-bg: rgba(192, 38, 211, 0.08);
    
    /* Bereichsfarben - Professionals (Royalblau) */
    --royal: #2563eb;
    --royal-light: #3b82f6;
    --royal-dark: #1d4ed8;
    --royal-bg: rgba(37, 99, 235, 0.08);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============================================
   RENDER PERFORMANCE — skip layout/paint for off-screen sections
============================================ */
.benefits-section,
.testimonials-section,
.webapp-section,
.comparison-section,
.faq-section,
.final-cta,
.ratgeber-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

/* ============================================
   RESET & BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

/* ============================================
   CONTAINER
============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 56px;
}

h2 {
    font-size: 44px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 20px;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-dark);
}

/* ============================================
   SECTION UTILITIES
============================================ */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 70px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 126, 34, 0.1);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--accent-shadow);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--accent-shadow-hover);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--gray-50);
    color: var(--primary);
}

/* Button Varianten */
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
}

/* ============================================
   LINK STYLES
============================================ */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.link-arrow:hover {
    gap: 12px;
    color: var(--accent-dark);
}

/* ============================================
   RESPONSIVE BASE
============================================ */
@media (max-width: 1024px) {
    .section-title {
        font-size: 36px;
    }
    
    h1 {
        font-size: 44px;
    }
    
    h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 16px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    h1 {
        font-size: 34px;
    }
}

/* ============================================
   STORE-BADGES (hms go) – Markup: _includes/app-badges.njk
   Apple-Badge: SVG 119,66 x 40 -> Hoehe = --badge-h.
   Google-Badge: PNG 646 x 250 mit transparentem Rand (mit sharp gemessen):
     DE sichtbar 646 x 192 (Rand oben/unten 29 px) -> Faktor 250/192 = 1,302
     EN sichtbar 564 x 168 (Rand 41 px rundum)     -> Faktor 250/168 = 1,488
   Die Box des PNG wird um den Faktor hoeher gesetzt und der Rand per
   negativem Margin herausgerechnet. So sind beide Badges sichtbar gleich
   hoch (Google: gleich gross oder groesser) und die Datei bleibt
   unveraendert (Google: nicht beschneiden, nicht veraendern).
============================================ */
.app-badges {
    --badge-h: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--badge-h) / 4);
}

.app-badges--l {
    --badge-h: 56px;
}

.app-badge {
    display: inline-flex;
    line-height: 0;
}

.app-badge {
    flex: 0 0 auto;
}

/* Feste Breiten statt width:auto – Safari/iOS rechnet die Breite von Bildern mit
   lazy-loading und calc()-Hoehe sonst aus den HTML-Attributen und verzerrt sie.
   Apple-SVG 119,66 x 40 -> Breite = 2,9916 x Hoehe. */
.app-badge img {
    display: block;
    max-width: none;
    width: calc(var(--badge-h) * 2.9916);
    height: var(--badge-h);
    object-fit: contain;
}

/* Google-PNG 646 x 250 -> Breite = 2,584 x Boxhoehe */
.app-badge--google-de img {
    width: calc(var(--badge-h) * 1.302 * 2.584);
    height: calc(var(--badge-h) * 1.302);
    margin: calc(var(--badge-h) * -0.151) 0;
}

.app-badge--google-en img {
    width: calc(var(--badge-h) * 1.488 * 2.584);
    height: calc(var(--badge-h) * 1.488);
    margin: calc(var(--badge-h) * -0.244);
}

.app-badges__note {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--gray-500);
}

.app-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
