.letter-grid-wrapper {
  padding: 1rem;
  max-width: 980px;
  margin: auto;
  font-family: system-ui, sans-serif;
  background-color: #0d0d0d;
  color: #eee;
}

/* Intro Grid */
.letter-intro-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.intro-headline {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffe100;
  margin: 0;
  max-width: 100%;
}
.intro-right {
  width: 100%;
  max-width: calc((100% - 2rem) / 2);
  flex-shrink: 0;
}
.intro-image {
  width: 100%;
  height: auto;
  max-height: 190px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 23px;
  border: 0px solid #ccc;
}

/* Mission Text (Zentral & dynamisch) */
.letter-mission-text {
  max-width: 100%;
  text-align: center;
  padding: 1rem 1rem 2rem;
  margin-bottom: 1rem;
}
.letter-mission-text p {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ccc;
  margin: 0;
  min-height: calc(1.5rem * 1.4 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards */
.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.letter-card {
  position: relative;
  padding: 1.8rem;
  background-color: #1a1a1a;
  border-radius: 23px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s;
}
.letter-card:hover {
  transform: scale(1.010);
}
.letter-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 0.8rem;
  font-weight: 600;
  gap: 1rem;
}

.letter-card-header .left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.letter-card-header .right {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 50%;
  text-align: right;
}

.letter-tag {
  background: #333;
  color: #ddd;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}
.letter-headline {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.2rem;
  max-height: 4.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.letter-card footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #888;
}
.letter-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 0 !important;  /* darf niemals über den Header */
}
.letter-pagination {
  text-align: center;
  margin-top: 3rem;
}
.load-more-button {
  background-color: #000;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
}
.load-more-button:hover {
  background-color: #222;
}

/* BYMA Headline Styling */
.byma-tag {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: gold;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}
.byma-sub {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}
.byma-sunrise {
  display: block;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgb(255, 255, 255);
}
.byma-copyright {
  font-size: 0.5em;
  transform: translateY(-14px);
  margin-left: 0.01rem;
  display: inline-block;
  opacity: 0.8;
}

/* Newsletter-Karte (jede 7.) */
.newsletter-card {
  background-color: #2a2a2a;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  border-radius: 23px;
}

.newsletter-content h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
}

.newsletter-content p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: #ccc;
}

.newsletter-button {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.6rem 1.2rem;
  background-color: #007aff;
  color: white;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.newsletter-button:hover {
  background-color: #005ecb;
}

/* Basis-Styling für Tags */
.letter-tag {
  background: #333;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Farbcodes je Kategorie */
.tag-mindset {
  color: #3b82f6; /* blau */
}
.tag-time {
  color: #22c55e; /* grün */
}
.tag-health {
  color: #ef4444; /* rot */
}
.tag-skills {
  color: #facc15; /* gold */
}
.tag-social\ capital {
  color: #a855f7; /* violett */
}

.newsletter-headline {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.newsletter-subline {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.newsletter-note {
  font-size: 0.9rem;
  font-style: italic;
  color: #aaa;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.newsletter-input {
  padding: 0.75rem 1.5rem;
  width: 100%;
  max-width: 320px;
  border: none;
  border-radius: 9999px; /* ✅ Pille */
  font-size: 0.95rem;
  text-align: center;
  background-color: #fff;
  color: #111;
  height: 48px; /* ✅ gleiche Höhe wie Button */
}

.newsletter-input::placeholder {
  color: #999;
}

.newsletter-button {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  height: 48px;
  padding: 0 1.2rem;
  background-color: #007aff;
  color: white;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-button:hover {
  background-color: #005ecb;
}
