/* ==========================================================================
   Zirbenholz-Shop – Haupt-CSS
   Extrahiert aus den statischen HTML-Dateien + Header/Footer/Homepage
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --zb-beige:       #F6F1E3;
  --zb-beige-dark:  #EDE5CF;
  --zb-anthrazit:   #2B2B2B;
  --zb-gruen:       #2F4F3A;
  --zb-gruen-hell:  #3D6650;
  --zb-text:        #3A3530;
  --zb-text-light:  #6B6259;
  --zb-border:      #D9D0BC;
  --zb-font-head:   'Georgia', 'Times New Roman', serif;
  --zb-font-body:   'Helvetica Neue', Arial, sans-serif;
  --zb-max-width:   1100px;
  --zb-radius:      4px;
  --zb-space-s:     1rem;
  --zb-space-m:     2rem;
  --zb-space-l:     3.5rem;
  --zb-space-xl:    5.5rem;
}

html {
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   2. Base / Reset (scoped to .zb-page)
   -------------------------------------------------------------------------- */
.zb-page *,
.zb-page *::before,
.zb-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.zb-page {
  font-family: var(--zb-font-body);
  color: var(--zb-text);
  background: var(--zb-beige);
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.zb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--zb-border);
}

.zb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--zb-max-width);
  margin: 0 auto;
  padding: 0.85rem var(--zb-space-m);
}

.zb-header__logo {
  font-family: var(--zb-font-head);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 400;
  color: var(--zb-anthrazit);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.zb-header__logo:hover {
  color: var(--zb-gruen);
}

/* Navigation */
.zb-nav__list {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
}

.zb-nav__link {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--zb-text-light);
  text-decoration: none;
  padding: 0.4em 0.75em;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.zb-nav__link:hover,
.zb-nav__link--active {
  color: var(--zb-gruen);
  background: rgba(47, 79, 58, 0.06);
}

/* Hamburger (mobile) */
.zb-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.zb-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--zb-anthrazit);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav open state */
.zb-header--open .zb-header__toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.zb-header--open .zb-header__toggle span:nth-child(2) {
  opacity: 0;
}
.zb-header--open .zb-header__toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 780px) {
  .zb-header__toggle {
    display: flex;
  }

  .zb-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--zb-border);
    padding: var(--zb-space-s) var(--zb-space-m);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .zb-header--open .zb-nav {
    display: block;
  }

  .zb-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .zb-nav__link {
    padding: 0.7em 0;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
}

/* --------------------------------------------------------------------------
   4. Sections (global)
   -------------------------------------------------------------------------- */
.zb-section {
  padding: var(--zb-space-xl) var(--zb-space-m);
}

.zb-section--alt {
  background: var(--zb-beige-dark);
}

.zb-section--dark {
  background: var(--zb-anthrazit);
  color: #E8E0CC;
}

.zb-inner {
  max-width: var(--zb-max-width);
  margin: 0 auto;
}

.zb-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zb-gruen);
  margin-bottom: var(--zb-space-s);
}

.zb-section--dark .zb-label {
  color: #8BAF96;
}

.zb-h2 {
  font-family: var(--zb-font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--zb-anthrazit);
  margin-bottom: var(--zb-space-s);
  line-height: 1.3;
}

.zb-section--dark .zb-h2 {
  color: #F0E8D0;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.zb-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--zb-anthrazit);
}

.zb-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.55) saturate(0.85);
  transform: scale(1.04);
  transition: transform 12s ease-out;
}

.zb-hero:hover .zb-hero__bg {
  transform: scale(1.0);
}

.zb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(27, 22, 16, 0.7) 100%);
}

.zb-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--zb-max-width);
  margin: 0 auto;
  width: 100%;
  padding: var(--zb-space-xl) var(--zb-space-m) var(--zb-space-l);
}

.zb-hero__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8D8C0;
  background: rgba(47, 79, 58, 0.45);
  border: 1px solid rgba(140, 180, 150, 0.35);
  padding: 0.3em 0.9em;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.zb-hero__h1 {
  font-family: var(--zb-font-head);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 400;
  color: #F5EDD8;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--zb-space-s);
  max-width: 680px;
}

.zb-hero__lead {
  font-size: 1.05rem;
  color: #D8CDB8;
  max-width: 560px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   6. Orientierung (2-Spalten)
   -------------------------------------------------------------------------- */
.zb-orient {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--zb-space-l);
  align-items: start;
}

