@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-latin-600-normal.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-500-normal.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-800-normal.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f4f8f7;
  --card: #ffffff;
  --text: #1f2d2c;
  --muted: #56706d;
  --green: #1f5e5b;
  --green-dark: #174a48;
  --green-soft: #e3efed;
  --cream: #fff6e6;
  --gold: #f2b632;
  --line: #dde9e7;
  --shadow: 0 8px 24px rgba(23, 74, 72, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 "Nunito", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ===== Grüner Kopfbereich (alle Seiten) ===== */
.hero {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream); text-align: center; padding: 22px 0 72px;
}
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.topnav { align-self: stretch; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topnav a { color: var(--cream); text-decoration: none; font-weight: 800; font-size: .95rem; opacity: .85; }
.topnav a:hover { opacity: 1; }
.topnav nav a { margin-left: 18px; }
.hero-logo { width: 120px; height: 120px; margin: 22px 0 14px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,246,230,.18); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0 0 6px; }
.hero p { margin: 0; opacity: .92; max-width: 620px; font-size: 1.1rem; }
.hero-small { padding-bottom: 64px; }
.hero-small .hero-logo { width: 100px; height: 100px; }

/* Inhalt, der in den grünen Bereich hineinragt */
.lift { margin-top: -40px; position: relative; z-index: 1; }

/* ===== Karten ===== */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

/* Autoren */
.authors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.author { display: flex; gap: 18px; align-items: flex-start; }
.author-mono {
  flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-family: "Fredoka", sans-serif; font-size: 1.5rem;
}
.author h2 { font-size: 1.3rem; margin-bottom: 4px; color: var(--green); }
.author p { margin: 0 0 10px; color: var(--muted); }
.author .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .8rem; padding: 3px 10px; border-radius: 99px; }

/* Abschnitte */
section { padding: 26px 0; }
.section-title { font-size: 1.9rem; margin-bottom: .15em; }
.section-sub { color: var(--muted); margin: 0 0 8px; }
.category {
  margin: 30px 0 16px; font-size: 1.25rem; color: var(--green);
  display: flex; align-items: center; gap: 12px;
}
.category::after { content: ""; flex: 1; height: 2px; background: var(--line); }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: #fff; font-weight: 800; text-decoration: none; padding: 11px 20px; border-radius: 99px; }
.btn:hover { background: var(--green-dark); }
.btn-soon { background: var(--green-soft); color: var(--green); cursor: default; }
.btn-soon:hover { background: var(--green-soft); }

/* Buch-Karten */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.book { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; }
.book .cover { aspect-ratio: 2 / 3; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--green-soft); border-radius: 14px; padding: 14px; }
.book .cover img { max-height: 100%; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.book h4 { font-size: 1.15rem; margin: 0 0 4px; }
.book .by { color: var(--green); font-weight: 800; font-size: .85rem; margin: 0 0 2px; }
.book .meta { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.book p { margin: 0 0 16px; font-size: .95rem; flex: 1; }
.book .btn { align-self: flex-start; }

/* Über uns */
.about { text-align: center; }
.about p { max-width: 680px; margin: 0 auto 10px; }

/* ===== Impressum ===== */
.imp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.imp-card { display: flex; gap: 18px; align-items: flex-start; }
.imp-card-wide { grid-column: 1 / -1; }
.imp-card h2 { font-size: 1.1rem; color: var(--green); margin: 2px 0 8px; }
.imp-card p, .imp-card address { margin: 0 0 12px; font-style: normal; }
.imp-card p:last-child, .imp-card address:last-child { margin-bottom: 0; }
.imp-icon {
  flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.imp-icon svg { width: 24px; height: 24px; fill: currentColor; }
.imp-mail { font-weight: 800; word-break: break-all; }

/* Fließtext-Karten (Impressum-Hinweise, Datenschutz) */
.text-card { margin-top: 18px; border: 1px solid var(--line); box-shadow: none; padding: 26px 30px; }
.text-card h2 { font-size: 1.05rem; color: var(--green); margin: 1.4em 0 .35em; }
.text-card h2:first-child { margin-top: 0; }
.text-card p, .text-card li { color: #3d504e; font-size: .96rem; }
.text-card p { margin: 0 0 .6em; }
.text-card ul { margin: 0 0 .6em; padding-left: 22px; }
.text-card address { font-style: normal; }
.highlight { background: var(--green-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 1em; }
.highlight p { color: var(--green-dark); margin: 0; }

/* ===== Fuß ===== */
.site-footer { margin-top: 30px; padding: 26px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { margin-left: 16px; }

@media (max-width: 700px) {
  .authors, .imp-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .imp-card, .author { gap: 14px; }
  .imp-icon { flex-basis: 40px; height: 40px; }
  .text-card { padding: 22px 20px; }
  .topnav nav a { margin-left: 12px; }
}
