/* ==========================================================================
   parkenlueneburg.de – Design-Update 2026
   Wird NACH den bestehenden Styles geladen und modernisiert diese.
   Enthält: lokale Schriften, Design-Tokens, Responsive-Fixes, Blog, Anzeigen.
   ========================================================================== */

/* ── Schriften (lokal, DSGVO-konform) ─────────────────────────────────────── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/sora-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/sora-latin-700-normal.woff2') format('woff2'); }

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --blue: #1d4ed8;
  --blue-dark: #102a74;
  --blue-light: #eef3ff;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 40px -12px rgba(15, 23, 42, .22);
  --gutter: clamp(16px, 4vw, 32px);
  --font-head: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.015em; }
img, video, iframe { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; border-radius: 6px; }

/* ── Navigation: sticky mit Glas-Effekt ───────────────────────────────────── */
body > nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.nav-logo { font-family: var(--font-head); letter-spacing: -.02em; }
.nav-links a.nav-blog {
  background: var(--blue); color: #fff !important;
  padding: .45rem .9rem; border-radius: 999px; font-weight: 600;
}
.nav-links a.nav-blog:hover, .nav-links a.nav-blog.active { background: var(--blue-dark); }
.nav-burger { min-width: 44px; min-height: 44px; border-radius: 10px; }
.nav-mobile-link { min-height: 48px; }
.nav-mobile-panel { padding-bottom: env(safe-area-inset-bottom); }

/* Alle anderen <nav>-Elemente (Breadcrumb, Footer) NICHT wie die Hauptnavigation stylen */
nav.breadcrumb, nav.footer-nav, footer nav {
  background: none; border: 0; box-shadow: none; padding: 0;
  position: static; backdrop-filter: none; -webkit-backdrop-filter: none;
}
nav.breadcrumb { opacity: .85; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding-left: var(--gutter); padding-right: var(--gutter); }
.hero h1 { letter-spacing: -.025em; text-wrap: balance; }
.hero-sub { max-width: 62ch; }
.badge { backdrop-filter: blur(6px); }

/* ── Karten & Layout ──────────────────────────────────────────────────────── */
.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.main-grid > *, .content > *, .layout > *, main, aside { min-width: 0; }  /* verhindert seitliches Scrollen auf dem Handy */
.main-grid, .content { padding-left: var(--gutter); padding-right: var(--gutter); }
table { max-width: 100%; }
.card table, .price-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { min-width: 0 !important; }
@media (min-width: 640px) { .card table, .price-table { display: table; } }
.info-value { overflow-wrap: anywhere; }
pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .65rem 1.2rem; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 600; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-ghost:hover { background: var(--blue-light); color: var(--blue-dark); }

/* ── Anzeigenplätze (AdSense) ─────────────────────────────────────────────── */
.ad-slot { margin: 1.75rem 0; min-height: 280px; text-align: center; }
.ad-label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
@media (min-width: 768px) { .ad-slot { min-height: 120px; } }

