/*
Theme Name: Super Simple Static Clean (Stufe 5)
Theme URI: https://example.com
Author: You
Version: 1.2
Description: Minimalstes Theme mit Google Fonts, sauberer Vererbung & Grid für Posts.
*/

:root {
  --c-header: #e6f0ff;
  --c-main: #ffffff;
  --c-footer: #f5f7fa;
  --text: #222;

  /* Typo-Tokens */
   --ff-body: "Inter", system-ui, sans-serif;
  --ff-heading: "Poppins", sans-serif;

  --radius: 14px;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
  --gap: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* === Basis-Vererbung === */
body {
  font-family: var(--ff-body);
  background: #fff;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: var(--ff-heading);
  line-height: 1.2;
  margin: 0.25em 0;
}

/* Nur überschreiben, wenn nötig */
p { margin: 0.5em 0; }

header, main, footer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

header { background: var(--c-header); min-height: 100px; }
main   { background: var(--c-main);  min-height: 400px; }
footer { background: var(--c-footer); min-height: 80px; flex-direction: column; gap: 6px; }

.wrap { max-width: 1100px; width: 100%; padding: 0 16px; }

/* === Grid für Posts === */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  margin-top: 24px;
  text-align: left; /* Cards sollen nicht zentriert sein */
}

.post-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.post-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  padding-bottom: 12px;
}

.post-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-header { padding: 14px 16px 0 16px; }
.post-title  { font-size: 1.25rem; margin: 0; }
.post-meta   { color: #666; }

.post-excerpt {
  padding: 8px 16px 0 16px;
  color: #333;
}

/* Pagination minimal */
.pagination {
  margin: 32px 0 8px;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #333;
  background: #eef2f7;
}
.pagination .current {
  background: #cfe2ff;
  font-weight: 600;
}

.nav {
  padding: 16px;
  text-align: center;
}

.nav-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

/* Dropdown */
.menu-item-has-children > ul {
  display: none;
  position: absolute;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.menu-item-has-children.open > ul {
  display: block;
}

/* Mobile */
@media(max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-item-has-children > ul {
    position: static;
    box-shadow: none;
    padding-left: 16px;
  }
}
