/* ============================================================
   ePA4Y Theme — Layout CSS
   Header, Footer, Blog-Übersicht, Single-Post
   ============================================================ */

/* ===== OUTER BOXED LAYOUT ===== */
html {
  background: #d8d8d8;
}
body {
  background: #d8d8d8 !important;
}
#page.epa4y-site {
  max-width: 1200px;
  margin: 0 auto;
  background: #f8f7f4;
  box-shadow: 0 0 40px rgba(0,0,0,0.1);
  min-height: 100vh;
  position: relative;
}

/* ===== HEADER ===== */
.epa4y-header {
  background: #ffffff;
  border-top: 3px solid #0d19a3;
  border-bottom: 0.5px solid #e8e6e0;
  position: sticky;
  top: 0;
  z-index: 9000;
}
.epa4y-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 64px;
}
.epa4y-header-logo a,
.epa4y-site-name {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.epa4y-header-logo img {
  height: 44px;
  width: auto;
}
.epa4y-site-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0d19a3;
  letter-spacing: -0.3px;
}
.epa4y-nav-right {
  display: flex;
  align-items: center;
}

/* ===== CONTENT ===== */
.epa4y-content-wrap {
  min-height: 60vh;
}
.epa4y-main {
  padding: 0;
}
.epa4y-page-content {
  padding: 0;
}

/* ===== FOOTER ===== */
.epa4y-footer {
  background: #b0b8ee !important;
  margin-top: 0;
}
.epa4y-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 36px 0;
}
.epa4y-footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}
.epa4y-footer-widget-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: none;
}
.epa4y-footer-widget {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #888;
  line-height: 1.75;
}
.epa4y-footer-widget a {
  color: #888;
  text-decoration: none;
  display: block;
  padding: 3px 0;
  transition: color 0.15s;
}
.epa4y-footer-widget a:hover { color: #ffffff; }
.epa4y-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.epa4y-footer-nav {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.epa4y-footer-nav li a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #666;
  text-decoration: none;
  padding: 0 16px 0 0;
  transition: color 0.15s;
}
.epa4y-footer-nav li a:hover { color: #ffffff; }
.epa4y-footer-copy {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #555;
}

/* ===== BLOG ÜBERSICHT ===== */
.epa4y-blog-archive {
  background: #f8f7f4;
  padding: 48px 36px;
}
.epa4y-blog-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.epa4y-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.epa4y-blog-card {
  background: #ffffff;
  border: 0.5px solid #e8e6e0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  list-style: none;
}
.epa4y-blog-card:hover {
  border-color: #0d19a3;
  box-shadow: 0 4px 20px rgba(13,25,163,0.08);
}
.epa4y-blog-card-img {
  display: block;
  overflow: hidden;
}
.epa4y-blog-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.epa4y-blog-card:hover .epa4y-blog-card-img img {
  transform: scale(1.02);
}
.epa4y-blog-card-body {
  padding: 22px 24px 24px;
}
.epa4y-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.epa4y-blog-cat a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0d19a3;
  text-decoration: none;
  background: #eaecfb;
  padding: 3px 10px;
  border-radius: 4px;
}
.epa4y-blog-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #aaa;
}
.epa4y-blog-card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.epa4y-blog-card-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.15s;
}
.epa4y-blog-card-title a:hover { color: #0d19a3; }
.epa4y-blog-card-excerpt {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 16px;
}
.epa4y-blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #e03a2e;
  text-decoration: none;
  transition: gap 0.2s;
}
.epa4y-blog-read-more:hover { gap: 8px; }
.epa4y-blog-empty {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: #aaa;
}

/* Pagination */
.epa4y-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.epa4y-pagination .nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.epa4y-pagination .page-numbers {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 0.5px solid #e8e6e0;
  color: #555;
  text-decoration: none;
  transition: all 0.15s;
}
.epa4y-pagination .page-numbers.current {
  background: #0d19a3;
  color: #fff;
  border-color: #0d19a3;
}
.epa4y-pagination .page-numbers:hover {
  border-color: #0d19a3;
  color: #0d19a3;
}

/* ===== SINGLE BLOG POST ===== */
.epa4y-single-wrap {
  background: #f8f7f4;
}
.epa4y-single-post {
  list-style: none;
}

/* Hero */
.epa4y-single-hero {
  background: #ffffff;
  padding: 48px 48px 40px;
  border-bottom: 0.5px solid #f0eeea;
}
.epa4y-single-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.epa4y-single-cat a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0d19a3;
  background: #eaecfb;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.epa4y-single-date,
.epa4y-single-read {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #aaa;
}
.epa4y-single-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-transform: none !important;
}
.epa4y-single-lead {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 680px;
}
.epa4y-single-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.epa4y-single-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.epa4y-single-author-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.epa4y-single-author-role {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #aaa;
}

