/* ==========================================================================
   MH-T — Agrar- und Baumservice (mh-t.at) | Mario Hiebler-Texer
   Alpin-Forst & Baumpflege Design — Markant, fachlich, präzise
   100 % Vanilla CSS – Keine externen Abhängigkeiten
   ========================================================================== */

:root {
  /* Farbpalette: Tiefes Tannengrün, Eichenholz-Bronze & heller Naturstein */
  --forest-deep: #0f2218;
  --forest-mid: #163022;
  --forest-accent: #1f4631;
  --forest-leaf: #2d6848;

  --timber-gold: #c89456;
  --timber-warm: #a87339;
  --timber-tint: rgba(200, 148, 86, 0.14);

  --bg-page: #f5f3ee;
  --bg-surface: #ffffff;
  --bg-alt: #ebe7de;

  --text-primary: #151a17;
  --text-secondary: #434b45;
  --text-muted: #68706a;
  --text-light: #f4f2ec;
  --text-light-muted: #b6c2ba;

  --border-subtle: #dcd7cb;
  --border-strong: #c2bba9;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 4px 14px rgba(15, 34, 24, 0.05);
  --shadow-md: 0 14px 36px rgba(15, 34, 24, 0.09);
  --shadow-dark: 0 20px 48px rgba(6, 15, 10, 0.35);

  --container-max: 1140px;
  --header-height: 74px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  font-size: 16px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(15, 34, 24, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 148, 86, 0.22);
  color: var(--text-light);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  height: 38px;
  width: auto;
  background: #ffffff;
  padding: 4px 9px;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.brand-subtitle {
  font-size: 0.74rem;
  color: var(--timber-gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(244, 242, 236, 0.84);
  transition: color var(--transition);
  padding: 0.35rem 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--timber-gold);
}

.nav-link.nav-cta {
  background: var(--timber-gold);
  color: var(--forest-deep);
  padding: 0.52rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background-color var(--transition), transform var(--transition);
}

.nav-link.nav-cta:hover,
.nav-link.nav-cta:focus-visible {
  background: #d8a568;
  color: var(--forest-deep);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(244, 242, 236, 0.25);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-bar {
  width: 18px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
}

/* ==========================================================================
   HERO SECTION (DUNKELGRÜNER WALDFOND + INTERAKTIVES BAUM-SCHNITTBILD)
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 25%, #1b3b29 0%, var(--forest-deep) 72%);
  color: var(--text-light);
  padding: 4.25rem 0 6.25rem;
  overflow: hidden;
}

/* Subtile Jahresringe als architektonisches Wasserzeichen */
.hero-rings-bg {
  position: absolute;
  right: -140px;
  top: -120px;
  width: 720px;
  height: 720px;
  color: rgba(200, 148, 86, 0.08);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.25rem;
  align-items: center;
}

/* ==========================================================================
   HERO LOGO SHOWCASE (RECHTE SPALTE IM HERO)
   ========================================================================== */
.hero-showcase {
  display: flex;
  justify-content: center;
}

.logo-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--timber-gold);
  padding: 2.75rem 2.25rem 1.85rem;
  box-shadow: var(--shadow-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-bottom: 1.75rem;
}

.logo-card-meta {
  width: 100%;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.meta-dot {
  color: var(--timber-warm);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--timber-gold);
  margin-bottom: 0.9rem;
}

.eyebrow-line {
  width: 24px;
  height: 2px;
  background: var(--timber-gold);
}

.hero-title {
  font-size: clamp(2.15rem, 3.8vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 1.15rem;
}

.text-timber {
  color: var(--timber-gold);
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-light-muted);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.45rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--timber-gold);
  color: var(--forest-deep);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #d7a467;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 148, 86, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border-color: rgba(244, 242, 236, 0.28);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--timber-gold);
  color: var(--timber-gold);
  background: rgba(255, 255, 255, 0.08);
}

/* Architektonische Waldsilhouette am unteren Hero-Rand */
.forest-horizon {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}

.forest-horizon svg {
  width: 100%;
  height: 52px;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 660px;
  margin-bottom: 3.25rem;
}

.section-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--timber-warm);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--forest-deep);
  margin-bottom: 0.65rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* ==========================================================================
   01 / LEISTUNGEN (FEINGLIEDRIGE STAMM-ACHSE MIT AST-VERZWEIGUNGEN)
   ========================================================================== */
.branching-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 5rem;
  row-gap: 2.5rem;
  padding: 1rem 0;
}

/* Dezente vertikale Stamm-Linie in der Mitte */
.stem-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--forest-accent) 8%,
    var(--timber-warm) 92%,
    transparent 100%
  );
}

.service-branch {
  position: relative;
}

/* Leichter Versatz wie bei natürlich wechselständigen Ästen am Stamm */
.service-branch.branch-right {
  margin-top: 3rem;
}

.branch-connector {
  position: absolute;
  top: 2.2rem;
  width: 2.5rem;
  height: 1rem;
  color: var(--forest-accent);
  pointer-events: none;
}

.branch-left .branch-connector {
  right: -2.5rem;
}

.branch-right .branch-connector {
  left: -2.5rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--forest-accent);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--timber-warm);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.service-Zone-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest-accent);
  background: rgba(31, 70, 49, 0.08);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  color: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--forest-deep);
  margin-bottom: 0.65rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 1.35rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-subtle);
}

.service-tags li {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  padding: 0.26rem 0.65rem;
  border-radius: 6px;
}

/* ==========================================================================
   02 / ARBEITSWEISE (MIT JAHRESRING-WASSERZEICHEN)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.step-ring-watermark {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  color: rgba(168, 115, 57, 0.16);
  pointer-events: none;
}

.step-number {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--timber-warm);
  background: var(--timber-tint);
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--forest-deep);
  margin-bottom: 0.55rem;
}

.step-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   03 / KONTAKT
   ========================================================================== */
.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 148, 86, 0.35);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-md);
}

.contact-rings-decor {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 380px;
  height: 380px;
  color: rgba(200, 148, 86, 0.12);
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.contact-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--timber-gold);
  margin-bottom: 0.6rem;
}

.contact-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.contact-lead {
  color: var(--text-light-muted);
  font-size: 1.02rem;
  margin-bottom: 1.85rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-large {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}

.contact-sectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-light-muted);
}

.contact-sectors .dot {
  color: var(--timber-gold);
}

/* ==========================================================================
   FOOTER & IMPRESSUM
   ========================================================================== */
.site-footer {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn:hover {
  color: var(--forest-deep);
}

.legal-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.legal-panel[hidden] {
  display: none;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.legal-panel h3 {
  font-size: 0.95rem;
  color: var(--forest-deep);
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid,
  .steps-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .branching-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stem-axis,
  .branch-connector {
    display: none;
  }

  .service-branch.branch-right {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--forest-deep);
    border-bottom: 1px solid rgba(200, 148, 86, 0.3);
    padding: 1rem 1.5rem 1.25rem;
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .nav-link {
    display: block;
    padding: 0.45rem 0;
  }

  .nav-link.nav-cta {
    text-align: center;
    margin-top: 0.25rem;
  }

  .contact-card {
    padding: 2.25rem 1.5rem;
  }
}
