@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..600&family=DM+Sans:opsz,wght@9..40,300..600&display=swap");

/* Weihnachts-Popup (2 Flyer) – Christengemeinde Ulm
   Layout: Text oben links, Flyer in hinterlegten Karten. */

.cgu-pop {
  --cgu-bg: #fff;
  --cgu-soft: #f6f3ee;
  --cgu-ink: #2b2a27;
  --cgu-muted: #6b675f;
  --cgu-line: #e4dfd6;
  --cgu-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cgu-font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --cgu-radius: 0.25rem;

  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  padding: 1.25rem;
  overflow: auto;
  background: rgba(43, 42, 39, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--cgu-font);
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.45s;
}

.cgu-pop,
.cgu-pop *,
.cgu-pop *::before,
.cgu-pop *::after {
  box-sizing: border-box;
}

.cgu-pop:focus {
  outline: none;
}

@media (min-width: 761px) {
  .cgu-pop {
    padding: 1.25rem 4.25rem;
  }
}

.cgu-pop.cgu-pop--visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* ---------- gemeinsame Teile ---------- */

.cgu-pop .cgu-pop__panel {
  position: relative;
  display: flex;
  margin: auto;
  background: var(--cgu-bg);
  color: var(--cgu-ink);
  border-radius: var(--cgu-radius);
  box-shadow: 0 1rem 2.5rem rgba(43, 42, 39, 0.14);
  transform: scale(0.97);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cgu-pop.cgu-pop--visible .cgu-pop__panel {
  transform: scale(1);
}

.cgu-pop p.cgu-pop__eyebrow,
.cgu-pop h2.cgu-pop__title,
.cgu-pop p.cgu-pop__text,
.cgu-pop p.cgu-pop__date,
.cgu-pop p.cgu-pop__name,
.cgu-pop p.cgu-pop__place {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--cgu-font) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--cgu-ink) !important;
}

.cgu-pop p.cgu-pop__eyebrow {
  margin-bottom: 0.625rem !important;
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--cgu-muted) !important;
}

.cgu-pop h2.cgu-pop__title {
  margin-bottom: 0.5rem !important;
  font-family: var(--cgu-font-head) !important;
  font-size: 1.375rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-wrap: balance;
}

.cgu-pop p.cgu-pop__text {
  font-size: 0.919rem !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  text-wrap: pretty;
  color: var(--cgu-muted) !important;
}

/* Hierarchie: Zitat + Bibelstelle als ein Block, dann Abstand,
   dann Lead-Satz + Einladungstext als zweiter Block */
.cgu-pop p.cgu-pop__quelle,
.cgu-pop p.cgu-pop__lead {
  padding: 0 !important;
  font-family: var(--cgu-font) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.cgu-pop p.cgu-pop__quelle {
  margin: -0.625rem 0 2rem !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.02em !important;
  color: var(--cgu-muted) !important;
}

.cgu-pop p.cgu-pop__lead {
  margin: 0 !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  color: var(--cgu-ink) !important;
}

.cgu-pop p.cgu-pop__contact {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--cgu-font) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--cgu-muted) !important;
}

.cgu-pop a.cgu-pop__mail {
  color: var(--cgu-ink) !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 0.2rem;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.cgu-pop a.cgu-pop__mail:hover {
  text-decoration-thickness: 2px;
}

.cgu-pop a.cgu-pop__mail:focus-visible {
  outline: 2px solid var(--cgu-ink);
  outline-offset: 2px;
}

.cgu-pop .cgu-pop__inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.cgu-pop .cgu-pop__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 1rem;
  row-gap: 0.875rem;
}

.cgu-pop .cgu-pop__meta {
  grid-column: 1;
  min-width: 0;
}

.cgu-pop p.cgu-pop__date {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--cgu-muted) !important;
}

