/* ============================================================
   BASE.CSS — Reset, Custom Properties, Typography, Font-Face
   Landhandel Nord-West GmbH & Co. KG
   ============================================================ */

/* ------------------------------------------------------------
   FONT-FACE DECLARATIONS
   Fonts: Merriweather (Display) + Source Sans 3 (Body)
   Download WOFF2 files from: https://gwfh.mranftl.com/fonts
   Place in assets/fonts/ directory
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-v33-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-v33-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-v33-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v15-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v15-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v15-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* Brand Colors */
  --color-accent:        #3A7D1E;
  --color-accent-dark:   #2B5C14;
  --color-accent-light:  #5A9D3E;
  --color-accent-pale:   #EAF4E2;

  /* Neutral Palette */
  --color-anthracite:    #2C2C2C;
  --color-anthracite-mid:#484848;
  --color-text:          #333333;
  --color-text-light:    #666666;
  --color-text-muted:    #999999;
  --color-white:         #FFFFFF;
  --color-off-white:     #F8F8F6;
  --color-light-gray:    #F0F0EC;
  --color-border:        #E2E2DC;
  --color-border-dark:   #CACAC2;

  /* Topbar */
  --color-topbar-bg:     #2C2C2C;
  --color-topbar-text:   #C8C8C4;
  --color-topbar-link:   #FFFFFF;

  /* Typography */
  --font-display: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  /* Font Sizes — fluid */
  --fs-xs:   clamp(0.7rem,  1vw, 0.75rem);
  --fs-sm:   clamp(0.8rem,  1.2vw, 0.875rem);
  --fs-base: clamp(0.95rem, 1.5vw, 1rem);
  --fs-md:   clamp(1rem,    1.8vw, 1.125rem);
  --fs-lg:   clamp(1.1rem,  2vw, 1.25rem);
  --fs-xl:   clamp(1.25rem, 2.5vw, 1.5rem);
  --fs-2xl:  clamp(1.5rem,  3vw, 2rem);
  --fs-3xl:  clamp(1.75rem, 4vw, 2.5rem);
  --fs-4xl:  clamp(2rem,    5vw, 3.25rem);
  --fs-hero: clamp(2.2rem,  6vw, 4rem);

  /* Spacing */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-section: clamp(3rem, 6vw, 6rem);

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 4vw, 2rem);

  /* Components */
  --border-radius-sm: 3px;
  --border-radius:    6px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.07);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.15);
  --shadow-accent: 0 4px 20px rgba(58,125,30,0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Header */
  --topbar-height:  42px;
  --header-height:  80px;
  --total-header:   122px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip statt hidden: verhindert horizontales Scrollen, ohne position:sticky zu brechen */
  overflow-x: clip;
  margin: 0;
  padding: 0;
}

body.has-hero {
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-accent-dark); }

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-anthracite);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

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

strong { font-weight: 700; }
em { font-style: italic; }

table {
  border-collapse: collapse;
  width: 100%;
}

/* ------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ------------------------------------------------------------ */
.text-accent    { color: var(--color-accent); }
.text-anthracite{ color: var(--color-anthracite); }
.text-muted     { color: var(--color-text-muted); }
.text-white     { color: var(--color-white); }
.text-center    { text-align: center; }
.text-sm        { font-size: var(--fs-sm); }
.text-lg        { font-size: var(--fs-lg); }
.font-display   { font-family: var(--font-display); }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.8;
  color: var(--color-text-light);
}

/* Section Headline Pattern */
.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-size: var(--fs-3xl);
  color: var(--color-anthracite);
  margin-bottom: var(--sp-md);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin-top: var(--sp-sm);
}

.section-title.centered::after {
  margin-left: auto;
  margin-right: auto;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
