/* ==========================================================================
   Zaunwerk Schmeidl – Stylesheet
   Farben/Schriften nachgebaut von der bisherigen Sellwerk-Seite:
   Akzent Grün #76AA71, Text-auf-Grün #463939, Hintergrund weiß
   Schriften: "Outfit" (Überschriften/Navigation), "Source Sans Pro" (Fließtext)
   ========================================================================== */

:root {
  --color-green: #80a676;
  --color-green-dark: #6c8f64;
  --color-dark: #2a2a2a;
  --color-brown: #463939;
  --color-text: #2b2b28;
  --color-bg: #ffffff;
  --color-bg-muted: #f4f4f1;
  --color-white: #ffffff;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Source Sans Pro", sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-green-dark); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--color-green-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Header / Navigation */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 32px 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.15) 100%);
  transition: padding 0.2s ease;
}
.site-header.solid {
  position: sticky;
  background: rgba(26,26,26,0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  padding: 12px 0;
}
.site-header.solid .logo img { height: 56px; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { flex: 0 0 auto; margin: 0 40px; }
.logo img { height: 110px; width: auto; transition: height 0.2s ease; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
nav.main-nav a:hover { color: var(--color-green); }
nav.main-nav a.active { color: var(--color-green); }

.main-nav-left, .main-nav-right {
  flex: 1 1 0;
  min-width: 0;
}
.main-nav-left ul { justify-content: flex-end; }
.main-nav-right ul { justify-content: flex-start; }
.main-nav-mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-white);
  cursor: pointer;
}

/* Schwebende Kontakt-Buttons */
.floating-contacts {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
}
.floating-contacts a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}
.floating-contacts a:hover { background: var(--color-green-dark); transform: scale(1.06); }
@media (max-width: 640px) {
  .floating-contacts { right: 12px; gap: 8px; }
  .floating-contacts a { width: 40px; height: 40px; }
}

/* Runde Foto-Navigation (Kategorie-/Unterseiten-Kacheln) */
.circle-nav {
  background: var(--color-dark);
  padding: 64px 0;
}
.circle-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.circle-nav-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.circle-nav-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.circle-nav-item a { display: block; text-align: center; }
.circle-nav-item img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  display: block;
}
.circle-nav-item span {
  display: block;
  margin-top: 20px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
@media (max-width: 640px) {
  .circle-nav-grid,
  .circle-nav-grid.cols-3,
  .circle-nav-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}

/* Dunkler Textabschnitt */
.section.dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.section.dark h2 { color: var(--color-white); }
.section.dark .divider {
  width: 60px;
  height: 3px;
  background: var(--color-green);
  margin: 0 auto 28px;
}

/* Grüner Textabschnitt (alternierende Feature-Zeilen) */
.section.green {
  background: var(--color-green);
  color: var(--color-white);
}
.section.green h2, .section.green h3 { color: var(--color-white); }

/* Zweispaltiger dunkler Textblock ohne Bild */
.text-columns {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 72px 0;
}
.text-columns .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.text-columns .col { position: relative; padding-left: 0; }
.text-columns .col:first-child { border-right: 1px solid rgba(255,255,255,0.15); padding-right: 32px; }
.text-columns .col:last-child { padding-left: 32px; }
.text-columns .divider {
  width: 60px; height: 3px; background: var(--color-green); margin-bottom: 24px;
}
.text-columns h2 { color: var(--color-white); font-size: 1.6rem; }
.text-columns p { color: rgba(255,255,255,0.85); }
@media (max-width: 900px) {
  .text-columns .container { grid-template-columns: 1fr; gap: 40px; }
  .text-columns .col:first-child { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 32px; }
  .text-columns .col:last-child { padding-left: 0; }
}

/* Icon-Feature-Reihe vor Holzfoto */
.icon-features {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 56px 0;
  border-top: 8px solid var(--color-green);
  border-bottom: 8px solid var(--color-green);
}
.icon-features::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,16,10,0.45);
}
.icon-features .container { position: relative; z-index: 1; }
.icon-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.icon-features-grid svg { width: 56px; height: 56px; fill: var(--color-white); margin-bottom: 16px; }
.icon-features-grid span {
  display: block;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
@media (max-width: 640px) {
  .icon-features-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Vollflächiges Foto mit Text-Overlay, grüne Streifen oben/unten */
.photo-text-band {
  background-size: cover;
  background-position: center;
  position: relative;
  border-top: 8px solid var(--color-green);
  border-bottom: 8px solid var(--color-green);
  padding: 72px 0;
}
.photo-text-band::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,20,18,0.5);
}
.photo-text-band .container { position: relative; z-index: 1; max-width: 900px; }
.photo-text-band .divider { width: 60px; height: 3px; background: var(--color-green); margin-bottom: 24px; }
.photo-text-band h2 { color: var(--color-white); }
.photo-text-band p { color: rgba(255,255,255,0.9); margin-bottom: 0; }

