/* ===================================================================
   KB-Kunze – Konstruktionsbüro Manfred Kunze GmbH
   Statische Seite, keine externen Abhängigkeiten (DSGVO-freundlich)
   =================================================================== */

:root {
  --green: #4e7a68;
  --green-dark: #37584b;
  --green-deep: #26423a;
  --green-tint: #eef4f1;
  --ink: #1e2926;
  --muted: #5c6b65;
  --line: #e3e8e5;
  --bg: #fafaf8;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 41, 38, .06), 0 8px 24px rgba(30, 41, 38, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--green-dark); }
a:hover { color: var(--green); }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 .8em; }
h3 { font-size: 1.15rem; margin: 0 0 .5em; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img { height: 44px; width: auto; }

.brand-text { line-height: 1.15; }
.brand-text .brand-top {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-text .brand-name { font-weight: 700; font-size: 1.05rem; }

.nav-toggle { display: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: 8px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  content: "";
  transition: transform .2s ease;
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after { position: absolute; top: 7px; }

.site-nav ul {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: .5rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
}
.site-nav a:hover { background: var(--green-tint); color: var(--green-deep); }
.site-nav a[aria-current="page"] { background: var(--green); color: #fff; }

@media (max-width: 800px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: var(--shadow);
  }
  .site-nav ul { flex-direction: column; padding: .75rem 1rem 1rem; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav a { border-radius: 10px; padding: .7rem 1rem; }
}

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

.hero {
  background:
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
}

.hero .eyebrow {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green-deep);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; padding: 3rem 0; gap: 2rem; }
}

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 42em; margin-bottom: 2.5rem; }
.section-head .kicker {
  color: var(--green);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 .5rem;
}
.section-head p { color: var(--muted); margin: 0; }

/* Karten */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 1px 2px rgba(30, 41, 38, .04);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }

.card p { color: var(--muted); font-size: .98rem; margin: 0; }

.card ul {
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .98rem;
}
.card ul li {
  padding: .3rem 0 .3rem 1.4rem;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: .55em;
  height: .55em;
  border-radius: 2px;
  background: var(--green);
  opacity: .55;
}

/* Zahlen / Fakten */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  text-align: center;
}
.fact .num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}
.fact .label { color: var(--muted); font-size: .95rem; }

/* Zweispalter mit Bild */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Branchen / Referenzen */

.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .95rem;
  color: var(--muted);
}

/* CTA-Band */

.cta-band {
  background: var(--green-deep);
  color: #fff;
  padding: 3.5rem 0;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255, 255, 255, .75); margin: 0; }
.cta-band .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band .btn-primary { background: #fff; color: var(--green-deep); }
.cta-band .btn-primary:hover { background: var(--green-tint); }

/* ---------- Inhaltsseiten ---------- */

.page-head {
  background: linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 2.75rem;
}
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--muted); max-width: 44em; margin: 0; font-size: 1.15rem; }

.prose { max-width: 46em; }
.prose h2 { margin-top: 2em; }
.prose p { color: #33403b; }

/* Kontakt */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { display: grid; gap: .2rem; }
.contact-card .big {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
}
.contact-card .big:hover { text-decoration: underline; }

dl.contact-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.25rem; }
dl.contact-list dt { font-weight: 600; color: var(--muted); }
dl.contact-list dd { margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  font-size: .95rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3 { font-size: 1rem; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .18rem 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green-deep); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
}

/* Kleinkram */

.scc-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--green-tint);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-top: 2rem;
  max-width: 34rem;
}
.scc-badge img { height: 54px; width: auto; }
.scc-badge p { margin: 0; font-size: .95rem; color: var(--green-deep); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: .6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }
