/* =============================================
   Claudia Punz – Naturzaunbau
   Design: Holz & Natur Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --col-birke:    #F2E8D9;   /* helles Birkenholz – Hintergrund */
  --col-fichte:   #8B5E3C;   /* Fichtenholz – Akzent */
  --col-wald:     #2C4A2E;   /* Waldgrün – Sekundärakzent */
  --col-sand:     #D4B896;   /* Sandbeige – Trennlinie, Flächen */
  --col-dunkel:   #3D1F0A;   /* Tiefbraun – Text */
  --col-hell:     #FAF6F0;   /* Cremeweiß – Kartenhintergrund */

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Lato', system-ui, sans-serif;

  --radius: 4px;
  --shadow: 0 4px 18px rgba(61,31,10,.12);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--col-birke);
  /* zarte Maserung im Seiteninhalt – kaum sichtbar, aber spürbar */
  background-image: repeating-linear-gradient(
    179deg,
    transparent 0px,
    transparent 8px,
    rgba(139,94,60,.035) 8px,
    rgba(139,94,60,.035) 9px
  );
  color: var(--col-dunkel);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
}

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

a { color: var(--col-fichte); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Holzmaserung-Divider (Signature Element) ---------- */
.holz-divider {
  width: 100%;
  height: 24px;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px, transparent 3px,
      rgba(139,94,60,.08) 3px, rgba(139,94,60,.08) 4px
    ),
    repeating-linear-gradient(
      175deg,
      transparent 0px, transparent 40px,
      rgba(139,94,60,.05) 40px, rgba(139,94,60,.05) 41px
    ),
    linear-gradient(180deg, var(--col-sand) 0%, var(--col-birke) 100%);
  margin: 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242,232,217,.95);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--col-sand);
  padding: .75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--col-dunkel);
  letter-spacing: .03em;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--col-dunkel);
  transition: color .2s;
}

.nav__links a:hover { color: var(--col-fichte); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;

  /* CSS Holzmaserung – mehrschichtige Gradientenkombination */
  background-color: #5C3A1E;
  background-image:
    /* Feine Jahresringe – horizontale Linien mit leichter Krümmung-Illusion */
    repeating-linear-gradient(
      178deg,
      transparent 0px,
      transparent 6px,
      rgba(92,58,30,.18) 6px,
      rgba(92,58,30,.18) 7px,
      transparent 7px,
      transparent 14px,
      rgba(61,31,10,.12) 14px,
      rgba(61,31,10,.12) 15px
    ),
    /* Breitere Holzstreifen – Kernholz-Splintholz-Wechsel */
    repeating-linear-gradient(
      176deg,
      rgba(80,45,15,.0)  0px,
      rgba(80,45,15,.25) 18px,
      rgba(110,70,30,.35) 36px,
      rgba(70,38,12,.2)  54px,
      rgba(95,58,22,.3)  72px,
      rgba(80,45,15,.0)  90px
    ),
    /* Ast-Knoten Andeutung – radiale Flecken */
    radial-gradient(ellipse 60px 40px at 25% 35%, rgba(40,18,5,.45) 0%, transparent 70%),
    radial-gradient(ellipse 80px 55px at 75% 65%, rgba(35,15,4,.35) 0%, transparent 65%),
    radial-gradient(ellipse 50px 35px at 55% 20%, rgba(45,20,6,.3)  0%, transparent 60%),
    /* Grundton: warmes Dunkelbraun mit leichtem Rötlichstich */
    linear-gradient(
      168deg,
      #4A2810 0%,
      #6B3D1A 25%,
      #7A4820 50%,
      #5C3218 75%,
      #3D1F0A 100%
    );
}

/* Glanz-Overlay: simuliert poliertes Holz mit Tiefe */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Subtiler Lichtreflex von oben-links */
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(255,220,160,.08) 0%, transparent 60%),
    /* Abdunkelung nach unten für Text-Lesbarkeit */
    linear-gradient(
      to bottom,
      rgba(61,31,10,.1) 0%,
      rgba(61,31,10,.0) 40%,
      rgba(61,31,10,.75) 100%
    );
}

.hero__overlay {
  /* nicht mehr benötigt, aber erhalten für eventuelle Anpassung */
  display: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  /* sits above the ::before gloss overlay (z-index: 1) */
  padding: 4rem 2rem 5rem;
  max-width: 820px;
}

.hero__eyebrow {
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--col-sand);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--col-birke);
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--col-sand);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--col-birke);
  opacity: .85;
  max-width: 540px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: .85rem 2.2rem;
  background: var(--col-fichte);
  color: var(--col-birke);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: var(--radius);
  transition: background .2s, transform .15s;
}

.btn:hover {
  background: var(--col-wald);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ---------- Section Defaults ---------- */
section { padding: 5rem 2rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--col-fichte);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--col-dunkel);
  margin-bottom: 1.5rem;
}

/* ---------- Über mich ---------- */
.ueber {
  background: var(--col-hell);
}

.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ueber-text p {
  margin-bottom: 1.1rem;
  color: var(--col-dunkel);
  opacity: .9;
}

.ueber-text p:last-child { margin-bottom: 0; }

