/* =============================================================
   Dr. med. Konstantin Schlaaff — Gutachtenpraxis
   Shared stylesheet · css/schlaaff.css
   ============================================================= */

/* ── Reset & custom properties ──────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a2640;
  --navy-mid:   #243350;
  --navy-light: #2e4068;
  --gold:       #b89a5e;
  --gold-light: #d4b97a;
  --cream:      #f7f4ef;
  --cream-dark: #ede8df;
  --text-dark:  #1a2640;
  --text-mid:   #4a5568;
  --text-light: #6b7a94;
  --border:     rgba(26,38,64,0.12);
  --serif:      'Playfair Display', Georgia, serif;
  --body-serif: 'Source Serif 4', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text-dark); background: #fff; overflow-x: hidden; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  border-bottom: 0.5px solid var(--border);
  background: #fff; position: sticky; top: 0; z-index: 100;
}
.nav-logo {
  display: flex; flex-direction: column; justify-content: center;
  text-decoration: none; gap: 0;
}
.nav-logo-name {
  font-family: var(--serif); font-size: 16px; font-weight: 500;
  color: var(--navy); letter-spacing: -0.01em; line-height: 1.2;
}
.nav-logo-title {
  font-size: 10px; color: var(--gold); text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 500; line-height: 1; margin-top: 3px;
}
.nav-links { display: flex; gap: 0; align-items: stretch; height: 64px; }
.nav-links a {
  display: flex; align-items: center; padding: 0 1.1rem;
  font-size: 13px; color: var(--text-mid); text-decoration: none; font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 500; }
.nav-links a.nav-cta-link {
  background: var(--navy); color: #fff; margin-left: 1rem;
  border-radius: 4px; height: 36px; align-self: center;
  padding: 0 1.25rem; border-bottom: none;
}
.nav-links a.nav-cta-link:hover { background: var(--navy-light); }

/* ── Hero (Startseite — full height) ────────────────────────── */
.hero {
  position: relative; height: 480px;
  overflow: hidden; background: var(--navy-mid);
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  display: block; opacity: 0.62; transition: opacity 0.5s;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,38,64,0.82) 0%,
    rgba(26,38,64,0.55) 55%,
    rgba(26,38,64,0.15) 100%
  );
}
.hero-content {
  position: absolute; top: 50%; left: 0;
  transform: translateY(-50%);
  padding: 0 3rem; max-width: 640px;
}
.hero-eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1rem;
}
.hero-content h1 {
  font-family: var(--serif); font-size: 36px; font-weight: 400;
  line-height: 1.22; color: #fff; margin-bottom: 0.4rem;
}
.hero-content h1 em { font-style: italic; color: var(--gold-light); }
.hero-subtitle {
  font-family: var(--body-serif); font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,0.75); letter-spacing: 0.01em;
  margin-bottom: 1.75rem; line-height: 1.5;
}
.hero-rule { width: 36px; height: 1.5px; background: var(--gold); margin-bottom: 1.75rem; opacity: 0.8; }
.hero-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,0.6); }
.hero-meta-item i { font-size: 14px; color: var(--gold); }

/* ── Page header (subpages — slim strip) ────────────────────── */
.page-header {
  position: relative; height: 220px;
  overflow: hidden; background: var(--navy-mid);
}
.page-header-img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 20%; display: block; opacity: 0.35;
}
.page-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,38,64,0.88) 0%,
    rgba(26,38,64,0.55) 70%,
    rgba(26,38,64,0.30) 100%
  );
}
.page-header-content { position: absolute; bottom: 2rem; left: 3rem; }
.page-eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 0.5rem;
}
.page-header-content h1 {
  font-family: var(--serif); font-size: 30px; font-weight: 400; color: #fff; line-height: 1.2;
}

/* ── Flat page header (impressum — cream, no image) ─────────── */
.page-header-flat {
  background: var(--cream); padding: 3rem 2.5rem 2.5rem;
  border-bottom: 0.5px solid var(--cream-dark);
}
.page-header-flat-inner { max-width: 720px; }
.page-header-flat h1 {
  font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--navy);
}

/* ── Two-column page layout ─────────────────────────────────── */
.page-body {
  max-width: 960px; margin: 0 auto;
  padding: 4rem 2rem 5rem;
  display: grid; grid-template-columns: 1fr 280px; gap: 4rem; align-items: start;
}

