/* ════════════════════════════════════════════════════════════════════
   BerlinEcho Spielplatz-Artikel · Hybrid-Layout CSS
   Für Einbindung im Theme oder via Pillar-Polish-Plugin
   
   Benötigt: Google Fonts (Fraunces, Inter, JetBrains Mono)
   → Font-Link manuell ins Theme-Header einfügen:
   
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
   ════════════════════════════════════════════════════════════════════ */

:root {
  --be-navy: #1a1a2e; --be-red: #b5001e;
  --ink: #0f1419; --ink-soft: #2d3748; --text: #353a45;
  --muted: #6b7280; --line: #e5e7eb; --line-soft: #f0f2f5;
  --surface: #ffffff; --bg: #fbfaf7; --bg-warm: #f6f1e8;
  --green: #2B7A4B; --green-deep: #1e5a37; --green-soft: #e8f3ec; --green-line: #c8e0d1;
  --amber: #d97706; --amber-soft: #fef3c7;
  --coral: #e85d4c; --coral-soft: #fde4e0;
  --sky: #3b82f6; --sky-soft: #dbeafe;
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04), 0 1px 1px rgba(15, 20, 25, 0.02);
  --shadow: 0 4px 12px rgba(15, 20, 25, 0.06), 0 1px 3px rgba(15, 20, 25, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 20, 25, 0.08), 0 4px 12px rgba(15, 20, 25, 0.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.7; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Preview Header */
.preview-top {
  background: var(--be-navy);
  background-image:
    radial-gradient(ellipse at top right, rgba(181, 0, 30, 0.3), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(43, 122, 75, 0.2), transparent 50%);
  color: #fff; padding: 48px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.preview-top__label {
  display: inline-block; padding: 6px 14px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.preview-top h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 5vw, 48px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px;
}
.preview-top p { font-size: 17px; opacity: 0.8; max-width: 600px; margin: 0 auto; }

/* SEO Badge oben rechts */
.preview-top__seo-badge {
  position: absolute; top: 24px; right: 24px;
  padding: 8px 14px; background: rgba(43, 122, 75, 0.15);
  border: 1px solid rgba(43, 122, 75, 0.4); border-radius: 100px;
  font-size: 12px; font-weight: 600; color: #a8d5b9;
  backdrop-filter: blur(10px);
}

/* Meta Panel */
.preview-divider {
  background: var(--bg-warm); padding: 48px 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.preview-divider__inner { max-width: 760px; margin: 0 auto; }
.preview-divider__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: var(--ink); color: #fff;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 500; letter-spacing: 0.04em; border-radius: 6px;
  margin-bottom: 20px;
}
.preview-divider__badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(43, 122, 75, 0.2);
}
.preview-divider__meta {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.meta-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: baseline;
}
.meta-row:last-child { border-bottom: none; }
.meta-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.meta-row code {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--green-deep); background: var(--green-soft);
  padding: 2px 8px; border-radius: 4px; display: inline-block;
}
.meta-row code.kw { background: var(--amber-soft); color: var(--amber); }
.meta-desc { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* Article */
.sp-article {
  max-width: 760px; margin: 0 auto; padding: 0;
  background: #fff; box-shadow: 0 0 60px rgba(15, 20, 25, 0.04);
}

/* Hero */
.hero {
  position: relative; padding: 56px 40px 48px;
  background: linear-gradient(135deg, #f7f3ea 0%, #fff 60%);
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero__bg {
  position: absolute; top: -100px; right: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(43, 122, 75, 0.08), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.8;
}
.hero__inner { position: relative; z-index: 1; }
.hero__breadcrumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; margin-bottom: 28px; transition: color .15s;
}
.hero__breadcrumb:hover { color: var(--green-deep); }
.hero__kiez {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink); margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.hero__kiez-dot {
  width: 7px; height: 7px; background: var(--coral); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--coral-soft); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}
.hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(34px, 5.5vw, 46px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05;
  color: var(--ink); margin-bottom: 20px; max-width: 620px;
}
.hero__highlight {
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  font-size: 22px; font-weight: 400; line-height: 1.4;
  color: var(--green-deep); margin-bottom: 32px; max-width: 560px;
  padding-left: 20px; border-left: 3px solid var(--green);
}
.hero__age-row { display: flex; gap: 8px; flex-wrap: wrap; }
.age-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; background: var(--green-soft);
  border: 1px solid var(--green-line); border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--green-deep);
}
.age-pill__years {
  background: var(--green); color: #fff; padding: 2px 8px;
  border-radius: 100px; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
}

