/* Schwarzwaldherzen – Stylesheet
   Keine externen Schriften oder Skripte: Die Seite lädt nichts von fremden Servern
   (ausgenommen das Brevo-Formular, sobald es eingefügt ist). */

:root {
  --tanne: #2f4a3a;
  --tanne-dunkel: #1f3328;
  --moos: #5f7a55;
  --holz: #8a5a3b;
  --holz-hell: #c89f74;
  --creme: #f7f1e6;
  --papier: #fffaf2;
  --tinte: #2b2622;
  --tinte-leise: #5c534b;
  --linie: #e3d6c2;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --breite: 68rem;
  --rund: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--creme);
}

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

a { color: var(--tanne); text-underline-offset: 0.18em; }
a:hover { color: var(--holz); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--tanne-dunkel);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--tanne); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; }

:focus-visible { outline: 3px solid var(--holz-hell); outline-offset: 2px; }

/* ---------- Kopfzeile ---------- */
.kopf {
  background: var(--tanne-dunkel);
  color: var(--creme);
}
.kopf .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.marke {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--creme); text-decoration: none;
}
.marke:hover { color: #fff; }
.marke svg { width: 28px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.95rem; }
.nav a { color: var(--creme); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--holz-hell); }

/* ---------- Bühne ---------- */
.buehne {
  position: relative;
  background: linear-gradient(180deg, var(--tanne-dunkel) 0%, var(--tanne) 70%, var(--moos) 100%);
  color: var(--creme);
  overflow: hidden;
}
.buehne .wrap { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 9rem; }
.buehne h1 { color: #fff; max-width: 14ch; }
.buehne .unterzeile {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  max-width: 34rem; color: var(--creme); margin-bottom: 1.75rem;
}
.buehne .autorin { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--holz-hell); margin-bottom: 0.75rem; }
.tannen { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; z-index: 0; }

