/* ─── MOBILE FRIENDLY IMPROVEMENTS ─── */
@media (max-width: 639px) {
  html {
    font-size: 15px;
  }
  body {
    font-size: var(--fs-sm);
    padding-bottom: 2.5rem;
  }
  h1, .h1 { font-size: 2.2rem; }
  h2, .h2 { font-size: 1.5rem; }
  h3, .h3 { font-size: 1.1rem; }
  .container, .container--sm, .container--md, .container--xl {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .btn, .btn--lg, .btn--sm {
    font-size: 1rem;
    padding: 1em 1.2em;
    min-width: 44px;
    min-height: 44px;
  }
  .footer__main, .footer__bottom {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .section, .section--sm, .section--dark, .section--light, .section--darker {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .mobile-menu__link {
    font-size: 2rem;
    padding: 0.7em 0;
  }
  .value-card, .package-item, .card, .service-card {
    padding: 1.2rem;
  }
  ul, ol {
    padding-left: 1.1em;
  }
}
/* ============================================================
   BILDWERK – Fotografie
   Base – Reset, Root, Typography, Global
   ============================================================ */

/* ─── MODERN CSS RESET ─── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-base);
  color: var(--clr-text-primary);
  background-color: var(--clr-dark-800);
  overflow-x: hidden;
}

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

ul, ol {
  list-style: none;
}

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

/* Suppress native cursor on every element when custom cursor is active */
body.custom-cursor,
body.custom-cursor * {
  cursor: none !important;
}

/* ─── SCROLLBAR ─── */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-dark-900);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-gold-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-gold);
}

/* ─── TEXT SELECTION ─── */

::selection {
  background: var(--clr-gold);
  color: var(--clr-dark-900);
}

::-moz-selection {
  background: var(--clr-gold);
  color: var(--clr-dark-900);
}

/* ─── FOCUS STATES ─── */

:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ─── TYPOGRAPHY ─── */

.font-serif     { font-family: var(--font-serif); }
.font-serif-alt { font-family: var(--font-serif-alt); }
.font-sans      { font-family: var(--font-sans); }

h1, .h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-snug);
}

h2, .h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-5xl);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
}

h3, .h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 400;
  line-height: var(--lh-snug);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-wide);
}

h5, .h5 {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: var(--lh-base);
}

p {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-secondary);
}

.text-large {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}

.text-small {
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}

.text-xs { font-size: var(--fs-xs); }

/* ─── TEXT UTILITIES ─── */

.text-gold         { color: var(--clr-gold); }
.text-green        { color: var(--clr-green); }
.text-brown        { color: var(--clr-brown); }
.text-muted        { color: var(--clr-text-muted); }
.text-secondary    { color: var(--clr-text-secondary); }

.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }

.tracking-wide   { letter-spacing: var(--ls-wide); }
.tracking-wider  { letter-spacing: var(--ls-wider); }
.tracking-widest { letter-spacing: var(--ls-widest); }

.uppercase { text-transform: uppercase; }
.italic    { font-style: italic; }

/* Gradient Text */
.text-gradient {
  color: var(--clr-gold-light);
}

.text-gradient-green {
  color: var(--clr-green-light);
}

/* Overline */
.overline {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--clr-gold-light);
}

.overline--light {
  color: var(--clr-gold);
}

/* ─── DISPLAY ─── */

.block   { display: block; }
.flex    { display: flex; }
.grid    { display: grid; }
.hidden  { display: none; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── VISIBILITY ─── */

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

/* ─── DIVIDERS ─── */

.divider {
  width: 100%;
  height: 1px;
  background: var(--clr-dark-border);
}

.divider--light {
  background: var(--clr-light-border);
}

.divider--gold {
  width: 48px;
  height: 2px;
  background: var(--clr-gold);
  border-radius: var(--radius-full);
}

/* ─── SECTION BASE ─── */

.section {
  padding: var(--section-y) var(--container-pad);
}

.section--sm {
  padding: var(--section-y-sm) var(--container-pad);
}

.section--dark {
  background: var(--clr-dark-800);
  color: var(--clr-text-primary);
}

.section--darker {
  background: var(--clr-dark-900);
}

.section--light {
  background: var(--clr-light-200);
  color: var(--clr-text-dark);
}

.section--light p {
  color: var(--clr-text-dark-secondary);
}

.section--light .overline {
  color: var(--clr-gold-mid);
}

/* Ensure all headings are dark on light backgrounds */
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4,
.section--light h5,
.section--light h6 {
  color: var(--clr-text-dark);
}

/* ─── CONTAINER ─── */

.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container--sm  { max-width: var(--container-sm); }
.container--md  { max-width: var(--container-md); }
.container--xl  { max-width: var(--container-xl); }

/* ─── INDUSTRIAL GRAIN TEXTURE ─── */

/* Subtle noise overlay for the factory/werkstatt feel */
.grain::after,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* Industrial accent bar — replaces soft gold divider with structural steel mark */
.divider--gold {
  width: 48px;
  height: 3px;
  background: var(--clr-gold);
  border-radius: 0; /* sharp industrial edge */
}

/* ─── MEDIA QUERIES ─── */

/* Mobile  < 640px   (default) */
/* Tablet  ≥ 640px  */
/* Laptop  ≥ 1024px */
/* Desktop ≥ 1280px */