.cgu-pop p.cgu-pop__name {
  margin-top: 0.25rem !important;
  font-family: var(--cgu-font-head) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

.cgu-pop p.cgu-pop__place {
  margin-top: 0.125rem !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: var(--cgu-muted) !important;
}

.cgu-pop button.cgu-pop__card {
  grid-column: 1 / -1;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0.125rem !important;
  background: none !important;
  line-height: 0 !important;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--cgu-line), 0 0.5rem 1.5rem rgba(43, 42, 39, 0.08) !important;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease !important;
}

.cgu-pop button.cgu-pop__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--cgu-line), 0 0.75rem 2rem rgba(43, 42, 39, 0.14) !important;
}

.cgu-pop .cgu-pop__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 0;
}

/* „Rückseite ansehen“: im Stil der Eyebrow – Versalien, gesperrt, feine Linie darunter */
.cgu-pop button.cgu-pop__hint,
.cgu-pop a.cgu-pop__hint {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.375rem 0 0.3125rem !important; /* Tippfläche mind. 24 px (WCAG 2.5.8) */
  border: 0 !important;
  border-bottom: 1px solid var(--cgu-line) !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--cgu-muted) !important;
  font-family: var(--cgu-font) !important;
  font-size: 0.7125rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cgu-pop button.cgu-pop__hint svg {
  display: block;
  flex: none;
  width: 0.9375rem;
  height: 0.9375rem;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cgu-pop button.cgu-pop__hint:hover,
.cgu-pop a.cgu-pop__hint:hover {
  color: var(--cgu-ink) !important;
  border-color: var(--cgu-ink) !important;
}

.cgu-pop button.cgu-pop__hint:hover svg {
  transform: rotate(180deg);
}

/* Wenden: Flyer klappt kurz zusammen, Bild wechselt, klappt wieder auf */
.cgu-pop .cgu-pop__card .cgu-pop__img {
  transition: transform 0.18s ease-in;
}

.cgu-pop .cgu-pop__card.cgu-pop__card--dreht .cgu-pop__img {
  transform: scaleX(0);
}

.cgu-pop button.cgu-pop__hint:focus-visible,
.cgu-pop a.cgu-pop__hint:focus-visible {
  outline: 2px solid var(--cgu-ink);
  outline-offset: 3px;
}

/* nur für Screenreader: vollständiger Flyer-Text */
.cgu-pop .cgu-pop__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: normal !important;
  border: 0 !important;
}

/* dünnes × außerhalb der Karte, oben rechts im Fenster */
.cgu-pop button.cgu-pop__close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  width: 3rem !important;
  height: 3rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #fff !important;
  opacity: 0.9;
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.2s ease;
}

.cgu-pop button.cgu-pop__close:hover {
  opacity: 1;
}

.cgu-pop button.cgu-pop__close:focus-visible {
  outline-color: #fff;
}

.cgu-pop .cgu-pop__close svg {
  display: block;
  width: 1.625rem;
  height: 1.625rem;
  margin: auto;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: square;
  fill: none;
}

/* ---------- Layout: Text oben links, Flyer in hinterlegten Karten rechts ---------- */

.cgu-pop--seite .cgu-pop__panel {
  flex-direction: row;
  align-items: flex-start;
  align-items: stretch;
  gap: 5.5rem; /* mehr Luft zwischen Text und Flyern */
  padding: 2.5rem 2.25rem 2.5rem 2.5rem;
}

/* Spalte: oben bündig mit den Flyern, unten bündig mit „Rückseite ansehen“ */
.cgu-pop--seite .cgu-pop__head {
  flex: 0 0 23.5rem;
  min-width: 0; /* nie breiter als 23.5rem, auch nicht durch einzeilige Texte */
  display: flex;
  flex-direction: column;
  padding: 1rem 0 1rem;
  text-align: left;
}

.cgu-pop--seite p.cgu-pop__eyebrow {
  margin-bottom: 1.125rem !important;
  font-size: 0.775rem !important;
  letter-spacing: 0.14em !important;
}

/* Karten rechts: Datum wie die Eyebrow, Name wie die Headline (kleiner) */
.cgu-pop--seite p.cgu-pop__date {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
}

.cgu-pop--seite p.cgu-pop__name {
  margin-top: 0.5rem !important;
  font-size: 1.375rem !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.005em !important;
}

