/* MWM morschett waste management GmbH – Stylesheet
   Bewusst ohne externe Schriften/Frameworks (DSGVO, Ladezeit). */

:root {
  --brand: #7cb82f;
  --brand-dark: #4b7a18;
  --brand-tint: #f1f7e9;
  --ink: #1e261b;
  --muted: #5a6655;
  --line: #e1e7da;
  --surface: #f6f8f3;
  --bg: #ffffff;
  --footer: #20291d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 15, .06), 0 8px 24px rgba(20, 30, 15, .06);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; }
.brand img { height: 54px; width: auto; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  width: 46px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 15.5px;
}
.main-nav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.main-nav a[aria-current="page"], .main-nav a.active { color: var(--brand-dark); background: var(--brand-tint); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .main-nav a { padding: 12px 14px; font-size: 17px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 2px solid var(--brand); background: var(--brand); color: #fff;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-dark); }
.btn.ghost:hover { background: var(--brand-tint); color: var(--brand-dark); border-color: var(--brand); }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- Startseite ---------- */
.hero { background: linear-gradient(180deg, var(--brand-tint), #fff 85%); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 14px; }
.hero h1 span { color: var(--brand-dark); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 36em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 2% 4% 8%; border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 40% 40%, #d8ecc0, #bfe09a);
}
.hero-visual img { position: relative; width: min(420px, 100%); }

.quick-contact { margin-top: -20px; position: relative; z-index: 2; }
.quick-contact .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; display: flex; gap: 16px; align-items: center;
}
.contact-tile .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-tint); display: grid; place-items: center; }
.contact-tile .ico svg { width: 22px; height: 22px; fill: var(--brand-dark); }
.contact-tile strong { display: block; }
.contact-tile a { text-decoration: none; }
.contact-tile .meta { color: var(--muted); font-size: 15px; }

.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card img.icon { width: 72px; height: 72px; margin-bottom: 18px; }
.card p { color: var(--muted); flex: 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.fact::before { content: "✓"; color: var(--brand-dark); font-weight: 800; margin-right: 8px; }

/* ---------- Unterseiten ---------- */
.page-head { background: linear-gradient(180deg, var(--brand-tint), #fff); border-bottom: 1px solid var(--line); }
.page-head .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 170px; padding-top: 32px; padding-bottom: 28px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.page-head img { max-height: 140px; width: auto; margin-bottom: -28px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-dark); }

.layout { display: grid; grid-template-columns: 270px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.layout.no-side { grid-template-columns: minmax(0, 820px); }
.subnav { position: sticky; top: 100px; align-self: start; }
.subnav h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.subnav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.subnav a { display: block; padding: 9px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink); font-weight: 500; line-height: 1.35; }
.subnav a:hover { color: var(--brand-dark); }
.subnav a[aria-current="page"] { border-left-color: var(--brand); color: var(--brand-dark); font-weight: 700; }

.aside-box { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: 15.5px; }
.aside-box h3 { font-size: 16px; }

.prose { min-width: 0; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figure.small img { width: auto; max-width: min(100%, 480px); }
.fig-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: start; }
.fig-row figure { margin: 8px 0; }
.prose figcaption { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.prose .lead { font-size: 19px; color: var(--muted); }
.note { background: var(--brand-tint); border-left: 4px solid var(--brand); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 24px 0; }

.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.addr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 15.5px; }
.addr strong { display: block; }

/* Ansprechpartner */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 14px 0 36px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.person strong { display: block; font-size: 17px; margin-bottom: 8px; }
.person strong:has(+ .role) { margin-bottom: 0; }
.person .role { color: var(--muted); font-size: 14.5px; display: block; margin-bottom: 8px; }
.person dl { margin: 0; display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; font-size: 15px; }
.person dt { color: var(--muted); font-weight: 700; }
.person dd { margin: 0; overflow-wrap: anywhere; }

/* Downloads */
.docs { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.doc {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.doc:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.doc .pdf { flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--brand-tint); color: var(--brand-dark); font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 1px solid #cfe3b5; }
.doc .t { font-weight: 700; display: block; }
.doc .s { color: var(--muted); font-size: 14px; }

/* Presse */
.press { border-top: 1px solid var(--line); padding-top: 36px; margin-top: 36px; }
.press:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.press time { display: block; font-size: 14px; color: var(--brand-dark); font-weight: 700; margin-bottom: 6px; }
.press h2 { font-size: clamp(21px, 2.4vw, 26px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #d7dfd2; font-size: 15.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .logo-chip { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 16px; }
.site-footer .logo-chip img { height: 46px; width: auto; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: #a9b5a3; }
.site-footer .bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .hero-visual img { width: min(320px, 80%); }
  .cards { grid-template-columns: 1fr; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .subnav { position: static; min-width: 0; }
  .subnav h2 { display: none; }
  .subnav ul { display: flex; gap: 8px; overflow-x: auto; border-left: 0; padding-bottom: 6px; scrollbar-width: thin; }
  .subnav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; margin: 0; padding: 8px 14px; font-size: 15px; }
  .subnav a[aria-current="page"] { background: var(--brand-tint); border-color: var(--brand); }
  .page-head img { display: none; }
  .page-head .container { min-height: 0; }
  .site-footer .top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .quick-contact .grid, .facts { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .brand img { height: 46px; }
  .site-header .container { min-height: 66px; }
}
@media print {
  .site-header, .site-footer, .subnav, .nav-toggle { display: none !important; }
  .layout { display: block; padding: 0; }
}