@media (max-width: 680px) {
  .zb-orient {
    grid-template-columns: 1fr;
    gap: var(--zb-space-m);
  }
}

.zb-checklist {
  list-style: none;
  padding: 0;
}

.zb-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--zb-border);
  font-size: 0.95rem;
  line-height: 1.5;
}

.zb-checklist li:last-child {
  border-bottom: none;
}

.zb-checklist li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zb-gruen);
  flex-shrink: 0;
  margin-top: 0.45em;
}

/* --------------------------------------------------------------------------
   7. SEO-Text (2x2 Grid)
   -------------------------------------------------------------------------- */
.zb-seo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--zb-space-l) var(--zb-space-xl);
  align-items: start;
}

@media (max-width: 780px) {
  .zb-seo {
    grid-template-columns: 1fr;
    gap: var(--zb-space-m);
  }
}

.zb-seo__block {
  border-left: 2px solid var(--zb-border);
  padding-left: var(--zb-space-m);
}

.zb-seo__block .zb-h2 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.zb-seo__block p {
  font-size: 0.95rem;
  color: var(--zb-text-light);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.zb-seo__block p:last-child {
  margin-bottom: 0;
}

.zb-seo__block ul {
  list-style: none;
  padding: 0;
  margin-top: 0.6rem;
}

.zb-seo__block ul li {
  padding: 0.35rem 0;
  font-size: 0.93rem;
  color: var(--zb-text-light);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.zb-seo__block ul li::before {
  content: '\2013';
  color: var(--zb-gruen);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. Kundlieblinge (Produktkarten)
   -------------------------------------------------------------------------- */
.zb-kl-intro {
  max-width: 580px;
  margin-bottom: var(--zb-space-l);
}

.zb-kl-intro p {
  color: var(--zb-text-light);
  font-size: 0.97rem;
  line-height: 1.7;
}

.zb-kl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--zb-space-m);
}

@media (max-width: 900px) {
  .zb-kl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .zb-kl-grid {
    grid-template-columns: 1fr;
  }
}

.zb-kl-card {
  background: #fff;
  border: 1px solid var(--zb-border);
  border-radius: var(--zb-radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.zb-kl-card:hover {
  box-shadow: 0 8px 28px rgba(47, 79, 58, 0.1);
  transform: translateY(-3px);
}

.zb-kl-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.zb-kl-card__img-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--zb-beige-dark) 0%, #D5C9A8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zb-kl-card__body {
  padding: 1.1rem 1.2rem 1.4rem;
}

.zb-kl-card__name {
  font-family: var(--zb-font-head);
  font-size: 1rem;
  font-weight: 400;
  color: var(--zb-anthrazit);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.zb-kl-card__desc {
  font-size: 0.85rem;
  color: var(--zb-text-light);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.zb-kl-card__btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zb-gruen);
  text-decoration: none;
  border-bottom: 1.5px solid var(--zb-gruen);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.zb-kl-card__btn:hover {
  color: var(--zb-gruen-hell);
  border-color: var(--zb-gruen-hell);
}

/* --------------------------------------------------------------------------
   9. Mood-Galerie
   -------------------------------------------------------------------------- */
.zb-mood-intro {
  max-width: 540px;
  margin-bottom: var(--zb-space-l);
}

.zb-mood-intro p {
  font-size: 0.97rem;
  color: #D0C8B0;
  line-height: 1.7;
}

.zb-mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}

.zb-mood-grid__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 700px) {
  .zb-mood-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .zb-mood-grid__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 440px) {
  .zb-mood-grid {
    grid-template-columns: 1fr;
  }
  .zb-mood-grid__item:first-child {
    grid-column: span 1;
  }
}

.zb-mood-grid__item {
  overflow: hidden;
  border-radius: var(--zb-radius);
  background: #3A3228;
  position: relative;
}

.zb-mood-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) brightness(0.92);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.zb-mood-grid__item:hover img {
  transform: scale(1.04);
  filter: saturate(1) brightness(0.98);
}

.zb-mood-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(27, 22, 16, 0.7));
  padding: 1.5rem 0.9rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(240, 232, 210, 0.75);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zb-mood-grid__item:hover .zb-mood-grid__caption {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   10. FAQ Accordion
   -------------------------------------------------------------------------- */
.zb-faq {
  max-width: 740px;
}

.zb-faq__item {
  border-bottom: 1px solid var(--zb-border);
}

.zb-faq__question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.2rem 0;
  font-family: var(--zb-font-head);
  font-size: 1rem;
  color: var(--zb-anthrazit);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.zb-faq__question:hover {
  color: var(--zb-gruen);
}

.zb-faq__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--zb-border);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.2s, transform 0.3s;
}

