/* =========================================================
   Baumpflege Profi — Base Styles & Design Tokens
   ========================================================= */

:root {
  --brand:        #1b4332;   /* Deep Forest Green */
  --brand-dark:   #2d6a4f;   /* Hover shade */
  --ink:          #15212e;   /* Body text */
  --ink-soft:     #4a5a6a;   /* Secondary text */
  --line:         #e3e8ee;   /* Hairlines / borders */
  --bg:           #ffffff;
  --bg-alt:       #f4f9f5;   /* Alternating section background */
  --bg-dark:      #15212e;   /* Footer background */
  --max:          1160px;    /* Content max width */
  --radius:       10px;
  --font-head: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: .55em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .35em; letter-spacing: -.01em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #ffffff !important;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn:hover { background: var(--brand-dark); color: #ffffff !important; text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brand) !important; border: 2px solid var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #ffffff !important; }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }
.btn--sm { padding: 10px 20px; font-size: 0.95rem; }

.muted { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 20px; max-width: var(--max); margin: 0 auto;
}
.nav__logo img { max-height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links li { list-style: none; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .97rem; }
.nav__links a:hover { color: var(--brand); text-decoration: none; }
.nav__links a.btn { color: #ffffff !important; }
.nav__links a.btn:hover { color: #ffffff !important; background: var(--brand-dark); text-decoration: none; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 260px; padding: 8px 0; box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; display: none;
}
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 9px 18px; font-size: .92rem; }
.dropdown a:hover { background: var(--bg-alt); }

.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px; }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 8px 0; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; }
  .nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,33,46,.55), rgba(21,33,46,.78)); z-index: 1; }
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 90px 20px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 600; opacity: .9; }
.hero h1 { color: #fff; margin: 10px 0 16px; max-width: 20ch; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 48ch; }
.hero__cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Sections & Cards ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.82); }
.section__lead { max-width: 65ch; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: .4em; }

.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist a {
  display: block; padding: 14px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600;
}
.linklist a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.cta-band { background: var(--brand); color: #fff; text-align: center; padding: 56px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* ---------- Modal Popup ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 25, 36, 0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card {
  position: relative; background: #ffffff; width: 100%; max-width: 780px;
  border-radius: 16px; padding: 36px; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.97); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 18px; background: var(--bg-alt);
  border: none; font-size: 1.6rem; line-height: 1; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-card h2 { font-size: 1.8rem; margin-bottom: 6px; }
.modal-subtitle { color: var(--ink-soft); font-size: 1rem; margin-bottom: 24px; }
.person-row { display: grid; grid-template-columns: 1.2fr 1.5fr 1.5fr 1.5fr; gap: 14px; margin-bottom: 20px; }
@media (max-width: 700px) { .person-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .person-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }

.contact-pref { background: #f4f9f5; border: 1px solid #d8f3dc; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.contact-pref__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
@media (max-width: 650px) { .contact-pref__row { grid-template-columns: 1fr; gap: 8px; } }
.contact-pref__heading { font-weight: 700; color: var(--ink); font-size: 0.98rem; margin-bottom: 4px; }
.contact-pref__copy { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0; }
.contact-pref__or { text-align: center; font-weight: 700; color: var(--ink); font-size: 0.95rem; margin: 16px 0; position: relative; }
.contact-pref__or::before, .contact-pref__or::after { content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: #cbd5e1; }
.contact-pref__or::before { left: 0; } .contact-pref__or::after { right: 0; }
.field--flush { margin-bottom: 0; }
.form-note { font-size: 0.84rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-weight: 500; font-size: 0.95rem; display: none; }
.form-status.success { display: block; background: #e6f4ea; color: #137333; border: 1px solid #ceebd6; }
.form-status.error { display: block; background: #fce8e6; color: #c5221f; border: 1px solid #fad2cf; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.8); padding: 56px 0 28px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-family: var(--font-body); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.8); font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-disclaimer { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 10px; line-height: 1.5; }
.article { max-width: 820px; }
