/*
Theme Name: Minimal Grid Theme
Author: Jesus begegnen TEAM
Version: 1.0
*/

/* ========================
   RESET & BASE
======================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -30px;
  background: url('https://cdn.jesus-begegnen.net/api-files/img/background/bg16.png') center/cover no-repeat;
  filter: blur(14px);
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

/* ========================
   HEADER
======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-header p {
  margin: 0;
  text-align: left;
  flex: 1;
  color: white;
}

.site-header nav {
  margin-left: auto;
}

.site-header nav a {
  margin-left: 24px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

.site-header nav a:hover {
  color: #fff;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  opacity: 0.85;
  transition: opacity 0.2s;
}

nav ul li a:hover {
  opacity: 1;
}

/* ========================
   MAIN
======================== */
main, .site-main {
  flex: 1;
  width: 100%;
}

/* ========================
   HERO — ausgeblendet
======================== */
.hero {
  display: none;
}

/* ========================
   PAGE TITLE
======================== */
.page-title {
  text-align: center;
  padding: 32px 20px 8px;
  color: #fff;
}

.page-title h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
  margin-bottom: 8px;
}

.page-title p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

/* ========================
   SECTION LABEL
======================== */
.section-label {
  text-align: center;
  padding: 12px 20px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ========================
   POST GRID
======================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 180px);
  justify-content: center;
  gap: 14px;
  padding: 10px 40px 30px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

/* ========================
   GRID CARD
======================== */
.grid-item {
  width: 180px;
  height: fit-content;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

.grid-item a {
  display: block;
  height: 100%;
}

.grid-item .thumb {
  width: 180px;
  height: 110px;
  object-fit: cover;
}

.grid-item .thumb-placeholder {
  width: 180px;
  height: 110px;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}

.grid-item .card-body {
  padding: 10px 12px 14px;
}

.grid-item .card-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
}

.grid-item h2 {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  margin-bottom: 6px;
}

.grid-item .card-excerpt {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.4;
}

.grid-item .card-meta {
  margin-top: 8px;
  font-size: 0.68rem;
  color: #bbb;
}

/* ========================
   FOOTER
======================== */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, 160px);
    padding: 10px 16px 30px;
    gap: 10px;
  }

  .grid-item {
    width: 160px;
  }

  .grid-item .thumb,
  .grid-item .thumb-placeholder {
    width: 160px;
    height: 95px;
  }

  .site-header {
    padding: 12px 20px;
  }

  .page-title h1 {
    font-size: 2rem;
  }
}

/* ========================
   SINGLE POST
======================== */
.single-post {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 20px;
}

.single-header {
  text-align: center;
  margin-bottom: 36px;
  color: white;
}

.single-content {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 40px 48px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #f0f0f0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.single-header .card-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}

.single-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 14px;
}

.single-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}

.single-thumb {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  max-height: 480px;
}

.single-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-content h2,
.single-content h3 {
  margin: 28px 0 12px;
  font-weight: 700;
  color: #ffffff;
}

.single-content p {
  margin-bottom: 18px;
  color: #ddd;
}

.single-content a {
  color: #7ecfaa;
  text-decoration: underline;
}

.single-content:empty::after {
  content: 'Dieser Beitrag hat noch keinen Inhalt.';
  color: #666;
  font-style: italic;
}

.single-back {
  text-align: center;
  padding: 28px 0 10px;
}

.single-back a {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.1);
  transition: all 0.2s;
}

.single-back a:hover {
  background: rgba(255,255,255,0.22);
  color: white;
}

@media (max-width: 600px) {
  .single-content {
    padding: 24px 20px;
  }

  .single-post {
    padding: 24px 16px;
  }
}

/* ========================
   PAGE (nicht Post)
======================== */
.page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 36px;
  color: white;
}

.page-content {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 40px 48px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1a1a1a;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.page-header .card-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 14px;
}

.page-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}

.page-thumb {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  max-height: 480px;
}

.page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-content h2,
.page-content h3 {
  margin: 28px 0 12px;
  font-weight: 700;
  color: #111;
}

.page-content p {
  margin-bottom: 18px;
  color: #333;
}

.page-content a {
  color: #0066cc;
  text-decoration: underline;
}

.page-content:empty::after {
  content: 'Diese Seite hat noch keinen Inhalt.';
  color: #999;
  font-style: italic;
}

.page-back {
  text-align: center;
  padding: 28px 0 10px;
}

.page-back a {
  display: inline-block;
  color: rgba(0,0,0,0.6);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.page-back a:hover {
  background: rgba(0,0,0,0.12);
  color: #000;
}

@media (max-width: 600px) {
  .page-content {
    padding: 24px 20px;
  }

  .page {
    padding: 24px 16px;
  }
}