.ueber-vorteile {
  background: var(--col-birke);
  border-left: 4px solid var(--col-fichte);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.ueber-vorteile h3 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  color: var(--col-dunkel);
}

.ueber-vorteile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.ueber-vorteile li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
}

.ueber-vorteile li::before {
  content: '▸';
  color: var(--col-fichte);
  flex-shrink: 0;
  margin-top: .1em;
}

/* ---------- Leistungen ---------- */
.leistungen {
  background: var(--col-birke);
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.leistung-card {
  background: var(--col-hell);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--col-fichte);
  transition: transform .2s;
}

.leistung-card:hover { transform: translateY(-4px); }

.leistung-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.leistung-card h3 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  margin-bottom: .6rem;
  color: var(--col-dunkel);
}

.leistung-card p {
  font-size: .9rem;
  opacity: .85;
}

/* ---------- Galerie / Karussell ---------- */
.galerie {
  background: var(--col-dunkel);
  padding: 5rem 2rem;
}

.galerie .section-label { color: var(--col-sand); }
.galerie .section-title { color: var(--col-birke); margin-bottom: 2.5rem; }

/* Wrapper: Pfeile + Fenster nebeneinander */
.karussell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  user-select: none;
}

/* Das sichtbare Fenster – overflow hidden clippt den Track */
.karussell__fenster {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

/* Track: alle Slides nebeneinander */
.karussell__track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Einzelner Slide */
.karussell__slide {
  flex: 0 0 100%;          /* immer 1 Bild sichtbar */
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: var(--col-fichte);
  border-radius: var(--radius);
}

.karussell__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .88;
  transition: opacity .3s, transform .4s;
  pointer-events: none;   /* Klick landet auf dem Slide, nicht dem Bild */
}

.karussell__slide:hover img {
  opacity: 1;
  transform: scale(1.025);
}

/* Pfeil-Buttons */
.karussell__pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(61,31,10,.65);
  color: var(--col-birke);
  border: 2px solid rgba(242,232,217,.25);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .15s;
  /* verschieb nach oben wegen Punkt-Nav darunter */
  margin-top: -1.5rem;
}

.karussell__pfeil:hover {
  background: var(--col-fichte);
  border-color: var(--col-sand);
  transform: translateY(-50%) scale(1.08);
}

.karussell__pfeil--links  { left:  .6rem; }
.karussell__pfeil--rechts { right: .6rem; }

/* Punkt-Navigation */
.karussell__punkte {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin-top: .25rem;
}

.karussell__punkt {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: rgba(242,232,217,.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.karussell__punkt.aktiv,
.karussell__punkt:hover {
  background: var(--col-sand);
  transform: scale(1.3);
}

/* Lightbox mit Pfeilen */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.lightbox.aktiv { display: flex; }

.lightbox img {
  max-width: 88vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,.8);
  display: block;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--col-birke);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
  z-index: 2;
}
.lightbox__close:hover { opacity: 1; }

.lightbox__pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(61,31,10,.5);
  color: var(--col-birke);
  border: 2px solid rgba(242,232,217,.2);
  border-radius: 50%;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
}
.lightbox__pfeil:hover { background: var(--col-fichte); }
.lightbox__pfeil--links  { left:  1rem; }
.lightbox__pfeil--rechts { right: 1rem; }

@media (max-width: 640px) {
  .karussell__pfeil { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
  .lightbox__pfeil  { width: 2.5rem;  height: 2.5rem;  font-size: 1.1rem; }
  .lightbox__pfeil--links  { left:  .25rem; }
  .lightbox__pfeil--rechts { right: .25rem; }
}

/* ---------- Kontakt ---------- */
.kontakt {
  background: var(--col-wald);
  text-align: center;
}

.kontakt .section-label { color: var(--col-sand); }

.kontakt .section-title {
  color: var(--col-birke);
  margin-bottom: .5rem;
}

.kontakt__sub {
  color: var(--col-birke);
  opacity: .8;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.kontakt__tel {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--col-birke);
  letter-spacing: .04em;
  padding: 1rem 2.5rem;
  border: 2px solid rgba(242,232,217,.3);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s;
}

.kontakt__tel:hover {
  background: rgba(242,232,217,.1);
  border-color: var(--col-sand);
  text-decoration: none;
}

.kontakt__hinweis {
  margin-top: 1.5rem;
  font-size: .85rem;
  color: var(--col-birke);
  opacity: .6;
}

/* ---------- Impressum ---------- */
.impressum {
  background: var(--col-dunkel);
  padding: 3rem 2rem;
}

.impressum .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.impressum h2 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--col-sand);
  margin-bottom: 1rem;
}

.impressum p, .impressum address {
  font-size: .875rem;
  color: var(--col-birke);
  opacity: .7;
  font-style: normal;
  line-height: 1.8;
}

/* ---------- Footer ---------- */
footer {
  background: var(--col-dunkel);
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
  padding: 1.5rem;
}

footer p {
  font-size: .8rem;
  color: var(--col-birke);
  opacity: .4;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ueber-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .leistungen-grid { grid-template-columns: 1fr 1fr; }
  .impressum .section-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 3.5rem 1.25rem; }
  .hero__content { padding: 3rem 1.25rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
