/*
Theme Name: EchoForge Theme
Theme URI: https://maxim-matthew.com
Author: Maxim Matthew
Description: Schlankes natives WordPress-Theme fuer EchoForge/NeverlandForge ohne Elementor-Abhaengigkeit.
Version: 0.1.1
Text Domain: echoforge-theme
*/

:root {
  --ef-bg: #f7f9fc;
  --ef-surface: #ffffff;
  --ef-text: #191c1e;
  --ef-muted: #5f5e5e;
  --ef-line: #e4bdc2;
  --ef-primary: #b80049;
  --ef-primary-dark: #900038;
  --ef-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--ef-bg);
  color: var(--ef-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.ef-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ef-site-header,
.ef-site-footer {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--ef-line);
  border-style: solid;
  border-width: 0;
}

.ef-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom-width: 1px;
  backdrop-filter: blur(16px);
}

.ef-site-footer {
  margin-top: auto;
  border-top-width: 1px;
}

.ef-shell {
  width: min(100% - 32px, var(--ef-max));
  margin: 0 auto;
}

.ef-header-inner,
.ef-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.ef-brand,
.ef-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ef-text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ef-brand img {
  display: block;
  max-height: 44px;
  width: auto;
}

.ef-site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.1;
}

.ef-nav .menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ef-nav a {
  color: var(--ef-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.ef-nav a:hover,
.ef-nav .current-menu-item > a,
.ef-nav .current_page_item > a {
  color: var(--ef-primary);
}

.ef-nav .menu-item-echoforge-profile > a {
  color: var(--ef-text);
}

.ef-nav .menu-item-echoforge-login > a,
.ef-nav .menu-item-echoforge-logout > a {
  border: 1px solid var(--ef-primary);
  border-radius: 999px;
  color: var(--ef-primary);
  padding: 8px 14px;
}

.ef-nav .menu-item-echoforge-login > a:hover,
.ef-nav .menu-item-echoforge-logout > a:hover {
  background: var(--ef-primary);
  color: #fff;
}

.ef-main {
  flex: 1 0 auto;
}

.ef-content-shell {
  width: min(100% - 32px, var(--ef-max));
  margin: 48px auto;
}

.ef-content-full {
  width: 100%;
  margin: 0;
}

.ef-page-title {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.ef-entry-content > :first-child {
  margin-top: 0;
}

.ef-entry-content > :last-child {
  margin-bottom: 0;
}

.ef-footer-inner {
  min-height: 88px;
  color: var(--ef-muted);
  font-size: 0.9rem;
}

.ef-footer-copy {
  margin: 0;
}

.ef-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .ef-header-inner,
  .ef-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .ef-nav .menu {
    gap: 12px;
  }
}