/* =========================================
   1. SETUP & VARIABLES
   ========================================= */

:root {
  /* --- 1. THE NEW COLOR PALETTE --- */
  /* Brand Foundations */
  --color-primary: #005182;
  --color-secondary: #6a737b;
  --color-tertiary: #b9dfe9;
  
  /* The "Activators" (New) */
  --color-signal: #FF9F1C;
  --color-surface-light: #F2F7FA;
  --color-primary-dark: #00385C;

  /* Status Colors */
  --color-error: #D64045;
  --color-success: #27AE60;
  --color-warning: #F4B740;
  --color-info:    #2F80C1;

  /* Text Colors */
  --color-text-main: #2d3436;
  --color-text-muted: #505c5e;
  --color-white: #ffffff;

  /* --- 2. FLUID TYPOGRAPHY (The "Clamp" System) --- */
  /* Font Family - Change 'Acumin Pro' to your chosen font */
  --font-stack-main: "acumin-pro", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* --- WEIGHT DEFINITIONS --- */
  --weight-regular: 400;  /* Body text */
  --weight-medium:  500;  /* Lead text (Intro) */
  --weight-bold:    700;  /* Sub-headings & Buttons */
  --weight-hero:    800;  /* Main Page Titles (H1) */

  /* BODY TEXT: Grows from 1rem (Mobile) to 1.25rem (Desktop) */
  /* Solves: "Small font sizes" [1] */
  --text-body-base: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
  --text-body-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); /* For Intro Paragraphs */
  --text-body-small: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);

  /* HEADINGS: Massive scaling for impact */
  /* Solves: "Documentary character" [2] */
  --text-heading-xl: clamp(2.5rem, 1.5rem + 4vw, 5rem);   /* Hero Title */
  --text-heading-l:  clamp(2rem, 1.5rem + 2.5vw, 3.5rem); /* Page Title (H1) */
  --text-heading-m:  clamp(1.5rem, 1.3rem + 1vw, 2.25rem);/* Section Title (H2) */
  --text-heading-s:  clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); /* Sub-section (H3) */

    /* --- BODY LINE HEIGHTS (The "Airy" Look) --- */
  /* Logic: Solves the "dense structure" criticism [1]. 
     1.6 - 1.7 is the modern standard for technical readability. */
  
  --lh-body-base: 1.6;   /* Generous spacing for long texts */
  --lh-body-lead: 1.45;  /* Slightly tighter for the larger Intro text */
  --lh-body-small: 1.5;  /* Standard legibility for captions */

  /* --- HEADING LINE HEIGHTS (The "Engineered" Look) --- */
  /* Logic: Large text must sit tight to look "stable" and "constructed".
     If these are too loose, the design falls apart. */
  
  --lh-heading-xl: 1.1;  /* Very tight for the massive Hero Title */
  --lh-heading-l:  1.15; /* H1 Page Titles */
  --lh-heading-m:  1.25; /* H2 Section Titles */
  --lh-heading-s:  1.35; /* H3 Sub-sections */

  /* --- LETTER SPACING VARIABLES --- */
  
  /* TIGHT: For massive, heavy headlines */
  /* Makes the text look "constructed" and stable */
  --spacing-tight: -0.02em; 

  /* WIDE: For Uppercase and Buttons */
  /* Ensures legibility for navigation and technical labels */
  --spacing-wide: 0.05em; 

  /* --- 3. SPACING & SHAPES --- */
  --border-radius-hybrid: 0px 30px 0px 30px; /* The "Construction + Water" Shape */
  --shadow-soft: 0 10px 30px -10px rgba(0, 81, 130, 0.15); /* Modern depth */

  --overlay-gradient-primary: linear-gradient(
    to bottom,
    rgba(0, 56, 92, 0.75) 0%,
    rgba(0, 81, 130, 0.55) 40%,
    rgba(0, 81, 130, 0.25) 70%,
    rgba(0, 81, 130, 0.05) 100%
  );
}

/* =========================================
   2. BASE STYLES
   ========================================= */

html {
  font-size: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-stack-main);
  background-color: var(--color-white);
  color: var(--color-text-main);
  font-weight: var(--weight-regular);
  text-align: left;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   3. TYPOGRAPHY UTILITIES
   ========================================= */

