/* ===== CSS Custom Properties ===== */
:root {
  --color-bg: #F5F0E8;
  --color-primary: #8B5E3C;
  --color-accent: #C17F4A;
  --color-text: #2C2418;
  --color-text-light: #6B5744;
  --color-white: #FFFFFF;
  --color-overlay: rgba(44, 36, 24, 0.52);
  --color-card-bg: #EDE8DF;
  --color-border: rgba(139, 94, 60, 0.18);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --nav-height: 70px;
  --section-padding: 90px 0;
  --container-max: 1180px;
  --radius: 4px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
}

/* ===== Container ===== */
.container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ===== Navigation ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.transparent {
  background-color: transparent;
}

.site-nav.solid {
  background-color: var(--color-bg);
  box-shadow: 0 2px 20px rgba(44, 36, 24, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo img {
  height: 44px;
  width: auto;
  transition: opacity var(--transition);
}

.nav-logo .logo-light { display: block; }
.nav-logo .logo-dark  { display: none; }

.site-nav.solid .nav-logo .logo-light { display: none; }
.site-nav.solid .nav-logo .logo-dark  { display: block; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.site-nav.solid .nav-links a {
  color: var(--color-text);
}

.site-nav.solid .nav-links a:hover {
  color: var(--color-accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.site-nav.solid .hamburger span {
  background: var(--color-text);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: 1.5rem 2rem 2rem;
  box-shadow: 0 8px 30px rgba(44, 36, 24, 0.15);
  z-index: 999;
  transform: translateY(-110%);
  transition: transform 0.35s ease;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.05em;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/header_01.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.hero-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
}

.hero-content h1 {
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-outline {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  margin: -6px auto;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Sections General ===== */
section {
  padding: var(--section-padding);
}

.section-header {
  margin-bottom: 3rem;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ===== About / Philosophie Section ===== */
#ueber-mich {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.philosophy-heading {
  margin-bottom: 2rem;
}

.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}

.philosophy-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 94, 60, 0.12);
}

.philosophy-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
}

.philosophy-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.philosophy-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ===== Parallax Separator ===== */
.parallax-separator {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.parallax-separator .parallax-bg {
  position: absolute;
  inset: -60px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-separator .parallax-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-separator .parallax-text {
  text-align: center;
  color: var(--color-white);
  padding: 1rem;
}

.parallax-separator .parallax-text h2 {
  color: var(--color-white);
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}

.parallax-separator .parallax-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
}

/* ===== Produkte Section ===== */
#produkte {
  background: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--color-card-bg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(139, 94, 60, 0.72) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-label {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 15, 10, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}

.lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.8rem;
  letter-spacing: 0.05em;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  color: var(--color-white);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
  z-index: 2010;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--color-white);
  font-size: 1.6rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2010;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

/* ===== Warenverkauf Section ===== */
#warenverkauf {
  background: var(--color-bg);
}

.verkauf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.verkauf-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  border-top: 3px solid var(--color-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.verkauf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(139, 94, 60, 0.1);
}

.verkauf-card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.verkauf-card h3 {
  margin-bottom: 0.8rem;
}

.verkauf-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== Pflegetipps Section ===== */
#pflegetipps {
  background: var(--color-white);
}

.pflege-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pflege-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}

.pflege-card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.pflege-card h3 {
  margin-bottom: 0.3rem;
}

.pflege-card .material {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.pflege-card ul {
  list-style: none;
}

.pflege-card ul li {
  font-size: 0.92rem;
  color: var(--color-text-light);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.pflege-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.8rem;
}

.pflege-hints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.pflege-hint h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.pflege-hint p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ===== Kontakt Section ===== */
#kontakt {
  background: var(--color-bg);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.kontakt-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.kontakt-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.kontakt-item h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.kontakt-item p, .kontakt-item a {
  font-size: 1rem;
  color: var(--color-text);
}

.kontakt-item a:hover {
  color: var(--color-accent);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-copy {
  color: rgba(255,255,255,0.55);
}

/* ===== Subpages (Impressum, Datenschutz) ===== */
.subpage {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
}

.subpage-content h1 {
  margin-bottom: 2rem;
}

.subpage-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.subpage-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.subpage-content p {
  margin-bottom: 0.9rem;
  color: var(--color-text-light);
}

.subpage-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.subpage-content ul li {
  margin-bottom: 0.4rem;
  color: var(--color-text-light);
}

.subpage-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(193, 127, 74, 0.4);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.back-link:hover {
  color: var(--color-primary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-grid {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .philosophy-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .parallax-separator {
    height: 260px;
  }

  .parallax-separator .parallax-bg {
    background-attachment: scroll;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }

  .philosophy-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-logo {
    height: 56px;
  }
}
