/* ==========================================================================
   Puels.legal · Blog · Editorial styles
   ========================================================================== */

/* ---------- HUB ---------- */
.blog-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 4rem);
  text-align: left;
}
.blog-hero h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0.65rem 0 0;
}
.blog-hero .lead {
  max-width: 60ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
}

.blog-grid-section {
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}

.mag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s;
  box-shadow: 0 10px 28px -16px rgba(15,17,21,0.10);
}
.mag-card:hover {
  transform: translateY(-4px);
  border-color: rgba(176,136,86,0.45);
  box-shadow: 0 24px 50px -22px rgba(15,17,21,0.20),
              0 8px 18px -8px rgba(176,136,86,0.18);
}

.mag-card--feature { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .mag-card--feature {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }
  .mag-card--feature .mag-card-cover { flex: 0 0 50%; max-height: 360px; }
  .mag-card--feature .mag-card-body { flex: 1 1 50%; padding: clamp(2rem, 3vw, 2.75rem); }
  .mag-card--feature .mag-card-title { font-size: clamp(1.6rem, 2.2vw, 2rem); }
}

.mag-card-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.mag-card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.mag-card-cover img,
.mag-card-cover source {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.mag-card:hover .mag-card-cover img { transform: scale(1.04); }

.mag-card-cover-placeholder {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(212,179,106,0.16), transparent 60%),
    var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mag-card-cover-placeholder .placeholder-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.mag-card-body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1 1 auto;
}

.mag-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

.mag-card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--navy);
  margin: 0;
}

.mag-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.mag-card-meta {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.mag-card-meta .sep { opacity: 0.4; }

.mag-card--soon { opacity: 0.85; }
.mag-card--soon:hover { transform: translateY(-2px); }

/* ---------- COMPACT CARDS (Blog-Migration) ----------
   Variante für die ~50 Artikel ohne eigenes Cover-Bild. Statt Foto ein
   ruhiger, farbig getönter Initial-Tile — passt zum Editorial-Look und
   bleibt im Hover dezent lebendig. */
.mag-card--compact .mag-card-cover-placeholder {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.mag-card--compact .mag-card-cover-placeholder .placeholder-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3.2rem;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}
.mag-card--compact .mag-card-cover-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(50% 70% at 80% 80%, rgba(212,179,106,0.16), transparent 65%);
  pointer-events: none;
}

/* Drei Farbtöne, die zur bestehenden Palette passen. */
.mag-cover--navy {
  background: linear-gradient(135deg, #1F3158 0%, #14213D 60%, #0D1830 100%);
}
.mag-cover--gold {
  background: linear-gradient(135deg, #C9A871 0%, #B08856 55%, #936D40 100%);
}
.mag-cover--deep {
  background: linear-gradient(135deg, #2C2A47 0%, #1A1A2E 55%, #0D1422 100%);
}

.mag-card--compact .mag-card-title {
  font-size: 1.05rem;
  line-height: 1.3;
}
.mag-card--compact .mag-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.5;
}
.mag-card--compact .mag-card-body {
  padding: 1.1rem 1.3rem 1.4rem;
  gap: 0.45rem;
}
.mag-card--compact .mag-card-meta {
  padding-top: 0.6rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}
.mag-card--compact:hover .mag-card-meta { color: var(--navy); }

/* Grid-Verdichtung auf großen Screens — mehr Kacheln pro Reihe sichtbar */
@media (min-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* ---------- ARTICLE ---------- */
.mag-article {
  background: #FFFFFF;
}

.mag-article-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(212,179,106,0.06), transparent 60%),
    var(--bg-cream);
  border-bottom: 1px solid var(--border-soft);
}
.mag-breadcrumb { margin-bottom: 1.25rem; }
.mag-breadcrumb a {
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.mag-breadcrumb a:hover { color: var(--navy); }

.mag-article-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0.5rem 0 0;
  max-width: 22ch;
}
.mag-article-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold); }

.mag-article-deck {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 1.5rem 0 0;
  max-width: 56ch;
}

.mag-article-byline {
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mag-article-byline strong { color: var(--navy); font-weight: 600; }
.mag-article-byline .sep { opacity: 0.4; }

.mag-article-cover {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  max-width: 1080px;
}
.mag-article-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 24px 60px -25px rgba(15,17,21,0.30);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mag-article-body {
  max-width: 720px;
  margin: clamp(3rem, 5vw, 4rem) auto;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--text);
}

.mag-article-body p { margin: 1.4em 0; }

.mag-article-body h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 3rem 0 1rem;
}

.mag-article-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 2.25rem 0 0.5rem;
}

.mag-article-body strong { color: var(--navy); font-weight: 700; }

.mag-article-list {
  margin: 1.4em 0;
  padding-left: 1.5rem;
}
.mag-article-list li {
  margin: 0.55em 0;
  padding-left: 0.4rem;
}
ol.mag-article-list { padding-left: 1.5rem; }

/* Drop cap */
.mag-article-body .dropcap { position: relative; }
.mag-article-body .dc {
  float: left;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 5.4rem;
  line-height: 0.85;
  margin: 0.05em 0.7rem 0 0;
  color: var(--gold);
}
.mag-article-body .dropcap::after {
  content: "";
  display: block;
  clear: left;
  height: 0;
}

/* Pull quotes */
.mag-article-body .pull-quote {
  margin: 2.5rem 0;
  padding: 0.5rem 0 0.5rem 1.6rem;
  border-left: 3px solid var(--gold);
}
.mag-article-body .pull-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.4;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.005em;
}

/* CTA at end */
.mag-article-cta {
  max-width: 880px;
  margin: 0 auto clamp(4rem, 6vw, 5rem);
}
.mag-cta-card {
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(212,179,106,0.10), transparent 60%),
    #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 18px 40px -22px rgba(15,17,21,0.18);
}
.mag-cta-card .eyebrow { color: var(--gold); }
.mag-cta-card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0.4rem 0 0.75rem;
}
.mag-cta-card p {
  color: var(--text-muted);
  margin: 0 0 1.6rem;
  max-width: 56ch;
  line-height: 1.6;
}
.mag-cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .mag-article-body { font-size: 1rem; line-height: 1.7; }
  .mag-article-body .dc { font-size: 4.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mag-card, .mag-card-cover img { transition: none; }
}
