/* --- Branding Variables --- */
:root {
  --brand-primary: #0e8f87; /* Smaragdgrün – passt zur Schildkröte 🐢 */
  --brand-primary-600: #0a6e68;
  --brand-secondary: #d96b9b; /* warmer Akzent (Herz) */
  --brand-bg: #f6f9f9; /* helles, warmes Grau */
  --brand-card: #ffffff;
  --brand-text: #1a1f2b;
  --ring: rgba(14, 143, 135, 0.25);
  --brand-600: #0a6e68;
  --brand: #0e8f87; /* Smaragdgrün – Schildkrötenvibe 🐢 */

  --accent: #d96b9b; /* Herz-Akzent */
  --ink: #1a1f2b;
  --bg: #f6f9f9;
  --card: #ffffff;
  --muted: #6b7280;
}

/* --- Base --- */
html,
body {
  height: 100%;
}
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(
      1000px 600px at 10% -10%,
      rgba(14, 143, 135, 0.08),
      transparent 60%
    ),
    radial-gradient(
      800px 500px at 90% 10%,
      rgba(217, 107, 155, 0.06),
      transparent 50%
    ),
    linear-gradient(180deg, var(--brand-bg), #fff 40%);
  color: var(--brand-text);
  -webkit-font-smoothing: antialiased;
}

/* kompakter Kommentar-Button */
.btn.btn-comment {
  padding: 0.12rem 0.5rem !important;
  font-size: 0.85rem !important;
  line-height: 1.1;
}

/***** Navbar *****/
.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-heart {
  font-size: 1.2rem;
}
.brand-turtle {
  font-size: 1.2rem;
}

/***** Hero *****/
.hero {
  position: relative;
  padding: 28px 28px 18px;
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(
    120deg,
    rgba(14, 143, 135, 0.08),
    rgba(217, 107, 155, 0.06)
  );
  border-bottom: 1px solid rgba(14, 143, 135, 0.1);
}
.hero h1 {
  font-weight: 700;
}
.hero small {
  color: #5d6779;
}

/***** Cards *****/
.card {
  border-radius: 1rem;
  border: 1px solid rgba(26, 31, 43, 0.06);
  background: var(--brand-card);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}
.card-header {
  border-bottom-color: rgba(26, 31, 43, 0.06);
  font-weight: 600;
  background: linear-gradient(180deg, #fff, #fafbfb);
}

/***** Buttons *****/
.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary-600);
}
.btn-primary:hover {
  background: var(--brand-primary-600);
  border-color: var(--brand-primary-600);
}
.btn-success {
  background: #1ea672;
  border-color: #17865c;
}
.btn-success:hover {
  background: #17865c;
}
.btn-danger {
  background: #d55050;
  border-color: #b84545;
}
.btn-danger:hover {
  background: #b84545;
}
.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-outline-primary:hover {
  color: #fff;
  background: var(--brand-primary);
}

