/* HAFELLNER Erdbewegung – gemeinsame Seiten-Bausteine (Präfix hf-), Team C */
/* Lesbarkeit: Logo-Grün #009A33 nur für Flächen/Linien; Text und Buttons im dunkleren HAFELLNER-Grün (Kontrast ≥ 4,5:1) */
body.t-bagger { --hf-ink: #00802B; --hf-ink-2: #0B6B2A; }
.t-bagger .btn--primary { background: var(--hf-ink); }
.t-bagger .eyebrow { color: var(--hf-ink-2); } /* 13px-Versalien: auch auf Steingrau ≥ 4,5:1 */
.t-bagger .hero--plain .crumbs, .t-bagger .hf-wd-head .crumbs { opacity: 1; }
.t-bagger main a:where(:not(.btn)) { color: var(--hf-ink-2); }
.t-bagger main .hf-on-dark a:where(:not(.btn)), .t-bagger main .section--dark a:where(:not(.btn)) { color: #9FE0B2; }
.t-bagger .steps li::before { font-family: var(--f-tech); font-size: 19px; }
.t-bagger h3 { letter-spacing: .03em; }

/* Hero */
.hf-hero .hero-media img { object-position: var(--hf-pos, 50% 50%); }
.hf-hero .hero-media::after { background: linear-gradient(90deg, rgba(5, 24, 11, .9) 0%, rgba(5, 24, 11, .62) 46%, rgba(5, 24, 11, .12) 100%); }
.hf-hero .wrap { padding-block: clamp(56px, 9vw, 128px); }
.hf-hero h1 { max-width: 12.5em; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); hyphens: manual; }
.hf-hero .crumbs a { color: #fff; }
.hf-kicker { font-family: var(--f-tech); font-weight: 600; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: #A6E6B9; }
/* Hero geteilt: Text auf Dunkelgrün, Foto randlos rechts */
.hf-split-hero { background: var(--hf-dark); color: var(--hero-ink); display: grid; grid-template-columns: 1fr; overflow: hidden; }
.hf-sh-media { position: relative; aspect-ratio: 16 / 10; background: #0A2C14; }
.hf-sh-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hf-pos, 50% 50%); }
.hf-sh-text { padding: clamp(32px, 6vw, 88px) 16px clamp(36px, 6vw, 88px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.hf-sh-text h1 { color: #fff; max-width: none; font-size: clamp(32px, 4.2vw, 56px); hyphens: manual; }
.hf-sh-text .lead { color: #E3EEE5; }
.hf-sh-text .crumbs a { color: #fff; }
.hf-sh-text .hero-note { margin-bottom: -4px; }
@media (min-width: 900px) {
  .hf-split-hero { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .hf-sh-media { order: 2; aspect-ratio: auto; border-left: 6px solid var(--hf-green); }
  .hf-sh-text { padding-left: max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); padding-right: clamp(24px, 4vw, 56px); }
}
@media (max-width: 700px) {
  .hf-hero .hero-media img { object-position: var(--hf-pos-m, var(--hf-pos, 50% 50%)); }
  .hf-hero .hero-media::after { background: linear-gradient(180deg, rgba(5, 24, 11, .55) 0%, rgba(5, 24, 11, .82) 55%, rgba(5, 24, 11, .9) 100%); }
  .hf-hero .row .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) { .t-bagger h1 { font-size: clamp(27px, 8vw, 40px); letter-spacing: .03em; } }

/* Fakten-Band unter dem Hero */
.hf-facts { background: var(--hf-dark); color: #E8F2EA; border-top: 4px solid var(--hf-green); }
.hf-facts ul { list-style: none; margin: 0; padding: 20px 0; display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.hf-facts li { display: flex; gap: 12px; align-items: flex-start; }
.hf-facts .ico { width: 30px; height: 30px; color: #8FD8A5; margin-top: 1px; }
.hf-facts b { display: block; font-family: var(--f-tech); font-size: 19px; letter-spacing: .05em; text-transform: uppercase; color: #fff; line-height: 1.2; }
.hf-facts span { font-size: 15px; color: #CFE3D4; }

/* Leistungs-Karten mit großem Foto */
.hf-svc-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.hf-svc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink) !important; transition: transform .15s ease, box-shadow .15s ease; }
.hf-svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.hf-svc-media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--paper-2); }
.hf-svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.hf-svc:hover .hf-svc-media img { transform: scale(1.04); }
.hf-svc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; border-top: 4px solid var(--hf-green); }
.hf-svc-no { font-family: var(--f-tech); font-weight: 700; color: var(--hf-ink); letter-spacing: .14em; font-size: 14px; }
.hf-svc h3 { text-transform: uppercase; letter-spacing: .04em; font-size: clamp(22px, 2.2vw, 26px); }
.hf-svc p { color: var(--ink-2); }
.hf-svc .link-arrow { margin-top: auto; padding-top: 4px; color: var(--hf-ink-2); }

/* Schmale Zeile (z. B. Winterdienst) */
.hf-slim { margin-top: var(--gap); display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.hf-slim .ico { width: 26px; height: 26px; color: var(--hf-ink); }
.hf-slim p { flex: 1 1 320px; }

/* Maschinen-Liste auf dunklem Grund */
.hf-kit { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hf-kit li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.hf-kit li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.hf-kit .ico { width: 30px; height: 30px; color: #8FD8A5; }
.hf-kit b { font-family: var(--f-tech); text-transform: uppercase; letter-spacing: .06em; font-size: 20px; display: block; color: #fff; line-height: 1.25; }
.hf-kit span { color: #D6E6DA; }
.hf-ph { background: #FFF1B8; color: #5C4400; border-radius: 4px; padding: 0 .25em; font-weight: 600; font-size: .92em; white-space: normal; }
.section--dark .hf-ph, .hf-on-dark .hf-ph { background: rgba(255, 241, 184, .16); color: #FFE58A; }

/* Galerie */
.hf-gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 215px); grid-auto-flow: dense; }
.hf-gallery .fig { margin: 0; height: 100%; border-radius: 10px; cursor: zoom-in; }
.hf-gallery .fig img { transition: transform .45s ease; }
.hf-gallery .fig:hover img, .hf-gallery .fig:focus-visible img { transform: scale(1.04); }
.hf-g--big { grid-column: span 2; grid-row: span 2; }
.hf-g--tall { grid-row: span 2; }
.hf-g--wide { grid-column: span 2; }
.hf-g--r img { object-position: 85% 50%; }
.hf-g--c img { object-position: 46% 75%; }
@media (max-width: 700px) { .hf-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } }
.hf-lb { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 94vh; overflow: visible; }
.hf-lb::backdrop { background: rgba(4, 14, 7, .88); }
.hf-lb img { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 10px; margin: 0 auto; }
.hf-lb p { color: #fff; margin-top: 10px; text-align: center; font-weight: 600; }
.hf-lb-close { position: absolute; top: -14px; right: -6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }

/* Video-Vorschau */
.hf-video { width: 100%; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #0A2C14; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.hf-video-media { position: absolute; inset: 0; }
.hf-video-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hf-vpos, 80% 50%); }
.hf-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .62)); pointer-events: none; }
.hf-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px); border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--hf-dark); display: grid; place-items: center; cursor: pointer; z-index: 2; box-shadow: 0 10px 34px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.hf-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.hf-play svg { width: 40%; height: 40%; margin-left: 8%; fill: currentColor; }
.hf-video-meta { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-weight: 700; font-size: 15px; pointer-events: none; }
.hf-video-meta span:last-child { font-family: var(--f-tech); letter-spacing: .08em; }

/* Schritte (5 nebeneinander) */
.hf-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.hf-steps h3 { text-transform: uppercase; font-size: 19px; letter-spacing: .02em; hyphens: manual; }

/* Abschluss-Box mit Telefon */
.hf-cta { background: var(--hf-dark); color: #F2F6F0; border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; border-left: 8px solid var(--hf-green); }
@media (min-width: 880px) { .hf-cta { grid-template-columns: 1.3fr 1fr; } }
.hf-cta h2 { color: #fff; }
.hf-cta p { color: #D6E6DA; }
.hf-phones { display: flex; flex-direction: column; gap: 10px; }
.hf-phone { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 12px 16px; color: #fff !important; text-decoration: none; font-family: var(--f-tech); font-size: clamp(22px, 2.4vw, 27px); font-weight: 700; letter-spacing: .04em; line-height: 1.15; }
.hf-phone:hover { background: rgba(255, 255, 255, .13); text-decoration: none; }
.hf-phone .ico { width: 26px; height: 26px; color: #8FD8A5; }
.hf-phone small { display: block; font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0; color: #CFE3D4; }

/* Handy: feste Leiste Anrufen / Anfrage */
.hf-mbar { display: none; }
@media (max-width: 760px) {
  .hf-mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
  .hf-mbar .btn { min-height: 46px; padding: 0 10px; font-size: 16px; }
  body.t-bagger { padding-bottom: 66px; }
}

/* Kleinteile */
.hf-tile .ico-lg { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: #DDF1E3; color: var(--hf-ink); align-items: center; justify-content: center; }
.hf-tile .ico-lg .ico { width: 26px; height: 26px; }
.hf-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hf-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.hf-checks .ico { width: 20px; height: 20px; color: var(--hf-ink); margin-top: 3px; }
.section--dark .hf-checks .ico, .hf-on-dark .hf-checks .ico { color: #8FD8A5; }
.hf-tile h3 { text-transform: uppercase; font-size: 20px; hyphens: manual; }
.hf-tile p { color: var(--ink-2); }
.hf-photo { margin: 0; }
.hf-photo img { box-shadow: var(--shadow); }
/* Seite: Böschungspflege */
.hf-mulch { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.hf-videoband { background: linear-gradient(180deg, var(--hf-dark) 0%, #072613 100%); color: #F2F6F0; }
.hf-videoband .hf-video { max-width: 980px; margin-inline: auto; }
.hf-videoband .section-head { margin-inline: auto; }
.hf-arm { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.hf-arm img { object-position: 12% 50%; }
.hf-reach { display: flex; flex-wrap: wrap; gap: 8px; }
