/*
Theme Name: Ermittlungsfall
Description: Dunkles Theme im Akten-Look für ermittlungsfall.de – schlanker Rahmen (Kopf, Menü, Fuß) für Seiten aus Seitenwerk.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 8.0
Author: Ermittlungsfall
Text Domain: ermittlungsfall
*/

:root {
  --ef-bg: #0e1014; --ef-surface: #171a20; --ef-raised: #20242c; --ef-stroke: rgba(255,255,255,.08);
  --ef-text: #ece7dd; --ef-text2: #a1a5ae; --ef-accent: #e2b55a; --ef-stamp: #b8392f; --ef-manila: #dcc69c;
  --ef-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ef-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ef-type: "American Typewriter", "Courier New", Courier, monospace;
  --ef-width: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ef-bg); color: var(--ef-text); font: 17px/1.6 var(--ef-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ef-accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--ef-serif); line-height: 1.15; }

.ef-wrap { width: min(var(--ef-width), 100% - 40px); margin-inline: auto; }

/* Kopf */
.ef-header { position: sticky; top: 0; z-index: 50; background: rgba(14,16,20,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ef-stroke); }
.admin-bar .ef-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ef-header { top: 46px; } }
.ef-bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.ef-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ef-text); text-decoration: none;
  font: 700 15px/1 var(--ef-sans); letter-spacing: .28em; }
.ef-logo img { height: 30px; width: auto; }
.ef-nav { margin-left: auto; }
.ef-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.ef-nav a { color: var(--ef-text2); text-decoration: none; font-size: 15px; }
.ef-nav a:hover, .ef-nav .current-menu-item > a { color: var(--ef-text); }
.ef-cta { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--ef-accent); color: #1b1710;
  text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.ef-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--ef-stroke); color: var(--ef-text);
  border-radius: 10px; padding: 8px 10px; font-size: 18px; line-height: 1; }
@media (max-width: 860px) {
  .ef-burger { display: block; }
  .ef-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ef-bg); border-bottom: 1px solid var(--ef-stroke); }
  .ef-nav.is-open { display: block; }
  .ef-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .ef-nav li a { display: block; padding: 10px 0; font-size: 17px; }
  .ef-cta { display: none; }
}

/* Inhalt (ohne Seitenwerk oder mit Layout „Theme“) */
.ef-main { min-height: 60vh; }
.ef-page { padding: 56px 0 80px; }
.ef-page > h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 24px; }
.ef-page .entry-content > * { max-width: 760px; }
.ef-page .entry-content > .alignwide, .ef-page .entry-content > .alignfull, .ef-page .entry-content > .seitenwerk { max-width: none; }

/* Seitenwerk-Seiten: Sprungmarken nicht unter der festen Kopfzeile verstecken */
.sw-page [id] { scroll-margin-top: 84px; }

/* Fuß */
.ef-footer { border-top: 1px solid var(--ef-stroke); color: var(--ef-text2); font-size: 14px; }
.ef-footer .ef-wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; padding: 26px 0; }
.ef-footer ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.ef-footer a { color: inherit; text-decoration: none; }
.ef-footer a:hover { color: var(--ef-text); }
