/* ═══════════════════════════════════════════════
   SHARED.CSS — Single Source of Truth
   Spektrum Münster · Research Articles
   ═══════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --ink: #1a1410;
  --paper: #ffffff;
  --accent: #6C4B3A;
  --stone: #666666;
  --cream: #f5f3f0;
  --line: rgba(26,20,16,0.12);
  --hint: #f0ebe1;
  --hint-border: #b5935a;
  --text-sm: 0.78rem;
  --text-base: 0.858rem;
  --hover-bg: var(--cream);
}

/* ── RESETS ── */
html { scroll-behavior: smooth; overflow-x: hidden; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

/* Noise-Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── SCROLL-ANIMATIONEN ── */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── STICKY NAV ── */
.sticky-praxis-link {
  position: fixed;
  top: auto;
  bottom: 1.5rem;
  right: 50%;
  transform: translateX(50%);
  z-index: 1000;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 0.5rem 1rem 0.45rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.sticky-praxis-link.visible {
  opacity: 1;
  pointer-events: auto;
}
.sticky-praxis-link:hover { opacity: 0.65; }

/* ── MASTHEAD ── */
.masthead {
  border-bottom: 2px solid var(--ink);
  padding: 1.5rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.masthead-source { opacity: 0.65; }
.masthead a { color: inherit; text-decoration: none; }
.masthead a:hover { text-decoration: underline; }

/* ── HERO ── */
.hero {
  padding: 5rem 6rem 4rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}
.hero-label {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
}
h1 em { font-style: italic; color: var(--accent); }
.hero-meta {
  font-size: 0.77rem;
  line-height: 2;
  opacity: 0.7;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  align-self: center;
}
.hero-meta strong { opacity: 1; color: var(--ink); }

/* ── ABSTRACT BAND ── */
.abstract-band {
  background: #6C4B3A;
  color: #ffffff;
  padding: 2.5rem 6rem;
}
.abstract-band p {
  font-size: 0.935rem;
  max-width: 72ch;
  line-height: 1.9;
  opacity: 0.95;
}
.abstract-band .label {
  font-size: 0.825rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0.9;
}
.abstract-band p + p { margin-top: 0.8rem; }
.abstract-band-sep {
  width: 50%;
  height: 0;
  border-top: 2px solid #ffffff;
  margin: 1.5rem 0 0.8rem 0;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 3rem;
}
h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.98rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h2-small {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}
.section-rule { flex: 1; height: 1px; background: var(--line); }

/* ── DEFINITION BOX ── */
.definition-band {
  padding: 3.5rem 6rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.definition-box {
  border: 2px solid var(--ink);
  padding: 2.5rem;
  margin-top: 2rem;
  position: relative;
}
.definition-box::before {
  content: 'BEGRIFFSDEFINITION';
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  background: var(--paper);
  padding: 0 0.6rem;
  font-size: 0.605rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  border: 1px solid var(--accent);
  z-index: 2;
}
.definition-box p {
  font-size: var(--text-base);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.definition-box p:last-child { margin-bottom: 0; }

/* ── STUDIEN ── */
.studies-section {
  padding: 4rem 6rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
}
.study-card {
  background: var(--paper);
  padding: 2rem;
  position: relative;
  transition: background 0.2s;
}
.study-card:hover { background: var(--hover-bg); }
.study-year {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--line);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}
.study-journal {
  font-size: 0.605rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.study-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.155rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}
.study-authors {
  font-size: 0.682rem;
  opacity: 0.65;
  margin-bottom: 1rem;
  font-style: italic;
}
.study-body {
  font-size: var(--text-sm);
  line-height: 1.8;
  opacity: 0.8;
}
.study-body ul { list-style: none; margin-top: 0.8rem; }
.study-body ul li {
  padding: 0.3rem 0 0.3rem 1rem;
  border-left: 2px solid var(--line);
  margin-bottom: 0.3rem;
  font-size: 0.748rem;
  color: var(--ink);
  opacity: 0.9;
}
.study-body ul li strong { font-weight: 500; color: var(--ink); }

/* ── ZITATE ── */
.quote-band {
  padding: 4rem 6rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.pull-quote { border-top: 3px solid var(--accent); padding-top: 1.5rem; }
.pull-quote blockquote {
  font-family: 'DM Serif Display', serif;
  font-size: 1.265rem;
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 0.8rem;
}
.pull-quote cite {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
  font-style: normal;
  text-transform: uppercase;
}

/* ── KERNAUSSAGE ── */
.key-insight-section {
  padding: 4rem 6rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: relative;
  z-index: 1001;
}
.key-insight-box {
  border: 2px solid var(--ink);
  padding: 2.5rem;
  margin-top: 2rem;
  position: relative;
  background: var(--paper);
}
.key-insight-box::before {
  content: 'KERNAUSSAGE';
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  background: var(--cream);
  padding: 0 0.6rem;
  font-size: 0.605rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  border: 1px solid var(--accent);
  z-index: 2;
}
.key-insight-box p {
  font-size: var(--text-base);
  line-height: 2;
  color: var(--ink);
  opacity: 0.9;
}
.key-insight-box p + p { margin-top: 1.5rem; }

/* ── EINSCHRÄNKUNGEN ── */
.limitations-section {
  padding: 3rem 6rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}
.limitations-label { align-self: start; padding-top: 0.5rem; }
.limitations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.limitation-item {
  padding: 1rem;
  border-left: 2px solid var(--accent);
  font-size: var(--text-sm);
  line-height: 1.7;
  opacity: 0.8;
}

/* ── PRAXIS-DIVIDER ── */
#praxis-start {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 6rem;
}
.praxis-divider-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.praxis-divider-label {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.9;
}
.praxis-divider-rule { flex: 1; height: 1px; background: rgba(255,255,255,0.2); }
.praxis-divider-note {
  font-size: 0.72rem;
  color: #ffffff;
  opacity: 1;
  max-width: 40ch;
  text-align: right;
  line-height: 1.6;
}
.praxis-divider-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: #ffffff;
  max-width: 28ch;
  opacity: 0.92;
}
.praxis-divider-sub {
  margin-top: 1rem;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: #ffffff;
  opacity: 1;
  max-width: 64ch;
}

/* ── IMPLIKATIONEN ── */
.implications-section {
  padding: 4rem 6rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.implications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2rem;
}
.impl-card {
  background: var(--paper);
  padding: 2rem;
  transition: background 0.2s;
}
.impl-card:hover { background: var(--hover-bg); }
.impl-source {
  font-size: 0.605rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.impl-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.155rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.impl-card p { font-size: var(--text-sm); line-height: 1.8; opacity: 0.8; }

/* Beratungshinweis */
.impl-hint {
  grid-column: 1 / -1;
  background: var(--hint);
  padding: 1.8rem 2.5rem;
  position: relative;
}
.impl-hint::before {
  content: 'BERATUNGSHINWEIS';
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  background: inherit;
  padding: 0 0.6rem;
  font-size: 0.605rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hint-border);
  font-weight: 500;
  border: 1px solid var(--hint-border);
}
.impl-hint p {
  font-size: var(--text-sm);
  line-height: 1.85;
  opacity: 0.9;
  color: var(--ink);
}

/* ── KLINISCHE REFLEXIONEN ── */
.reflection-section {
  padding: 4rem 6rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.reflection-disclaimer {
  display: inline-block;
  border: 1px solid rgba(26,20,16,0.2);
  padding: 0.8rem 1.2rem;
  font-size: 0.682rem;
  line-height: 1.6;
  opacity: 0.65;
  margin-bottom: 2.5rem;
}
.reflection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
}
.reflection-card {
  background: var(--cream);
  padding: 2rem;
  transition: background 0.2s;
}
.reflection-card:hover { background: #eeeae4; }
.reflection-num {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--line);
  display: block;
  margin-bottom: 0.5rem;
}
.reflection-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.reflection-card p { font-size: var(--text-sm); line-height: 1.8; opacity: 0.8; }
.reflection-card p + p { margin-top: 0.6rem; }

/* ── CTA ── */
.cta-section {
  padding: 4rem 6rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  justify-content: center;
}
.cta-content {
  max-width: 60ch;
  text-align: center;
  border: 2px solid var(--accent);
  padding: 2.5rem;
}
.cta-label {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.cta-text {
  font-size: 0.88rem;
  line-height: 1.9;
  opacity: 0.85;
  margin-bottom: 2rem;
}
.cta-button {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
}
.cta-button:hover { background: var(--paper); color: var(--accent); }

/* ── FOOTER ── */
.footer-band {
  padding: 2.5rem 6rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}
.footer-band a { color: inherit; text-decoration: none; }
.footer-band a:hover { text-decoration: underline; }
.dot-divider { opacity: 0.3; margin: 0 0.8rem; }

/* ═══════════════════════════════════════════════
   RESPONSIVE · MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  .masthead {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.6rem;
  }
  .masthead-source { display: none; }

  /* Shared sections: mobile padding */
  .hero, .abstract-band, .definition-band,
  .studies-section, .quote-band, .key-insight-section,
  .limitations-section, #praxis-start, .implications-section,
  .reflection-section, .cta-section, .footer-band {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }
  .hero-meta {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1rem;
  }

  .study-grid { grid-template-columns: 1fr; }
  .study-year {
    position: static;
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.3;
    display: block;
    margin-bottom: 0.25rem;
  }
  .study-title { padding-right: 0; }

  .quote-band {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .limitations-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .limitations-grid { grid-template-columns: 1fr; }

  #praxis-start { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .praxis-divider-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .praxis-divider-rule { display: none; }
  .praxis-divider-note { text-align: left; max-width: 100%; }

  .implications-grid { grid-template-columns: 1fr; }
  .impl-hint { grid-column: 1; }

  .reflection-grid { grid-template-columns: 1fr; }

  .cta-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .cta-content { padding: 1.5rem; }

  .footer-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .section-header { gap: 1rem; }
  .section-rule { min-width: 1rem; }
}

@media (max-width: 400px) {
  h1 { font-size: 1.7rem; }
}
