/* =========================================================
   Liebevoll Verplant – Wedding Crew
   Basis-Stylesheet fuer alle Seiten (Vorlage-V22)
   ========================================================= */

:root {
  --color-beige: #f9f9f1;
  --color-gold: #ae8649;
  --color-green: #748654;
  --color-text: #2b2a26;
  --color-text-soft: #4a4436;
  --color-white: #ffffff;
  --font-headline: "Libre Bodoni", Georgia, serif;
  --font-body: "Raleway", sans-serif;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

p {
  line-height: 1.75;
  font-weight: 300;
}

.section {
  padding: 90px 24px;
}

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

.section--tight-top {
  padding-top: 56px;
}

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

.section-title {
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--color-gold);
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 30px;
}

.section-lead {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
}

.section-lead + .section-lead {
  margin-top: 22px;
}

.section-lead.tagline-inline {
  margin-top: 26px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--color-white);
  padding: 26px 24px;
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #e7e2d3;
  padding-bottom: 10px;
  white-space: nowrap;
}

.site-nav--right {
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-gold);
}

.site-nav__sep {
  color: #c9c2ad;
}

.site-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand img {
  height: 56px;
  width: auto;
}

.site-brand__sub {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
}

@media (max-width: 860px) {
  .site-header__inner {
    flex-direction: column;
  }
  .site-nav {
    width: 100%;
    justify-content: center;
    border-bottom: none;
    padding-bottom: 0;
    flex-wrap: wrap;
  }
  .site-brand {
    order: -1;
  }
}

/* ---------- Tagline-Leiste ---------- */

.tagline-strip {
  background: var(--color-beige);
  padding: 20px 24px;
  text-align: center;
}

.tagline-strip p {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* ---------- Wir sind ---------- */

.about__photo {
  display: block;
  margin: 50px auto 0;
  max-width: 620px;
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 24px 55px rgba(20, 18, 15, 0.16);
}

/* ---------- Herausgeberinnen: Liste ---------- */

.editors-list {
  text-align: center;
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
}

.editors-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.editors-list a:hover,
.editors-list a:focus-visible {
  color: var(--color-gold);
  text-decoration-color: currentColor;
}

/* ---------- Herausgeberinnen: Karten ---------- */

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px 28px;
  margin-top: 60px;
}

.card {
  position: relative;
  width: 225px;
  max-width: 42vw;
}

.card__photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 8;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(20, 18, 15, 0.18);
  transition: box-shadow 0.3s ease;
}

/* Kurzes Hervorheben des Bildes, wenn in der Herausgeberinnen-Liste
   darauf verlinkt wurde (siehe site.js) - klingt nach ein paar Sekunden
   von selbst wieder ab. */
.card--highlighted .card__photo-wrap {
  box-shadow: 0 0 0 4px var(--color-gold), 0 16px 32px rgba(20, 18, 15, 0.18);
}

.card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.card:hover .card__photo,
.card:focus-within .card__photo {
  transform: scale(1.07);
  filter: contrast(1.12) saturate(1.1);
}