/* ── Startseite: Ratgeber-Teaser ──────────────────────────────────────────── */
.home-blog { max-width: 1200px; margin: 2rem auto; padding: 0 var(--gutter); }
.home-blog-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.home-blog-head h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.home-blog-head a { font-weight: 600; color: var(--blue); text-decoration: none; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-hero {
  background:
    radial-gradient(1200px 400px at 100% -20%, rgba(96, 165, 250, .35), transparent 60%),
    linear-gradient(135deg, #0b1f5c 0%, #1d4ed8 100%);
  color: #fff;
  padding: clamp(2.25rem, 6vw, 4rem) var(--gutter) clamp(1.75rem, 4vw, 2.5rem);
}
.blog-hero-inner { max-width: 1100px; margin: 0 auto; }
.blog-hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.1; margin: .5rem 0 .6rem; }
.blog-hero-sub { opacity: .9; max-width: 60ch; font-size: clamp(1rem, 2.2vw, 1.1rem); }
.blog-hero .breadcrumb a, .blog-hero .breadcrumb { color: rgba(255, 255, 255, .85); }

.chip-row { display: flex; gap: .5rem; margin-top: 1.4rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: .4rem .95rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-weight: 500; font-size: .92rem;
  border: 1px solid rgba(255, 255, 255, .22);
}
.chip span { opacity: .7; font-size: .8em; }
.chip:hover { background: rgba(255, 255, 255, .22); }
.chip.active { background: #fff; color: var(--blue-dark); }

.blog-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter); }
.blog-empty { color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.post-card, .post-featured {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover, .post-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-media { aspect-ratio: 16 / 9; background: var(--blue-light); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-media--empty {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #dbeafe, #eef2ff 60%, #e0f2fe);
}
.post-featured .post-media img { aspect-ratio: 16 / 9; }
.post-media--empty span {
  font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: #fff;
  width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px;
  background: var(--blue); box-shadow: 0 10px 24px -8px rgba(29, 78, 216, .6);
}
.post-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.post-body h2, .post-body h3 { font-size: 1.12rem; line-height: 1.3; }
.post-body p { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-cat { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--blue-light); padding: .2rem .6rem; border-radius: 999px; }
.post-meta { margin-top: auto; font-size: .82rem; color: var(--muted); }

.post-featured { margin-bottom: 1.5rem; }
@media (min-width: 820px) {
  .post-featured { flex-direction: row; }
  .post-featured .post-media { flex: 0 0 52%; aspect-ratio: auto; min-height: 300px; }
  .post-featured .post-body { padding: 2rem; justify-content: center; }
  .post-featured h2 { font-size: 1.7rem; }
}

.blog-cta {
  margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.blog-cta h2 { font-size: 1.15rem; margin-bottom: .2rem; }
.blog-cta p { color: var(--muted); }
.blog-cta-links { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ── Artikel ──────────────────────────────────────────────────────────────── */
.article { background: var(--surface); }
.article-head { max-width: 760px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) var(--gutter) 1rem; }
.breadcrumb--dark, .breadcrumb--dark a { color: var(--muted) !important; font-size: .88rem; }
.breadcrumb--dark a:hover { color: var(--blue) !important; }
.article-head h1 { font-size: clamp(1.8rem, 5.5vw, 2.7rem); line-height: 1.15; margin: .75rem 0; text-wrap: balance; }
.article-lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: #334155; }
.article-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.article-meta span:not(:last-child)::after { content: '·'; margin-left: 1.1rem; opacity: .6; }
.article-cover { max-width: 1000px; margin: .5rem auto 0; padding: 0 var(--gutter); }
.article-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }

.article-layout { max-width: 760px; margin: 0 auto; padding: 1rem var(--gutter) 3rem; }
.article-toc details {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; margin: 1rem 0 1.5rem;
}
.article-toc summary { font-weight: 700; cursor: pointer; font-family: var(--font-head); }
.article-toc ol { margin: .6rem 0 0 1.2rem; display: grid; gap: .35rem; }
.article-toc a { color: var(--text); text-decoration: none; }
.article-toc a:hover { color: var(--blue); text-decoration: underline; }
@media (min-width: 1180px) {
  .article-layout { max-width: 1100px; display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 2.5rem; }
  .article-toc { position: relative; }
  .article-toc details { position: sticky; top: 90px; margin-top: 0; }
}

.prose { font-size: 1.075rem; line-height: 1.75; color: #1e293b; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); line-height: 1.25; margin-top: 2.2em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.18rem; margin-top: 1.7em; scroll-margin-top: 90px; }
.prose a { color: var(--blue); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--blue); background: var(--blue-light); padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose img { border-radius: var(--radius-sm); }
.prose em:only-child { color: var(--muted); font-size: .9rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: table; }
.prose th, .prose td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg); font-weight: 700; color: var(--ink); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
@media (max-width: 520px) { .prose th, .prose td { padding: .55rem .6rem; font-size: .9rem; } }

.article-note { margin-top: 2.5rem !important; padding: 1rem 1.15rem; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm); font-size: .92rem; }
.tag-list { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-list li { margin: 0 !important; font-size: .82rem; background: var(--bg); border: 1px solid var(--border); padding: .25rem .65rem; border-radius: 999px; color: var(--muted); }

.related { padding-top: 2rem; }
.related-title { font-size: 1.4rem; margin-bottom: 1rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { padding-left: var(--gutter); padding-right: var(--gutter); }
footer a { min-height: 32px; display: inline-flex; align-items: center; }
footer p a { color: #93c5fd; }

/* ── Bewegung reduzieren ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Verschachtelte Innenabstände auf dem Handy vermeiden */
.content .overview-grid { padding-left: 0; padding-right: 0; }
@media (max-width: 600px) {
  .overview-grid { grid-template-columns: 1fr !important; }
  .card { padding: 1.1rem 1rem; }
}

/* Detailseiten: Karte in ihrer Karte halten (vorher absolut am Seitenanfang platziert) */
.card > #map { position: relative; inset: auto; width: 100%; height: 300px; z-index: 0; }
.plg-cluster { background: none !important; border: 0 !important; }

/* Überschriften im farbigen Hero bleiben weiß */
.hero h1, .hero h2, .hero h3 { color: #fff; }
.price-table td, .price-table th { white-space: normal; }

/* Startseite: Karte füllt den ganzen Kartenbereich */
.map-wrap-outer > #map { position: absolute; inset: 0; height: 100% !important; width: 100%; border: 0; border-radius: 0; margin: 0; }