/* ── Typographic utilities ──────────────────────────────────── */
.section-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold); font-weight: 500; margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  color: var(--navy); line-height: 1.25; margin-bottom: 0.75rem;
}
.section-title-lg { font-size: 26px; }
.gold-rule { width: 32px; height: 2px; background: var(--gold); margin: 1rem 0 1.75rem; }
.gold-rule-sm { width: 32px; height: 2px; background: var(--gold); margin: 1rem 0 0; }

.prose p {
  font-family: var(--body-serif); font-size: 15px; color: var(--text-mid);
  line-height: 1.75; font-weight: 300; margin-bottom: 1rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--navy); }
.prose h2 {
  font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--navy);
  margin: 2.5rem 0 0.6rem; padding-top: 0.5rem; border-top: 0.5px solid var(--border);
}
.prose h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--cream); border-radius: 6px;
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.sidebar-card:last-child { margin-bottom: 0; }
.sidebar-card h3 {
  font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--navy);
  margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 0.5px solid var(--cream-dark);
}
.sidebar-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-mid); line-height: 1.5; margin-bottom: 0.6rem;
}
.sidebar-item:last-child { margin-bottom: 0; }
.sidebar-item i { font-size: 15px; color: var(--navy); margin-top: 1px; flex-shrink: 0; }
.sidebar-item svg { flex-shrink: 0; margin-top: 1px; }
.sidebar-item a { color: var(--navy); text-decoration: none; font-weight: 500; }
.sidebar-item a:hover { text-decoration: underline; }
.sidebar-divider {
  margin-top: 0.5rem; padding-top: 0.75rem;
  border-top: 0.5px solid var(--cream-dark);
}

.nav-sidebar { list-style: none; }
.nav-sidebar li a {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 13px; color: var(--text-mid); padding: 7px 0;
  border-bottom: 0.5px solid var(--cream-dark); transition: color 0.15s;
}
.nav-sidebar li:last-child a { border-bottom: none; }
.nav-sidebar li a:hover,
.nav-sidebar li a.active { color: var(--navy); }
.nav-sidebar li a.active { font-weight: 500; }
.nav-sidebar li a i { font-size: 14px; color: var(--gold); }

/* ── Index: topic boxes ─────────────────────────────────────── */
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.topic-box { border: 0.5px solid var(--border); border-radius: 6px; padding: 1.25rem; }
.topic-box h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold);
  margin-bottom: 0.9rem; display: flex; align-items: center; gap: 7px;
}
.topic-box h3 i { font-size: 15px; }
.topic-list { list-style: none; }
.topic-list li {
  font-size: 13.5px; color: var(--text-mid); padding: 5px 0;
  border-bottom: 0.5px solid var(--border); line-height: 1.45;
  display: flex; align-items: baseline; gap: 8px;
}
.topic-list li:last-child { border-bottom: none; padding-bottom: 0; }
.topic-list li i { font-size: 12px; flex-shrink: 0; }
.topic-list li.nein { color: var(--text-light); text-decoration: line-through; }
.topic-list li.nein i { color: var(--text-light); }
.topic-list li.ja i { color: var(--gold); }

.private-note {
  background: var(--cream); border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0; padding: 1.25rem 1.5rem; margin-top: 2.5rem;
}
.private-note p {
  font-family: var(--body-serif); font-size: 14px; color: var(--text-mid);
  line-height: 1.7; font-weight: 300; margin: 0;
}
.private-note p a { color: var(--navy); }

/* ── Vita: principles, CV, memberships ──────────────────────── */
.principles { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 3.5rem; }
.principle { border: 0.5px solid var(--border); border-radius: 6px; padding: 1.5rem; }
.principle-head { display: flex; align-items: center; gap: 10px; margin-bottom: 0.6rem; }
.principle-icon {
  width: 32px; height: 32px; background: var(--cream); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.principle-icon i { font-size: 16px; color: var(--navy); }
.principle h3 { font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--navy); }
.principle p {
  font-family: var(--body-serif); font-size: 14px; color: var(--text-mid);
  line-height: 1.7; font-weight: 300;
}

.cv-section { margin-bottom: 3rem; }
.cv-section h2 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--navy); margin-bottom: 0.5rem; }
.cv-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
.cv-table tr { border-bottom: 0.5px solid var(--border); }
.cv-table tr:last-child { border-bottom: none; }
.cv-table td { padding: 10px 0; font-size: 13.5px; vertical-align: top; line-height: 1.5; }
.cv-table td:first-child {
  color: var(--gold); font-weight: 500; font-size: 12px; letter-spacing: 0.02em;
  white-space: nowrap; padding-right: 1.5rem; min-width: 120px; padding-top: 12px;
}
.cv-table td:last-child { color: var(--text-mid); font-family: var(--body-serif); font-weight: 300; }

