/* =========================================================
   components.css – wiederverwendbare Bausteine
   ========================================================= */

/* ---------- .hero: Einstieg mit Bild (mobil untereinander, Desktop nebeneinander) ---------- */
.hero {
  color: var(--color-cream);
  background: var(--color-secondary);
}

.hero__inner {
  display: grid;
  gap: var(--space-l);
  padding-block: var(--space-xl) var(--space-l);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  min-width: 0;
  max-width: var(--measure);
}

.hero__title {
  font-size: var(--fs-h1);
  color: var(--color-cream);
}

/* Umbruch bevorzugt zwischen den Sätzen */
.hero__title-line { display: block; }

.hero__text {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: rgb(255 255 246 / 0.85);
}

.hero__media {
  min-width: 0;
  max-width: 32rem;
  width: 100%;
  margin-inline: auto;
}

.hero__img {
  width: 100%;
  border-radius: var(--radius-card);
}

@media (min-width: 64em) {
  .hero__inner {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: var(--space-xl);
    padding-block: var(--space-xl);
  }
  .hero__media { max-width: none; }
}

/* ---------- .section: Inhaltsabschnitt ---------- */
.section {
  padding-block: var(--space-xl);
  color: var(--color-text);
  background: var(--color-cream);
}

.section--light { background: var(--color-light); }

.section--dark {
  color: rgb(255 255 246 / 0.85);
  background: var(--color-secondary);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.section__title {
  font-size: var(--fs-h2);
  color: var(--color-secondary);
}

.section--dark .section__title { color: var(--color-cream); }

/* kleine Akzentlinie unter jeder Abschnittsüberschrift */
.section__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: var(--space-s);
  background: var(--color-primary);
}

.section__text {
  max-width: var(--measure);
  font-size: var(--fs-lead);
  line-height: 1.7;
}

/* ---------- .list: Aufzählung mit Akzentpunkten ---------- */
.list {
  display: grid;
  gap: var(--space-s);
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.list__item {
  position: relative;
  padding-left: 1.75rem;
}

.list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ---------- .cards / .card: Karten (mobil untereinander, ab Tablet nebeneinander) ---------- */
.cards {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-s);
}

@media (min-width: 64em) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  min-width: 0;
  padding: var(--space-m);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-card);
  background: var(--color-secondary-soft);
}

.card__title {
  font-size: var(--fs-h3);
  color: var(--color-primary-light);
}

.card__text {
  line-height: 1.7;
  color: rgb(255 255 246 / 0.85);
}

/* ---------- .cta: Abschluss mit Button ---------- */
.cta .section__inner { align-items: flex-start; }

/* ---------- .button ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  max-width: 100%;
  min-height: 3rem;
  padding: 0.85em 1.75em;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-cream);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0.35rem 1rem rgb(0 0 0 / 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: transparent;
  border-color: var(--color-primary-light);
  transform: translateY(-1px);
}

.section:not(.section--dark) .button:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ---------- .legal: Textseiten (Impressum, Datenschutz) ---------- */
.legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  color: var(--color-text);
  background: var(--color-cream);
}

.legal-wrap { background: var(--color-cream); }

.legal__title {
  font-size: var(--fs-h1);
  color: var(--color-secondary);
}

.legal__subtitle {
  margin-top: var(--space-m);
  font-size: 1.25rem;
  color: var(--color-primary);
}

.legal address { font-style: normal; }

.legal a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}

/* ---------- .photo: Einzelfoto zwischen Abschnitten ---------- */
.photo {
  padding-block: var(--space-xl);
  background: var(--color-light);   /* eigener heller Streifen zwischen zwei dunklen Abschnitten */
}

.photo__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 40% 50%;        /* Loop und Hände bleiben im Bild */
  border-radius: var(--radius-card);
}

@media (min-width: 40em) {
  .photo__img { aspect-ratio: 3 / 2; }
}

/* ---------- .section__subtitle: Zwischenüberschrift im Abschnitt ---------- */
.section__subtitle {
  margin-top: var(--space-s);
  font-size: var(--fs-h3);
  color: var(--color-secondary);
}

.section--dark .section__subtitle { color: var(--color-primary-light); }

/* ---------- .quote: hervorgehobener Einzelsatz ---------- */
.quote {
  max-width: var(--measure);
  padding-left: var(--space-s);
  border-left: 3px solid var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-lead);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-secondary);
}

.section--dark .quote { color: var(--color-cream); }

/* ---------- .diagram: Schema-Grafik (Vorher → Nachher) ---------- */
.diagram {
  margin: 0;
  padding: var(--space-m) var(--space-s);
  border-radius: var(--radius-card);
  background: var(--color-cream);
  color: var(--color-secondary);
}

/* mobil untereinander mit Pfeil nach unten, ab Tablet nebeneinander */
.diagram__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
}

.diagram__cell {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  min-width: 0;
  max-width: 13rem;
}

.diagram__svg {
  display: block;
  width: 100%;
  max-width: 11rem;
  height: auto;
  overflow: visible;
}

.diagram__svg--before { color: var(--color-faded); }
.diagram__svg--after { color: var(--color-secondary); }

.diagram__signs { fill: var(--color-cream); }

.diagram__name {
  font-weight: 600;
  text-align: center;
}

.diagram__note {
  font-size: var(--fs-small);
  line-height: 1.45;
  text-align: center;
  color: var(--color-muted);
}

.diagram__arrow {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-primary);
}

.diagram__wave { rotate: 90deg; }

@media (min-width: 40em) {
  .diagram__row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }
  .diagram__arrow { margin-top: 3.5rem; }
  .diagram__wave { rotate: none; }
}

.diagram__arrow-label {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.diagram figcaption {
  margin-top: var(--space-m);
  font-size: var(--fs-small);
  line-height: 1.45;
  text-align: center;
  color: var(--color-muted);
}

@keyframes diagram-glow { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.5; } }
@keyframes diagram-wave {
  0%, 100% { transform: translateX(-2px); opacity: 0.75; }
  50% { transform: translateX(2px); opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .diagram__glow { animation: diagram-glow 2.6s ease-in-out infinite; }
  .diagram__wave { animation: diagram-wave 1.9s ease-in-out infinite; }
}
