/* ============ Base ============ */
:root{
  --bg: #f6f2ec;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6b6b72;

  --brand: #d36a00;       /* orange */
  --brand2: #b85d00;

  --radius: 12px;
  --shadow: 0 10px 26px rgba(0,0,0,.08);
  --border: 1px solid rgba(0,0,0,.08);

  --container: 1160px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body.main{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ============ Header / Nav ============ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;

  background: #fff;          /* statt rgba(...) */
  backdrop-filter: none;     /* Blur aus */
  border-bottom: var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  gap: 18px;
  padding: 8px 0;            /* war 14px -> kleiner */
  min-height: 72px;          /* sorgt für klare Headerhöhe */
}

.brand{
  display:flex;
  align-items:center;
  flex: 0 0 auto;
}

.brand img{
  height: 96px !important;   /* kleiner + gewinnt gegen Fremd-CSS */
  width: auto !important;
  max-width: 260px;          /* optional: verhindert „breit ziehen“ */
  object-fit: contain;
}

.nav{
  margin-left: auto;
  display:flex;
  gap: 18px;
  align-items:center;
}

.nav-link{
  font-size: 14px;
  color: rgba(0,0,0,.72);
  padding: 8px 6px;
  border-radius: 10px;
}

.nav-link:hover{ background: rgba(0,0,0,.04); }
.nav-link.is-active{ color: var(--text); }

.header-cta{ margin-left: 10px; }

/* Mobile Menu */
.nav-toggle{
  margin-left: auto;
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: var(--border);
  background: #fff;
}
.nav-toggle span{
  display:block;
  height:2px;
  width:18px;
  margin: 5px auto;
  background: rgba(0,0,0,.75);
}

/* ============ Buttons ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: var(--border);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

.btn-primary{
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  color: #fff;
  border: 0;
}

.btn-ghost{
  background: rgba(255,255,255,.75);
}

.btn-light{
  background: #fff;
}

/* ============ Buttons: Hover/Active/Focus ============ */
.btn{
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, background-color .12s ease;
  cursor: pointer;
}

/* Hover nur auf Geräten mit Maus */
@media (hover:hover){
  .btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,.10);
  }

  .btn-primary:hover{
    filter: brightness(1.05);
  }

  .btn-ghost:hover{
    background: rgba(255,255,255,.92);
  }

  .btn-light:hover{
    background: rgba(255,255,255,.92);
  }
}

.btn:active{
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  filter: brightness(.98);
}

/* Tastatur-Fokus (wichtig für UX) */
.btn:focus-visible{
  outline: 3px solid rgba(211,106,0,.35);
  outline-offset: 2px;
}

/* ============ Hero ============ */
.hero{
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: var(--border);
}

.hero-media{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.72) 38%, rgba(255,255,255,.0) 62%),
    url("/assets/img/hero/hero1.png") center / cover no-repeat;
}

.hero-inner{
  position: relative;
  z-index: 1;
  padding: 78px 0 62px;
}

.hero-copy{
  max-width: 560px;
}

.hero-title{
  margin:0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
}

.hero-title-a{ display:block; font-weight: 800; }
.hero-title-b{ display:inline-block; font-weight: 500; margin-right: 10px; }
.hero-title-h{ display:inline-block; font-weight: 900; color: var(--brand); }

.hero-sub{
  margin: 0 0 22px;
  color: rgba(0,0,0,.62);
  font-size: 16px;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ Sections ============ */
.section{
  padding: 54px 0;
}

.section-alt{
  background: rgba(255,255,255,.55);
  border-top: var(--border);
  border-bottom: var(--border);
}

.section-title{
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.section-actions{
  margin-top: 18px;
  display:flex;
  justify-content:center;
}

.section-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.section-link{
  color: rgba(0,0,0,.65);
  font-weight: 600;
}

/* ============ Cards (Holzbackground wie Mockup) ============ */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.82)),
    url("/assets/img/bg/wood-card.png") center / cover no-repeat;
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
  min-height: 170px;
}

.card-icon{
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  border: var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 6px auto 14px; 
}
.card-icon img{ width: 80px; height: 80px; }

.card-title{ margin: 0 0 6px; font-size: 18px; }
.card-text{ margin: 0; color: var(--muted); font-size: 14px; }

/* Text in Cards mittig wie Mockup */
.card-title,
.card-text{
  text-align: center;
}

/* ============ Projects ============ */
.projects{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project{
  border-radius: var(--radius);
  overflow:hidden;
  border: var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}

.project-img{
  height: 220px;
  background: #eee center / cover no-repeat;
}

.project-title{
  padding: 14px 14px 16px;
  font-weight: 800;
}

/* ============ Footer ============ */
.site-footer{
  position: relative;
  padding: 0;
  color: rgba(255,255,255,.92);
  border-top: 1px solid rgba(255,255,255,.08);

  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.20)),
    url("/assets/img/bg/footer_bg.png") center / cover no-repeat;
}

/* 3 Spalten: Firma | Links (2 Spalten innen) | Holz-CTA */
.footer-inner{
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 28px;
  align-items: start;
}

/* optional: „Box“-Look wie im Screenshot */
@media (min-width: 981px){
  .footer-inner{
    background: rgba(0,0,0,.20);
    border-radius: var(--radius);
    padding: 28px;
    margin: 18px auto;
  }
}

/* Typography */
.footer-title{
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-title-sm{
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 10px;
}

.footer-muted{
  color: rgba(255,255,255,.70);
  margin-bottom: 14px;
}

.footer-contact{
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.6;
}

.footer-spacer{ height: 10px; }

/* ============ Footer Links (2 Spalten) ============ */
.footer-links-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.footer-links-col a{
  display: block;
  color: rgba(255,255,255,.82);
  margin-bottom: 10px;
}
.footer-links-col a:hover{ color: #fff; }

/* Legal Links unter den 2 Spalten */
.footer-legal{
  margin-top: 14px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}
.footer-legal a{
  color: rgba(255,255,255,.78);
}
.footer-legal a:hover{ color: #fff; }
.footer-legal-sep{
  margin: 0 8px;
  color: rgba(255,255,255,.35);
}

/* ============ Rechte Holz-Kachel (CTA) ============ */
.footer-cta-box{
  border-radius: var(--radius);
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.55)),
    url("/assets/img/bg/wood-card.png") center / cover no-repeat;

  color: var(--text);
  padding: 18px;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.footer-cta-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.footer-cta-text{
  color: rgba(0,0,0,.60);
  margin-bottom: 14px;
  font-size: 14px;
}

/* ============ Responsive ============ */
@media (max-width: 980px){
  .footer-inner{
    grid-template-columns: 1fr;
    padding: 22px 0;
  }

  .footer-links-grid{
    grid-template-columns: 1fr; /* 2 Spalten werden untereinander */
  }

  .footer-cta-box{
    max-width: 520px;
  }
}

/* ============ Responsive ============ */
@media (max-width: 980px){
  .cards, .projects{ grid-template-columns: 1fr; }
  .section-head{ align-items: flex-start; flex-direction: column; }
  .hero-inner{ padding: 56px 0 44px; }
}

@media (max-width: 900px){
  .nav{ display:none; }
  .nav-toggle{ display:block; }
  .header-cta{ display:none; }

  body.nav-open .nav{
    position:absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display:flex;
    flex-direction: column;
    background: rgba(255,255,255,.96);
    border: var(--border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  body.nav-open .header-cta{
    display:inline-flex;
    position:absolute;
    right: 20px;
    top: 74px;
    margin: 0;
  }
}

