/* ==========================================================================
   YogaPänz – Bausteine: Aktionen, Karten, Bildflächen, Kursplan, Zitate
   ========================================================================== */

/* --- Aktionen ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.btn--primary {
  background: var(--leaf);
  border-color: var(--ink);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--leaf-soft);
}

.btn--ghost {
  border-color: currentColor;
  color: var(--fg);
  background: transparent;
}

.btn--ghost:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.btn--block {
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--leaf-deep);
  padding-bottom: 0.1rem;
  min-height: 2.75rem;
}

.link-arrow::after {
  content: '→';
  transition: transform 140ms ease;
}

.link-arrow:hover::after {
  transform: translateX(0.25rem);
}

/* --- Hinweis „Fragen?“ neben einer Anfragekarte ------------------------ */

.help-note {
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.help-note h3 {
  margin-bottom: var(--space-2xs);
}

.help-note p {
  margin-bottom: 0;
}

.help-note .actions {
  align-items: center;
  margin-top: var(--space-s);
}

/* --- Bildflächen mit Lotus-Motiv --------------------------------------- */

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
}

.frame--petal img {
  border-radius: var(--photo-corner);
}

.frame--petal-sm img {
  border-radius: var(--photo-corner-sm);
}

.frame--square img {
  border-radius: var(--radius);
}

.figure figcaption {
  margin-top: var(--space-xs);
  font-size: var(--step--1);
  color: var(--fg-soft);
}

.ratio-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ratio-square img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ratio-wide img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* --- Karten ------------------------------------------------------------ */

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--petal-sm);
  overflow: hidden;
  height: 100%;
}

.card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card__body {
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1 1 auto;
}

.card__body h3 {
  margin: 0;
}

.card__body p {
  margin: 0;
  color: var(--fg-soft);
}

.card__body .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

/* --- Kurskachel -------------------------------------------------------- */

.course {
  border: 1px solid var(--line);
  border-radius: var(--petal-sm);
  background: var(--paper);
  padding: var(--space-m);
  display: grid;
  gap: var(--space-xs);
}

.course__age {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.course__time {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.15;
}

.course__meta {
  color: var(--fg-soft);
  font-size: var(--step--1);
  margin: 0;
}

.course .btn {
  margin-top: var(--space-xs);
  justify-self: start;
}

/* --- Preisangaben ------------------------------------------------------ */

.price-box {
  border: 1px solid var(--ink);
  border-radius: var(--petal-sm);
  background: var(--leaf-soft);
  color: var(--ink);
  padding: var(--space-m);
}

.price-box__amount {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2xs);
}

.price-box ul {
  margin-bottom: 0;
}

/* --- Kursplan ---------------------------------------------------------- */

.timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-0);
}

.timetable caption {
  text-align: left;
  color: var(--fg-soft);
  font-size: var(--step--1);
  padding-bottom: var(--space-xs);
}

.timetable th,
.timetable td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.timetable thead th {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border-bottom: 1px solid var(--fg-soft);
}

.timetable td:first-child {
  font-weight: 800;
  white-space: nowrap;
}

.timetable .tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 0;
  background: var(--leaf-soft);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 800;
}

@media (max-width: 47.999rem) {
  .timetable,
  .timetable tbody,
  .timetable tr,
  .timetable td {
    display: block;
  }

  .timetable thead {
    display: none;
  }

  .timetable tr {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    margin-bottom: var(--space-s);
    padding: var(--space-xs) var(--space-s);
  }

  .timetable td {
    border: 0;
    padding: 0.3rem 0;
  }

  .timetable td::before {
    content: attr(data-label) ': ';
    font-weight: 800;
    color: var(--fg-soft);
  }

  .timetable td:first-child::before {
    content: '';
  }
}

/* --- Rückmeldungen ----------------------------------------------------- */

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--petal-sm);
  padding: var(--space-m);
  height: 100%;
  margin: 0;
}

.quote p {
  margin: 0;
}

.quote footer {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-top: auto;
  padding-top: var(--space-xs);
  font-weight: 800;
}

.quote footer img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--paper);
  flex: 0 0 auto;
}

.quote__initial {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 100% 0 100% 0;
  background: var(--leaf);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
}

/* --- Artikel-Karten ---------------------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--petal-sm);
  overflow: hidden;
  height: 100%;
}

.post-card__media {
  display: block;
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 300ms ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__body {
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1 1 auto;
}

.post-card__topic {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.post-card h3 {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.2;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--leaf);
  text-decoration-thickness: 0.15em;
}

.post-card__body > p {
  margin: 0;
  color: var(--fg-soft);
}

.post-card__meta {
  margin-top: auto;
  padding-top: var(--space-xs);
  font-size: var(--step--1);
  font-weight: 700;
}
