/* ==========================================================================
   companion Development — Stylesheet

   Farben ausschliesslich ueber Custom Properties in :root (Vorgabe CLAUDE.md).
   Markenfarben: Gruen PANTONE 362 (#3D8A1A), Grau PANTONE Cool Gray 7 (#8C8B8D).

   Achtung: Beide Markenfarben erreichen auf Weiss keine 4,5:1 (Gruen 4,33:1,
   Grau 3,39:1) und sind deshalb nur Flaechen- und Akzentfarben. Fliesstext
   nutzt --text, Links und Auszeichnungen --green-text.
   ========================================================================== */

:root {
  /* Marke */
  --brand-green: #3D8A1A;      /* PANTONE 362 — Flaechen, Bildmarke, Akzent */
  --brand-grey:  #8C8B8D;      /* PANTONE Cool Gray 7 — dekorativ */
  --green-text:  #357A17;      /* 5,3:1 auf Weiss — Links, Auszeichnung */
  --green-deep:  #2F6B14;      /* 6,4:1 auf Weiss — Buttonflaeche */

  /* Flaechen und Text */
  --bg:         #ffffff;
  --bg-alt:     #f5f7f2;
  --bg-panel:   #ebf0e4;
  --surface:    #ffffff;
  --text:       #24262a;       /* 15,3:1 auf Weiss */
  --text-muted: #5a5f66;       /* 6,4:1 auf Weiss */
  --border:     #dde0d8;
  --focus:      #2f6b14;

  --btn-bg: #2F6B14;
  --btn-fg: #ffffff;

  --shadow: 0 1px 2px rgba(36,38,42,.05), 0 10px 30px rgba(36,38,42,.07);

  /* Mass und Rhythmus */
  --header-h: 4.25rem;
  --wrap: 68rem;
  --radius: 14px;
  --radius-lg: 22px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-green: #7cc94a;
    --brand-grey:  #9a9a9c;
    --green-text:  #8fd45f;    /* 10,2:1 auf --bg */
    --green-deep:  #a5e07a;

    --bg:         #14171a;
    --bg-alt:     #191d21;
    --bg-panel:   #1f2429;
    --surface:    #1c2126;
    --text:       #e9ebe6;     /* 15,1:1 auf --bg */
    --text-muted: #a9aea5;     /* 8,1:1 auf --bg */
    --border:     #2e343a;
    --focus:      #8fd45f;

    --btn-bg: #7cc94a;
    --btn-fg: #10141a;

    --shadow: 0 1px 2px rgba(0,0,0,.45), 0 10px 30px rgba(0,0,0,.35);
  }
}

/* --------------------------------------------------------- Grundgeruest */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); }
p  { margin: 0 0 1.1em; }
a  { color: var(--green-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; height: auto; }
ul { padding-left: 1.15rem; }
li { margin-bottom: .35em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.lead { font-size: clamp(1.1rem, 1rem + .6vw, 1.3rem); color: var(--text-muted); }

.eyebrow {
  display: inline-block; margin-bottom: .8rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-text);
}

/* --------------------------------------------------------- Skip-Link */

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------- Kopfbereich */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; text-decoration: none; color: inherit; }
.brand-mark { width: 2.1rem; height: 2.1rem; color: var(--brand-green); flex: none; }
/* Skaliert mit: bei 375px passte 1.16rem nicht neben den Menue-Button. */
.brand-name { font-size: clamp(.95rem, .78rem + .55vw, 1.16rem); letter-spacing: -.02em; white-space: nowrap; }
.brand-name .b1 { color: var(--text); font-weight: 400; }
.brand-name .b2 { color: var(--green-text); font-weight: 700; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem; flex: none;
  padding: .55rem .8rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars { display: block; width: 1.05rem; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after  { top:  5px; }

.nav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: .5rem .75rem; border-radius: 9px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .98rem;
}
.nav a:hover { background: var(--bg-panel); color: var(--green-text); }
.nav a[aria-current="true"] { color: var(--green-text); background: var(--bg-panel); }

/* Mobil: Navigation einklappbar */
@media (max-width: 51.9375rem) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav ul { flex-direction: column; gap: 0; padding: .6rem 1.25rem 1rem; }
  .nav a { padding: .8rem .5rem; border-radius: 8px; font-size: 1.05rem; }
}
@media (min-width: 52rem) {
  .nav-toggle { display: none; }
  .nav[hidden] { display: block; }
}

