/* UNBOND · Schmerzpunkt-Karten (drehbar) und kompakte Vorteils-Kacheln
   Lädt nach unbond-below-hero.css. Hero und alle übrigen Abschnitte bleiben unberührt.
   Die Karten folgen der Vorlage "stitch_unbond_dark_webapp_design_system (1)" (Farben, Aufbau, Texte).
   Die Strichzeichnung füllt die ganze Vorderseite (object-fit: cover).
   Die Selektoren tragen zwei :not(#id), damit sie die älteren ID-Regeln der Stylesheet-Schichten sicher überstimmen. */

:root {
  --pf-gold: #bc8e3b;
  --pf-sage: #5e9590;
  --pf-cream: #f4f1ea;
  --pf-ink: #0b0d17;
  --pf-glass: rgba(15, 20, 35, .55);
  --pf-subtle: rgba(244, 241, 234, .74);
  --pf-gold-line: rgba(188, 142, 59, .20);
  --pf-sage-line: rgba(94, 149, 144, .20);
  --pf-card-h: 430px;
  --pf-art-scale: .75; /* Größe der Strichzeichnung: 1 = ganze Kachel, .75 = ein Viertel kleiner */
}

/* ── Autorinnen-Zitat: zwei Absätze, kleiner Abstand ── */
html body:not(#pf1):not(#pf2) .at-fig p + p {
  margin-top: .55em !important;
}

