/* ===================================================================
 * Theme: editorial-pro
 * Verbindlich: siehe SPEZIFIKATION.md
 * Akzentfarbe: --accent vor Einbindung setzen, Default ist Tiefblau.
 * ================================================================== */

:root {
  /* Farben - nicht ändern, nur überschreiben in Site-CSS */
  --bg: #fafaf8;
  --bg-card: #ffffff;
  --text: #0c0c0c;
  --text-secondary: #5a5a5a;
  --hairline-strong: #1a1a1a;
  --hairline-weak: #d0d0d0;
  --border-card: #e0e0e0;

  /* Akzent: einer der Confident-Werte */
  --accent: #003049;          /* Tiefblau, Mantik-Default */
  /* --accent: #0a7c3e; */    /* Sattes Grün */
  /* --accent: #c1121f; */    /* Klares Rot */
  /* --accent: #000; */       /* Minimalvariante */

  /* Typo */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
}

/* ===== Reset + Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--text); }

/* ===== Container ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Header ===== */
.ed-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 100;
}
.ed-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.ed-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.ed-logo .accent { color: var(--accent); }
.ed-nav { display: flex; gap: 1.5rem; }
.ed-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.ed-nav a:hover { color: var(--accent); }
.ed-nav a.active { color: var(--accent); font-weight: 600; }
.ed-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--text);
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
}
@media (max-width: 800px) {
  .ed-nav-toggle { display: block; }
  .ed-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border-card);
    padding: 1rem;
    flex-direction: column;
  }
  .ed-nav.active { display: flex; }
}

/* ===== Section ===== */
.ed-section { padding: 4rem 0; }
@media (max-width: 700px) { .ed-section { padding: 2.5rem 0; } }
.ed-section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}
.ed-section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 65ch;
}

/* ===== Hero ===== */
.ed-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.ed-hero h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.ed-hero .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 65ch;
  margin-bottom: 1.5rem;
}
.ed-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (max-width: 800px) {
  .ed-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ed-hero h1 { font-size: 1.9rem; }
}

/* ===== Buttons (kantig) ===== */
.ed-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 0;
  border: 1px solid var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  margin-right: 0.4rem;
}
.ed-btn:hover { background: var(--text); color: var(--bg); }
.ed-btn-primary {
  background: var(--text);
  color: var(--bg);
}
.ed-btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== Editorial List (statt Cards für Text-Listen) ===== */
.editorial-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 1px solid var(--hairline-strong);
}
.editorial-list li {
  border-bottom: 1px solid var(--hairline-weak);
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
}
.editorial-list .name { font-weight: 700; font-size: 1.1rem; }
.editorial-list .desc { color: var(--text-secondary); font-size: 0.95rem; }
.editorial-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.editorial-list a:hover { color: var(--accent); }
@media (max-width: 700px) {
  .editorial-list li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ===== Editorial Cards (nur für Inhalte mit Bild) ===== */
.editorial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.editorial-card:hover { border-color: var(--text); }
.editorial-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.editorial-card-body { padding: 1.2rem 1.3rem 1.4rem; }
.editorial-card-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; line-height: 1.3; }
.editorial-card-body p { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 0.7rem; }
.editorial-card-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9rem;
}
.editorial-card-body a:hover { color: var(--accent); }

/* ===== FAQ (native details) ===== */
.editorial-faq details {
  border-bottom: 1px solid var(--hairline-weak);
  padding: 1rem 0;
}
.editorial-faq details:first-child { border-top: 1px solid var(--hairline-strong); }
.editorial-faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.editorial-faq summary::-webkit-details-marker { display: none; }
.editorial-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}
.editorial-faq details[open] summary::after { content: "-"; }
.editorial-faq details p {
  margin-top: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== CTA-Block ===== */
.editorial-cta {
  background: var(--accent);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}
.editorial-cta h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.editorial-cta p { color: rgba(255,255,255,0.85); margin-bottom: 1.4rem; max-width: 50ch; margin-left: auto; margin-right: auto; }
.editorial-cta .ed-btn {
  background: #fff;
  border-color: #fff;
  color: var(--text);
}
.editorial-cta .ed-btn:hover { background: var(--text); color: #fff; }

/* ===== Footer ===== */
.ed-footer {
  background: var(--text);
  color: var(--bg);
  padding: 2rem 0;
  margin-top: 0;
  font-size: 0.9rem;
}
.ed-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.ed-footer a {
  color: var(--bg);
  text-decoration: none;
  margin-left: 1.2rem;
}
.ed-footer a:hover { text-decoration: underline; }

/* ===== Breadcrumb ===== */
.ed-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.ed-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.ed-breadcrumb a:hover { color: var(--accent); }
.ed-breadcrumb .sep { margin: 0 0.4rem; }
