/* ============================================================
   cloudgarten.de — Gartenbuch CSS v2
   
   GEÄNDERT vs v1:
   - Neuer .gb-header (Sandy, 90px Padding-top) ersetzt cg-page-header
   - Hamburger + Logo Override für .theme-wood
   - Footer Override für .theme-wood
   - Holz-Variablen jetzt konsistent mit beet.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* ── Holz-Variablen ──────────────────────────────────────── */
:root {
  --holz-eiche:       #d4a85a;
  --holz-eiche-hell:  #e8cc88;
  --holz-kiefer:      #c49040;
  --holz-schild:      #fdf0d0;
  --bg-galerie:       #f5edd8;
  --holz-dunkel:      #6b4c1e;
  --holz-text:        #5c3d1e;
}

/* ── Hamburger & Logo auf Holz-Seiten ────────────────────── */
.theme-wood .cg-hamburger span,
.theme-wood .cg-hamburger.is-light span,
.theme-wood .cg-hamburger.is-open span {
  background: var(--holz-dunkel);
}
.theme-wood .cg-top-logo,
.theme-wood .cg-top-logo.is-light {
  color: var(--holz-dunkel);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 0.05em;
}

/* ── Footer auf Holz-Seiten ──────────────────────────────── */
.theme-wood .cg-footer {
  background: var(--holz-dunkel);
}
.theme-wood .cg-footer a {
  color: var(--holz-eiche-hell);
}
.theme-wood .cg-footer a:hover {
  color: #fdf6e8;
}
.theme-wood .cg-footer-kofi a {
  color: var(--holz-eiche);
}

/* ── Gartenbuch-Header ───────────────────────────────────── 
   Sandy statt dunkelgrün. 
   padding-top: 90px → Hamburger (top: 20px, Höhe ~44px)
   hat Freiraum und überlappt den Titel NICHT. */
.gb-header {
  background: var(--bg-galerie);
  padding: 90px 1rem 1.5rem;
  text-align: center;
}
.gb-header-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--holz-dunkel);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}
.gb-header-sub {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #b09060;
  letter-spacing: 2px;
}

/* ── Hauptbereich ────────────────────────────────────────── */
.gb-section {
  background: var(--bg-galerie);
  padding: 1.5rem 1rem 3rem;
}
.gb-inner {
  max-width: 540px;
  margin: 0 auto;
}

/* ── Buchcontainer ──────────────────────────────────────── 
   Linker Buchrücken (Eichenholz = 12px solid),
   Rest: dünner Rahmen. Sandy Buchseite. */
.buch {
  background: var(--holz-schild);
  border-left: 12px solid var(--holz-eiche);
  border-top: 3px solid var(--holz-eiche-hell);
  border-right: 3px solid var(--holz-eiche-hell);
  border-bottom: 3px solid var(--holz-eiche-hell);
  overflow: hidden;
}

/* ── Buchseite ──────────────────────────────────────────── */
.buch-seite {
  padding: 1.5rem 1.5rem 1rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Bild ─────────────────────────────────────────────────── */
.seite-bild {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 4px solid var(--holz-eiche);
}

/* ── Stadium-Badge ─────────────────────────────────────── */
.pflanz-badge {
  display: inline-block;
  background: var(--holz-eiche);
  color: #fdf6e8;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  padding: 4px 8px;
  letter-spacing: 1px;
}

/* ── Pflanzenname ─────────────────────────────────────────── */
.buch-pflanze {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 500;
  color: var(--holz-text);
  margin: 0;
}

/* ── Datum ─────────────────────────────────────────────── */
.buch-datum {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: #b09060;
  letter-spacing: 1px;
  margin: 0;
}

/* ── Kommentartext ──────────────────────────────────────── */
.kommentar-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--holz-text);
  line-height: 1.85;
  white-space: pre-wrap;
  border-left: 3px solid var(--holz-eiche);
  padding-left: 1rem;
  margin: 0;
}

/* ── Autor ─────────────────────────────────────────────── */
.buch-autor {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: #8b6420;
  letter-spacing: 1px;
  text-align: right;
  margin: 0;
}

/* ── Leerseite ─────────────────────────────────────────── */
.buch-leer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: #b09060;
  letter-spacing: 1px;
  line-height: 2.5;
}

/* ── Buchnavigation (Kiefernton) ────────────────────────── */
.buch-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--holz-eiche-hell);
  border-top: 3px solid var(--holz-eiche);
  gap: 0.5rem;
}
.buch-nav button {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--holz-text);
  background: transparent;
  border: 2px solid var(--holz-eiche);
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1.5;
}
.buch-nav button:hover:not(:disabled) {
  background: var(--holz-eiche);
  color: #fdf6e8;
}
.buch-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.buch-seitenzahl {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--holz-dunkel);
  text-align: center;
  flex: 1;
  letter-spacing: 0.05em;
}

/* ── Trennlinie ─────────────────────────────────────────── */
.gb-trennlinie {
  height: 1px;
  background: var(--holz-eiche);
  margin: 2.5rem 0;
  opacity: 0.4;
}

/* ── Formularcontainer ──────────────────────────────────── */
.gb-form {
  background: var(--holz-schild);
  border: 2px solid var(--holz-eiche);
  padding: 1.5rem;
}
.gb-form h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--holz-dunkel);
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

/* Kontext-Hinweis (welche Pflanze aus /beet/) */
.form-kontext {
  display: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: #5c7a4e;
  background: rgba(90, 154, 106, 0.08);
  border: 1px solid rgba(90, 154, 106, 0.3);
  padding: 8px 10px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  line-height: 2;
}

/* Labels */
.gb-form label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--holz-dunkel);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

/* Textarea + Input */
.gb-input {
  width: 100%;
  border: 2px solid var(--holz-eiche);
  background: white;
  color: var(--holz-text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
  margin-bottom: 1.25rem;
  border-radius: 0; /* kein rounding — passt zur Holzästhetik */
}
.gb-input:focus {
  outline: none;
  border-color: var(--holz-dunkel);
}

/* DSGVO-Hinweis */
.gb-dsgvo {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: #b09060;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Submit */
.gb-submit-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #fdf6e8;
  background: var(--holz-kiefer);
  border: 2px solid var(--holz-eiche);
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.gb-submit-btn:hover:not(:disabled) {
  background: var(--holz-dunkel);
}
.gb-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status-Meldung */
.gb-status {
  display: none;
  margin-top: 1rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 10px 14px;
  letter-spacing: 0.04em;
  line-height: 1.9;
}
.gb-status--erfolg {
  background: rgba(90, 154, 106, 0.08);
  color: #3d6b3a;
  border: 1px solid rgba(90, 154, 106, 0.3);
}
.gb-status--fehler {
  background: rgba(184, 122, 86, 0.1);
  color: var(--holz-text);
  border: 1px solid rgba(184, 122, 86, 0.3);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .gb-header { padding-top: 80px; }
  .gb-header-title { font-size: 10px; }
  .buch-nav {
    flex-direction: column;
    gap: 0.6rem;
  }
  .buch-seitenzahl { order: -1; }
  .buch-nav button { width: 100%; }
}