/* "Kontaktieren Sie uns!"-CTA mit dunklem Blob über Foto */
.cta-blob {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.cta-blob .container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.cta-blob .blob {
  display: none;
}
.cta-blob .blob-content {
  width: 460px;
  max-width: 85vw;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(20,20,18,0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding: 40px;
  margin: 40px 4%;
}
.cta-blob h2 { color: var(--color-white); margin-bottom: 0.4em; }
.cta-blob p { font-size: 0.95rem; }
@media (max-width: 700px) {
  .cta-blob { min-height: 0; padding: 40px 0; }
  .cta-blob .container { justify-content: center; }
  .cta-blob .blob-content { width: 320px; height: 320px; margin: 0 auto; padding: 24px; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,15,0.35) 0%, rgba(20,20,15,0.55) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--color-white); }
.hero .subtitle { font-size: 1.3rem; margin-bottom: 1.5em; font-family: var(--font-heading); font-weight: 300; }

.page-hero {
  min-height: 500px;
}
.hero .container {
  padding-top: 180px;
}

/* Sections */
.section { padding: 72px 0; }
.section.muted { background: var(--color-bg-muted); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-image { order: 2; }
.feature-row .feature-image img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}
.feature-row .divider {
  width: 60px; height: 3px; background: var(--color-white); margin-bottom: 24px;
}
.section:not(.green):not(.dark) .feature-row .divider { background: var(--color-green); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  background: var(--color-bg-muted);
  padding: 28px 20px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
}

/* Product / Service categories */
.category-block { margin-bottom: 72px; }
.category-block .cat-title { display:block; font-size: 1.8rem; font-family: var(--font-heading); font-weight: 700; margin-bottom: 0.5em; color: var(--color-text); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.gallery { align-items: start; }
.gallery img { border-radius: 50%; aspect-ratio: 1/1; object-fit: cover; width: 100%; }

/* Team */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  margin: 8px 0 64px;
}
.team-grid .team-card { width: 220px; }
.team-card { text-align: center; }
.team-card img { border-radius: 50%; width: 220px; height: 220px; object-fit: cover; margin: 0 auto 16px; }
.team-card h3 { color: inherit; }
.team-card .role { color: var(--color-green); font-family: var(--font-heading); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em; }
.section.dark .team-card .role { color: var(--color-green); }

/* Contact */
.section.contact-section {
  background: var(--color-dark);
  color: var(--color-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-portrait {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  margin-bottom: 24px;
}
.contact-info h2 { color: var(--color-white); }
.contact-info dt { font-family: var(--font-heading); font-weight: 700; margin-top: 20px; }
.contact-info dd { margin: 4px 0 0; color: rgba(255,255,255,0.85); }
.contact-info dd a { color: var(--color-white); }
.contact-info .icon-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; color: rgba(255,255,255,0.9); }
.contact-info .icon-row svg { flex-shrink: 0; margin-top: 3px; }
.contact-card {
  background: var(--color-green);
  color: var(--color-white);
  border-radius: 18px;
  padding: 40px;
}
.contact-card h2 { color: var(--color-white); text-transform: uppercase; }
form.contact-form { display: grid; gap: 16px; }
form.contact-form label { font-family: var(--font-heading); font-size: 0.9rem; display:block; margin-bottom: 4px; }
form.contact-form input, form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form .btn { justify-self: start; background: transparent; border: 1px solid var(--color-white); }
form.contact-form .btn:hover { background: rgba(255,255,255,0.15); }
.form-note { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.opening-hours dt { font-family: var(--font-heading); font-weight: 700; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Footer */
footer.site-footer {
  position: relative;
  color: var(--color-white);
  padding: 64px 0 24px;
  background-color: var(--color-green);
  background-size: cover;
  background-position: center;
}
footer.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(128, 166, 118, 0.88);
}
footer.site-footer .container { position: relative; z-index: 1; }
footer.site-footer a:hover { color: var(--color-dark); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { height: 260px; width: auto; margin: 0 auto; }
.footer-kontaktdaten h4 { color: var(--color-white); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; }
.footer-kontaktdaten p { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; }
.footer-kontaktdaten svg { flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
}
.footer-bottom a { color: rgba(255,255,255,0.9); }
@media (max-width: 640px) {
  .footer-top { flex-direction: column; text-align: center; }
  .footer-logo { height: 180px; }
}

/* Legal pages */
.legal-content h2 { margin-top: 1.6em; }
.legal-content h3 { color: var(--color-text); text-transform: none; letter-spacing: 0; font-size: 1.1rem; margin-top: 1.4em; }
.legal-content { max-width: 860px; }
.legal-content em { color: #a15b2a; }

/* Responsive */
@media (max-width: 900px) {
  .feature-row, .contact-grid { grid-template-columns: 1fr; }
  .feature-row .feature-image { order: -1 !important; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 320px; margin-left:auto; margin-right:auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav-left, .main-nav-right { display: none; }
  .main-nav-mobile { display: block; }
  .logo img { height: 60px; }
  nav.main-nav { position: fixed; inset: 0 0 0 30%; background: var(--color-brown); padding: 100px 24px 24px; transform: translateX(100%); transition: transform 0.25s ease; z-index: 30;}
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav ul { flex-direction: column; gap: 20px; }
  nav.main-nav a { color: var(--color-white) !important; }
  .nav-toggle { display: block; z-index: 40; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
}
