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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--color-medium-gray) var(--color-black);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-black); }
::-webkit-scrollbar-thumb { background: var(--color-medium-gray); }
::-webkit-scrollbar-thumb:hover { background: var(--color-light-gray); }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-body-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: calc(var(--z-navbar) + 10);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-black);
  transform: translateY(-180%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-notice {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--color-black);
  background: var(--color-off-white);
  color: var(--color-black);
}

/* Texture is intentionally disabled for the clean retail brand presentation. */
.grain-overlay {
  display: none;
}

/* Das hidden-Attribut muss auch gegen Klassen mit eigenem display gewinnen
   (z. B. .map-embed__consent mit display: flex). */
[hidden] {
  display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-regular);
  color: var(--color-black);
  letter-spacing: 0;
}

h1 { font-size: var(--font-size-h1); font-weight: var(--font-weight-bold); }
h2 { font-size: var(--font-size-h2); font-weight: var(--font-weight-bold); }
h3 { font-size: var(--font-size-h3); font-weight: var(--font-weight-medium); }
h4 { font-size: var(--font-size-h4); font-weight: var(--font-weight-medium); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  text-wrap: balance;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 4px;
}

.navbar :focus-visible,
.mobile-menu :focus-visible,
.section--dark :focus-visible,
.footer :focus-visible,
.page-hero :focus-visible,
.hero :focus-visible {
  outline-color: var(--color-white);
}

ul, ol { list-style: none; }

/* Eyebrow Text */
.eyebrow {
  display: inline-block;
  font-size: var(--font-size-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-eyebrow);
  font-weight: var(--font-weight-medium);
  color: var(--color-dark-gray);
  margin-bottom: var(--space-sm);
  position: relative;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section--dark .eyebrow,
.section--anthracite .eyebrow {
  color: var(--color-white);
}

/* Legacy class retained without decorative colour gradients. */
.text-gradient {
  color: inherit;
}

/* Selection */
::selection {
  background: var(--color-black);
  color: var(--color-white);
}

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
}

.reveal--left {
  opacity: 1;
  transform: none;
}

.js .reveal--left {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
}

.reveal--right {
  opacity: 1;
  transform: none;
}

.js .reveal--right {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
}

.reveal--scale {
  opacity: 1;
  transform: none;
}

.js .reveal--scale {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
}

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

/* Text reveal - clip animation */
.text-reveal {
  display: inline-block;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out-expo);
}

.text-reveal--visible span {
  transform: translateY(0);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right, .reveal--scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Utilities */
.text-center { text-align: center; }
.divider { display: none; }