h1, h2, h3, h4, .heading-xl, .heading-l, .heading-m {
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 0.75em;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-heading-l); }
h2 { font-size: var(--text-heading-m); }
h3 { font-size: var(--text-heading-s); }

/* The CTA Button */
/* Use for: Contact, Send, "Read More" */
.btn-primary {
  display: inline-block;
  background-color: var(--color-signal); /* Safety Orange */
  color: var(--color-white);
  font-size: var(--text-body-base);
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 4px; /* Slight round, technical */
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

/* SET COLORS - Just change the variable! */
.icon-grid-startseite {
    --icon-color: var(--color-surface-light);
}

.icon-grid-service {
    --icon-color: var(--color-tertiary);
}

.icon-grid-features {
    --icon-color: var(--color-signal);
}

/* Custom class for your modern list */
.taf-modern-list {
    list-style: none; /* Remove default bullets */
    padding-left: 0;  /* Remove Impreza's default indentation */
    margin-left: 0;   /* Ensure it starts at the edge of the container */
    font-size: var(--text-body-small);
}

.taf-modern-list li {
    position: relative;
    padding-left: 1.5rem; /* Space for the custom bullet */
    margin-bottom: 0.5rem; /* Spacing between points */
    line-height: 1.6;
}

/* Creating the 45-degree rotated square */
.taf-modern-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em; /* Adjust based on your font size to center it vertically */
    width: 8px;
    height: 8px;
    background-color: var(--color-primary); /* Use your brand color */
    transform: rotate(45deg);
    display: inline-block;
}

/* Startseite CSS */
.startseite-hero-section {
  position: relative;
  overflow: hidden;
}

/* image layer (keep it visible) */
.startseite-hero-section .l-section-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* gradient overlay */
.startseite-hero-section .l-section-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-gradient-primary);
  z-index: 1;
  pointer-events: none;
}

/* content above everything */
.startseite-hero-section .l-section-h {
  position: relative;
  z-index: 2;
}

.startseite-hero-tagline {
  font-size: var(--text-body-lead);
  color: var(--color-white);
  line-height: var(--lh-body-lead);
  font-weight: var(--weight-medium);
}

.startseite-hero-title,
h1 .startseite-hero-title {
  font-size: var(--text-heading-l);
  color: var(--color-white);
  line-height: var(--lh-heading-l);
  font-weight: var(--weight-hero);
}

.startseite-intro-text {
  font-size: var(--text-body-base);
  color: var(--color-primary);
  line-height: var(--lh-body-base);
  max-width: 90ch;
}

.icon-title {
  color: var(--color-signal);
  font-size: var(--text-body-lead);
  font-weight: var(--weight-bold);
  line-height: var(--lh-body-lead);
}

.icon-content {
  color: var(--color-white);
  font-size: var(--text-body-base);
  font-weight: var(--weight-regular);
  line-height: var(--lh-body-base);
}

/* Main horizontal layout */
.category-intro-homepage {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

/* Icon container */
.category-icon-homepage {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* SVG sizing */
.category-icon-homepage svg {
    width: 70px;
    height: 70px;
    display: block;
}

/* Text container */
.category-intro-homepage .w-vwrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Title styling */
.category-title-homepage {
    margin: 0;
    line-height: 1.2;
    color: var(--color-primary);
}

/* Tagline styling */
.category-tagline-homepage {
    margin: 0;
    line-height: 1.4;
    color: var(--color-primary);
    font-size: var(--text-body-lead);
    font-weight: var(--weight-regular);
    line-height: var(--lh-body-lead);
}

/* Tablet */
@media (max-width: 1024px) {
    .category-intro-homepage {
        gap: 1rem;
    }
    
    .category-icon-homepage svg {
        width: 56px;
        height: 56px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .category-intro-homepage {
        gap: 0.75rem;
    }
    
    .category-icon-homepage svg {
        width: 48px;
        height: 48px;
    }
}

.category-content-homepage {
    font-size: var(--text-body-small);
    color: var(--color-primary);
    line-height: var(--lh-body-small);
    max-width: 90ch;
}