/**
 * style.css
 * Holzwerk Wagner — Schreinerei Demo-Website
 * Zweck: CSS Reset, Custom Properties, Typografie, Layout-Utilities
 * ----------------------------------------------------------------- */

/* ================================================================
   CSS CUSTOM PROPERTIES
================================================================ */
:root {
  /* Farben */
  --bg:          #0e0b08;
  --surface:     #1a1510;
  --surface2:    #241d16;
  --accent:      #c8873a;
  --accent2:     #e8b86d;
  --text:        #f0ebe4;
  --text-muted:  #9a8f84;

  /* Abgeleitete Farben */
  --accent-10:   rgba(200, 135, 58,  0.10);
  --accent-20:   rgba(200, 135, 58,  0.20);
  --accent-30:   rgba(200, 135, 58,  0.30);
  --border:      rgba(240, 235, 228, 0.08);
  --border-warm: rgba(200, 135, 58,  0.18);

  /* Typografie */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-body:   18px;
  --font-small:  15px;
  --font-h1:     clamp(2.8rem, 6vw, 5rem);
  --font-h2:     clamp(1.8rem, 4vw, 3rem);
  --font-h3:     clamp(1.2rem, 2.5vw, 1.75rem);

  /* Layout */
  --gap:              clamp(16px, 3vw, 32px);
  --section-padding:  clamp(64px, 10vw, 120px);
  --container-max:    1200px;
  --container-pad:    clamp(20px, 5vw, 80px);

  /* Radien */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Schatten */
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(200, 135, 58, 0.2);

  /* Übergänge */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-body);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise-Textur */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.35;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ================================================================
   TYPOGRAFIE
================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}

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

p { line-height: 1.75; }

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--accent2) 20%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text-muted); }

/* ================================================================
   LAYOUT — Container & Grid
================================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

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

/* 2-Spalten Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* 3-Spalten Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* 2x3 Grid */
.grid-2x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

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

@media (max-width: 600px) {
  .grid-2x3,
  .grid-3 { grid-template-columns: 1fr; }
}

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

/* ================================================================
   SECTION HEADERS (wiederverwendbar)
================================================================ */
.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-10);
  border: 1px solid var(--border-warm);
  border-radius: 50px;
  padding: 6px 18px;
  margin-bottom: 20px;
}

.section-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-title {
  font-size: var(--font-h2);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 52px;
  min-width: 44px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #1a1008;
  box-shadow: 0 4px 20px var(--accent-30);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(200, 135, 58, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(240,235,228,0.2);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent2);
  transform: translateY(-3px);
  background: var(--accent-10);
}

/* ================================================================
   DIVIDER
================================================================ */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  margin: 20px auto;
}

.divider-left { margin-left: 0; }

/* ================================================================
   ACCESSIBILITY
================================================================ */
.sr-only {
  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(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================================================================
   REDUCED MOTION
================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
