/* ══════════════════════════════════════════════════════════════
   Psychotherapie-Manual – Stylesheet
   Nachfrageorientierte Psychotherapie · offenes Manual.
   Abgeleitet von der ICDDSM-Referenz.
   Navy #13183e (Header/Footer) · Maroon #7a1325 (Links)
   Purple #8e1a88 (Akzente) · selbst gehostete Schriften.
══════════════════════════════════════════════════════════════ */

/* ── Selbst gehostete Schriften ── */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-700.woff2') format('woff2');
}

:root {
  --maroon:       #7a1325;
  --deep:         #560d1a;
  --navy:         #13183e;
  --navy-light:   #1d2349;
  --purple:       #8e1a88;
  --purple-deep:  #6b1267;
  --text:         #000000;
  --bg:           #ffffff;
  --surface:      #f4f4f6;
  --border:       #cdced3;
  --green:        #1f7a4d;
  --green-bg:     #f0f7f3;
  --font:  'Source Sans 3', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --bar-w: 1100px;
  --col-w: 740px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

html { font-size: 18px; }

body {
  font-family: var(--font);
  font-size: 1.166rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--maroon); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--deep); }
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5em; margin-bottom: 1.1rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; }
em { font-style: italic; }

/* ── Header ── */
.site-header {
  background: var(--navy);
  padding: 1.1rem 0;
  color: #fff;
}
.site-header a,
.site-header p,
.site-header div,
.site-header span { color: #fff; }
.site-header a:hover { color: rgba(255,255,255,.85); }
.site-header .bar {
  max-width: var(--bar-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,.72);
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

/* ── Grundsatz-Navigation (alle elf Grundsätze) ── */
.site-nav {
  background: var(--navy-light);
  border-top: 1px solid rgba(255,255,255,.09);
}
.site-nav .bar {
  max-width: var(--bar-w);
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.15rem;
  align-items: center;
}
.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; font-weight: 600; border-bottom-color: var(--purple); }

/* ── Layout ── */
.bar { max-width: var(--bar-w); margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  padding: 0.5rem 1.5rem;
}
.breadcrumb ol { list-style:none; padding:0; margin:0 auto; max-width:var(--bar-w); display:flex; gap:.25rem; flex-wrap:wrap; }
.breadcrumb li { margin: 0; }
.breadcrumb li+li::before { content:"›"; margin-right:.25rem; color:#888; }
.breadcrumb a { color:var(--maroon); text-decoration:none; }
.breadcrumb a:hover { text-decoration:underline; }

/* ── Content column ── */
.content {
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Hero ── */
.hero {
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: #000;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.2rem;
  line-height: 1.55;
  color: #222;
  max-width: 640px;
}

/* ── Headings ── */
h1 {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.15;
  color: #000;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.28;
  color: #000;
  margin: 2.5rem 0 1rem;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin: 2rem 0 0.7rem;
}

/* ── Lead / intro ── */
.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: #222;
  margin-bottom: 1.75rem;
}
.page-intro {
  font-size: 1.05rem;
  color: #444;
  max-width: 640px;
  margin: 0.5rem 0 2rem;
}

/* ── Version note ── */
.version-note {
  font-size: 1.05rem;
  color: #333;
  background: var(--surface);
  border-left: 4px solid var(--purple);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0 2.5rem;
  line-height: 1.6;
}
.version-note strong { color: var(--purple-deep); }

/* ── Pull quote ── */
.pull {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 600;
  color: #000;
  border-left: 3px solid var(--purple);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2rem 0;
}

/* ── Source line ── */
.source-line {
  border-left: 3px solid var(--border);
  background: var(--surface);
  padding: 1.1rem 1.4rem;
  margin: 2rem 0;
  font-size: 1rem;
  line-height: 1.65;
}
.source-line strong { color: var(--purple-deep); }

/* ── Practice example ── */
.example {
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  background: var(--green-bg);
  padding: 1.5rem 1.75rem;
  margin: 2.25rem 0;
}
.example h3 {
  color: var(--green);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  margin: 0 0 0.6rem;
}
.example p { font-size: 1.05rem; margin-bottom: 0.6rem; }
.example .example-who { font-weight: 600; }

/* ── Handlungsleiste / reference bar ── */
.actionbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 2.5rem 0;
}
.actionbar a {
  background: var(--bg);
  padding: 1.4rem 1.3rem;
  text-decoration: none;
  color: #000;
  transition: background 0.1s;
  display: block;
}
.actionbar a:hover { background: var(--surface); }
.actionbar .ab-label {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.3rem;
}
.actionbar .ab-desc { font-size: 0.92rem; color: #333; line-height: 1.5; }

/* ── Principle overview list (Startseite) ── */
.principle-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.principle-item {
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
}
.principle-item:last-child { border-bottom: 1px solid var(--border); }
.principle-num {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.05em;
}
.principle-item h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.3rem;
}
.principle-item h2 a { color: #000; text-decoration: none; }
.principle-item h2 a:hover { color: var(--purple); text-decoration: underline; }
.principle-item p { margin-bottom: 0.6rem; font-size: 1.05rem; }
.principle-item a.principle-link {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.principle-item a.principle-link:hover { text-decoration: underline; }

/* ── Back link ── */
.backlink {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.backlink:hover { text-decoration: underline; }

/* ── Prev / next between principles ── */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.pager a { font-weight: 600; text-decoration: none; }
.pager a:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  margin-top: auto;
  color: #fff;
  padding: 2.5rem 0 2.75rem;
}
.site-footer .bar { max-width: var(--bar-w); }
.site-footer a,
.site-footer p,
.site-footer div,
.site-footer span,
.site-footer address { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-nav a { font-size: 0.84rem; text-decoration: none; letter-spacing: 0.02em; }
.footer-licence {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
  max-width: 760px;
  color: rgba(255,255,255,.85);
}
.footer-licence strong { color: #fff; font-weight: 600; }
.footer-disclaimer { font-size: 0.82rem; line-height: 1.6; margin-bottom: 0.75rem; max-width: 720px; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,.4) !important; }
.footer-copy a { color: rgba(255,255,255,.55) !important; }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a1a1a; z-index: 1000; border-top: 2px solid var(--purple);
}
.cookie-banner-inner {
  max-width: var(--bar-w); margin: 0 auto; padding: .95rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 220px; }
.cookie-banner-text p { font-size: .82rem; color: rgba(255,255,255,.82); margin-bottom: .1rem; }
.cookie-banner-buttons { display: flex; gap: .5rem; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--font); font-size: .82rem; font-weight: 600;
  padding: .45rem 1.1rem; border-radius: 2px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
}
.cookie-btn-decline:hover { background: rgba(255,255,255,.1); }
.cookie-btn-accept { background: var(--maroon); border-color: var(--maroon); }
.cookie-btn-accept:hover { background: var(--deep); }

/* ── Responsive ── */
@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero { padding: 2.5rem 1.5rem 1.25rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1.1rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.3rem; }
  .lead { font-size: 1.12rem; }
  .pull { font-size: 1.2rem; padding-left: 1.25rem; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: .875rem; }
}