.zb-faq__icon::before,
.zb-faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--zb-text-light);
  transition: background 0.3s;
}

.zb-faq__icon::before {
  width: 8px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.zb-faq__icon::after {
  width: 1.5px;
  height: 8px;
  transform: translate(-50%, -50%);
}

.zb-faq__answer {
  display: none;
  padding: 0 0 1.2rem;
  font-size: 0.93rem;
  color: var(--zb-text-light);
  line-height: 1.75;
  max-width: 640px;
}

.zb-faq__item.is-open .zb-faq__answer {
  display: block;
}

.zb-faq__item.is-open .zb-faq__icon {
  border-color: var(--zb-gruen);
  transform: rotate(45deg);
}

.zb-faq__item.is-open .zb-faq__icon::before,
.zb-faq__item.is-open .zb-faq__icon::after {
  background: var(--zb-gruen);
}

/* --------------------------------------------------------------------------
   11. Interne Links
   -------------------------------------------------------------------------- */
.zb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.zb-links__item {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--zb-gruen);
  text-decoration: none;
  border: 1px solid rgba(47, 79, 58, 0.35);
  padding: 0.45em 1em;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.zb-links__item:hover {
  background: var(--zb-gruen);
  color: #fff;
  border-color: var(--zb-gruen);
}

/* --------------------------------------------------------------------------
   12. CTA
   -------------------------------------------------------------------------- */
.zb-cta {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.zb-cta__text {
  font-family: var(--zb-font-head);
  font-size: 1.4rem;
  color: #F0E8D0;
  line-height: 1.4;
  margin-bottom: var(--zb-space-m);
}

.zb-cta__sub {
  font-size: 0.9rem;
  color: #A09080;
  margin-bottom: var(--zb-space-m);
  line-height: 1.6;
}

.zb-btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--zb-gruen);
  padding: 0.85em 2em;
  border-radius: var(--zb-radius);
  text-decoration: none;
  transition: background 0.2s;
}

.zb-btn:hover {
  background: var(--zb-gruen-hell);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.zb-footer {
  background: var(--zb-anthrazit);
  color: #A09080;
  font-size: 0.85rem;
  padding: var(--zb-space-l) var(--zb-space-m);
}

.zb-footer__inner {
  max-width: var(--zb-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--zb-space-s);
}

.zb-footer__nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.zb-footer__nav a {
  color: #A09080;
  text-decoration: none;
  transition: color 0.2s;
}

.zb-footer__nav a:hover {
  color: #D8CDB8;
}

.zb-footer__copy {
  color: #706050;
  font-size: 0.78rem;
}

.zb-footer__text {
  color: #807060;
  font-size: 0.82rem;
}

@media (max-width: 600px) {
  .zb-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   14. Homepage – Kategorie-Grid
   -------------------------------------------------------------------------- */
.zb-home-intro {
  max-width: 640px;
  margin-bottom: var(--zb-space-l);
}

.zb-home-intro p {
  font-size: 0.97rem;
  color: var(--zb-text-light);
  line-height: 1.75;
}

.zb-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--zb-space-m);
}

@media (max-width: 780px) {
  .zb-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .zb-cat-grid {
    grid-template-columns: 1fr;
  }
}

.zb-cat-card {
  background: #fff;
  border: 1px solid var(--zb-border);
  border-radius: var(--zb-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.zb-cat-card:hover {
  box-shadow: 0 8px 28px rgba(47, 79, 58, 0.1);
  transform: translateY(-3px);
}

.zb-cat-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.zb-cat-card__img-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--zb-beige-dark) 0%, #D5C9A8 100%);
}

.zb-cat-card__body {
  padding: 1.2rem 1.3rem 1.5rem;
}

.zb-cat-card__name {
  font-family: var(--zb-font-head);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--zb-anthrazit);
  margin-bottom: 0.35rem;
}

.zb-cat-card__desc {
  font-size: 0.85rem;
  color: var(--zb-text-light);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   15. Mobile override
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .zb-section {
    padding: 3rem 1.2rem;
  }
}