/* ── Raster der drei Karten ── */
html body:not(#pf1):not(#pf2) .pf-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0 !important;
  padding: 0 !important;
}
html body:not(#pf1):not(#pf2) .pf-item {
  display: flex;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

/* ── Karte ── */
html body:not(#pf1):not(#pf2) .pf-card {
  --pf-accent: var(--pf-gold);
  --pf-line: var(--pf-gold-line);
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px;
  background: none !important;
  box-shadow: none !important;
  perspective: 1200px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
html body:not(#pf1):not(#pf2) .pf-card--sage {
  --pf-accent: var(--pf-sage);
  --pf-line: var(--pf-sage-line);
}
html body:not(#pf1):not(#pf2) .pf-inner {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  min-height: var(--pf-card-h);
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
html body:not(#pf1):not(#pf2) .pf-front,
html body:not(#pf1):not(#pf2) .pf-back {
  grid-area: 1 / 1;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
html body:not(#pf1):not(#pf2) .pf-front { background: #0d0f1a; }
html body:not(#pf1):not(#pf2) .pf-back {
  background: var(--pf-ink);
  transform: rotateY(180deg);
}

/* Umdrehen: Hover (Maus), Tippen (Touch) oder Taste (Knopf) */
html body:not(#pf1):not(#pf2) .pf-card.is-flipped .pf-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  html body:not(#pf1):not(#pf2) .pf-card:hover .pf-inner { transform: rotateY(180deg); }
}

/* ── Vorderseite: Zeichnung über die ganze Kachel ── */
/* Die Zeichnung füllt zuerst die ganze Kachel (object-fit: cover) und wird dann auf
   --pf-art-scale verkleinert, oben mittig verankert. Die Maske blendet das untere Ende aus:
   Dort steht in den Bilddateien ein Stichwort (Ohnmacht/Angst/Verzeiflung), das sonst
   zwischen Titel und Text der Karte läge. */
html body:not(#pf1):not(#pf2) .pf-art {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  opacity: .92;
  pointer-events: none;
  transform: scale(var(--pf-art-scale));
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 86%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 86%);
}
/* Verlauf nur für die Lesbarkeit von Beschriftung und Text über der Zeichnung */
html body:not(#pf1):not(#pf2) .pf-front::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 13, 23, .92) 0%, rgba(11, 13, 23, .70) 30%, rgba(11, 13, 23, 0) 64%);
}
html body:not(#pf1):not(#pf2) :is(.pf-copy, .pf-turn) {
  position: relative;
  z-index: 2;
}
/* Mitte: Name in Weiß, darunter das Zitat kursiv */
html body:not(#pf1):not(#pf2) .pf-copy {
  margin-top: auto;
  text-align: center;
}
html body:not(#pf1):not(#pf2) .pf-title {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: 0 1px 10px rgba(11, 13, 23, .9);
}
html body:not(#pf1):not(#pf2) .pf-sub {
  margin: 0 !important;
  color: rgba(255, 255, 255, .92) !important;
  font-family: "Instrument Serif", Georgia, serif !important;
  font-size: 1.25rem !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: .01em !important;
  text-shadow: 0 1px 10px rgba(11, 13, 23, .9);
}
/* Unten links in der Ecke: "Details →", klein und grün */
html body:not(#pf1):not(#pf2) .pf-turn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px 8px 0;
  border: 0 !important;
  border-radius: 4px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pf-sage) !important;
  font-family: "Space Mono", monospace !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: none !important;
  cursor: pointer;
}
html body:not(#pf1):not(#pf2) .pf-turn:focus-visible {
  outline: 2px solid var(--unbond-teal, #5e9590);
  outline-offset: 2px;
}
/* Fokus bleibt auch auf der Rückseite sichtbar, wenn die Karte per Tastatur umgedreht wurde */
html body:not(#pf1):not(#pf2) .pf-card:has(.pf-turn:focus-visible) {
  outline: 3px solid var(--unbond-teal, #5e9590);
  outline-offset: 4px;
}

/* ── Rückseite ── */
html body:not(#pf1):not(#pf2) .pf-kicker {
  display: block;
  color: var(--pf-sage) !important;
  font-family: "Space Mono", monospace !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
}
html body:not(#pf1):not(#pf2) .pf-back-title {
  margin: 6px 0 10px !important;
  color: var(--pf-cream) !important;
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body:not(#pf1):not(#pf2) .pf-text {
  margin: 0 !important;
  color: var(--pf-subtle) !important;
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-size: .86rem !important;
  line-height: 1.6 !important;
}
html body:not(#pf1):not(#pf2) .pf-stat {
  display: block;
  padding: 12px 14px;
  border-left: 2px solid var(--pf-accent);
  border-radius: 4px;
  background: var(--pf-glass);
}
html body:not(#pf1):not(#pf2) .pf-stat-num {
  display: block;
  color: var(--pf-accent) !important;
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
html body:not(#pf1):not(#pf2) .pf-stat-text {
  display: block;
  margin-top: 2px;
  color: var(--pf-subtle) !important;
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-size: .8rem !important;
  line-height: 1.45 !important;
}
html body:not(#pf1):not(#pf2) .pf-stat-note {
  display: block;
  margin-top: 8px;
  color: rgba(244, 241, 234, .58) !important;
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-size: .7rem !important;
  line-height: 1.45 !important;
}

/* ── Kompakte Vorteils-Kacheln: links Symbol, rechts Begriff und Kurzerklärung ── */
html body:not(#pf1):not(#pf2) .vt-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0 !important;
  padding: 0 !important;
}
html body:not(#pf1):not(#pf2) .vt-tile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid var(--bh-line, rgba(226, 232, 228, .16));
  border-radius: 8px;
  background: var(--bh-panel, rgba(8, 13, 20, .86));
  list-style: none;
}
html body:not(#pf1):not(#pf2) .vt-icon {
  display: block;
  width: 40px;
  height: 40px;
  max-width: none;
  object-fit: contain;
}
html body:not(#pf1):not(#pf2) .vt-term {
  margin: 0 0 3px !important;
  color: #f1f3f0 !important;
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-size: 1.08rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body:not(#pf1):not(#pf2) .vt-desc {
  margin: 0 !important;
  color: rgba(241, 243, 240, .74) !important;
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-size: .8rem !important;
  line-height: 1.45 !important;
}

/* ── Mobil ── */
@media (max-width: 900px) {
  html body:not(#pf1):not(#pf2) .pf-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    max-width: 420px;
    margin-inline: auto !important;
  }
  html body:not(#pf1):not(#pf2) .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  html body:not(#pf1):not(#pf2) .vt-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html body:not(#pf1):not(#pf2) .pf-inner { transition: none !important; }
}