.cgu-pop--seite p.cgu-pop__place {
  margin-top: 0.375rem !important;
  font-size: 0.9375rem !important;
  line-height: 1.45 !important;
}

/* Bibelstelle unter der Headline */
.cgu-pop--seite p.cgu-pop__quelle {
  margin: 1rem 0 0 !important;
  font-size: 0.796rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--cgu-muted) !important;
}

/* Überleitung + Einladungstext ganz unten in der Spalte */
.cgu-pop--seite p.cgu-pop__lead {
  max-width: 100%;
  overflow: hidden;
  margin-top: auto !important;
  padding-top: 2.5rem !important;
  font-family: var(--cgu-font-head) !important;
  font-size: 1.3125rem !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
}

.cgu-pop--seite p.cgu-pop__text {
  margin-top: 0.5rem !important;
  padding-top: 0 !important;
}

.cgu-pop--seite .cgu-pop__info {
  margin-top: 0;
  padding-top: 1.5rem;
}

.cgu-pop--seite h2.cgu-pop__title {
  margin-bottom: 0 !important;
  font-size: 2.575rem !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
}

.cgu-pop--seite .cgu-pop__inner {
  align-items: stretch; /* beide Karten gleich hoch */
  gap: 0.875rem;
}

.cgu-pop--seite .cgu-pop__item {
  box-sizing: content-box;
  padding: 1rem 1rem 1rem;
  background: var(--cgu-soft);
  border-radius: var(--cgu-radius);
  row-gap: 0.75rem;
  /* Flyerbreite: höchstens 28rem, sonst nach Fensterbreite/-höhe */
  width: min(28rem, calc((100vw - 47.125rem) / 2), max(12rem, calc((100vh - 18rem) * 0.709)));
  width: min(28rem, calc((100vw - 47.125rem) / 2), max(12rem, calc((100dvh - 18rem) * 0.709)));
}

/* Reihenfolge in jeder Karte: Flyer, Text, Link */
.cgu-pop--seite .cgu-pop__item {
  grid-template-rows: auto 1fr auto;
  row-gap: 0;
}
.cgu-pop--seite .cgu-pop__card { order: 1; grid-column: 1 / -1; }
.cgu-pop--seite .cgu-pop__meta { order: 2; grid-column: 1 / -1; align-self: start; padding-top: 1.125rem; }
/* Links unter dem Flyer nebeneinander */
.cgu-pop .cgu-pop__actions {
  order: 3;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin-top: 0.5rem;
}

