/* ============================================================
   TechPaten Blog – Premium Design-System
   ============================================================ */

/* ── 1. CSS-Variablen ────────────────────────────────────── */
:root {
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;

  --color-bg:        #f8fafc; /* slate-50 */
  --color-surface:   #ffffff;
  --color-border:    #e2e8f0; /* slate-200 */
  --color-text:      #0f172a; /* slate-900 */
  --color-muted:     #64748b; /* slate-500 */
  --color-subtle:    #94a3b8; /* slate-400 */

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Fluid type – min @ 375px, max @ 1280px */
  --text-sm:   clamp(0.875rem, 0.85rem + 0.1vw,  1rem);
  --text-base: clamp(1.0625rem,1.0rem  + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl:   clamp(1.25rem,  1.1rem  + 0.6vw,  1.5rem);
  --text-2xl:  clamp(1.5rem,   1.2rem  + 1.2vw,  1.875rem);
  --text-3xl:  clamp(1.75rem,  1.3rem  + 1.8vw,  2.25rem);
  --text-4xl:  clamp(2rem,     1.4rem  + 2.5vw,  2.875rem);
  --text-5xl:  clamp(2.25rem,  1.5rem  + 3vw,    3.5rem);
}

/* ── 2. Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

/* Text-Logo Fallback (wenn kein Bild-Logo vorhanden) */
.tp-logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

/* ── 3. Layout ───────────────────────────────────────────── */
.tp-container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.tp-container--narrow {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.pt-header { padding-top: 4.5rem; }
/* Extra bottom padding on mobile for sticky bar */
@media (max-width: 767px) { body { padding-bottom: 4.5rem; } }

/* ── 4. Lese-Fortschrittsbalken ──────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-500));
  z-index: 60;
  transition: width 0.1s linear;
}

/* ── 5. Breadcrumb ───────────────────────────────────────── */
.tp-breadcrumb {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.tp-breadcrumb a { color: var(--brand-600); text-decoration: none; font-weight: 500; }
.tp-breadcrumb a:hover { text-decoration: underline; }
.tp-breadcrumb__sep { color: var(--color-border); }

/* ── 6. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
  box-shadow: 0 2px 12px rgba(37,99,235,.35);
}
.btn--primary:hover {
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,.45);
  transform: translateY(-1px);
}

.btn--call {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 2px 12px rgba(22,163,74,.3);
}
.btn--call:hover {
  color: #fff;
  box-shadow: 0 4px 20px rgba(22,163,74,.4);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--brand-700);
  border: 2px solid var(--brand-700);
}
.btn--outline:hover { background: var(--brand-50); color: var(--brand-700); }

.btn--ghost {
  background: white;
  color: #374151;
  border: 1.5px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.btn--ghost:hover { background: #f8fafc; }

.btn--lg { font-size: var(--text-lg); padding: 1.0625rem 2.25rem; }
.btn--full { width: 100%; }

/* ── 7. Trust-Badges ─────────────────────────────────────── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.75rem;
  justify-content: center;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
}
.trust-item::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── 8. Stadt/Blog Übersicht – Hero ──────────────────────── */
.listing-hero {
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 60%, #06b6d4 100%);
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.listing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.listing-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}
.listing-hero__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.listing-hero__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  max-width: 46ch;
  margin-inline: auto;
  line-height: 1.65;
}

/* ── 9. Stadt-Karten ─────────────────────────────────────── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
}
.city-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.city-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  transform: translateY(-4px);
}
.city-card__img-wrap {
  overflow: hidden;
  height: 9rem;
  position: relative;
}
.city-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.city-card:hover .city-card__img { transform: scale(1.06); }
.city-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.4) 0%, transparent 60%);
}
.city-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.city-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.city-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0.875rem;
}
.city-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-600);
}
.city-card__cta::after { content: '→'; transition: transform 0.2s; }
.city-card:hover .city-card__cta::after { transform: translateX(3px); }

/* ── 10. Post-Karten ─────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}
.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  position: relative;
}
.post-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  transform: translateY(-5px);
}
.post-card__img-wrap {
  overflow: hidden;
  height: 13rem;
  position: relative;
  background: linear-gradient(135deg, var(--brand-100), #e0f2fe);
}
.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.post-card:hover .post-card__img { transform: scale(1.07); }
.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
  flex: 1;
}
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.125rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.post-card__link {
  font-weight: 700;
  color: var(--brand-600);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.post-card__link::after { content: '→'; transition: transform 0.2s; }
.post-card:hover .post-card__link::after { transform: translateX(3px); }

/* ── 11. Artikel-Hero (Post-Seite) ───────────────────────── */
.post-hero {
  position: relative;
  width: 100%;
  min-height: min(58vh, 500px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-800) 0%, #0c4a6e 100%);
}
.post-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.93) 0%,
    rgba(2, 6, 23, 0.65) 45%,
    rgba(2, 6, 23, 0.25) 100%
  );
}
.post-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 3.5rem);
  color: white;
}
.post-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}
.post-hero__breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 500;
}
.post-hero__breadcrumb a:hover { color: white; text-decoration: underline; }
.post-hero__breadcrumb span.sep { color: rgba(255,255,255,0.35); }
.post-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.post-hero__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}
.post-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ── 12. Post-Layout (Artikel + Sidebar) ─────────────────── */
.post-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 3rem;
}
@media (min-width: 1024px) {
  .post-body { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3rem; }
}

