:root {
  --bg: #f4ede3;
  --wood-1: #5a3b22;
  --wood-2: #8b5e34;
  --wood-3: #d7b894;
  --accent: #e6d3b2;
  --text: #2a1c12;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* NAV */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, var(--wood-2), var(--wood-1));
  color: white;
}
.brand {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 1.25rem;
}

/* Hero mit Holz-Optik (subtil) */
.hero {
  padding: 1rem 0;
  background: var(--bg);
  background-blend-mode: multiply;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1rem;
  border-radius: 12px;
}
.hero h1 {
  font-family: "Libre Baskerville", serif;
  font-size: 2.5rem;
  margin: 0.2rem 0;
}
.hero p {
  font-size: 1.05rem;
  margin: 0.6rem 0 1.4rem;
  color: var(--wood-1);
}
.hero-logo {
  max-width: 250px; /* passt auf Desktop */
  width: 80%; /* passt auch auf mobile */
  height: auto;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: var(--wood-1);
  color: white;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:hover {
  opacity: 0.95;
}

.section {
  padding: 3rem 0;
}
.lead {
  color: #4a3426;
}

/* Services Gallery */
.category {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.category h3 {
  margin-bottom: 1rem;
  color: var(--wood-1);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.85)
  );
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(43, 31, 22, 0.08);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
.card h3 {
  margin: 0.6rem 0 0.3rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 1rem;
  align-items: center;
}
.about-grid img {
  width: 60%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

/* Contact */
form {
  display: grid;
  gap: 0.8rem;
  max-width: 600px;
}
input,
textarea {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #d1b89f;
  font-family: inherit;
}
.note {
  font-size: 0.9rem;
  color: #57514b;
}

/* Footer */
.site-footer {
  background: #f5efe9;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.site-footer a {
  color: var(--wood-2);
  text-decoration: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
}
.lightbox.hidden {
  display: none;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* responsive */
@media (max-width: 880px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* Popup-Hintergrund */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Inhalt */
.popup-content {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  background: var(--bg);
  background-size: cover;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(0, 0, 0, 0.3);
}

/* Animation */
.popup-content {
  animation: popupFade 0.25s ease-out;
}

@keyframes popupFade {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hidden {
  display: none;
}
