/* assets/css/sections.css — wird in Task 5–13 befüllt */

/* === Hero === */
.hero {
  padding: var(--sp-12) 0 var(--sp-16);
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(212,165,116,.08) 100%);
}
.hero-inner {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: var(--sp-12); }
  .hero { padding: var(--sp-16) 0 var(--sp-24); }
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero-lead {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: var(--sp-6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.hero-trust .trust-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}
/* Hero-Slideshow */
.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-border);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1) translate(0, 0);
  transform-origin: center center;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; }

/* Caption über dem Bild — sanfte Fade-Up-Animation beim Wechsel */
.hero-slide-caption {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-12);
  padding: 8px 16px;
  background: rgba(45, 40, 23, 0.82);
  backdrop-filter: blur(6px);
  color: var(--color-bg);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 2;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Akzent-Punkt links vom Text (passt zur Marke — wie Glutpunkt) */
.hero-slide-caption::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-highlight);
  box-shadow: 0 0 8px rgba(212, 165, 116, 0.6);
  animation: captionPulse 2.4s ease-in-out infinite;
}
@keyframes captionPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(212, 165, 116, 0.4); transform: scale(1); }
  50%      { box-shadow: 0 0 14px rgba(212, 165, 116, 0.85); transform: scale(1.15); }
}
/* Wechsel-Zustand: erst ausfaden + leicht hochgehen, dann mit neuem Text wieder rein */
.hero-slide-caption.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

/* Dots-Navigation */
.hero-slide-dots {
  position: absolute;
  bottom: var(--sp-4);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.hero-slide-dots .dot {
  width: 32px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(250, 246, 240, 0.45);
  cursor: pointer;
  transition: background 0.3s ease, width 0.4s cubic-bezier(0.22,1,0.36,1);
}
.hero-slide-dots .dot:hover { background: rgba(250, 246, 240, 0.75); }
.hero-slide-dots .dot.is-active {
  background: var(--color-bg);
  width: 52px;
}

@media (max-width: 640px) {
  .hero-slide-caption {
    bottom: calc(var(--sp-8) + 4px);
    font-size: var(--fs-xs);
    padding: 4px 10px;
  }
  .hero-slide-dots .dot { width: 24px; }
  .hero-slide-dots .dot.is-active { width: 40px; }
}

/* === Sortiment === */
.section-sortiment { background: var(--color-bg); }
.sortiment-card h3 {
  font-family: var(--font-display);
  margin-bottom: var(--sp-2);
  color: var(--color-primary);
}
.sortiment-card > p {
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
  min-height: 4.5em; /* 3 Zeilen × line-height 1.5 → alle Karten gleich hoch */
}
.sortiment-meta {
  list-style: none;
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--color-text);
}
.sortiment-meta li {
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
}
.sortiment-meta strong { color: var(--color-text-muted); font-weight: 500; }

/* === Lieferung === */
.lieferung-card {
  text-align: left;
  display: flex;
  flex-direction: column;
}
.lieferung-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--sp-3);
  color: var(--color-primary);
}
.lieferung-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--sp-2);
  min-height: 1.4em; /* falls Titel mal länger werden */
}
.lieferung-card > p {
  color: var(--color-text);
  margin-bottom: var(--sp-3);
  flex: 1; /* dehnt sich, sodass der Trennstrich unten an gleicher Stelle sitzt */
}
.lieferung-when {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-border);
  margin: 0;
  min-height: 4.5em; /* 3 Zeilen × 1.5 line-height — Karten bündig schließen */
}
.lieferung-when strong { color: var(--color-text); }
.lieferung-zone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
  margin-top: var(--sp-8);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  width: 100%;
  justify-content: center;
}
.lieferung-zone .zone-icon { color: var(--color-primary); flex-shrink: 0; }

/* === Abo-Teaser === */
.abo-teaser { padding: var(--sp-12) 0; }
.abo-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-bg);
  padding: var(--sp-8) var(--sp-8);
  border-radius: var(--radius-xl);
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 768px) {
  .abo-card { grid-template-columns: 1.4fr 1fr; align-items: center; padding: var(--sp-12); }
}
.abo-form { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.abo-form .input { flex: 1; min-width: 200px; }
.abo-success { color: var(--color-highlight); font-weight: 600; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* === Über uns === */
.section-ueber-uns { background: var(--color-bg); }
.ueber-grid {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 1024px) {
  .ueber-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
}
.ueber-grid h2 { margin-bottom: var(--sp-4); }
.ueber-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* === Brennholz-Reise (4 Schritte) === */
.section-reise { background: var(--color-bg); }
.reise-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  counter-reset: reise;
}
@media (min-width: 640px) {
  .reise-steps { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}
@media (min-width: 1024px) {
  .reise-steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
}
.reise-step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reise-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-surface);
}
.reise-num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg);
  font-family: var(--font-body);   /* Inter zentriert sauber im Kreis (wie die Stepper-Badges) */
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1;
  text-align: center;
  box-shadow: 0 4px 12px rgba(45, 74, 43, 0.25);
  border: 3px solid var(--color-bg);
  margin-top: -26px;          /* zieht die Nummer über den unteren Bildrand */
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 2;
}
.reise-step h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}
.reise-step p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin: 0;
}

/* === Services (Weitere Dienstleistungen) === */
.section-services { background: var(--color-bg); }
.services-grid { gap: var(--sp-4); }
.service-card {
  background: var(--color-surface);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 74, 43, 0.25);
}
.service-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: rgba(45, 74, 43, 0.08);
  border-radius: var(--radius-lg);
}
.service-icon img { width: 32px; height: 32px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin: 0;
}
.service-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.services-cta {
  text-align: center;
  margin-top: var(--sp-8);
}

/* === USPs === */
.usp-card {
  background: var(--color-surface);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.usp-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  color: var(--color-primary);
  background: rgba(45,74,43,.08);
  border-radius: var(--radius-lg);
}
.usp-icon img { width: 32px; height: 32px; }
.usp-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin-bottom: var(--sp-2);
}
.usp-card p { color: var(--color-text-muted); margin: 0; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-4) var(--sp-6);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}
.faq-item[open] summary::after { content: '−'; }
.faq-content {
  padding: 0 var(--sp-6) var(--sp-4);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
}

/* === Kontakt === */
.kontakt-grid {
  display: grid;
  gap: var(--sp-6);
  align-items: stretch;
}
@media (min-width: 768px) {
  .kontakt-grid { grid-template-columns: 1fr 1.3fr; }
}
.kontakt-info h3 { font-family: var(--font-display); margin-bottom: var(--sp-3); }
.kontakt-map {
  display: flex;
  min-height: 360px;
}
.kontakt-map iframe {
  width: 100%;
  flex: 1;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