/* Stadt-Intro-Box */
.post-intro-box {
  display: flex;
  gap: 1rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--brand-600);
  border-radius: 0 0.875rem 0.875rem 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: var(--text-base);
  color: #1e3a5f;
  line-height: 1.7;
}
.post-intro-box__icon { flex-shrink: 0; font-size: 1.25rem; }

/* Prose – Artikel-Inhalt aus DB */
.blog-prose {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
}
.blog-prose > * + * { margin-top: 1.375rem; }
.blog-prose h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--color-border);
  line-height: 1.25;
}
.blog-prose h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.blog-prose h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.blog-prose p { margin: 0; }
.blog-prose ul, .blog-prose ol {
  padding-left: 1.625rem;
}
.blog-prose li { margin: 0.45rem 0; }
.blog-prose ul { list-style: none; padding-left: 0; }
.blog-prose ul li {
  padding-left: 1.5rem;
  position: relative;
}
.blog-prose ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-600);
  font-weight: 900;
  font-size: 0.85rem;
  top: 0.15em;
}
.blog-prose ol { counter-reset: item; list-style: none; padding-left: 0; }
.blog-prose ol li {
  counter-increment: item;
  padding-left: 2.25rem;
  position: relative;
}
.blog-prose ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.625rem;
  height: 1.625rem;
  background: var(--brand-600);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-prose strong { font-weight: 700; color: var(--color-text); }
