/* HeMiKa CMS Frontend — Konzeptionen-Look
   Pfad: /hemika/includes/cms-frontend.css
*/
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg:        #f4f1ea;
  --bg-card:   #ebe6d9;
  --bg-dark:   #0d0d0d;
  --text:      #0d0d0d;
  --text-soft: #4a4a4a;
  --text-on-dark: #f4f1ea;
  --accent:    #6e1416;
  --accent-dark: #511012;
  --gold:      #c1a875;
  --rule:      #d8d2c1;
  --rule-dark: rgba(244,241,234,.25);
  --serif:  'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:   'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1140px;
}

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

html { scroll-behavior:smooth; }
body.cms-frontend {
  margin:0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Link-Farbe NUR in CMS-Inhaltsbereichen — nicht in Topbar / Footer */
.cms-frontend .content a,
.cms-frontend .concept-hero a {
  color: var(--accent);
  text-decoration: none;
}
.cms-frontend .content a:hover,
.cms-frontend .concept-hero a:hover {
  text-decoration: underline;
}

.cms-frontend .container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ HERO ============ */
.cms-frontend .concept-hero {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 4rem 0 3rem;
}
.cms-frontend .concept-hero .crumbs {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.cms-frontend .concept-hero .crumbs a {
  color: var(--gold);
  border-bottom: 1px solid rgba(193,168,117,.35);
}
.cms-frontend .concept-hero .crumbs span { opacity:.7; margin: 0 .3rem; }
.cms-frontend .concept-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: .98;
  margin: 0 0 1.5rem;
  letter-spacing: -.01em;
}
.cms-frontend .concept-hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.cms-frontend .concept-hero .subtitle {
  max-width: 56rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-on-dark);
  opacity: .95;
  margin: 0;
}

/* ============ QUICK FACTS ============ */
.cms-frontend .facts {
  background: var(--bg-card);
  padding: 2rem 0;
  border-bottom: 4px solid var(--accent);
}
.cms-frontend .facts-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.cms-frontend .fact .label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .35rem;
}
.cms-frontend .fact .val {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

/* ============ CONTENT (TOC + ARTICLES) ============ */
.cms-frontend .content { padding: 3rem 0 5rem; }
.cms-frontend .content-grid {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  gap: 3rem;
  align-items: start;
}

/* Inhaltsverzeichnis */
.cms-frontend .toc {
  position: sticky;
  top: 1.5rem;
  font-size: .92rem;
}
.cms-frontend .toc h3 {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 2px solid var(--text);
  padding-top: 1rem;
  margin: 0 0 1rem;
}
.cms-frontend .toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.cms-frontend .toc ol li {
  counter-increment: toc;
  padding: .35rem 0;
  border-bottom: 1px solid var(--rule);
}
.cms-frontend .toc ol li::before {
  content: counter(toc, decimal-leading-zero) " ";
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  margin-right: .35rem;
  font-size: .85em;
}
.cms-frontend .toc ol li a {
  color: var(--text);
  text-decoration: none;
}
.cms-frontend .toc ol li a:hover { color: var(--accent); }

/* Kapitel */
.cms-frontend article.chapter {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
}
.cms-frontend article.chapter:first-child { border-top: 0; padding-top: 0; }
.cms-frontend article.chapter .chapter-no {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.cms-frontend article.chapter h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 1.4rem;
  position: relative;
  padding-bottom: 1rem;
}
.cms-frontend article.chapter h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 5rem;
  height: 2px;
  background: var(--accent);
}
.cms-frontend article.chapter p {
  margin: 0 0 1rem;
  max-width: 38em;
}
.cms-frontend article.chapter ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  max-width: 38em;
}
.cms-frontend article.chapter ul li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: .55rem;
}
.cms-frontend article.chapter ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .85em;
  width: .8rem;
  height: 2px;
  background: var(--accent);
}

/* ============ SCHLAGWÖRTER (Tag-Zeile) ============ */
.cms-frontend .schlagwoerter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.cms-frontend .schlagwoerter a {
  color: var(--accent);
  border-bottom: 1px solid rgba(110,20,22,.3);
}
.cms-frontend .schlagwoerter span.sep { color: var(--text-soft); margin: 0 .3rem; font-style: normal; }

/* ============ BILD ============ */
.cms-frontend figure.cms-image {
  margin: 1.8rem 0;
}
.cms-frontend figure.cms-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.cms-frontend figure.cms-image figcaption {
  font-size: .88rem;
  color: var(--text-soft);
  margin-top: .6rem;
  font-style: italic;
}

/* ============ ZITAT ============ */
.cms-frontend blockquote.cms-quote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
}
.cms-frontend blockquote.cms-quote cite {
  display: block;
  margin-top: .8rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--text-soft);
}
.cms-frontend blockquote.cms-quote cite::before { content: "— "; }

/* ============ FAQ ============ */
.cms-frontend .cms-faq { margin: 2rem 0; }
.cms-frontend .cms-faq details {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
}
.cms-frontend .cms-faq details:last-child { border-bottom: 1px solid var(--rule); }
.cms-frontend .cms-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding-right: 1.5rem;
  position: relative;
  list-style: none;
}
.cms-frontend .cms-faq summary::-webkit-details-marker { display: none; }
.cms-frontend .cms-faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: -2px;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform .2s;
}
.cms-frontend .cms-faq details[open] summary::after { content: "−"; }
.cms-frontend .cms-faq details > *:not(summary) {
  margin-top: .8rem;
  color: var(--text-soft);
}

/* ============ Sprach-Switch / kleine Helfer ============ */
.cms-frontend .lang-switch {
  text-align: right;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .8rem 0;
  color: var(--text-soft);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .cms-frontend .content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cms-frontend .toc { position: static; }
  .cms-frontend .concept-hero { padding: 3rem 0 2rem; }
}

/* ============ Print ============ */
@media print {
  .cms-frontend .concept-hero { background: #fff; color: #000; }
  .cms-frontend .concept-hero h1 em { color: #000; }
  .cms-frontend .toc { display: none; }
  .cms-frontend .content-grid { grid-template-columns: 1fr; }
}