.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px 14px 26px;
  background: linear-gradient(
    180deg,
    rgba(20, 18, 15, 0) 28%,
    rgba(20, 18, 15, 0.6) 58%,
    rgba(20, 18, 15, 0.86) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover .card__overlay,
.card:focus-within .card__overlay,
.card--in-view .card__overlay {
  opacity: 1;
}

.card__info {
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 12px;
  line-height: 1.65;
}

.card__info .card__name {
  font-weight: 600;
  font-size: 14px;
  display: block;
}

.card__info .card__gap {
  display: block;
  height: 10px;
}

.card__info a {
  color: #fff;
  text-decoration: none;
}

.card__info a:hover {
  text-decoration: underline;
}

.card__badge {
  /* left+right (statt left:50% + translateX) damit die volle Kartenbreite
     als verfuegbare Breite fuer die Inhaltsgroesse zaehlt - mit
     left:50%+transform halbiert der Browser sonst die verfuegbare Breite
     fuers Shrink-to-fit, bevor max-width ueberhaupt zum Zug kommt. */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  width: fit-content;
  transform: translateY(45%);
  background: #fff;
  padding: 10px 16px;
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(20, 18, 15, 0.22);
  max-width: 84%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.card:hover .card__badge,
.card:focus-within .card__badge,
.card--in-view .card__badge {
  opacity: 0;
  pointer-events: none;
}

.card__badge img {
  max-height: 72px;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* BlumenKnecht-Logo ist ein sehr breites, flaches Wortmarken-Lockup -
   volle Kartenbreite statt der sonst 84%, damit es innerhalb des Fotos
   bleibt und nicht ueber den Bildrand hinaussteht. */
.card__badge--wide {
  max-width: 100%;
}

/* Auf schmalen Screens war die Karte durch "max-width: 42vw" so schmal,
   dass die Karte trotzdem nur 1-spaltig umbricht (2 Karten + Gap passen
   nicht in die 24px-Section-Polsterung), der Text im Overlay aber auf
   die winzige Kartenbreite gequetscht wurde und unten abgeschnitten ist.
   Karte auf die volle verfuegbare Breite bringen, damit der Inhalt
   wieder in die Bildhoehe passt. */
@media (max-width: 640px) {
  .card {
    width: 100%;
    max-width: 320px;
  }
}

/* ---------- Magazin ---------- */

.magazine-wrap {
  text-align: center;
  margin-top: 56px;
}

.magazine-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 46px;
}

.magazine-spread {
  display: flex;
  width: 100%;
  border: none;
  background: var(--color-white);
  padding: 0;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(20, 18, 15, 0.25);
  transition: transform 0.3s ease;
}

.magazine-spread:hover,
.magazine-spread:focus-visible {
  transform: translateY(-6px);
}

.magazine-spread img {
  display: block;
  width: 50%;
  height: auto;
}

.magazine-spread__spine {
  width: 2px;
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.02));
}

.magazine-hint {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 18px;
  white-space: nowrap;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--color-gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.magazine-hint:hover,
.magazine-hint:focus-visible {
  text-decoration-color: currentColor;
}

/* ---------- Magazin-Archiv (Das Magazin) ---------- */
/* Zeigt aktuell nur die eine Ausgabe - als Grid angelegt, damit
   spaetere Ausgaben einfach als weitere .archive-item ergaenzt werden
   koennen, ohne Struktur-Aenderungen. */

.archive-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 56px;
}

.archive-item {
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.archive-item__cover {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.archive-item__cover img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 20px 40px rgba(20, 18, 15, 0.2);
  transition: transform 0.3s ease;
}

.archive-item__cover:hover img,
.archive-item__cover:focus-visible img {
  transform: translateY(-6px);
}

.archive-item__caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-soft);
}

/* ---------- Dienstleister-Netzwerk Karussell ---------- */
/* Endlos-Laufband: .partner-carousel__track enthaelt die Logo-Liste
   zweimal hintereinander (siehe index.php). site.js bewegt scrollLeft
   per requestAnimationFrame langsam weiter und setzt es beim Erreichen
   der halben scrollWidth zurueck - dadurch wirkt es wie eine endlose
   Schleife. Weil es ein normaler overflow-x:auto-Container ist,
   funktioniert Wischen/Scrollen mit Finger oder Trackpad von allein;
   zusaetzlich gibt es Pfeil-Buttons (data-carousel-prev/-next, siehe
   generisches Carousel-Skript oben in site.js), Ziehen mit der Maus und
   einen Anhalten/Abspielen-Knopf. */

.partner-carousel-wrap {
  max-width: var(--max-width);
  margin: 56px auto 0;
  padding: 0 24px;
}

.partner-carousel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.partner-carousel__btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  background: none;
  color: var(--color-gold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.partner-carousel__btn:hover {
  background: var(--color-gold);
  color: #fff;
}

.partner-carousel__track {
  flex: 1;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  padding: 4px 2px;
}

.partner-carousel__track::-webkit-scrollbar {
  display: none;
}

.partner-carousel__track--dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.partner-carousel__toggle {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--color-gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.partner-carousel__toggle:hover,
.partner-carousel__toggle:focus-visible {
  text-decoration-color: currentColor;
}

.partner-logo {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-white);
  border-radius: 4px;
  padding: 24px 20px 20px;
  box-shadow: 0 12px 28px rgba(20, 18, 15, 0.1);
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

a.partner-logo:hover,
a.partner-logo:focus-visible {
  box-shadow: 0 16px 34px rgba(20, 18, 15, 0.18);
  transform: translateY(-3px);
}

.partner-logo__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  width: 100%;
}

.partner-logo__img img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

.partner-logo__name {
  margin: 16px 0 2px;
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--color-gold);
  font-size: 16px;
}