/* Info Bar */
.info-bar {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 40px; background: var(--ink); color: #fff; flex-wrap: wrap;
}
.info-bar__item {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1; min-width: 140px;
}
.info-bar__label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.info-bar__value { font-size: 14px; font-weight: 500; }
.info-bar__divider { width: 1px; height: 32px; background: rgba(255,255,255,0.15); }
.info-bar__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: var(--green); color: #fff;
  text-decoration: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; transition: all .2s;
  box-shadow: 0 2px 8px rgba(43, 122, 75, 0.3);
}
.info-bar__cta:hover {
  background: var(--green-deep); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 122, 75, 0.4);
}

/* Content Blocks */
.content-block {
  padding: 48px 40px; border-bottom: 1px solid var(--line);
}
.content-block--tinted {
  background: var(--bg-warm);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(217, 119, 6, 0.04), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(232, 93, 76, 0.04), transparent 50%);
}
.content-block:last-of-type { border-bottom: none; }
.section-title {
  font-family: 'Fraunces', Georgia, serif; font-size: 28px;
  font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 24px; position: relative; padding-bottom: 12px;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 3px; background: var(--green); border-radius: 2px;
}
.intro__lead {
  font-family: 'Fraunces', Georgia, serif; font-size: 22px;
  font-weight: 400; line-height: 1.45; color: var(--ink);
  margin-bottom: 20px; letter-spacing: -0.01em;
}
.intro__lead strong { font-weight: 600; color: var(--green-deep); }
.intro p { font-size: 17px; line-height: 1.75; color: var(--text); }
.intro p + p { margin-top: 18px; }

/* Theme Pills */
.theme-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.theme-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 100px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: all .2s; cursor: default;
}
.theme-pill:hover {
  border-color: var(--green); background: var(--green-soft);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.theme-pill__icon { font-size: 18px; line-height: 1; }

/* Theme explanation paragraphs */
.theme-explanation p {
  font-size: 16px; line-height: 1.75; color: var(--text);
  margin-bottom: 16px;
}
.theme-explanation p:last-child { margin-bottom: 0; }
.theme-explanation strong { font-weight: 600; color: var(--ink); }

/* Feature Grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 28px;
}
.feature-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; text-align: center; transition: all .2s;
}
.feature-item:hover {
  border-color: var(--green); background: var(--green-soft);
  transform: translateY(-2px);
}
.feature-item__icon { font-size: 28px; line-height: 1; }
.feature-item__label {
  font-size: 13px; font-weight: 500; color: var(--ink-soft); line-height: 1.3;
}

/* Features Prose (nach dem Grid) */
.content-block > p {
  font-size: 16px; line-height: 1.75; color: var(--text);
}

/* Age Explainer (erweitert) */
.age-explainer { display: flex; flex-direction: column; gap: 18px; }
.age-explainer p {
  font-size: 16px; line-height: 1.75; color: var(--text);
  padding-left: 24px; position: relative;
}
.age-explainer p::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 12px; height: 2px; background: var(--green); border-radius: 1px;
}
.age-explainer strong { font-weight: 600; color: var(--ink); }

/* Tips */
.tips-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.tip-card {
  padding: 24px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; transition: all .2s;
}
.tip-card:hover {
  border-color: var(--amber); box-shadow: var(--shadow); transform: translateY(-2px);
}
.tip-card__icon {
  font-size: 28px; margin-bottom: 12px; display: inline-block;
  padding: 8px; background: var(--amber-soft); border-radius: 10px; line-height: 1;
}
.tip-card__title {
  font-family: 'Fraunces', Georgia, serif; font-size: 17px;
  font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em;
}
.tip-card__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.tips-prose p {
  font-size: 16px; line-height: 1.75; color: var(--text);
}