/* --------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--green-text); }
.btn-secondary { background: transparent; color: var(--green-text); border-color: var(--green-text); }
.btn-secondary:hover { background: var(--bg-panel); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* --------------------------------------------------------- Hero */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 6rem);
  background:
    radial-gradient(60rem 34rem at 78% -12%, rgba(61,138,26,.16), rgba(61,138,26,0) 70%),
    radial-gradient(44rem 28rem at 2% 108%, rgba(140,139,141,.16), rgba(140,139,141,0) 72%),
    var(--bg);
}
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.02fr .98fr; } }
.hero h1 { margin-bottom: .5em; }
.hero-figure { margin: 0; }
.hero-figure img { display: block; width: 100%; }

/* --------------------------------------------------------- Abschnitte */

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Leistungen: abwechselnd Bild links / rechts */
.service { display: grid; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; }
.service + .service { margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 56rem) {
  .service { grid-template-columns: 1fr 1fr; }
  .service-flip .service-figure { order: -1; }
}
.service-figure {
  margin: 0; padding: clamp(1rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(28rem 20rem at 22% 8%, rgba(61,138,26,.13), rgba(61,138,26,0) 68%),
    var(--bg-panel);
}
.service-figure img { display: block; width: 100%; }
.service-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; margin-bottom: .9rem; border-radius: 50%;
  background: var(--brand-green); color: #fff;
  font-size: .95rem; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .service-num { color: #10141a; } }
.service ul { margin: 0; color: var(--text-muted); }

/* Arbeitsweise */
.approach-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 56rem) { .approach-grid { grid-template-columns: .95fr 1.05fr; } }
.approach-figure { margin: 0; }
.approach-figure img { display: block; width: 100%; }

.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .9rem; }
.facts li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; }
.facts svg { width: 1.35rem; height: 1.35rem; flex: none; margin-top: .2rem; color: var(--brand-green); }

/* Kontakt */
.contact-card {
  display: grid; gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
@media (min-width: 46rem) { .contact-card { grid-template-columns: 1fr 1fr; } }
.contact-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-item svg { width: 1.5rem; height: 1.5rem; flex: none; margin-top: .25rem; color: var(--brand-green); }
.contact-item .label {
  display: block; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: .15rem;
}
.contact-item a { font-size: 1.1rem; font-weight: 600; }
.contact-item address { font-style: normal; font-size: 1.05rem; }

/* --------------------------------------------------------- Rechtsseiten */

.page-header { padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.legal { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem); }
.legal-body { max-width: 44rem; }
.legal-body h2 { margin-top: 2.25em; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
.legal-body h3 { margin-top: 1.8em; font-size: 1.1rem; }
.legal-body address { font-style: normal; }
.legal-body dl { margin: 0 0 1.1em; }
.legal-body dt { font-weight: 650; margin-top: .8em; }
.legal-body dd { margin: 0; }

.placeholder {
  margin: 1.2rem 0; padding: .9rem 1.1rem;
  border-left: 4px solid var(--brand-green); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-panel); color: var(--text);
  font-size: .96rem;
}
.placeholder strong { color: var(--green-text); }
.back-link { display: inline-block; margin-top: 2.5rem; font-weight: 600; }

/* --------------------------------------------------------- Fussbereich */

.site-footer {
  padding: 2.5rem 0; border-top: 1px solid var(--border);
  background: var(--bg); color: var(--text-muted); font-size: .95rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
}
.footer-inner p { margin: 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0; }

/* --------------------------------------------------------- Scroll-Reveal */

/* Grundzustand ist sichtbar. Der verborgene Ausgangszustand gilt nur, wenn JS
   laeuft (Klasse .js am html-Element) - ohne JS bliebe der Inhalt sonst dauerhaft
   unsichtbar. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------- Reduced Motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