.memberships { display: flex; flex-direction: column; gap: 0.75rem; }
.membership {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 1rem; background: var(--cream); border-radius: 6px;
}
.membership i { font-size: 18px; color: var(--gold); margin-top: 1px; flex-shrink: 0; }
.membership-body strong { font-size: 13px; font-weight: 500; color: var(--navy); display: block; margin-bottom: 2px; }
.membership-body span { font-size: 12.5px; color: var(--text-mid); line-height: 1.4; }

/* ── Ausarbeitung: content blocks, cost box, usage note ─────── */
.content-blocks { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.content-block { border: 0.5px solid var(--border); border-radius: 6px; padding: 1.75rem; }
.content-block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.block-icon {
  width: 38px; height: 38px; background: var(--cream); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.block-icon i { font-size: 19px; color: var(--navy); }
.content-block h3 { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--navy); }
.content-block p {
  font-family: var(--body-serif); font-size: 14.5px; color: var(--text-mid);
  line-height: 1.75; font-weight: 300;
}

.cost-box { background: var(--navy); border-radius: 6px; padding: 1.75rem; margin-top: 1.5rem; }
.cost-box h3 { font-family: var(--serif); font-size: 16px; font-weight: 400; color: #fff; margin-bottom: 0.75rem; }
.cost-box p {
  font-family: var(--body-serif); font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.7; font-weight: 300;
}
.cost-box p a { color: var(--gold-light); }

.usage-note {
  background: var(--cream); border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0; padding: 1.25rem 1.5rem; margin-top: 1.5rem;
}
.usage-note p {
  font-family: var(--body-serif); font-size: 14px; color: var(--text-mid);
  line-height: 1.7; font-weight: 300; margin: 0;
}

/* ── Kontakt: channels, urgent box, instructions ────────────── */
.contact-channels {
  display: flex; flex-direction: column; gap: 0;
  border: 0.5px solid var(--border); border-radius: 6px;
  overflow: hidden; margin-bottom: 2rem;
}
.contact-channel {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem; border-bottom: 0.5px solid var(--border);
}
.contact-channel:last-child { border-bottom: none; }
.channel-icon {
  width: 36px; height: 36px; background: var(--cream); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.channel-icon i { font-size: 17px; color: var(--navy); }
.channel-body h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;
}
.channel-value { font-size: 14px; color: var(--navy); font-weight: 500; }
.channel-value a { color: var(--navy); text-decoration: none; }
.channel-value a:hover { text-decoration: underline; }
.channel-note { font-size: 12px; color: var(--text-light); margin-top: 3px; line-height: 1.4; }

.urgent-box {
  background: var(--navy); border-radius: 6px; padding: 1.5rem;
  margin-bottom: 2rem; display: flex; gap: 1rem; align-items: flex-start;
}
.urgent-box i { font-size: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.urgent-box h3 { font-family: var(--serif); font-size: 15px; font-weight: 400; color: #fff; margin-bottom: 0.4rem; }
.urgent-box p {
  font-family: var(--body-serif); font-size: 13.5px; color: rgba(255,255,255,0.65);
  line-height: 1.6; font-weight: 300;
}

.instructions {
  background: var(--cream); border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0; padding: 1.25rem 1.5rem;
}
.instructions p {
  font-family: var(--body-serif); font-size: 14px; color: var(--text-mid);
  line-height: 1.7; font-weight: 300; margin-bottom: 0.5rem;
}
.instructions p:last-child { margin-bottom: 0; }

.tel-note {
  font-size: 11px; color: var(--text-light); margin-top: 1.5rem;
  line-height: 1.6; font-style: italic; font-family: var(--body-serif);
}

/* ── Impressum: flat content area ───────────────────────────── */
.content-flat { max-width: 720px; margin: 0 auto; padding: 3.5rem 2rem 5rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 2rem 2.5rem; }
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: var(--serif); font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.35); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .page-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .sidebar { order: -1; }
  .hero-content { max-width: 90%; padding: 0 1.5rem; }
  .hero-content h1 { font-size: 28px; }
  .topic-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-links a:not(.nav-cta-link) { display: none; }
  .hero { height: 380px; }
}
