/* The Black Swan — Shared stylesheet for dynamic pages
   Design system mirrors the homepage (Playfair Display + Source Serif 4, black/gold). */

:root {
  --ink:        #0a0a0a;
  --ink-2:      #1a1a1a;
  --ink-soft:   #4a4a4a;
  --paper:      #ffffff;
  --paper-warm: #f7f5f2;
  --line:       #e6e2d8;
  --gold:       #c9a84c;
  --gold-deep:  #b8960c;

  --serif-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif-body:    "Source Serif 4", Georgia, "Times New Roman", serif;

  --maxw: 900px;
  --maxw-prose: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ───────── Navigation (matches homepage) ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif-display);
  font-size: 19px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; color: var(--ink);
}
.nav-brand img { width: auto; height: 30px; display: block; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-family: var(--serif-body);
  font-size: 15px; font-weight: 500;
  text-decoration: none; color: var(--ink-2);
  transition: color 180ms;
}
.nav-link:hover { color: var(--gold-deep); }
.nav-phone {
  font-family: var(--serif-body);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  color: var(--gold-deep);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 180ms;
}
.nav-phone:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--serif-body);
  font-size: 15px; font-weight: 500;
  text-decoration: none; color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 20px;
  border-radius: 4px;
  transition: background 180ms, border-color 180ms, color 180ms, transform 180ms;
}
.nav-cta:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
  transform: translateY(-1px);
}

/* Burger-Button (mobile) */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 4px;
  transition: background 180ms;
}
.nav-burger:hover { background: rgba(20, 24, 29, 0.05); }
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transform-origin: center;
  transition: transform 220ms, opacity 200ms;
}

@media (max-width: 720px) {
  .nav-inner { height: 64px; }
  .nav-burger { display: flex; }

  .nav-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 28px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 220ms, opacity 220ms, visibility 220ms;
  }
  .nav[data-open="true"] .nav-right {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-right .nav-link,
  .nav-right .nav-phone {
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-right .nav-cta {
    margin-top: 18px;
    text-align: center;
    padding: 14px 24px;
    font-size: 15px;
  }

  .nav[data-open="true"] .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav[data-open="true"] .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav[data-open="true"] .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ───────── Page wrapper ───────── */
.page { padding: 0; }

/* ───────── Headings & body text ───────── */
h1 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: var(--ink);
}
h2 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin: 56px 0 18px;
  color: var(--ink);
}
h3 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 36px 0 12px;
  color: var(--ink);
}
p { margin: 0 0 18px; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
a { transition: color 180ms; }

.kicker {
  font-family: var(--serif-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-deep);
  margin: 0 0 18px;
}

/* ───────── Themen-Übersicht ───────── */
.themen-uebersicht {
  padding: 88px 0 120px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.themen-uebersicht > .container {
  max-width: var(--maxw);
}
.themen-uebersicht .intro {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 56px;
}
.empty-note {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-style: italic;
  padding: 32px 0;
}

.kacheln {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.kachel {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.kachel:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(20, 24, 29, 0.18);
}
.kachel-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 0 16px;
  color: var(--gold-deep);
  transition: color 200ms, transform 200ms;
}
.kachel-icon svg { width: 100%; height: 100%; display: block; }
.kachel:hover .kachel-icon {
  color: var(--ink);
  transform: translateY(-1px);
}
.kachel h2 {
  font-family: var(--serif-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--ink);
}
.kachel p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .kacheln { grid-template-columns: 1fr; gap: 18px; }
  .themen-uebersicht { padding: 64px 0 88px; }
}

/* ───────── Pillar Page ───────── */
.pillar-page,
.artikel {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: 72px 28px 96px;
}
.pillar-page > h1,
.artikel > h1 {
  margin-bottom: 24px;
}

/* Pillar-Page: Kernaussage als markante Lede unter der H1 */
.kernaussage {
  font-family: var(--serif-display);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 56px;
  padding-left: 22px;
  border-left: 2px solid var(--gold);
}

/* Pillar-Page: kleines Schmuck-Icon oberhalb des Kickers */
.pillar-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 0 18px;
  color: var(--gold-deep);
}
.pillar-icon svg { width: 100%; height: 100%; display: block; }
@media (max-width: 540px) {
  .pillar-icon { width: 24px; height: 24px; margin-bottom: 14px; }
}

/* CMS-rendered body */
.body {
  font-size: 17px;
  line-height: 1.75;
}
.body p { margin: 0 0 20px; color: var(--ink-2); }
.body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.body h3 {
  font-size: 1.2rem;
  margin: 32px 0 10px;
}
.body ul, .body ol {
  margin: 0 0 22px;
  padding-left: 24px;
  color: var(--ink-2);
}
.body li { margin: 6px 0; }
.body blockquote {
  border-left: 2px solid var(--gold);
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}
.body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.body a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

/* ───────── Vertiefung (article list under pillar) ───────── */
.vertiefung {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.vertiefung h2 {
  font-size: 1.4rem;
  margin: 0 0 24px;
  border: 0; padding: 0;
}
.artikel-teaser {
  display: block;
  text-decoration: none;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 200ms;
}
.artikel-teaser:first-of-type { border-top: 1px solid var(--line); }
.artikel-teaser:hover { padding-left: 8px; }
.artikel-teaser .titel {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color 180ms;
}
.artikel-teaser:hover .titel { color: var(--gold-deep); }
.artikel-teaser .teaser {
  display: block;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ───────── Breadcrumb ───────── */
.breadcrumb {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms, border-color 180ms;
}
.breadcrumb a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

/* ───────── CTA-Block (under pillar/article) ───────── */
.cta-block {
  margin-top: 72px;
  padding: 48px 32px;
  background: var(--ink);
  color: #e8e4d8;
  text-align: center;
}
.cta-block p {
  font-family: var(--serif-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  color: #fff;
  margin: 0 0 24px;
  font-style: italic;
}
.btn-primary {
  display: inline-block;
  font-family: var(--serif-body);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 16px 32px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  border-radius: 4px;
  transition: background 200ms, border-color 200ms, color 200ms, transform 200ms;
}
.btn-primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .pillar-page,
  .artikel { padding: 56px 24px 72px; }
  .cta-block { padding: 36px 24px; margin-top: 56px; }
}

/* ───────── 404 / leerer State ───────── */
.empty-state {
  max-width: 560px;
  margin: 0 auto;
  padding: 96px 28px;
  text-align: center;
}
.empty-state h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 16px;
}
.empty-state p {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* ───────── Footer (matches homepage) ───────── */
.footer {
  background: var(--ink);
  color: #8d8472;
  padding: 36px 0;
  border-top: 1px solid #1f1f1f;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer a {
  color: #c9c2b0;
  text-decoration: none;
  margin-left: 22px;
}
.footer a:first-of-type { margin-left: 0; }
.footer a:hover { color: var(--gold); }

@media (max-width: 540px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer a { margin-left: 0; margin-right: 18px; }
}