/***** Badges / Labels *****/
.badge-soft {
  font-size: small;
  background: rgba(14, 143, 135, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(14, 143, 135, 0.25);
  border-radius: 999px;
  padding: 0.08rem 0.35rem;
  font-weight: 600;
}

/***** Media *****/
video,
audio,
img {
  border-radius: 0.75rem;
}

.badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--brand-600);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 22px;
}
@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/***** Small helpers *****/
.shadow-soft {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.text-muted-2 {
  color: #6b7280;
}

/***** Footer note *****/
.footer-note {
  color: #707985;
  font-size: 0.95rem;
}

/* Steckbrief-Karten klar als klickbar markieren */
/* --- Steckbrief: Layout-Container --- */
/* === Steckbrief: Layout & Interaktion (FIXED) === */
.profiles {
  position: relative;
  display: flex; /* kein Inline-Flow -> besser kontrollierbar */
  flex-wrap: nowrap; /* nicht umbrechen */
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap; /* Sicherheitsnetz: keine Inline-Zeilenumbrüche */
}

/* Karten */
.profile-card {
  text-decoration: none;
  color: var(--brand-text);
  display: flex;
  flex-direction: column;
  align-items: center; /* Name zentriert */
  text-align: center;
  gap: 0.5rem;
  transition: transform 0.18s ease, filter 0.18s ease;
  position: relative;
  width: fit-content; /* nur so breit wie Inhalt */
}

/* Kreise (Desktop-Basis) */
.profile-circle {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 4px solid var(--brand-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Überlappung */
.profile-card:first-child {
  margin-right: -28px;
  z-index: 2;
}
.profile-card:last-child {
  margin-left: -12px;
}

/* CTA-Overlay */
.profile-cta {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  color: #fff;
  text-align: center;
  padding: 0.4rem 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.profile-card:hover .profile-cta,
.profile-card:focus .profile-cta {
  opacity: 1;
}

/* Name exakt unter dem Kreis ausrichten */
.profile-name {
  font-weight: 700;
  letter-spacing: 0.2px;
  width: 160px; /* gleiche Breite wie Kreis */
  text-align: center;
}

/* ===== Mobile Tweaks ===== */

/* Etwas kleinere Kreise auf schmalen Phones */
@media (max-width: 420px) {
  .profile-circle {
    width: 140px;
    height: 140px;
  }
  .profile-name {
    width: 140px;
  }
  .profile-card:first-child {
    margin-right: -28px;
  }
  .profile-card:last-child {
    margin-left: -12px;
  }
}

/* Minimal-Fallback: extrem schmale Screens -> untereinander */
@media (max-width: 340px) {
  .profiles {
    flex-wrap: wrap; /* darf umbrechen */
    row-gap: 12px;
    white-space: normal;
  }
  .profile-card:first-child {
    margin-right: 0;
  }
  .profile-card:last-child {
    margin-left: 0;
  }
}

/***** Steckbrief (vereinheitlicht) *****/
.sb-card {
  border-radius: 1rem;
  border: 1px solid rgba(26, 31, 43, 0.06);
  background: var(--brand-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Header / Hero des Steckbriefs */
.sb-hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(
    120deg,
    rgba(14, 143, 135, 0.08),
    rgba(217, 107, 155, 0.06)
  );
  border-bottom: 1px solid rgba(14, 143, 135, 0.1);
}

/* Avatar (Icon oder Bild) */
.sb-avatar {
  width: 110px;
  height: 110px;
  border-radius: 1.25rem;
  background: #fff;
  border: 2px solid rgba(14, 143, 135, 0.25);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.sb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  border: 2px solid var(--ring);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Titel + Tagline + Badges */
.sb-title h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
}
.sb-tagline {
  color: #6b7280;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}
.sb-badges {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}
.title .tagline {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
}

/* Badge-Variante passend zu deiner .badge-soft */
.badge-soft-brand {
  background: rgba(14, 143, 135, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(14, 143, 135, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Grid der Inhalte */
.sb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  padding: 1.1rem;
}
@media (max-width: 820px) {
  .sb-grid {
    grid-template-columns: 1fr;
  }
  .sb-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Sektionen */
.sb-section {
  border: 1px dashed rgba(14, 143, 135, 0.18);
  border-radius: 0.9rem;
  padding: 1rem 0.9rem 0.7rem;
  background: #fff;
}
.sb-section > h2 {
  font-size: 1rem;
  margin: 0 0 0.6rem;
  color: var(--brand-primary-600);
  letter-spacing: 0.3px;
}

.section {
  border: 1px dashed rgba(14, 143, 135, 0.18);
  border-radius: 16px;
  padding: 16px 16px 10px;
  background: #fff;
}
.section h2 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--brand-600);
  letter-spacing: 0.3px;
}
.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 14px;
}
.kv .k {
  color: var(--muted);
}
.list {
  margin: 0;
  padding-left: 18px;
}
.emoji {
  font-size: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(217, 107, 155, 0.1);
  color: #a33a63;
  border: 1px solid rgba(217, 107, 155, 0.25);
}
.quote {
  background: linear-gradient(90deg, rgba(14, 143, 135, 0.08), transparent);
  border-left: 4px solid var(--brand);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: #0b3c39;
}

/* Key-Value Tabelle */
.sb-kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem 0.9rem;
}
.sb-kv .k {
  color: #6b7280;
}

/* Listen */
.sb-list {
  margin: 0;
  padding-left: 1.1rem;
}

/* Pill/Label für Regeln o.ä. */
.sb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 999px;
  background: rgba(217, 107, 155, 0.1);
  color: #a33a63;
  border: 1px solid rgba(217, 107, 155, 0.25);
}

/* Zitat/Vibe */
.sb-quote {
  background: linear-gradient(90deg, rgba(14, 143, 135, 0.08), transparent);
  border-left: 4px solid var(--brand-primary);
  padding: 0.8rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  color: #0b3c39;
}

/* Footer mit Druck-Button (kannst du auch mit .btn-primary nutzen) */
.sb-footer {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  padding: 0 1.1rem 1.1rem;
}

.btn {
  border: 1px solid var(--brand-600);
  color: #fff;
  background: var(--brand);
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(14, 143, 135, 0.25);
}
.btn:focus,
.btn:hover {
  background: var(--brand-600);
}

/***** Newspaper Styles *****/

/* 1) Zeitung: klassisch */
.news-card {
  border: 1px solid rgba(26, 31, 43, 0.2);
  background: #fffdf7;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
}

/* Einfache Farb-Themen (ohne Variablen) */
.news-card.blue {
  background: #e6f7ff;
  border-color: rgba(14, 165, 233, 0.25);
}
.news-card.rose {
  background: #fff0f4;
  border-color: rgba(163, 58, 99, 0.25);
}
.news-card.emerald {
  background: #eefaf7;
  border-color: rgba(14, 143, 135, 0.25);
}
.news-card.gold {
  background: #fff7e6;
  border-color: rgba(181, 133, 0, 0.25);
}

/* Optional: Akzentfarbe im Inhalt mit einfärben */
.news-card.blue .news-kicker {
  color: #0ea5e9;
}
.news-card.rose .news-kicker {
  color: #a33a63;
}
.news-card.emerald .news-kicker {
  color: #0e8f87;
}
.news-card.gold .news-kicker {
  color: #b58500;
}

.news-card.blue .news-header {
  border-bottom-color: rgba(14, 165, 233, 0.25);
}
.news-card.rose .news-header {
  border-bottom-color: rgba(163, 58, 99, 0.25);
}
.news-card.emerald .news-header {
  border-bottom-color: rgba(14, 143, 135, 0.25);
}
.news-card.gold .news-header {
  border-bottom-color: rgba(181, 133, 0, 0.25);
}

.news-card .news-header {
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(26, 31, 43, 0.12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.news-card .news-body {
  padding: 1rem;
}
.news-kicker {
  color: #a33a63;
  font-weight: 700;
  margin-right: 0.5rem;
}
/* Moderne Lösung: echte 2-Zeilen-Initiale */
.news-dropcap::first-letter {
  -webkit-initial-letter: 2;
  initial-letter: 2;
  font-weight: 700;
  color: var(--brand-primary-600);
  margin-right: 0.3rem;
}

/* Fallback für Browser ohne initial-letter */
@supports not (initial-letter: 2) {
  .news-dropcap::first-letter {
    float: left;
    /* grob so groß, dass es ~2 Zeilen füllt; ggf. feinjustieren */
    font-size: 2.8rem;
    line-height: 1;
    margin: 0.1rem 0.3rem 0 0;
    font-weight: 700;
    color: var(--brand-primary-600);
  }
}

/* 2) Polaroid-Foto-Box */
.polaroid {
  background: #fff;
  border: 1px solid rgba(26, 31, 43, 0.12);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  padding: 0.6rem 0.6rem 1.1rem;
  text-align: center;
  transform: rotate(-1.2deg);
}
.polaroid img {
  width: 100%;
  border-radius: 0.4rem;
  display: block;
}
.polaroid .caption {
  margin-top: 0.6rem;
  font-weight: 600;
  color: #333;
}
.polaroid.polaroid-right {
  transform: rotate(1.3deg);
}

/* 3) Ribbon-Box (Band oben) */
.ribbon-card {
  position: relative;
  border: 1px solid rgba(26, 31, 43, 0.12);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.ribbon-card .ribbon {
  position: absolute;
  top: 0.9rem;
  left: -6px;
  background: var(--brand-primary);
  color: #fff;
  padding: 0.25rem 0.6rem;
  font-weight: 700;
  border-radius: 0 0.4rem 0.4rem 0;
  box-shadow: 0 4px 10px rgba(14, 143, 135, 0.25);
}
.ribbon-card .content {
  padding: 1rem 1rem 1.1rem;
}

/* 4) Comic/Halftone */
.comic-card {
  border-radius: 0.8rem;
  border: 2px solid #000;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(0, 0, 0, 0.06),
      transparent 40%
    ),
    radial-gradient(circle at 80% 30%, rgba(0, 0, 0, 0.06), transparent 35%),
    #fff;
  box-shadow: 8px 8px 0 #000;
}
.comic-card .comic-header {
  padding: 0.8rem 1rem;
  border-bottom: 2px solid #000;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.comic-bubble {
  display: inline-block;
  background: #fff8d6;
  border: 2px solid #000;
  border-radius: 1rem;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
}

/* Kleinere Hilfen */
.byline {
  color: #6b7280;
  font-style: italic;
}
/* Standard (groß, vollbreit) bleibt wie gehabt */
.figure img {
  width: 100%;
  border-radius: 0.5rem;
  height: auto;
}

/* Kleine Begleitbilder rechts vom Text */
.figure--inline-right {
  float: right;
  max-width: 320px; /* oder 40% */
  width: 40%;
  margin: 0 0 1rem 1rem; /* Abstand zum Text */
}
.figure--inline-right img {
  width: 100%;
  border-radius: 0.5rem;
  height: auto;
}

/* Variante links */
.figure--inline-left {
  float: left;
  max-width: 320px;
  width: 40%;
  margin: 0 1rem 1rem 0;
}
.figure--inline-left img {
  width: 100%;
  border-radius: 0.5rem;
  height: auto;
}

/* Mobile: Floats auflösen */
@media (max-width: 768px) {
  .figure--inline-right,
  .figure--inline-left {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 1rem 0;
  }
}

.hr-soft {
  border: 0;
  border-top: 1px dashed rgba(26, 31, 43, 0.2);
  margin: 0.8rem 0;
}
