/* =========================================================
   KerzenundMehr – Stylesheet
   ========================================================= */

/* ---------- Lokale Fonts (DSGVO-konform, kein Google-Request) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Farben – Kundenbranding */
  --green-dark:  #074838;
  --green:       #074838;
  --green-light: #f2eb73;
  --gray-light:  #F4F6F5;
  --gray:        #757575;
  --dark:        #212121;
  --white:       #ffffff;

  /* Fonts: Überschriften Manrope, Fließtext Inter */
  --font-head: "Manrope", "Poppins", system-ui, sans-serif;
  --font-body: "Inter", "Open Sans", system-ui, sans-serif;

  --maxw: 1200px;
  --radius: 6px;
}

/* ---------- Reset / Basics ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  overflow-wrap: break-word;
  hyphens: auto;
}

p { margin: 0 0 1em; }

a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--green-light); text-underline-offset: 3px; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Anker-Ziele nicht unter den Sticky-Header rutschen lassen */
section[id] { scroll-margin-top: 80px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: #053028; color: var(--green-light); text-decoration: none; }

.btn--light {
  background: var(--green-light);
  color: var(--green-dark);
}
.btn--light:hover { background: #053028; color: var(--green-light); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  border-bottom: 1px solid #eee;
  padding:10px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { width: 240px; max-width: 55vw; height: auto; display: block; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-light);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--green-light); border-bottom-color: var(--green-light); text-decoration: none; }
.main-nav a.is-active {
  color: var(--green-light);
  border-bottom-color: var(--green-light);
}

/* Burger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--green-light);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.35)),
              url("images/hero.jpg") center/cover no-repeat,
              var(--gray-light);
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero__inner { max-width: 740px; padding-block: 64px; }
.hero h1 {
  font-size: clamp(1.75rem, 6vw, 3rem);
  color: var(--dark);
}
.hero p {
  font-size: 1.05rem;
  color: var(--dark);
  max-width: 460px;
}

.hero__years {
  display: inline-flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 20px;
  font-family: var(--font-head);
}
.hero__years-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 4px 16px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.hero__years-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: .95rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
}

.hero__delivery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero__badge {
  display: inline-block;
  background: rgba(7, 72, 56, .12);
  border: 1px solid rgba(7, 72, 56, .28);
  color: var(--green-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  padding: 8px 15px;
  border-radius: 999px;
}

/* ---------- Section-Grundlayout ---------- */
.section { padding-block: 72px; }
.section--gray { background: var(--gray-light); }

.section__head {
  text-align: center;
  margin-bottom: 48px;
}
.section__head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--dark);
  display: inline-block;
}
.section__head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--green-light);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}
.service {
  text-align: center;
}
.service__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--green);
}
.service__icon svg { width: 100%; height: 100%; fill: var(--green-light); }
.service h3 {
  font-size: 1.05rem;
  color: var(--dark);
}
.service p {
  font-size: .9rem;
  color: var(--gray);
  margin: 0;
}

/* ---------- Über uns ---------- */
.about {
  background: var(--green-dark);
  color: var(--white);
}
.about .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.about__text { max-width: 560px; }
.about__text h2 { color: var(--white); }
.about__text p { color: rgba(255,255,255,.9); }
.about__icon {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  color: var(--green-light);
}
.about__icon svg { width: 100%; height: 100%; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--green);
}
.contact-item__icon svg { width: 100%; height: 100%; fill: var(--green-light); }
.contact-item div { font-size: .95rem; }
.contact-item strong { display: block; }

/* ---------- Impressum-Seite ---------- */
.page-banner {
  background: var(--green-dark);
  color: var(--white);
  padding-block: 48px;
}
.page-banner h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0;
}

.legal { padding-block: 64px; }
.legal h2 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 24px;
}
.legal h3 {
  font-size: 1rem;
  color: var(--green);
  margin-top: 24px;
}
.legal p { color: var(--gray); font-size: .95rem; }
.legal__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.legal__divider {
  border: 0;
  border-top: 1px solid #e2e5e3;
  margin: 48px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.85);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 28px;
}
.site-footer .logo {
  background: var(--green-dark);
  padding: 6px 10px;
  border-radius: 8px;
}
.site-footer .logo img { width:15%; }
.site-footer a { color: var(--green-light); }
.site-footer a:hover { color: #fff; }
.footer__copy { font-size: .9rem;color: var(--green-light); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet: Leistungen umbrechen */
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .legal__cols { grid-template-columns: 1fr; gap: 0; }
}

/* Mobile: Burger + Stapeln */
@media (max-width: 768px) {
  
  .nav-toggle { display: block; }
  .site-footer .logo img {
  width: 15%;
}

.site-footer .logo img {
  width: 15%;
}

  .logo img {
  width: 50%;
}

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .main-nav li { border-bottom: 0;height:30px; }
  .main-nav a, .main-nav a:hover, .main-nav a.is-active {
     color: var(--green-dark);
     border-bottom: 0;

  }

  /* Burger -> X wenn offen */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .services { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }

  .about .container { flex-direction: column-reverse; text-align: center; }
  .about__text { max-width: none; }

  .section { padding-block: 56px; }
  .hero__inner { padding-block: 48px; }
}

/* Reduced motion respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Sichtbarer Tastatur-Fokus */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}