/* Dreh-Symbol rechts in der Zeile */
.cgu-pop button.cgu-pop__flip {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1.75rem !important;
  height: 1.75rem !important;
  margin: 0 -0.25rem 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--cgu-muted) !important;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cgu-pop button.cgu-pop__flip svg {
  display: block;
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cgu-pop button.cgu-pop__flip:hover {
  color: var(--cgu-ink) !important;
}

.cgu-pop button.cgu-pop__flip:hover svg {
  transform: rotate(180deg);
}

.cgu-pop button.cgu-pop__flip:focus-visible {
  outline: 2px solid var(--cgu-ink);
  outline-offset: 2px;
}

/* mittlere Breiten: Text oben, Karten darunter */
@media (max-width: 1100px) {
  .cgu-pop--seite .cgu-pop__panel {
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.25rem 2rem 2rem;
  }

  .cgu-pop--seite h2.cgu-pop__title {
    font-size: 1.96rem !important;
  }

  .cgu-pop--seite p.cgu-pop__eyebrow {
    margin-bottom: 0.75rem !important;
  }

  .cgu-pop--seite p.cgu-pop__name {
    font-size: 1.1875rem !important;
  }

  .cgu-pop--seite p.cgu-pop__lead {
    margin-top: 0 !important;
    padding-top: 1.5rem !important;
    font-size: 1.1875rem !important;
  }

  .cgu-pop--seite p.cgu-pop__text {
    margin-top: 0.375rem !important;
    padding-top: 0 !important;
  }

  .cgu-pop--seite .cgu-pop__info {
    margin-top: 0;
    padding-top: 1rem;
  }

  .cgu-pop--seite .cgu-pop__head {
    flex: none;
    max-width: 34rem;
    padding: 0 0.25rem;
  }


  .cgu-pop--seite .cgu-pop__item {
    width: min(26rem, calc((100vw - 18.5rem) / 2), max(15rem, calc((100vh - 31.5rem) * 0.709)));
    width: min(26rem, calc((100vw - 18.5rem) / 2), max(15rem, calc((100dvh - 31.5rem) * 0.709)));
  }
}

/* ---------- Handy: alles untereinander, Overlay scrollt ---------- */

@media (max-width: 760px) {
  .cgu-pop {
    padding: 4rem 0.75rem 0.75rem;
  }

  .cgu-pop.cgu-pop--seite .cgu-pop__panel {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.75rem 1rem 1.25rem;
  }

  .cgu-pop .cgu-pop__head {
    flex: none;
    padding: 0 0.25rem;
  }

  .cgu-pop .cgu-pop__inner {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .cgu-pop.cgu-pop--seite .cgu-pop__inner {
    gap: 0.75rem;
  }

  .cgu-pop.cgu-pop--seite .cgu-pop__item {
    width: min(calc(100vw - 5.25rem), 26rem);
    padding: 0.875rem 0.875rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cgu-pop,
  .cgu-pop .cgu-pop__panel,
  .cgu-pop .cgu-pop__card .cgu-pop__img,
  .cgu-pop button.cgu-pop__card {
    transition-duration: 0.01s !important;
  }
}

/* ---------- Typo-Skala linke Spalte (feste Stufen statt automatischer Größe) ----------
   Kleintext 0.75rem · Text 0.9375rem · Subline 1.1875rem · Headline 2.5 / 2 / 1.75rem
   Eyebrow und Bibelstelle haben bewusst denselben Stil. */

.cgu-pop--seite p.cgu-pop__eyebrow,
.cgu-pop--seite p.cgu-pop__quelle {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--cgu-muted) !important;
}

.cgu-pop--seite p.cgu-pop__eyebrow { margin: 0 0 1rem !important; }
.cgu-pop--seite p.cgu-pop__quelle { margin: 0.875rem 0 0 !important; }

.cgu-pop--seite h2.cgu-pop__title {
  font-size: 2.5rem !important;
  line-height: 1.1 !important;
  letter-spacing: -0.015em !important;
}

.cgu-pop--seite p.cgu-pop__lead {
  font-size: 1.1638rem !important; /* 2 % kleiner */
  line-height: 1.35 !important;
  white-space: normal !important;
}

.cgu-pop--seite p.cgu-pop__text {
  margin-top: 0.5rem !important;
  font-size: 0.9375rem !important;
  line-height: 1.65 !important;
}

@media (max-width: 1100px) {
  .cgu-pop--seite h2.cgu-pop__title { font-size: 2rem !important; }
  .cgu-pop--seite p.cgu-pop__eyebrow { margin-bottom: 0.75rem !important; }
  .cgu-pop--seite p.cgu-pop__quelle { margin-top: 0.625rem !important; }
  .cgu-pop--seite p.cgu-pop__lead { padding-top: 1.5rem !important; font-size: 1.1025rem !important; }
}

@media (max-width: 760px) {
  .cgu-pop--seite h2.cgu-pop__title { font-size: 1.75rem !important; }
  .cgu-pop--seite p.cgu-pop__lead { font-size: 1.0413rem !important; }
}

/* Flyer als Schaltfläche (Musical): sichtbarer Fokus */
.cgu-pop button.cgu-pop__card:focus-visible {
  outline: 2px solid var(--cgu-ink) !important;
  outline-offset: 3px;
}

/* „Wir freuen uns auf dich!“ etwas kräftiger */
.cgu-pop strong.cgu-pop__gruss {
  font-weight: 500 !important;
  color: var(--cgu-ink) !important;
}
