/* ===================================================
   Ferngarten — Notizen aus dem Garten
   Eigenständiges Stylesheet, keine externen Abhängigkeiten.
   =================================================== */

:root {
  --bg:        #f7f5ef;
  --bg-alt:    #efece1;
  --fg:        #2b2a25;
  --fg-soft:   #565349;
  --dim:       #8a8577;
  --accent:    #3f6b3a;
  --accent-2:  #6f8f5a;
  --accent-lt: #e3ecdb;
  --line:      #d8d3c4;
  --card:      #ffffff;
  --shadow:    0 1px 2px rgba(43,42,37,.06), 0 6px 20px rgba(43,42,37,.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.72 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(247,245,239,.94);
  position: sticky; top: 0; z-index: 50;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 62px; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.brand .mark { width: 26px; height: 26px; flex: 0 0 26px; }
.brand b { font-weight: 600; }
.brand span { color: var(--dim); font-size: 14px; }

.topnav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.topnav a { color: var(--fg-soft); padding: 4px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--accent); text-decoration: none; border-bottom-color: var(--accent-2); }
.topnav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 46px 0 34px; border-bottom: 1px solid var(--line); }
.hero .eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.hero h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; font-weight: 600; margin: 0 0 14px; }
.hero p { margin: 0; color: var(--fg-soft); max-width: 60ch; font-size: 18px; }

/* ---------- Inhalt ---------- */
main { padding: 40px 0 70px; }

h2 { font-size: 25px; font-weight: 600; margin: 42px 0 14px; }
h3 { font-size: 20px; font-weight: 600; margin: 30px 0 10px; }
h4 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
p  { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 7px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

blockquote {
  margin: 22px 0; padding: 14px 18px;
  border-left: 3px solid var(--accent-2);
  background: var(--accent-lt);
  color: var(--fg-soft); border-radius: 0 6px 6px 0;
}
blockquote p:last-child { margin: 0; }

.lead { font-size: 19px; color: var(--fg-soft); }

/* ---------- Karten ---------- */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 26px 0 34px; }

.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px 18px 16px; color: inherit;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(43,42,37,.07), 0 12px 28px rgba(43,42,37,.09); }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p  { margin: 0; font-size: 15px; color: var(--fg-soft); }

.postlist { list-style: none; padding: 0; margin: 22px 0; }
.postlist li { border-bottom: 1px solid var(--line); padding: 16px 0; margin: 0; }
.postlist li:last-child { border-bottom: 0; }
.postlist a { font-size: 18px; font-weight: 600; }
.postlist .meta { font-size: 14px; color: var(--dim); margin-top: 3px; }
.postlist .excerpt { color: var(--fg-soft); font-size: 15.5px; margin: 6px 0 0; }

/* ---------- Artikel ---------- */
.article-head { margin-bottom: 26px; }
.article-head .meta { font-size: 14px; color: var(--dim); margin-bottom: 8px; }
.article-head h1 { font-size: clamp(26px, 4.5vw, 34px); line-height: 1.25; margin: 0 0 10px; font-weight: 600; }

figure { margin: 26px 0; }
figure img { border-radius: 10px; border: 1px solid var(--line); }
figure figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; text-align: center; }

.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 24px 0 30px; }
.toc p { font-weight: 600; margin: 0 0 8px; font-size: 15px; }
.toc ol { margin: 0; }
.toc li { margin: 0 0 4px; font-size: 15px; }

.tag { display: inline-block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-lt); border-radius: 999px; padding: 2px 10px; margin-right: 6px; }

.notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 24px 0; font-size: 15.5px; }
.notice strong { color: var(--fg); }

/* ---------- Tabellen ---------- */
.tablewrap { overflow-x: auto; margin: 22px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; background: var(--card); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; font-size: 14.5px; }
tr:last-child td { border-bottom: 0; }

/* ---------- Kalender ---------- */
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 24px 0; }
.month { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.month h3 { margin: 0 0 6px; font-size: 16px; }
.month ul { margin: 0; padding-left: 18px; font-size: 15px; }
.month li { margin: 0 0 3px; }

/* ---------- Pflanzen ---------- */
.plant { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 0 0 18px; box-shadow: var(--shadow); }
.plant h3 { margin: 0 0 4px; font-size: 21px; }
.plant .latin { font-style: italic; color: var(--dim); font-size: 15px; margin: 0 0 12px; }
.plant dl { display: grid; grid-template-columns: 150px 1fr; gap: 4px 14px; margin: 0; font-size: 15.5px; }
.plant dt { color: var(--dim); }
.plant dd { margin: 0; }

/* ---------- Fußzeile ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 36px 0 46px; font-size: 15px; color: var(--fg-soft); }
footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
footer h4 { margin: 0 0 8px; font-size: 15px; color: var(--fg); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 0 0 5px; }
footer a { color: var(--fg-soft); }
footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ---------- Sonstiges ---------- */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 14px; border-radius: 6px; z-index: 100; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .wrap { flex-direction: column; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .hero { padding: 30px 0 24px; }
  .plant dl { grid-template-columns: 1fr; }
  .plant dt { margin-top: 6px; }
}
