/* ==========================================================
   Hofmann & Beet – Heim- und Gartenservice
   ========================================================== */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
  --ink: #2f3130;
  --ink-soft: #5b605c;
  --line: #e3e7e1;
  --bg: #ffffff;
  --bg-soft: #f4f7f2;
  --bg-sage: #e8efe4;
  --green: #2e7d32;
  --green-dark: #1f5e23;
  --green-light: #dcebd9;
  --anthracite: #3a3a3a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 40, 20, .06), 0 8px 24px rgba(20, 40, 20, .07);
  --max: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--anthracite); margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--sage { background: var(--bg-sage); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: .8em;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  font-family: inherit; line-height: 1.2;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn--outline { border-color: currentColor; color: var(--anthracite); background: transparent; }
.btn--outline:hover { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }
.btn--light { background: #fff; color: var(--green-dark); }
.btn--light:hover { background: var(--green-light); color: var(--green-dark); }
.btn--ghost-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--anthracite); min-width: 0; }
.brand img { width: 62px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-size: .74rem; color: var(--green); font-weight: 500; letter-spacing: .04em; white-space: nowrap; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--anthracite); font-weight: 500; font-size: .95rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); background: var(--bg-soft); }
.main-nav .nav-cta a { background: var(--green); color: #fff; padding: 9px 18px; border-radius: 999px; margin-left: 6px; }
.main-nav .nav-cta a:hover { background: var(--green-dark); color: #fff; }

.has-sub { position: relative; }
.has-sub > button {
  font: inherit; font-weight: 500; font-size: .95rem; color: var(--anthracite); background: none; border: 0;
  padding: 8px 12px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 4px;
}
.has-sub > button:hover, .has-sub.is-active > button { color: var(--green); background: var(--bg-soft); }
.has-sub > button svg { width: 14px; height: 14px; transition: transform .2s; }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 8px !important; display: none !important; flex-direction: column; align-items: stretch !important;
}
.has-sub:hover .sub-menu, .has-sub.open .sub-menu, .has-sub:focus-within .sub-menu { display: flex !important; }
.has-sub.open > button svg { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-call { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--anthracite);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .header-call {
    display: inline-flex; width: 44px; height: 44px; border-radius: 10px; background: var(--green); color: #fff;
    align-items: center; justify-content: center;
  }
  .header-call svg { width: 20px; height: 20px; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 16px 20px 40px;
    overflow-y: auto; display: none; border-top: 1px solid var(--line);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .has-sub > button { padding: 14px 12px; font-size: 1.05rem; width: 100%; text-align: left; justify-content: space-between; }
  .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px !important; min-width: 0; }
  .has-sub:hover .sub-menu { display: none !important; }
  .has-sub.open .sub-menu { display: flex !important; }
  .main-nav .nav-cta a { margin: 12px 0 0; text-align: center; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand img { width: 48px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .66rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: #1d2a1e; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,28,16,.86) 0%, rgba(14,28,16,.62) 45%, rgba(14,28,16,.15) 100%);
}
.hero-content { position: relative; z-index: 1; padding: clamp(72px, 12vw, 150px) 0; max-width: 660px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero .eyebrow { color: #a9dba3; }
.hero-badges { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: rgba(255,255,255,.92); }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: #a9dba3; }
.hero .btn-row { margin-top: 28px; }

.page-hero { position: relative; color: #fff; background: #1d2a1e; overflow: hidden; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,28,16,.85), rgba(14,28,16,.45)); }
.page-hero .container { position: relative; z-index: 1; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,.9); }
.page-hero .eyebrow { color: #a9dba3; }
.page-hero--plain { background: var(--bg-sage); color: var(--ink); }
.page-hero--plain::after { display: none; }
.page-hero--plain h1 { color: var(--anthracite); }
.page-hero--plain .lead { color: var(--ink-soft); }
.page-hero--plain .eyebrow { color: var(--green); }

.breadcrumb { font-size: .85rem; margin-bottom: 14px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: inherit; }
.page-hero--plain .breadcrumb { color: var(--ink-soft); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); height: 100%;
}
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 12px; background: var(--green-light); color: var(--green-dark);
  display: grid; place-items: center; margin-bottom: 18px; flex: none;
}
.icon-badge svg { width: 26px; height: 26px; }

.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20,40,20,.06), 0 18px 40px rgba(20,40,20,.12); color: inherit; }
.service-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-sage); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .media img { transform: scale(1.04); }
.service-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.service-card ul { margin: 0 0 20px; padding: 0; list-style: none; color: var(--ink-soft); font-size: .95rem; }
.service-card li { padding: 4px 0 4px 26px; position: relative; }
.service-card li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.more-link { margin-top: auto; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.more-link svg { width: 18px; height: 18px; transition: transform .2s; }
.service-card:hover .more-link svg { transform: translateX(4px); }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon-badge { margin-bottom: 0; }
.feature h3 { margin-bottom: .3em; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* Leistungsdetails */
.detail-card h3 { font-size: 1.12rem; }
.detail-card p { color: var(--ink-soft); }

/* Zielgruppen */
.audience { position: relative; padding: 36px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.audience ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.audience li { padding: 7px 0 7px 30px; position: relative; }
.audience li::before {
  content: ""; position: absolute; left: 3px; top: 15px; width: 13px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.audience--dark { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }
.audience--dark h3 { color: #fff; }
.audience--dark .icon-badge { background: rgba(255,255,255,.1); color: #a9dba3; }
.audience--dark li::before { border-color: #a9dba3; }

/* Ablauf */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 30px 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 16px;
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* Orte */
.town-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.town-list li {
  display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line);
  padding: 8px 15px; border-radius: 999px; font-size: .95rem; font-weight: 500;
}
.town-list svg { width: 15px; height: 15px; color: var(--green); }
.area-map { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 16px; box-shadow: var(--shadow); }
.area-map svg { width: 100%; height: auto; display: block; }

/* Erreichbarkeit */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon-badge { width: 44px; height: 44px; margin: 0; }
.info-list .icon-badge svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--anthracite); }
.info-list span { color: var(--ink-soft); }

/* CTA band */
.cta-band { background: var(--green); color: #fff; border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); max-width: 58ch; }
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Story (Über uns) */
.story { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.story p { color: var(--ink); }
.story .drop::first-letter { float: left; font-size: 3.4em; line-height: .9; padding: 6px 10px 0 0; color: var(--green); font-weight: 700; }
.quote {
  border-left: 4px solid var(--green); background: var(--bg-soft); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--anthracite); margin: 28px 0;
}

/* Testimonials (vorbereitet) */
.testimonial blockquote { margin: 0 0 14px; font-style: italic; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--green-dark); }

/* ---------- Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--anthracite); }
.field .req { color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #cfd6cc; border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(46,125,50,.15); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 9px 16px; border: 1.5px solid #cfd6cc; border-radius: 999px; font-size: .93rem; font-weight: 500;
  transition: all .15s; cursor: pointer;
}
.choice input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 0; }

.contact-card { background: var(--anthracite); color: #fff; border-radius: var(--radius); padding: 32px; }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card a { color: #fff; text-decoration: none; }
.contact-card a:hover { color: #a9dba3; }
.contact-card .info-list span { color: rgba(255,255,255,.75); }
.contact-card .info-list strong { color: #fff; }
.contact-card .icon-badge { background: rgba(255,255,255,.1); color: #a9dba3; }
.contact-card .btn { width: 100%; margin-top: 24px; }
.btn--whatsapp { background: #25d366; color: #0b3d1f; }
.btn--whatsapp:hover { background: #1ebe5b; color: #0b3d1f; }

/* ---------- Legal ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4em; }
.notice {
  background: #fff8e1; border: 1px solid #f1d27a; border-radius: var(--radius-sm); padding: 16px 18px; font-size: .93rem; margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer { background: #232624; color: rgba(255,255,255,.78); padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 56px; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand strong { color: #fff; font-size: 1.1rem; display: block; line-height: 1.1; }
.footer-brand span { color: #a9dba3; font-size: .78rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 18px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.small { font-size: .88rem; color: var(--ink-soft); }
.placeholder-hint { background: #fff3cd; padding: 0 .25em; border-radius: 3px; }
.photo-credit { font-size: .75rem; color: var(--ink-soft); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