.blog-prose em { font-style: italic; }
.blog-prose code {
  background: #f1f5f9;
  padding: 0.2rem 0.45rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
  font-family: 'Fira Code', 'Consolas', monospace;
  color: #be185d;
}
.blog-prose pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}
.blog-prose pre code { background: none; padding: 0; color: inherit; font-size: 0.9em; }
.blog-prose img {
  border-radius: 1rem;
  width: 100%;
  height: auto;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.blog-prose a { color: var(--brand-600); font-weight: 500; }
.blog-prose a:hover { text-decoration: underline; }
.blog-prose blockquote {
  border-left: 4px solid var(--brand-500);
  background: var(--brand-50);
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.875rem 0.875rem 0;
  margin: 2rem 0;
  color: #1e3a5f;
  font-style: italic;
  font-size: var(--text-lg);
}
.blog-prose table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: var(--text-sm); }
.blog-prose th, .blog-prose td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}
.blog-prose th { background: #f8fafc; font-weight: 700; }
.blog-prose tr:nth-child(even) td { background: #fafafa; }

/* Info-Box innerhalb von Artikeln */
.blog-prose .info-box,
.blog-prose .tip-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 0 0.875rem 0.875rem 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

/* ── 13. Inline-CTA (nach Artikel) ───────────────────────── */
.cta-block {
  border-radius: 1.5rem;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  margin-top: 3rem;
}
.cta-block--blue {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(37,99,235,.35);
}
.cta-block--warm {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1.5px solid #fed7aa;
  color: var(--color-text);
}
.cta-block__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.75;
}
.cta-block--blue .cta-block__eyebrow { color: rgba(255,255,255,0.8); }
.cta-block--warm .cta-block__eyebrow { color: #92400e; opacity: 1; }
.cta-block__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}
.cta-block--blue .cta-block__title { color: white; }
.cta-block__text {
  font-size: var(--text-base);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 44ch;
  margin-inline: auto;
}
.cta-block--blue .cta-block__text { color: rgba(255,255,255,0.85); }
.cta-block--warm .cta-block__text { color: #78350f; }
.cta-block__trust {
  margin-bottom: 1.75rem;
}
.cta-block--blue .trust-item { color: rgba(255,255,255,0.8); }
.cta-block--blue .trust-item::before { background: rgba(255,255,255,0.2); color: white; }
.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}
.cta-block--blue .btn--ghost { border-color: rgba(255,255,255,0.4); color: white; background: rgba(255,255,255,0.12); }
.cta-block--blue .btn--ghost:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 540px) {
  .cta-block__actions { flex-direction: column; }
  .cta-block__actions .btn { width: 100%; }
}

/* ── 14. Sticky Sidebar ──────────────────────────────────── */
.cta-sidebar { position: sticky; top: 5.5rem; }
.cta-sidebar__card {
  background: var(--color-surface);
  border: 2px solid var(--brand-600);
  border-radius: 1.5rem;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(37,99,235,.12);
}
.cta-sidebar__eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.625rem;
}
.cta-sidebar__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.cta-sidebar__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 1.375rem;
}
.cta-sidebar__phone {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--brand-700);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-sidebar__phone:hover { color: var(--brand-600); text-decoration: underline; }
.cta-sidebar__trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 1.25rem;
  text-align: left;
}
.cta-sidebar__divider {
  height: 1px;
  background: var(--color-border);
  margin: 1.25rem 0;
}

/* ── 15. Related Posts ───────────────────────────────────── */
.related-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
}
.related-section__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.related-section__sub {
  font-size: var(--text-base);
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* ── 16. Footer ──────────────────────────────────────────── */
.tp-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 0;
}
.tp-footer__cta {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
}
.tp-footer__cta-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.tp-footer__cta-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.75rem;
  max-width: 40ch;
  margin-inline: auto;
}
.tp-footer__cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}
.tp-footer__inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .tp-footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.tp-footer__copy { font-size: var(--text-sm); }
.tp-footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.tp-footer__links a {
  font-size: var(--text-sm);
  color: #94a3b8;
  text-decoration: none;
}
.tp-footer__links a:hover { color: white; }

/* ── 17. Responsive fixes ────────────────────────────────── */
@media (max-width: 1023px) {
  .cta-sidebar { position: static; }
}
@media (max-width: 639px) {
  .listing-hero__title { letter-spacing: -0.015em; }
  .post-hero__title { letter-spacing: -0.015em; }
}

/* ═══════════════════════════════════════════════════════════
   ARTIKEL-KOMPONENTEN (für content_html aus der Datenbank)
   Alle Klassen werden direkt im HTML des Artikels verwendet.
   ═══════════════════════════════════════════════════════════ */