.knopf {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.knopf-hell { background: var(--creme); color: var(--tanne-dunkel); }
.knopf-hell:hover { background: #fff; color: var(--tanne-dunkel); }
.knopf-rahmen { border-color: var(--creme); color: var(--creme); }
.knopf-rahmen:hover { background: rgba(255,255,255,0.1); color: #fff; }
.knopf-tanne { background: var(--tanne); color: #fff; }
.knopf-tanne:hover { background: var(--tanne-dunkel); color: #fff; }
.knopf[aria-disabled="true"] { background: transparent; color: var(--tinte-leise); border-color: var(--linie); cursor: default; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 4rem 0; }
.abschnitt-papier { background: var(--papier); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.vorzeile {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--holz); margin-bottom: 0.5rem;
}
.einleitung { font-family: var(--serif); font-size: 1.25rem; color: var(--tinte-leise); max-width: 40rem; }

/* ---------- Buch ---------- */
.buch {
  display: grid; gap: 2.5rem; align-items: start;
}
@media (min-width: 48rem) { .buch { grid-template-columns: 17rem 1fr; gap: 3.5rem; } }

.cover {
  aspect-ratio: 2 / 3; width: 100%; max-width: 17rem; margin: 0 auto;
  border-radius: 4px 8px 8px 4px;
  background: linear-gradient(170deg, var(--moos) 0%, var(--tanne) 55%, var(--tanne-dunkel) 100%);
  color: var(--creme);
  box-shadow: 0 18px 30px -18px rgba(31, 51, 40, 0.7), inset 6px 0 0 rgba(0,0,0,0.12);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem 1.25rem; text-align: center; position: relative; overflow: hidden;
}
.cover .reihe { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--holz-hell); }
.cover .titel { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; color: #fff; }
.cover .name { font-family: var(--serif); font-size: 1rem; }
.cover svg { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0.55; }
.cover > * { position: relative; }

.band-nr { font-family: var(--serif); color: var(--holz); font-size: 1.05rem; margin-bottom: 0.25rem; }
.klappe p { max-width: 40rem; }
.status {
  display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--holz);
  background: #f3e6d4; border-radius: 999px; padding: 0.25rem 0.8rem; margin-bottom: 1.25rem;
}

/* ---------- Karten ---------- */
.karten { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 40rem) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .karten-3 { grid-template-columns: repeat(3, 1fr); } }
.karte {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 1.5rem;
}
.abschnitt-papier .karte { background: var(--creme); }
.karte h3 { margin-bottom: 0.35rem; }
.karte .rolle { font-size: 0.9rem; color: var(--holz); font-weight: 600; margin-bottom: 0.6rem; }
.karte p:last-child { margin-bottom: 0; }

/* ---------- Newsletter ---------- */
.post {
  background: var(--tanne); color: var(--creme); border-radius: var(--rund);
  padding: 2.25rem 1.5rem; display: grid; gap: 1.75rem;
}
@media (min-width: 48rem) { .post { grid-template-columns: 1fr 1fr; padding: 3rem; align-items: center; } }
.post h2 { color: #fff; }
.post ul { margin: 0 0 1em; padding-left: 1.2rem; }
.post li { margin-bottom: 0.35rem; }
.formular-platz {
  background: var(--papier); color: var(--tinte); border-radius: var(--rund);
  padding: 1.5rem; min-height: 8rem;
}
.formular-platz .hinweis { font-size: 0.95rem; color: var(--tinte-leise); margin: 0; }
.klein { font-size: 0.875rem; }

/* ---------- Zitat ---------- */
.zitat {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.8vw, 1.6rem); line-height: 1.45;
  color: var(--tanne-dunkel); border-left: 4px solid var(--holz-hell);
  margin: 2rem 0 0; padding: 0.25rem 0 0.25rem 1.25rem; max-width: 42rem;
}
.zitat footer { font-family: var(--sans); font-size: 0.9rem; color: var(--tinte-leise); margin-top: 0.6rem; }

/* ---------- Textseiten ---------- */
.textseite { padding: 3rem 0 4rem; }
.textseite .wrap { max-width: 46rem; }
.textseite h2 { font-size: 1.45rem; margin-top: 2rem; }
.textseite h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.platzhalter {
  background: #fff4d6; border: 1px dashed var(--holz); border-radius: 6px;
  padding: 0.1rem 0.35rem; font-family: var(--sans); font-size: 0.95em;
}
.vorlage-hinweis {
  background: #fff4d6; border: 1px solid #e6c98a; border-radius: var(--rund);
  padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: 0.95rem;
}

/* ---------- Fuß ---------- */
.fuss { background: var(--tanne-dunkel); color: var(--creme); padding: 2.5rem 0; font-size: 0.95rem; }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.fuss a { color: var(--creme); }
.fuss a:hover { color: #fff; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Echtes Buchcover (ersetzt den Platzhalter) */
.cover-bild {
  width: 100%; max-width: 17rem; height: auto; margin: 0 auto;
  border-radius: 4px 8px 8px 4px;
  box-shadow: 0 18px 30px -18px rgba(31, 51, 40, 0.7);
}

/* Brevo-Formular an die Seite angepasst (überschreibt sib-styles.css) */
#brevo-formular .sib-form { padding: 0; background: transparent; text-align: left; font-family: var(--sans); }
#brevo-formular .sib-form-container { max-width: none; }
#brevo-formular #sib-container {
  max-width: none; padding: 0; background: transparent; border: 0; border-radius: 0; direction: ltr;
}
#brevo-formular .sib-form-block { padding: 0 0 1rem; }
#brevo-formular .entry__label {
  display: block; font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--tanne-dunkel);
  margin-bottom: 0.35rem; text-align: left;
}
#brevo-formular .entry__field { border: 0; box-shadow: none; background: transparent; }
#brevo-formular .entry__field .input {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--tinte);
  background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 0.7rem 0.85rem; height: auto;
}
#brevo-formular .entry__field .input::placeholder { font-family: var(--sans); color: #9a8f84; }
#brevo-formular .entry__field .input:focus { outline: 3px solid var(--holz-hell); outline-offset: 1px; border-color: var(--holz); }
#brevo-formular .sib-form-block__button {
  font-family: var(--sans); font-size: 1rem; font-weight: 600; color: #fff;
  background: var(--tanne); border: 0; border-radius: 999px; padding: 0.8rem 1.6rem; cursor: pointer;
}
#brevo-formular .sib-form-block__button:hover { background: var(--tanne-dunkel); }
#brevo-formular .entry__error {
  font-family: var(--sans); font-size: 0.9rem; color: #661d1d; background: #ffeded; border-radius: 6px; margin-top: 0.35rem;
}
#brevo-formular .sib-form-message-panel {
  display: none; max-width: none; font-family: var(--sans); font-size: 0.95rem; text-align: left;
  border-radius: 8px; border: 1px solid; padding: 0.75rem 1rem; margin-bottom: 1rem;
}
#brevo-formular #error-message { color: #661d1d; background: #ffeded; border-color: #ff4949; }
#brevo-formular #success-message { color: #1f3328; background: #eef5ea; border-color: var(--moos); }
#brevo-formular .sib-notification__icon { width: 20px; height: 20px; }
#brevo-formular .input--hidden { display: none !important; }