/* Featured Image */
.epa4y-single-featured {
  background: #fff;
}
.epa4y-single-featured img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Content */
.epa4y-single-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 36px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.8;
}
.epa4y-single-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 40px 0 16px;
  letter-spacing: -0.3px;
  text-transform: none !important;
}
.epa4y-single-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 32px 0 12px;
  text-transform: none !important;
}
.epa4y-single-content p {
  margin-bottom: 20px;
  text-transform: none !important;
}
.epa4y-single-content a {
  color: #e03a2e;
  text-decoration: none;
  font-weight: 500;
}
.epa4y-single-content a:hover { text-decoration: underline; }
.epa4y-single-content ul,
.epa4y-single-content ol {
  margin: 0 0 20px 24px;
}
.epa4y-single-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.epa4y-single-content blockquote {
  background: #fff;
  border-left: 3px solid #0d19a3;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-style: italic;
  color: #444;
}
.epa4y-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}
.epa4y-single-content code {
  background: #eaecfb;
  color: #0d19a3;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: monospace;
}
.epa4y-single-content pre {
  background: #1a1a1a;
  color: #eee;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
}

/* Tags */
.epa4y-single-tags {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 36px 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.epa4y-single-tag {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #666;
  background: #fff;
  border: 0.5px solid #e8e6e0;
  border-radius: 20px;
  padding: 4px 12px;
  text-decoration: none;
  transition: all 0.15s;
}
.epa4y-single-tag:hover {
  border-color: #0d19a3;
  color: #0d19a3;
}

/* Post Navigation */
.epa4y-single-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 0.5px solid #f0eeea;
}
.epa4y-single-nav-next { text-align: right; }
.epa4y-single-nav-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.epa4y-single-nav-title {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}
.epa4y-single-nav-title:hover { color: #e03a2e; }

/* Weitere Beiträge */
.epa4y-single-related {
  background: #fff;
  border-top: 0.5px solid #f0eeea;
  padding: 40px 36px 48px;
}
.epa4y-single-related-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  text-transform: none !important;
}
.epa4y-single-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.epa4y-single-related-card {
  border: 0.5px solid #e8e6e0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s;
}
.epa4y-single-related-card:hover { border-color: #0d19a3; }
.epa4y-single-related-img img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.epa4y-single-related-text {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.epa4y-single-related-cat a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #0d19a3;
  text-decoration: none;
}
.epa4y-single-related-head {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}
.epa4y-single-related-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  color: #aaa;
}

/* Lesezeit Helper */
/* (wird per PHP berechnet) */

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .epa4y-header-inner { padding: 0 20px; }
  .epa4y-blog-archive { padding: 32px 20px; }
  .epa4y-blog-grid { grid-template-columns: 1fr; }
  .epa4y-single-hero { padding: 32px 24px; }
  .epa4y-single-title { font-size: 24px; }
  .epa4y-single-content { padding: 32px 24px; }
  .epa4y-single-tags { padding: 0 24px 24px; }
  .epa4y-single-nav { padding: 24px; grid-template-columns: 1fr; }
  .epa4y-single-related { padding: 32px 24px; }
  .epa4y-single-related-grid { grid-template-columns: 1fr; }
  .epa4y-footer-inner { padding: 32px 20px 0; }
  .epa4y-footer-widgets { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .epa4y-single-featured img { height: 240px; }
  .epa4y-single-nav { grid-template-columns: 1fr; }
  .epa4y-single-nav-next { text-align: left; }
}

/* ===== RECAPTCHA BADGE ===== */
/* Badge dezent positionieren — Google schreibt vor dass es sichtbar bleibt */
.grecaptcha-badge {
  opacity: 0.6;
  transition: opacity 0.3s;
}
.grecaptcha-badge:hover {
  opacity: 1;
}
/* Hinweistext unter Formularen (DSGVO-konform) */
.epa4y-recaptcha-notice {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  color: #aaa;
  line-height: 1.55;
  margin-top: 10px;
}
.epa4y-recaptcha-notice a {
  color: #aaa;
  text-decoration: underline;
}
.epa4y-recaptcha-notice a:hover {
  color: #555;
}

/* reCAPTCHA Badge */
.grecaptcha-badge { opacity: 0.6; transition: opacity 0.3s; }
.grecaptcha-badge:hover { opacity: 1; }
.epa4y-recaptcha-notice { font-family: 'Inter', system-ui, sans-serif; font-size: 11px; color: #aaa; line-height: 1.55; margin-top: 10px; }
.epa4y-recaptcha-notice a { color: #aaa; text-decoration: underline; }
