/* MEK Gartenpflege & Hausmeisterservice – Website v2
   Design-System „Çatılı MEK“ (branding/logo, docs/design-system.md).
   Farben, Schrift und Abstände nur hier unter :root ändern. */

/* Rubik – SIL Open Font License 1.1, liegt lokal unter assets/fonts (OFL.txt) */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/rubik-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/rubik-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/rubik-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/rubik-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/rubik-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/rubik-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* Markenfarben */
  --green: #1D4F37;       /* Überschriften, Buttons, Links (Weiß darauf 9.4:1) */
  --forest: #14301F;      /* Hover, Fußzeile, dunkle Flächen */
  --leaf: #7DBA45;        /* NUR Akzent (Linien, Punkte, Symbole) – nie Text/Button auf Weiß */
  --cream: #F3F1E8;       /* abwechselnde Abschnitte */
  --white: #FFFFFF;
  --ink: #1B1F1C;         /* Fließtext */
  --muted: #5B625D;       /* Nebentext (6.3:1 auf Weiß, 5.6:1 auf Creme) */
  --line: #E4E2DC;        /* Linien, Kartenränder */
  --on-dark: #DCE6DF;     /* Nebentext auf Grün/Forest */

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Abstände 4–96 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-btn: 6px;
  --r-card: 10px;

  --gutter: var(--s4);
  --max: 72rem;
  --callbar-h: 56px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: var(--callbar-h);
  overflow-wrap: break-word;
}

h1, h2, h3 { color: var(--green); line-height: 1.15; margin: 0 0 0.55em; }
h1 { font-size: clamp(2rem, 7.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 5vw, 2.35rem); font-weight: 700; letter-spacing: -0.005em; }
h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.3em; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sprite { display: none; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  background: var(--green); color: var(--white); padding: var(--s2) var(--s4); border-radius: var(--r-btn);
}
.skip:focus { top: var(--s2); color: var(--white); }

/* ---------- Kopfzeile ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  /* Schutzraum Logo: halbe Buchstabenhöhe (≈14 px bei 220 px Logobreite) oben und unten */
  padding-top: var(--s4); padding-bottom: var(--s4);
}
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 220px; height: auto; }
.site-nav { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding-top: var(--s7); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; padding-bottom: var(--s4); }
.hero h1 { max-width: 17ch; }
.lead { font-size: 1.15rem; max-width: 40ch; }

.offer {
  display: inline-block;
  margin: 0 0 var(--s5);
  padding: var(--s2) var(--s4) var(--s2) var(--s3);
  background: var(--white);
  border-left: 4px solid var(--leaf);
  border-radius: 0 var(--r-btn) var(--r-btn) 0;
  color: var(--green);
  font-size: 1.05rem;
}

.hero-phone {
  display: inline-flex; flex-direction: column;
  margin: 0 0 var(--s5);
  text-decoration: none; color: var(--green);
}
.hero-phone-label { font-size: 1rem; color: var(--muted); }
.hero-phone-number {
  font-weight: 700;
  font-size: clamp(2.2rem, 10.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  border-bottom: 0.08em solid var(--leaf);
  padding-bottom: 0.06em;
  white-space: nowrap;
}
.hero-phone:hover { color: var(--forest); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--s3) var(--s5);
  border-radius: var(--r-btn);
  font-weight: 500; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--green);
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--white); }

/* Illustration (keine Fotos) */
.hero-scene { display: block; width: 100%; height: 110px; margin-top: var(--s6); }
.scene-ground { fill: var(--green); }
.scene-hedge { fill: var(--leaf); }
.scene-house { fill: var(--white); }
.scene-roof { fill: var(--green); }
.scene-door, .scene-window { fill: var(--cream); stroke: var(--green); stroke-width: 3; }
.scene-tree { stroke: var(--forest); stroke-width: 8; }
.scene-crown { fill: var(--forest); }
.scene-leaf { fill: var(--leaf); }

