/* ==========================================================================
   Hausmeisterservice Baum — Basis: Fonts, Variablen, Reset, Typografie
   Stil: Solides Handwerk — Waldgrün & Sandstein
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/fraunces-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-normal.woff2') format('woff2');
}

:root {
  /* Design-System-Variablen (verbindlich lt. Vorgabe) */
  --primary: oklch(28% 0.045 150);      /* Waldgrün #1F3A2E */
  --primary-light: oklch(38% 0.05 150);
  --bg: #F3EEE2;                        /* Sandbeige */
  --surface: #FFFFFF;
  --accent: #B5643F;                    /* Terrakotta */
  --accent-dark: #9A4F30;
  --muted: #8C8577;                     /* Steingrau */
  --ink: oklch(22% 0.02 150);           /* Fließtext, fast schwarz mit Grün-Unterton */
  --line: #DCD3BF;                      /* Trennlinien auf Sandbeige */
  --radius: 2px;
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --gap: 2rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 260ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: pretty;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4.2vw + 1rem, 3.9rem);
  font-weight: 600;
}
h2 { font-size: clamp(1.75rem, 2.5vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 1.4vw + 0.6rem, 1.65rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; max-width: 62ch; }
p.lede {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 500;
}

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

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

/* Fokus-Sichtbarkeit (Pflicht) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85em;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.section--surface { background: var(--surface); }
.section--primary {
  background: var(--primary);
  color: #EDE7DA;
}
.section--primary h2, .section--primary h3 { color: #fff; }
.section--primary p { color: #C9D2C5; }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

/* Icons — dezent, nie bildschirmfüllend (Pflicht laut Projektvorgabe) */
svg { max-width: 100%; height: auto; }
.icon {
  width: 1.4em;
  height: 1.4em;
  flex: 0 0 auto;
  vertical-align: middle;
  color: currentColor;
}
.icon--lg { width: 2.2rem; height: 2.2rem; }

/* Skip-Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }
