/*
Theme Name: Evermarch
Theme URI: https://evermarch.org
Author: Evermarch
Description: Dunkles Community-Portal im Stil eines WoW-Fanmagazins: Banner, Highlights, Beitragsliste, Seitenleiste und Namensschmiede. Inoffizielles Fanprojekt, nicht mit Blizzard Entertainment verbunden.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evermarch
Tags: dark, blog, news, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

html { background: #101010; }
body { margin: 0; }
/* Layout: dunkles WoW-Community-Portal. Kopfzeile mit Menü, Highlights als zwei große Karten, Beitragsliste mit Tabs links, Info-Spalte (Serverstatus, Token, Kalender, Werkzeug) rechts. */
:root {
  --bg: #101010;           /* wie theme-color der Vorlage: fast schwarz */
  --bg-2: #171717;         /* Kartenfläche */
  --bg-3: #1f1f1f;         /* erhöhte Fläche, Eingaben */
  --line: #2b2b2b;
  --text: #ece8df;
  --text-dim: #9a968c;
  --amber: #f0b44c;        /* einziger Akzent */
  --good: #62c370;
  --warn: #d9604c;
  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  padding-block: 0 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1180px; margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0; letter-spacing: .01em; text-wrap: balance; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Kopfzeile */
header.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 28px; letter-spacing: .02em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { color: var(--amber); font-weight: 700; }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-right: auto; }
nav.main a { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; color: var(--text-dim); }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); background: var(--bg-3); }
.search { display: flex; }
.search input { width: 190px; max-width: 100%; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: 8px 12px; border-radius: 4px 0 0 4px; font: inherit; font-size: 15px; }
.search button { background: var(--bg-3); border: 1px solid var(--line); border-left: 0; padding: 0 12px; border-radius: 0 4px 4px 0; color: var(--text-dim); }
.btn { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; background: var(--amber); color: #1a1204; border: 0; padding: 9px 18px; border-radius: 4px; }
.btn:hover { filter: brightness(1.1); }
.btn.line { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.line:hover { border-color: var(--amber); color: var(--amber); }

.banner { position: relative; margin-top: 20px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.banner img { display: block; width: 100%; height: auto; aspect-ratio: 2048 / 768; object-fit: cover; min-height: 150px; }
.banner::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, transparent, rgba(16,16,16,.88)); pointer-events: none; }
.banner-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 clamp(14px, 3vw, 32px) clamp(10px, 2.2vw, 22px); text-align: center; }
.banner-text h1 { font-size: clamp(26px, 5.4vw, 56px); text-transform: uppercase; letter-spacing: .05em; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.banner-text p { color: var(--text); font-size: clamp(13px, 1.8vw, 18px); text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.notice { margin-block: 16px 0; padding: 8px 14px; background: var(--bg-2); border: 1px dashed var(--line); border-radius: 4px; font-size: 14px; color: var(--text-dim); }

/* Layout */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin-top: 28px; align-items: start; }
@media (max-width: 960px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.cols > * { min-width: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head h2 { font-size: 30px; text-transform: uppercase; letter-spacing: .03em; }
.sec-head p { color: var(--text-dim); font-size: 15px; }
.sec-head a { color: var(--amber); font-family: var(--font-head); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: 16px; }
.sec-head a:hover { text-decoration: underline; }
section { margin-bottom: 40px; }

/* Karten */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #46402f; transform: translateY(-2px); }
.card .img { aspect-ratio: 16 / 9; position: relative; max-width: 100%; }
.card .body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.card h3 { font-size: 24px; }
.card p { color: var(--text-dim); font-size: 15px; }
.label { display: inline-block; justify-self: start; font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; background: var(--bg-3); color: var(--amber); }
.label.guide { color: #7fc4d8; }
.label.hotfix { color: #e0846e; }
.label.video { color: #b7a3e8; }
.meta { font-size: 13px; color: var(--text-dim); }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.hl-grid .card .img { aspect-ratio: 16 / 8; }
/* Bildflächen, rein aus CSS gemalt */
.i1 { background: radial-gradient(circle at 70% 30%, #f0b44c55 0 8%, transparent 40%), linear-gradient(160deg, #2b3550, #11141d 70%); }
.i2 { background: radial-gradient(ellipse at 30% 90%, #3a8f7a66, transparent 55%), linear-gradient(200deg, #1d2b2a, #101514 75%); }
.i3 { background: radial-gradient(circle at 20% 20%, #b0402a77, transparent 45%), linear-gradient(120deg, #2a1713, #120d0c 70%); }
.i4 { background: radial-gradient(circle at 80% 70%, #6a50b866, transparent 45%), linear-gradient(140deg, #1e1a30, #0f0e17 70%); }
.i5 { background: radial-gradient(circle at 50% 120%, #f0b44c44, transparent 55%), linear-gradient(180deg, #25221a, #121110 80%); }
.img::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px); }

/* Tabs und Liste */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { background: transparent; border: 0; border-bottom: 3px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); padding: 8px 14px; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--amber); border-bottom-color: var(--amber); }
.list { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; transition: border-color .15s; }
.row:hover { border-color: #46402f; }
.row .img { border-radius: 4px; aspect-ratio: 16 / 10; position: relative; }
.row .t { display: grid; gap: 4px; align-content: start; }
.row h3 { font-size: 22px; }
.row p { color: var(--text-dim); font-size: 15px; }
@media (max-width: 520px) { .row { grid-template-columns: minmax(0, 1fr); } }

/* Seitenspalte */
.widget { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin-bottom: 18px; }
.widget h4 { font-size: 20px; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.widget h4 small { font-family: var(--font-body); font-size: 12px; letter-spacing: 0; color: var(--text-dim); text-transform: none; font-weight: 400; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv:first-of-type { border-top: 0; }
.kv span:last-child { color: var(--text-dim); text-align: right; }
.st { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.dot.off { background: var(--warn); }
.spark { width: 100%; height: 56px; display: block; margin-top: 6px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 32px; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; color: var(--text-dim); font-weight: 500; }
.cal { display: grid; gap: 6px; }
.cal div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; font-size: 14px; align-items: center; }
.cal b { font-family: var(--font-head); font-size: 15px; letter-spacing: .05em; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.name-out { background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; padding: 12px; font-family: var(--font-head); font-size: 26px; font-weight: 600; letter-spacing: .03em; margin-bottom: 10px; overflow-wrap: anywhere; min-height: 54px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { padding: 7px 14px; font-size: 15px; }

/* Aktionsband */
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; background: linear-gradient(100deg, #2a2113, #171717 65%); border: 1px solid #3d311a; border-radius: 6px; padding: 22px 24px; }
.band h3 { font-size: 28px; margin-bottom: 4px; }
.band p { color: var(--text-dim); }
@media (max-width: 600px) { .band { grid-template-columns: minmax(0, 1fr); } }

footer { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--text-dim); font-size: 14px; }
footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
footer a:hover { color: var(--amber); }

/* ---------- WordPress-Anpassungen ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--amber); color: #1a1204; padding: 8px 14px; border-radius: 4px; font-weight: 600; }
.skip:focus { left: 8px; }
body.admin-bar header.top { margin-top: 0; }

nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
nav.main li { margin: 0; }
nav.main .current-menu-item > a,
nav.main .current_page_item > a,
nav.main .current-menu-ancestor > a { color: var(--text); background: var(--bg-3); }
.brand img.custom-logo { width: 28px; height: 28px; object-fit: contain; display: block; }
.brand a.custom-logo-link { display: flex; }
.search label { display: block; }
.search { align-items: stretch; }
.btn { cursor: pointer; text-align: center; }
a.btn { display: inline-block; }
a.btn.line { background: transparent; }

.tab { display: inline-block; }
.tab[aria-current="page"] { color: var(--amber); border-bottom-color: var(--amber); }

.card .img, .row .img { overflow: hidden; }
.card .img img, .row .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner img { max-width: 100%; }
.empty { padding: 16px 4px; }

.page-title { font-size: 30px; text-transform: uppercase; letter-spacing: .03em; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: grid; gap: 14px; }

/* Seitenleiste */
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-dim); }
.widget li:first-child { border-top: 0; }
.widget li a { color: var(--text); }
.widget li a:hover { color: var(--amber); }
.widget .search input { width: 100%; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }

/* Namensschmiede */
.name-out { background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; padding: 12px; font-family: var(--font-head); font-size: 26px; font-weight: 600; letter-spacing: .03em; margin-bottom: 10px; overflow-wrap: anywhere; min-height: 54px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { padding: 7px 14px; font-size: 15px; }
.btn[type="button"], button.btn { border: 0; }
button.btn.line { border: 1px solid var(--line); }

/* Anmeldung in der Kopfzeile */
#authbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: .03em; color: var(--amber); }

/* Beiträge und Seiten */
.entry-head { display: grid; gap: 10px; margin-bottom: 18px; }
.entry-head h1 { font-size: clamp(32px, 5vw, 48px); }
.entry-thumb { margin: 0 0 22px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { max-width: 70ch; font-size: 17px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; color: var(--text); }
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 26px; }
.entry-content a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; border-radius: 4px; }
.entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--amber); color: var(--text-dim); }
.entry-content pre, .entry-content code { background: var(--bg-3); border-radius: 4px; }
.entry-content code { padding: 2px 6px; font-size: .92em; }
.entry-content pre { padding: 14px; overflow-x: auto; }
.entry-content pre code { padding: 0; }
.entry-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--text-dim); margin-top: 6px; }
.entry-foot { margin-top: 24px; }
.entry-foot a { color: var(--amber); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-head); font-size: 20px; }
.post-nav a { color: var(--amber); }

/* Seitennummern */
.pagination { margin-top: 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: .04em; padding: 6px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-dim); }
.page-numbers.current, a.page-numbers:hover { color: var(--amber); border-color: var(--amber); }

/* Kommentare */
.comments { margin-top: 40px; display: grid; gap: 18px; }
.comments h2, .comment-reply-title { font-size: 28px; text-transform: uppercase; letter-spacing: .03em; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comment-list .children { list-style: none; padding-left: 20px; margin-top: 12px; display: grid; gap: 12px; }
.comment-body { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; overflow-wrap: anywhere; }
.comment-meta { font-size: 14px; color: var(--text-dim); margin-bottom: 6px; }
.comment-meta .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; color: var(--text); font: inherit; padding: 10px 12px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--amber); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: baseline; }
.comment-form-cookies-consent label { margin: 0; }
.comment-form .submit { background: var(--amber); color: #1a1204; border: 0; padding: 9px 18px; border-radius: 4px; font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; justify-self: start; }

/* Anmelde- und Registrierungsseite von WordPress */
body.login { background: #101010; }

/* Kopfzeile kompakter, damit Anmelden und Registrieren in einer Reihe bleiben */
header.top { column-gap: 20px; }
#authbox .btn { padding: 7px 14px; font-size: 15px; }
.search input { width: 150px; }
header.top { column-gap: 14px; }
nav.main a { font-size: 16px; padding: 6px 9px; }
.search input { width: 120px; }
