/* =============================================================
   GLOBAL CSS – proZerspanung Website
   ============================================================= */

/* --- Fonts loaded via <link> in HTML head --- */

/* =============================================================
   CUSTOM PROPERTIES
   ============================================================= */
:root {
  /* Brand Colors */
  --color-rot:         #EE3E49;
  --color-rot-hover:   #F97A7A;
  --color-rot-active:  #CC2E38;
  --color-schwarz:     #1C1C1C;
  --color-weiss:       #FFFFFF;
  --color-grau-80:     #333333;
  --color-grau-72:     #484848;
  --color-grau-57:     #6E6E6E;
  --color-grau-4:      #F5F5F5;

  /* Typography */
  --font-heading: 'Raleway', sans-serif;
  --font-body:    'Libre Baskerville', serif;
  --font-cta:     'Fjalla One', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max:     1200px;
  --container-padding: 1.5rem;
  --nav-height:        72px;

  /* Misc */
  --radius-s:        4px;
  --radius-m:        8px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --shadow-card:     0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 6px 24px rgba(0, 0, 0, 0.14);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-grau-72);
  background-color: var(--color-weiss);
  /* Raleway rendert 3/4/5/7/9 sonst mit hängendem Abstrich (Oldstyle-Figuren) */
  font-variant-numeric: lining-nums;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-schwarz);
}

h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--color-grau-80);
}

p {
  font-size: 1rem;
  color: var(--color-grau-72);
}

.text-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grau-57);
}

/* =============================================================
   LAYOUT
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

.section--dark {
  background-color: var(--color-schwarz);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p,
.section--dark .text-label {
  color: var(--color-weiss);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section--grey {
  background-color: var(--color-grau-4);
}

.section__header {
  margin-bottom: var(--space-xl);
}

.section__header--centered {
  text-align: center;
}

.section__header--centered p {
  max-width: 56ch;
  margin: var(--space-xs) auto 0;
}

.section__header .text-label {
  margin-bottom: var(--space-xs);
}

.section--dark .text-label {
  /* --color-rot auf --color-schwarz nur 4,40:1, --color-rot-hover erreicht 6,57:1 */
  color: var(--color-rot-hover);
}

.section__header h2 {
  margin-bottom: var(--space-xs);
  text-wrap: balance;
  letter-spacing: -0.02em;
}

/* =============================================================
   SCROLL-REVEAL
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* =============================================================
   FOCUS STYLES
   ============================================================= */
:focus-visible {
  outline: 2px solid var(--color-rot);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

/* =============================================================
   UTILITIES
   ============================================================= */
.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;
}
