/* ============================================================
   NO ES NADA VERLAG – Haupt-Stylesheet
   Bearbeitung: Klassen und Variablen in diesem Block anpassen
   ============================================================ */

/* --- Farben & Variablen --- */
:root {
  --color-bg:        #ffffff;
  --color-text:      #1a1a1a;
  --color-muted:     #6b7280;
  --color-border:    #e5e7eb;
  --color-accent:    #1a1a1a;
  --color-accent-hover: #444444;
  --color-footer-bg: #f9f9f9;

  --font-serif:      'Georgia', 'Times New Roman', serif;
  --font-sans:       system-ui, -apple-system, sans-serif;

  --max-width:       1100px;
  --radius:          12px;
  --gap:             1.5rem;
}

/* --- Reset & Basis --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

img { max-width: 100%; display: block; border-radius: var(--radius); }

ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* Nav */
.nav-list {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-list a {
  font-size: 0.9rem;
  color: var(--color-muted);
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

/* ============================================================
   HERO / INTRO-BEREICH
   ============================================================ */
.hero {
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.hero p {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   KATEGORIEN-GRID (2×2 wie im Muster)
   ============================================================ */
.categories {
  padding: 2.5rem 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.category-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity 0.2s;
}

.category-card:hover { opacity: 0.85; text-decoration: none; }

.category-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

/* Platzhalter falls kein Bild vorhanden */
.category-card__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.category-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ============================================================
   MONATS-EMPFEHLUNG
   ============================================================ */
.recommendation {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  text-align: center;
}

.recommendation h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.recommendation .meta-links {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.recommendation .meta-links a {
  color: var(--color-muted);
}
.recommendation .meta-links a:hover { color: var(--color-text); }

/* Buchempfehlung-Karte */
.book-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.book-card__cover {
  width: 160px;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.book-card__cover-placeholder {
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: 2/3;
  border-radius: 8px;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.book-card__info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.book-card__info .author {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.book-card__info p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn--outline:hover { background: var(--color-border); }

/* ============================================================
   BÜCHER-LISTE (für Kategorie-Seiten)
   ============================================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap);
  padding: 2rem 0;
}

.book-item {
  display: block;
}
.book-item:hover { text-decoration: none; opacity: 0.85; }

.book-item__cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.book-item__title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.book-item__author {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ============================================================
   PAGE-HEADER (für Unterseiten)
   ============================================================ */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.page-header p {
  color: var(--color-muted);
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color 0.2s;
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--color-muted);
}
.footer-col ul a:hover { color: var(--color-text); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .nav-list.open { display: flex; }

  .site-header { position: relative; }

  .categories-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .book-card { flex-direction: column; }

  .book-card__cover,
  .book-card__cover-placeholder { width: 120px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr 1fr; }
}
