/* 
  DESIGN TOKENS - UNIVERSAL
  Diese Datei gilt für ALLE Projekte (LBA, COP, zukünftige)
  Nur Spacing, Typography-Scale, Layout-Werte
*/

:root {
  /* ========================================
     SPACING SYSTEM
     ======================================== */
  --spacing-xs: 0.625rem;    /* 10px */
  --spacing-sm: 1.25rem;     /* 20px */
  --spacing-md: 1.875rem;    /* 30px */
  --spacing-lg: 2.5rem;      /* 40px */
  --spacing-xl: 3.75rem;     /* 60px */
  --spacing-xxl: 6.25rem;    /* 100px */
  
  /* ========================================
     TYPOGRAPHY SCALE
     ======================================== */
  --font-size-xs: 0.8125rem;    /* 13px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 0.9375rem;  /* 15px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.5rem;       /* 24px */
  --font-size-2xl: 2rem;        /* 32px */
  --font-size-3xl: 2.5rem;      /* 40px */
  --font-size-4xl: 2.625rem;    /* 42px */
  --font-size-5xl: 3rem;        /* 48px */
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;
  
  /* ========================================
     LAYOUT
     ======================================== */
  --content-width: 62.5rem;      /* 1000px */
  --content-width-big: 87.5rem;  /* 1400px */
  
  /* ========================================
     BORDER RADIUS
     ======================================== */
  --radius-sm: 0.3125rem;   /* 5px */
  --radius-md: 0.5rem;      /* 8px */
  --radius-lg: 1.875rem;    /* 30px */
  --radius-full: 50%;
  
  /* ========================================
     TRANSITIONS
     ======================================== */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.2s ease-in-out;
  --transition-slow: 0.3s ease-in-out;
  
  /* ========================================
     SHADOWS
     ======================================== */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.3125rem 0.625rem rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.15);
  
  /* ========================================
     Z-INDEX SCALE
     ======================================== */
  --z-dropdown: 800;
  --z-sticky: 900;
  --z-fixed: 950;
  --z-modal-backdrop: 990;
  --z-modal: 1000;
  --z-popover: 1010;
  --z-tooltip: 1020;
}

/* ========================================
   GLOBAL RESETS
   ======================================== */
html {
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  font-size: 100%;
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

audio, video, div, iframe, img, input, textarea, p, ul, ol,
h1, h2, h3, h4, h5, h6 {
  position: relative;
  display: block;
  box-sizing: border-box;
}

a, a:focus, a:hover {
  text-decoration: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.clear {
  clear: both;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.left {
  text-align: left;
}

/* =====================================================================
   DEPRECATED - Float Layout Helpers
   Diese Klassen NICHT mehr in neuen Templates verwenden!
   Stattdessen: .b_grid .b_grid--2col / .b_grid--3col (siehe container-layouts.css)
   TODO: Am Projektende entfernen, wenn alle Templates umgestellt sind.
   ===================================================================== */
.drittel {
  width: 32%;
  margin: 0 2% 0 0;
  float: left;
}

.doppel {
  width: 65%;
  margin: 0 3% 0 0;
  float: left;
}

.halb {
  width: 48%;
  margin: 0 4% 0 0;
  float: left;
}

.last {
  margin-right: 0;
}

/* Spacing Utilities */
.topspace {
  margin-top: var(--spacing-xl);
}

.bottomspace {
  margin-bottom: var(--spacing-md);
}

/* Container - Einheitliche Breitenbegrenzung für alle Inhaltsbereiche */
.container {
  width: 92%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.container-big {
  width: 92%;
  max-width: var(--content-width-big);
  margin: 0 auto;
}

.boxcontent {
  padding: var(--spacing-sm) var(--spacing-lg);
}

/* Content Block Base */
.content-block {
  display: block;
  position: relative;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 900px) {
  .container, .container-big {
    padding: var(--spacing-xl) 0;
  }
  
  /* DEPRECATED - Float-Fallback, entfernen wenn .b_grid überall eingesetzt */
  .halb, .drittel, .doppel {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    float: none;
  }
  
  .boxcontent {
    padding: var(--spacing-sm);
  }
  
  .right {
    text-align: left;
  }
}

@media (max-width: 800px) {
  .container, .container-big {
    padding: var(--spacing-lg) 0;
  }
}