*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pine-dark:   #0a1a0e;
  --pine-mid:    #1a3520;
  --pine-light:  #2d5c38;
  --pine-bright: #4a8c5c;
  --snow:        #e8eff5;
  --gold:        #c8a96e;
  --stone:       #a0a898;
  --cream:       #f0ede6;
  --text:        #1a2218;
  --text-muted:  #4a5e44;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--pine-dark);
  font-size: 0.8rem;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ── NAV ── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(10, 26, 14, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--snow);
  letter-spacing: 0.1em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-logo svg { width: 22px; height: 22px; }

.nav-sub {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  opacity: 0.8;
  flex-shrink: 0;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 239, 245, 0.6);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }

.nav-burger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--snow);
  transition: all 0.3s;
}

/* ── HERO ── */
#hero {
  padding: 9rem 2rem 6rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.hero-title em {
  font-style: italic;
  color: var(--pine-bright);
}

.hero-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 520px;
  margin: 0 auto;
}

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pine-bright);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.section-lead {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 680px;
  line-height: 1.8;
}

/* ── TERM LINK ── */
a.term-link {
  color: var(--pine-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 92, 56, 0.3);
  transition: border-color 0.2s, color 0.2s;
}
a.term-link:hover {
  color: var(--pine-bright);
  border-color: var(--pine-bright);
}

/* ── THEMENBEREICHE ── */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.theme-card {
  padding: 1.5rem 1.7rem;
  border: 1px solid rgba(74, 140, 92, 0.2);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.65);
  transition: all 0.3s;
}
.theme-card:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26, 53, 32, 0.08);
}

.theme-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.theme-card p {
  font-size: 0.79rem;
  line-height: 1.72;
  color: var(--text-muted);
}

/* ── TOC ── */
.toc-box {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(74, 140, 92, 0.18);
  border-radius: 4px;
  padding: 2.5rem 3rem;
}

.toc ol {
  list-style: none;
  columns: 2;
  column-gap: 3rem;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(74, 140, 92, 0.1);
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.58rem;
  color: var(--stone);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 1.8rem;
}
.toc a {
  font-size: 0.79rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.toc a:hover { color: var(--pine-bright); }

/* ── USE CASE MATRIX ── */
.matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(74, 140, 92, 0.18);
  border-radius: 4px;
}

table.matrix {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.matrix thead tr { border-bottom: 1px solid rgba(200, 169, 110, 0.3); }
.matrix th {
  padding: 1rem 1.2rem;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine-bright);
  background: rgba(255, 255, 255, 0.7);
}
.matrix td {
  padding: 0.85rem 1.2rem;
  vertical-align: top;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(74, 140, 92, 0.08);
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.4);
}
.matrix tbody tr:hover td { background: rgba(255, 255, 255, 0.7); }
.matrix td:first-child {
  font-weight: 400;
  color: var(--text);
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  padding: 1.6rem 2rem;
  border: 1px solid rgba(74, 140, 92, 0.18);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.6);
}
.faq-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.9rem;
  line-height: 1.35;
}
.faq-a {
  font-size: 0.83rem;
  line-height: 1.82;
  color: var(--text-muted);
}
.faq-a strong {
  color: var(--text);
  font-weight: 400;
}

/* ── GLOSSAR ── */
.glossar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.glossary-item {
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(74, 140, 92, 0.16);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.6);
  scroll-margin-top: 5.5rem;
  transition: border-color 0.3s;
}
.glossary-item:target {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.9);
}

.glossary-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--pine-light);
  margin-bottom: 0.65rem;
}
.glossary-item > p {
  font-size: 0.83rem;
  line-height: 1.78;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}
.glossary-item .example {
  font-size: 0.77rem;
  line-height: 1.75;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(74, 140, 92, 0.25);
  color: rgba(74, 94, 68, 0.7);
}
.glossary-item .example strong {
  color: var(--pine-bright);
  font-weight: 400;
}

.back-top {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.back-top:hover { opacity: 1; color: var(--pine-bright); }

/* ── FOOTER ── */
footer {
  padding: 2rem 3rem;
  border-top: 1px solid rgba(74, 140, 92, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 53, 32, 0.05);
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(26, 34, 24, 0.4);
  letter-spacing: 0.1em;
}
.footer-link {
  font-size: 0.7rem;
  color: rgba(26, 34, 24, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--pine-bright); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  #main-nav { padding: 1.1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 10, 0.97);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.1rem; }
  .nav-burger { display: flex; }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .toc ol { columns: 1; }
  .glossar-grid { grid-template-columns: 1fr; }
  .toc-box { padding: 1.8rem 2rem; }
}

@media (max-width: 600px) {
  section { padding: 4rem 1.2rem; }
  #hero { padding: 8rem 1.5rem 5rem; }
  .themes-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
