/* ==========================================================================
   PEJANO BAUUNTERNEHMUNG GMBH – Global Styles
   style.css – Custom Properties, Reset, Basis-Typografie, Utilities
   Version: 2.0 | April 2026
   ========================================================================== */

/* ==========================================================================
   1. CUSTOM PROPERTIES (Design Tokens – Light Theme)
   ========================================================================== */

:root {
  /* Farben */
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f7f6f3;
  --cream: #f0eeea;
  --gray-50: #fafaf9;
  --gray-100: #e8e6e1;
  --gray-200: #d4d1cb;
  --gray-300: #b8b4ad;
  --gray-400: #8a8680;
  --gray-500: #6e6a64;
  --gray-600: #4a4742;

  /* Akzent */
  --accent: #F6B344;
  --accent-dark: #E5A23A;
  --accent-light: rgba(246, 179, 68, 0.10);
  --accent-glow: rgba(246, 179, 68, 0.25);

  /* Typografie */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Schriftgrößen */
  --font-size-xs: 9px;
  --font-size-sm: 13px;
  --font-size-base: 15px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 36px;
  --font-size-3xl: 48px;
  --font-size-4xl: 64px;
  --font-size-display: clamp(48px, 8vw, 96px);

  /* Abstände */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-max: 1440px;
  --container-padding: 40px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.25, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;
  --duration-fast: 0.3s;
}

/* ==========================================================================
   2. CSS RESET
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--accent);
  color: var(--black);
}

/* Focus Styles (Accessibility) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */

/* Eyebrow / Label */
.eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}

.eyebrow--accent {
  color: var(--accent);
}

/* Thin weight for headline mix */
.thin {
  font-weight: 200;
}

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

/* No scroll (when overlay is open) */
body.no-scroll {
  overflow: hidden;
}

/* ==========================================================================
   4. SCROLL PROGRESS BAR
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent-glow);
  pointer-events: none;
}

/* ==========================================================================
   5. SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}

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

/* Staggered Reveals */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
}

.reveal-stagger.visible > * {
  animation: staggerIn 0.7s var(--ease-expo) forwards;
}

.reveal-stagger.visible > *:nth-child(1) { animation-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { animation-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { animation-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { animation-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { animation-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { animation-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(7) { animation-delay: 0.6s; }
.reveal-stagger.visible > *:nth-child(8) { animation-delay: 0.7s; }

@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Image Reveal (Orange Wipe) */
.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}

.img-reveal.revealed::after {
  transform: scaleX(0);
}

.img-reveal img {
  transform: scale(1.2);
  transition: transform 1.2s var(--ease-expo) 0.2s;
}

.img-reveal.revealed img {
  transform: scale(1);
}

/* ==========================================================================
   6. COMMON ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==========================================================================
   7. REDUCED MOTION
   ========================================================================== */

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

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .img-reveal::after {
    display: none;
  }

  .img-reveal img {
    transform: none !important;
  }
}