/* ---------- Abschnitte ---------- */
.section { padding: var(--s8) 0; background: var(--white); }
.section-tint { background: var(--cream); }
.section-intro { max-width: 54ch; color: var(--muted); font-size: 1.0625rem; }
.section-tint .section-intro, .section-tint .note { color: #545B56; } /* 6.2:1 auf Creme */

/* ---------- Leistungen ---------- */
.services {
  list-style: none; margin: var(--s6) 0 0; padding: 0;
  display: grid; gap: var(--s4);
}
.service {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: var(--s4);
  align-content: start;
  padding: var(--s5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.service-icon-wrap {
  grid-row: span 2;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream);
  display: grid; place-items: center;
}
.service-icon {
  width: 30px; height: 30px;
  fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { margin-top: var(--s1); }
.service p { margin: 0; color: var(--muted); max-width: 46ch; }

.more-wrap {
  margin-top: var(--s6);
  padding: var(--s5);
  background: var(--cream);
  border-radius: var(--r-card);
}
.more-title { margin: 0 0 var(--s3); font-size: 1.2rem; }
.more { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); color: var(--muted); }
.more li { padding-left: var(--s5); position: relative; }
.more li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 10px; border-radius: 50% 0; background: var(--leaf);
}
.more strong { color: var(--ink); }

/* ---------- Einsatzgebiet ---------- */
.area { display: grid; gap: var(--s6); }
.places {
  list-style: none; padding: 0; margin: var(--s5) 0;
  display: flex; flex-wrap: wrap; gap: var(--s2);
}
.places li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-btn); padding: var(--s1) var(--s3); font-size: 0.97rem;
}
.note { color: var(--muted); }
.area-map { margin: 0; }
.area-map svg { display: block; width: 100%; height: auto; background: var(--white); border-radius: var(--r-card); border: 1px solid var(--line); }
.area-map figcaption { font-size: 0.9rem; color: #545B56; margin-top: var(--s2); }
.ring { fill: none; stroke: var(--green); stroke-opacity: 0.35; stroke-dasharray: 4 6; }
.lake { fill: #B9D3E3; }
.dot { fill: var(--green); }
.dot-home { fill: var(--leaf); stroke: var(--green); stroke-width: 3; }
.lbl { font: 500 13px var(--font); fill: var(--ink); }
.lbl-home { font: 700 16px var(--font); fill: var(--green); }

/* ---------- Über uns ---------- */
.about { display: grid; gap: var(--s6); align-items: start; }
.about-mark {
  width: 112px; height: 112px; border-radius: var(--r-card);
  background: var(--cream);
  display: grid; place-items: center;
}
.about-mark img { width: 64px; height: 64px; }
.about-text p { max-width: 54ch; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.facts li { padding-left: var(--s6); position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green);
}
.facts li::after {
  content: ""; position: absolute; left: 6px; top: calc(0.2em + 5px);
  width: 6px; height: 9px;
  border: solid var(--white); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Kontakt ---------- */
.section-dark { background: var(--green); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark .section-intro { color: var(--on-dark); }
.section-dark a { color: var(--white); }
.section-dark a:hover { color: var(--cream); }
.section-dark :focus-visible { outline-color: var(--cream); }
.contact-list { list-style: none; padding: 0; margin: var(--s6) 0; display: grid; gap: var(--s3); }
.contact-list li {
  display: flex; flex-direction: column; gap: var(--s1);
  padding: var(--s4) var(--s5);
  background: var(--forest);
  border-radius: var(--r-card);
  border-left: 4px solid var(--leaf);
}
.contact-kind { font-size: 0.92rem; color: var(--on-dark); }
.contact-list a {
  font-weight: 500;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  overflow-wrap: anywhere;
  min-height: 44px; display: inline-flex; align-items: center;
}
.contact-owner { color: var(--on-dark); margin: 0; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--forest); color: var(--on-dark); font-size: 0.95rem; padding: var(--s7) 0 var(--s6); }
.site-footer p { margin: 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: space-between; align-items: flex-end; }
.footer-brand { display: flex; flex-direction: column; gap: var(--s4); }
.footer-brand img { width: 200px; height: auto; }
.site-footer a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--cream); }
.site-footer :focus-visible { outline-color: var(--cream); }
.footer-links { display: flex; gap: var(--s5); }

/* ---------- Impressum / Datenschutz / 404 ---------- */
body.legal-page { padding-bottom: 0; min-height: 100vh; display: flex; flex-direction: column; }
body.legal-page main { flex: 1 0 auto; }
h1, h2 { hyphens: auto; -webkit-hyphens: auto; }
.back-link { font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.legal-inner > * { max-width: 46rem; }
.legal h1 { font-size: clamp(1.7rem, 7.4vw, 2.75rem); }
.legal h2 { font-size: 1.3rem; font-weight: 500; margin-top: var(--s6); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }
.legal li::marker { color: var(--green); }
.legal a { overflow-wrap: anywhere; }
.legal-date { color: var(--muted); }

/* ---------- Feste Anrufleiste (nur Handy) ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr;
  height: calc(var(--callbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--forest);
  border-top: 3px solid var(--leaf);
}
.callbar a {
  display: grid; place-items: center;
  color: var(--white); font-weight: 500; font-size: 1.05rem; text-decoration: none;
}
.callbar a + a { background: var(--green); }
.callbar a:focus-visible { outline: 3px solid var(--cream); outline-offset: -5px; }

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 48rem) {
  :root { --gutter: var(--s6); }
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .brand img { width: 260px; }
  .site-nav { display: flex; gap: var(--s5); }
  .site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
  .site-nav a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 3px; }
  .hero { padding-top: var(--s9); }
  .hero-scene { height: 160px; }
  .section { padding: var(--s9) 0; }
  .services { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .area { grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--s7); }
  .about { grid-template-columns: auto 1fr; gap: var(--s7); }
  .about-mark { width: 176px; height: 176px; }
  .about-mark img { width: 104px; height: 104px; }
  .contact-list { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .contact-list li:last-child { grid-column: 1 / -1; }
  .contact-list a { overflow-wrap: normal; font-size: 1.45rem; }
}
@media (min-width: 64rem) {
  .more-wrap { display: grid; grid-template-columns: 14rem 1fr; align-items: start; gap: var(--s5); }
  .more-title { margin: 0; }
  .more { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
  .contact-list { grid-template-columns: 1fr 1fr 1.35fr; }
  .contact-list li:last-child { grid-column: auto; }
}