.partner-logo__category {
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.4;
}

/* ---------- Sei Teil unseres Netzwerks ---------- */

.network-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  align-items: center;
  margin-top: 60px;
}

.network-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.network-cta__cover {
  width: 200px;
  transform: rotate(-6deg);
  border-radius: 2px;
  box-shadow: 0 25px 50px rgba(20, 18, 15, 0.25);
  margin-bottom: 28px;
}

.network-cta__link {
  color: var(--color-green);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(116, 134, 84, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.network-cta__link:hover {
  border-color: var(--color-green);
}

.network-map {
  justify-self: center;
  max-width: 540px;
  width: 100%;
}

.network-below {
  margin-top: 70px;
  max-width: 640px;
}

.network-below h3 {
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--color-gold);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 20px;
  line-height: 1.3;
}

@media (max-width: 780px) {
  .network-grid {
    grid-template-columns: 1fr;
  }
  .network-map {
    order: -1;
  }
  .network-cta {
    align-items: center;
    text-align: center;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-beige);
  padding: 56px 24px 44px;
}

.site-footer__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.site-footer__logo {
  width: 150px;
  margin: 0 auto;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.site-footer__nav a {
  text-decoration: none;
  font-size: 14px;
}

.site-footer__nav a:hover {
  color: var(--color-gold);
}

.site-footer__credit {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid #e7e2d3;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--color-text-soft);
}

.site-footer__madeby {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--color-text-soft);
}

.site-footer__madeby-logo {
  height: 23px;
  width: auto;
}

@media (max-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer__spacer {
    display: none;
  }
  .site-footer__nav {
    align-items: center;
  }
}

/* ---------- Einfache Unterseiten (Stubs) ---------- */

.page-stub {
  padding: 120px 24px;
  text-align: center;
}

.page-stub h1 {
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--color-gold);
  font-size: clamp(30px, 5vw, 46px);
  margin: 0 0 18px;
}

.page-stub p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--color-text-soft);
}

.page-stub a.back-link {
  display: inline-block;
  margin-top: 32px;
  color: var(--color-gold);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
}

/* ---------- Rechtstexte (Impressum, Datenschutz, ...) ---------- */

.legal-page {
  padding: 100px 24px 120px;
}

.legal-page__inner {
  max-width: 700px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--color-gold);
  font-size: clamp(30px, 5vw, 46px);
  margin: 0 0 28px;
}

.legal-page h2 {
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--color-gold);
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 40px 0 14px;
}

.legal-page p {
  color: var(--color-text);
  line-height: 1.8;
  margin: 0 0 16px;
}

.legal-page ul {
  color: var(--color-text);
  line-height: 1.8;
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 4px;
}

.legal-page a {
  color: var(--color-gold);
}

.legal-page .back-link {
  display: inline-block;
  margin-top: 32px;
  color: var(--color-gold);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
}

/* ---------- Events ---------- */

.events-section {
  padding: 100px 24px 120px;
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

.events-section h1 {
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--color-gold);
  font-size: clamp(30px, 5vw, 46px);
  margin: 0 0 40px;
}

.events-empty {
  color: var(--color-text-soft);
  max-width: 520px;
  margin: 0 auto;
}

.events-section .back-link {
  display: inline-block;
  margin-top: 48px;
  color: var(--color-gold);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
}

.event-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 48px;
  text-align: left;
}

.event-card {
  background: var(--color-beige);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 32px rgba(20, 18, 15, 0.1);
}

.event-card__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.event-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-headline);
  font-size: 72px;
}

.event-card__body {
  padding: 30px 34px 36px;
}

.event-card__date {
  color: var(--color-gold);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.event-card__name {
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--color-text);
  font-size: 30px;
  margin: 0 0 12px;
}

.event-card__location {
  color: var(--color-text-soft);
  font-size: 17px;
  margin: 0 0 14px;
}

.event-card__info {
  color: var(--color-text-soft);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.event-card__map {
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 10px;
  aspect-ratio: 16 / 9;
}

.event-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.event-card__map-link {
  display: inline-block;
  color: var(--color-gold);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 1px;
}
