/* ==========================================================================
   PraxHub – main.css
   Custom Properties, Reset, Typografie, Layout
   ========================================================================== */

/* --- Custom Properties --------------------------------------------------- */
:root {
  /* Farben */
  --color-primary:       #1A7A7A;
  --color-primary-light: #4AB5B5;
  --color-primary-dark:  #145E5E;
  --color-dark:          #1E2A2A;
  --color-darker:        #162020;
  --color-bg:            #F4F8F8;
  --color-white:         #FFFFFF;
  --color-text:          #1E2A2A;
  --color-text-muted:    #6B8080;
  --color-border:        #D8E8E8;
  --color-success:       #27AE60;
  --color-error:         #E74C3C;

  /* Typografie */
  --font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fw-normal:   400;
  --fw-medium:   500;
  --fw-bold:     700;
  --fw-black:    800;

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(26,122,122,0.08);
  --shadow-md:   0 4px 20px rgba(26,122,122,0.12);
  --shadow-lg:   0 8px 40px rgba(26,122,122,0.18);

  /* Layout */
  --max-width:   1160px;
  --section-gap: 100px;
  --nav-height:  88px;

  /* Motion */
  --transition:  0.25s ease;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  font-weight: var(--fw-normal);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

/* --- Typografie ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-black);
  line-height: 1.2;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: var(--fw-black);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: var(--fw-bold);
}

h4 {
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
}

p {
  color: var(--color-text-muted);
  line-height: 1.65;
}

p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 620px;
}

strong {
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.text-primary { color: var(--color-primary); }
.text-white   { color: var(--color-white); }
.text-muted   { color: var(--color-text-muted); }
.text-center  { text-align: center; }

.highlight {
  color: var(--color-primary);
}

/* --- Layout Primitives --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section-sm {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2  { grid-template-columns: repeat(2, 1fr); }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }

/* --- Accessibility ------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@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;
  }
}

/* --- Responsive Grids ---------------------------------------------------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 72px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