/* Nearby */
.nearby-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-top: 24px;
}
.nearby-card {
  display: flex; flex-direction: column; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: inherit; transition: all .2s;
  position: relative; overflow: hidden;
}
.nearby-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--green); transform: scaleY(0); transform-origin: top;
  transition: transform .2s;
}
.nearby-card:hover {
  border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px);
}
.nearby-card:hover::before { transform: scaleY(1); }
.nearby-card__name {
  font-family: 'Fraunces', Georgia, serif; font-size: 17px;
  font-weight: 600; color: var(--ink); margin-bottom: 6px; line-height: 1.3;
}
.nearby-card__addr { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.nearby-card__pills {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; flex: 1;
}
.mini-pill {
  font-size: 11px; padding: 3px 9px; background: var(--line-soft);
  color: var(--ink-soft); border-radius: 100px; font-weight: 500;
}
.nearby-card__arrow {
  font-size: 13px; font-weight: 600; color: var(--green-deep); letter-spacing: -0.01em;
}

/* Nearby Prose (darüber) */
.faq-section > p,
.content-block > p {
  font-size: 16px; line-height: 1.75; color: var(--text);
  margin-bottom: 16px;
}
.content-block > p a {
  color: var(--green-deep); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
  font-weight: 500;
}
.content-block > p a:hover { color: var(--amber); }

/* FAQ Section (NEU) */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; transition: all .2s;
}
.faq-item[open] {
  border-color: var(--green-line); box-shadow: var(--shadow);
}
.faq-item__question {
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: 'Fraunces', Georgia, serif; font-size: 17px;
  font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; transition: background .15s;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::after {
  content: '+'; font-size: 24px; font-weight: 300;
  color: var(--green); transition: transform .3s;
  flex-shrink: 0; line-height: 1;
}
.faq-item[open] .faq-item__question::after { transform: rotate(45deg); }
.faq-item__question:hover { background: var(--green-soft); }
.faq-item__answer {
  padding: 0 22px 20px; font-size: 15.5px;
  line-height: 1.7; color: var(--text);
}
.faq-item__answer p strong { font-weight: 600; color: var(--ink); }
.faq-item__answer p a {
  color: var(--green-deep); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
}

/* CTA Box */
.cta-box {
  margin: 0 40px 48px; padding: 32px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  border-radius: 16px; color: #fff;
  display: flex; align-items: center; gap: 24px;
  position: relative; overflow: hidden; flex-wrap: wrap;
}
.cta-box::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.cta-box__content { flex: 1; min-width: 220px; position: relative; }
.cta-box__title {
  font-family: 'Fraunces', Georgia, serif; font-size: 22px;
  font-weight: 700; letter-spacing: -0.015em; margin-bottom: 6px;
}
.cta-box__text { font-size: 14px; opacity: 0.9; line-height: 1.5; }
.cta-box__button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; background: #fff; color: var(--green-deep);
  text-decoration: none; border-radius: 8px;
  font-weight: 600; font-size: 15px; transition: all .2s;
  position: relative; white-space: nowrap;
}
.cta-box__button:hover {
  transform: translateX(4px); box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Article Meta Footer */
.article-meta {
  padding: 32px 40px; background: var(--line-soft);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.article-meta__author { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.article-meta__author strong { color: var(--ink); font-weight: 600; }
.article-meta__avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
.article-meta__role { font-size: 12px; color: var(--muted); }
.article-meta__date { font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

/* Responsive */
@media (max-width: 720px) {
  .hero { padding: 40px 24px 32px; }
  .info-bar { padding: 16px 24px; gap: 12px; }
  .info-bar__divider { display: none; }
  .content-block { padding: 32px 24px; }
  .section-title { font-size: 24px; }
  .intro__lead { font-size: 19px; }
  .hero__highlight { font-size: 18px; }
  .cta-box { margin: 0 24px 32px; padding: 24px; }
  .article-meta { padding: 24px; }
  .meta-row { grid-template-columns: 1fr; gap: 4px; }
  .preview-top__seo-badge { position: static; display: inline-block; margin-top: 12px; }
  .faq-item__question { font-size: 15px; padding: 16px 18px; }
}

/* Animation */
.hero__kiez, .hero__title, .hero__highlight, .hero__age-row {
  opacity: 0; animation: fadeUp 0.6s ease-out forwards;
}
.hero__kiez { animation-delay: 0.05s; }
.hero__title { animation-delay: 0.15s; }
.hero__highlight { animation-delay: 0.25s; }
.hero__age-row { animation-delay: 0.35s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.sp-article + .preview-divider { margin-top: 0; }
body > *:last-child { margin-bottom: 80px; }