/* ============================================
   Büroflex – Global Styles
   Design: "Der Werkstoff" – warm, ehrlich, Material-fokussiert
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primärpalette */
  --color-bg: #FAFAF7;
  --color-text: #2D2A26;
  --color-accent: #5B7F5E;
  --color-accent-hover: #4A6B4D;

  /* Sekundärpalette */
  --color-wood: #C4A882;
  --color-card: #F0EDE8;
  --color-card-hover: #E8E4DD;
  --color-white: #FFFFFF;
  --color-border: #DDD8D0;

  /* Typografie */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Größen */
  --size-h1: clamp(2.5rem, 5vw, 3.5rem);
  --size-h2: clamp(2rem, 4vw, 2.75rem);
  --size-h3: 1.5rem;
  --size-body: 1.0625rem;
  --size-small: 0.875rem;
  --size-label: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 6px;
  --radius-lg: 12px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typografie --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }

p + p {
  margin-top: var(--space-sm);
}

.label {
  font-size: var(--size-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-accent);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--alt {
  background-color: var(--color-card);
}

/* --- Responsive Grid --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--asymmetric {
  grid-template-columns: 1fr;
}

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

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

  .grid--asymmetric {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .grid--asymmetric {
    grid-template-columns: 5fr 7fr;
  }

  .grid--asymmetric-reverse {
    grid-template-columns: 7fr 5fr;
  }
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