/* ── Inhaltsverzeichnis ──────────────────────────────────── */
.blog-prose .toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--brand-600);
  border-radius: 0 1rem 1rem 0;
  padding: 1.5rem 1.75rem;
  margin: 0 0 2.5rem;
}
.blog-prose .toc__title {
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 0.875rem;
}
.blog-prose .toc ol {
  counter-reset: toc;
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-prose .toc li {
  counter-increment: toc;
  padding: 0.3rem 0 0.3rem 2rem;
  position: relative;
  margin: 0;
}
.blog-prose .toc li::before {
  content: counter(toc) '.';
  position: absolute;
  left: 0;
  color: var(--brand-600);
  font-weight: 700;
  font-size: 0.875rem;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline;
  top: auto;
}
.blog-prose .toc a {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}
.blog-prose .toc a:hover { color: var(--brand-600); text-decoration: underline; }

/* ── Callout-Boxen ───────────────────────────────────────── */
.blog-prose .callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.875rem;
  margin: 2rem 0;
  font-size: var(--text-base);
  line-height: 1.65;
}
.blog-prose .callout__icon { flex-shrink: 0; font-size: 1.25rem; line-height: 1.65; }
.blog-prose .callout__body { flex: 1; }
.blog-prose .callout__body strong { display: block; font-weight: 700; margin-bottom: 0.25rem; }

.blog-prose .callout--tip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.blog-prose .callout--tip .callout__body strong { color: #15803d; }

.blog-prose .callout--info {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.blog-prose .callout--info .callout__body strong { color: var(--brand-700); }

.blog-prose .callout--warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.blog-prose .callout--warning .callout__body strong { color: #92400e; }

.blog-prose .callout--danger {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}
.blog-prose .callout--danger .callout__body strong { color: #be123c; }

/* ── Status-Box (Aktualitäts-Hinweis) ────────────────────── */
.blog-prose .status-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid #6ee7b7;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: #065f46;
}
.blog-prose .status-box__icon { font-size: 1.375rem; flex-shrink: 0; }
.blog-prose .status-box__body strong { display: block; font-weight: 700; margin-bottom: 0.25rem; color: #065f46; }

/* ── Schritt-Container (für ol li visuell aufwerten) ─────── */
.blog-prose .steps { list-style: none; padding: 0; counter-reset: steps; margin: 1.5rem 0; }
.blog-prose .steps > li {
  counter-increment: steps;
  display: flex;
  gap: 1.125rem;
  padding: 1.25rem 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1.5rem;
}
.blog-prose .steps > li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.875rem;
  top: auto;
  position: static;
}
.blog-prose .steps > li strong { color: var(--color-text); }

/* ── Vergleichstabelle / Pros-Cons ──────────────────────── */
.blog-prose .pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 540px) { .blog-prose .pros-cons { grid-template-columns: 1fr; } }
.blog-prose .pros-cons__col {
  border-radius: 1rem;
  padding: 1.25rem;
}
.blog-prose .pros-cons__col--pro { background: #f0fdf4; border: 1px solid #bbf7d0; }
.blog-prose .pros-cons__col--con { background: #fff1f2; border: 1px solid #fecdd3; }
.blog-prose .pros-cons__title {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-prose .pros-cons__col--pro .pros-cons__title { color: #15803d; }
.blog-prose .pros-cons__col--con .pros-cons__title { color: #be123c; }

/* ── Code-Block (terminal-style) ─────────────────────────── */
.blog-prose .cmd {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.875rem;
  padding: 1.25rem 1.5rem;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
}
.blog-prose .cmd::before {
  content: '$ Terminal';
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.blog-prose .cmd code { background: none; padding: 0; color: #86efac; font-size: inherit; }

/* ── Kennzahlen / Fact-Box ───────────────────────────────── */
.blog-prose .fact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.blog-prose .fact {
  flex: 1;
  min-width: 140px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}
.blog-prose .fact__value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--brand-700);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.375rem;
}
.blog-prose .fact__label { font-size: var(--text-sm); color: var(--color-muted); }

/* ── Legacy-Overrides: alte Tailwind-Struktur neutralisieren ─ */
/* Falls der Sanitizer in PHP doch mal was übersieht */
.blog-prose > div,
.blog-prose article,
.blog-prose section {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  border: none !important;
}
