/* ==========================================================================
   PZ Dienstleistungen – Stylesheet
   Farbwelt abgeleitet aus Logo (#174B29) und Fahrzeugbeschriftung.
   ========================================================================== */

:root {
  --gruen-900: #0E2F1A;
  --gruen-800: #123C21;
  --gruen-700: #174B29;   /* Logo-Grün, Primärfarbe */
  --gruen-600: #1E6234;
  --gruen-500: #3E8E42;   /* Icon-Grün der Fahrzeugbeschriftung */
  --gruen-100: #E4EEE5;
  --gruen-050: #F2F7F2;

  --sand:      #F5F7F3;
  --weiss:     #FFFFFF;
  --text:      #16211A;
  --text-mut:  #5A6157;
  --line:      #DDE4DC;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(14,47,26,.06), 0 8px 24px rgba(14,47,26,.07);
  --shadow-lg: 0 2px 4px rgba(14,47,26,.07), 0 18px 44px rgba(14,47,26,.12);

  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------- Basis */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* <picture> soll im Flex-/Grid-Fluss nicht als eigene Box zählen –
   die Karten-Layouts adressieren weiterhin direkt das <img>. */
picture { display: contents; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1rem; }

a { color: var(--gruen-600); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gruen-500);
  margin: 0 0 .6rem;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gruen-700); color: #fff; padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gruen-500); outline-offset: 2px; }

/* --------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--gruen-700); color: #fff; }
.btn--primary:hover { background: var(--gruen-800); }

.btn--ghost { background: transparent; color: var(--gruen-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gruen-700); background: var(--gruen-050); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--sm { padding: 10px 20px; font-size: .95rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 0; }

/* --------------------------------------------------------- Header */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: 1.06rem; color: var(--gruen-700); letter-spacing: -.01em; }
.brand__text span { font-size: .78rem; color: var(--text-mut); }

.nav { display: flex; align-items: center; gap: 26px; }
/* :not(.btn) – sonst überschreibt die höhere Spezifität von ".nav a" die Button-Textfarbe */
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--gruen-600); }

.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; padding: 11px 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--gruen-700); border-radius: 2px; }

/* --------------------------------------------------------- Hero */

.hero {
  background: linear-gradient(180deg, var(--gruen-050) 0%, var(--weiss) 100%);
  padding: clamp(40px, 6vw, 76px) 0 clamp(44px, 6vw, 80px);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.hero h1 { margin-bottom: .3em; }
.hero h1 span { color: var(--gruen-600); }

.slogan {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gruen-700);
  margin: 0 0 .7rem;
}

.lead { font-size: 1.08rem; color: var(--text-mut); max-width: 48ch; }

.hero__facts {
  list-style: none;
  margin: 2rem 0 0; padding: 0;
  display: grid; gap: .55rem;
}
.hero__facts li {
  position: relative;
  padding-left: 30px;
  font-size: .97rem;
  color: var(--text-mut);
}
.hero__facts li::before {
  content: "";
  position: absolute; left: 4px; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gruen-500);
}

.hero__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* --------------------------------------------------------- Sections */

.section { padding: clamp(52px, 7vw, 92px) 0; }
.section--alt { background: var(--sand); }

.section__head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 46px); }
.section__sub { color: var(--text-mut); font-size: 1.06rem; margin: 0; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Karten – Leistungen */

.card {
  background: var(--weiss);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 20px 22px 24px; }
.card__body h3 { color: var(--gruen-700); }
.card__body p { margin: 0; color: var(--text-mut); font-size: .97rem; }

/* Karten – Geräte */

.geraet {
  background: var(--weiss);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.geraet:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.geraet__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--gruen-100); }
.geraet__body { padding: 20px 22px 24px; }
.geraet__body h3 { color: var(--gruen-700); margin-bottom: .35em; }
.geraet__body p { margin: 0; color: var(--text-mut); font-size: .95rem; }

.note {
  margin: 28px 0 0;
  padding: 18px 22px;
  background: var(--weiss);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-mut);
  font-size: .97rem;
}
.note strong { color: var(--text); }

/* Callout-Band */

.callout {
  margin-top: 30px;
  background: var(--gruen-700);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
}
.callout h3 { color: #fff; font-size: 1.35rem; margin-bottom: .3em; }
.callout p { margin: 0; color: rgba(255,255,255,.82); max-width: 52ch; font-size: 1rem; }
.callout__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.callout .btn--primary { background: #fff; color: var(--gruen-700); }
.callout .btn--primary:hover { background: var(--gruen-100); }

/* Ablauf */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--gruen-050);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--gruen-700); color: #fff;
  font-weight: 700; font-size: 1.15rem;
}
.step h3 { color: var(--gruen-700); }
.step p { margin: 0; color: var(--text-mut); font-size: .97rem; }

/* Split (Über uns) */

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 58px); align-items: center;
}
.split__media img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 4 / 3; object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.split__text p { color: var(--text-mut); }
.region {
  margin-top: 1.4rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .97rem;
}
.region strong { color: var(--text); }

/* Kontakt */

.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.contact-tile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 26px 26px 24px;
  background: var(--gruen-050);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.contact-tile:hover {
  border-color: var(--gruen-500);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.contact-tile__label {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gruen-500);
}
.contact-tile__value { font-size: 1.14rem; font-weight: 600; word-break: break-word; }
.contact-tile__hint { font-size: .92rem; color: var(--text-mut); }

.address-block {
  margin-top: 34px; padding-top: 30px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 32px;
}
.address-block h3 { font-size: 1rem; color: var(--gruen-700); }
.address-block p { margin: 0; color: var(--text-mut); }

/* --------------------------------------------------------- Footer */

.footer {
  background: var(--gruen-900);
  color: rgba(255,255,255,.72);
  padding: 30px 0;
  font-size: .93rem;
}
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.footer__brand { margin: 0; }
.footer__nav { display: flex; gap: 22px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* --------------------------------------------------------- Mobile Aktionsleiste */

.actionbar { display: none; }

/* --------------------------------------------------------- Unterseiten */

.page { padding: clamp(40px, 6vw, 72px) 0 clamp(52px, 7vw, 88px); }
.page__inner { max-width: 74ch; }
.page h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.page h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.page p, .page li { color: var(--text-mut); }
.page ul { padding-left: 1.2rem; }
.page a { word-break: break-word; }
.back-link { display: inline-block; margin-bottom: 1.4rem; font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* --------------------------------------------------------- Responsive */

@media (max-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps   { grid-template-columns: 1fr; }
  .hero__inner, .split { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--weiss);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 20px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 14px; border-bottom: none; }
  .header__inner { position: relative; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .address-block { grid-template-columns: 1fr; }
  .callout__actions { width: 100%; }
  .callout__actions .btn { flex: 1 1 100%; }
  .btn-row .btn { flex: 1 1 100%; }

  main { padding-bottom: 64px; }
  .footer { padding-bottom: 78px; }

  .actionbar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--gruen-700);
    border-top: 1px solid var(--gruen-800);
  }
  .actionbar a {
    padding: 15px 6px;
    text-align: center;
    color: #fff; text-decoration: none;
    font-weight: 600; font-size: .95rem;
  }
  .actionbar a + a { border-left: 1px solid rgba(255,255,255,.18); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
