/* Gemeinsames Layout aller Seiten – Design angelehnt an spirituelle-apotheke.de
   (Gelbgrün + Schwarz, Oswald für Überschriften, Lato für Text, „Beipackzettel“-Rahmen) */

@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url("fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
  --lime: #e2e770; --lime-2: #c7cf22; --orange: #ed8f1e; --orange-soft: #f5be7c;
  --bg: #fbfaf3; --card: #ffffff; --text: #161616; --muted: #5d5d55;
  --frame: #161616;                 /* kräftiger Rahmen wie auf den Beipackzetteln */
  --line: #dddbc9;                  /* feine Trennlinien */
  --head-bg: var(--lime); --head-text: #161616; --nav-on: #161616; --nav-on-text: #ffffff;
  --accent: #161616; --accent-text: #ffffff;
  --chosen: var(--lime); --chosen-text: #161616;
  --link: #8a5300;
  --code: #f1f0e4; --error: #b3261e; --error-bg: #fbeceb;
  --shadow: 0 12px 32px rgba(0,0,0,.14);
  --head-font: "Oswald", "Arial Narrow", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412; --card: #1d1d1a; --text: #f0efe6; --muted: #a8a799;
    --frame: #d9d8cb; --line: #34342d;
    --head-bg: #23250f; --head-text: var(--lime); --nav-on: var(--lime); --nav-on-text: #161616;
    --accent: var(--lime); --accent-text: #161616;
    --link: var(--orange-soft);
    --code: #2a2a24; --error: #ff8a80; --error-bg: #3a1e1e;
    --shadow: 0 12px 32px rgba(0,0,0,.55);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--link); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* --- Kopfbereich ------------------------------------------------------------ */
.site-head { background: var(--head-bg); color: var(--head-text); border-bottom: 4px solid var(--frame); }
.site-head .wrap { display: flex; align-items: center; gap: 22px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 20px; color: inherit; text-decoration: none; flex: 1; min-width: 0; }
.portrait {
  flex: none; width: 118px; height: 118px; border-radius: 50%;
  background: #fff; border: 3px solid #161616; overflow: hidden;
}
.portrait img { display: block; width: 100%; height: 100%; }
.brand-title {
  font-family: var(--head-font); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.02; letter-spacing: .01em; margin: 0;
}
.brand-claim { margin: 6px 0 0; font-size: .98rem; line-height: 1.4; max-width: 34em; }

.site-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.site-nav a {
  font-family: var(--head-font); font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  font-size: .9rem; color: inherit; text-decoration: none; padding: 4px 10px;
  border: 2px solid transparent;
}
.site-nav a:hover { border-color: currentColor; }
.site-nav a[aria-current="page"] { background: var(--nav-on); color: var(--nav-on-text); }

@media (max-width: 680px) {
  .site-head .wrap { flex-direction: column; align-items: stretch; gap: 12px; }
  .portrait { width: 84px; height: 84px; }
  .brand { gap: 14px; }
  .brand-claim { font-size: .88rem; }
  .site-nav { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 4px; }
  .site-nav a { font-size: .82rem; padding: 3px 8px; }
}

/* --- Inhalt ------------------------------------------------------------------ */
main.wrap { flex: 1; width: 100%; padding-top: 40px; padding-bottom: 60px; }

/* Etikett wie auf den Beipackzetteln: schwarzer Rahmen, farbiger Reiter oben */
.card { position: relative; background: var(--card); border: 2px solid var(--frame); padding: 22px; }
.tag {
  display: inline-block; font-family: var(--head-font); font-weight: 500; text-transform: uppercase;
  letter-spacing: .06em; font-size: .78rem; line-height: 1; padding: 5px 10px;
  background: var(--lime); color: #161616;
}
.tag.orange { background: var(--orange); }
.card > .tag:first-child { position: absolute; top: -12px; left: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--head-font); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  font-size: .95rem; padding: 9px 20px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-text); border-radius: 0;
}
.btn:hover:not(:disabled) { background: var(--lime); color: #161616; border-color: var(--frame); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--frame); font-size: .8rem; padding: 5px 12px; }
.btn.ghost:hover { background: var(--lime); color: #161616; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* --- Textseiten (Info, Impressum) --------------------------------------------- */
.prose h1 { font-family: var(--head-font); font-weight: 600; text-transform: uppercase; font-size: 2rem; line-height: 1.15; margin: 0 0 10px; }
.prose h2 {
  font-family: var(--head-font); font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  font-size: 1.35rem; margin: 2.2em 0 .5em; padding-bottom: 4px; border-bottom: 2px solid var(--frame);
}
.prose h3 { font-size: 1.05rem; margin: 1.4em 0 .3em; }
.prose .lead { font-size: 1.12rem; color: var(--muted); margin-top: 0; }
.prose dl { margin: 0; }
.prose dt { font-weight: 700; margin-top: 14px; }
.prose dd { margin: 2px 0 0 0; }
.prose .todo { background: var(--orange-soft); color: #161616; padding: 0 4px; }

/* --- Fußbereich --------------------------------------------------------------- */
.site-foot { border-top: 2px solid var(--frame); background: var(--card); color: var(--muted); font-size: .82rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 14px; padding-bottom: 14px; }
.site-foot a { color: inherit; }
.site-foot code { background: var(--code); padding: 1px 6px; font-size: .78rem; }
