/* Heidengazette – paganlord.de
   Statischer Neuaufbau. JS-frei, keine externen Requests.
   Schriften lokal: Cinzel (Display) + EB Garamond (Akzent) + Source Sans 3 (Fließtext).
   Palette aus dem Nebel-/Menhir-Foto gezogen. */

:root {
  --fog: #e8e6d8;
  /* Pergament-Nebel – Grundfläche */
  --paper: #f2f0e6;
  /* helleres Pergament – Karten */
  --stone: #b7b199;
  /* verwitterter Stein – Ränder/Fallback */
  --moss: #4a4f3c;
  /* tiefes Moos – Sekundärtext, Akzent */
  --iron: #26261f;
  /* warmes Eisenschwarz – Überschriften */
  --rune: #7a3b2e;
  /* oxidiertes Eisenrot – Links, Akzente */
  --line: #d3cfbb;
  /* Haarlinie */
  --muted: #5c5a4c;
  --text: #49473d;
  /* Fließtextfarbe */
  --measure: 111ch;

  /* Schriften */
  --body: "Gazette Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --display: "Cinzel", var(--serif);
  /* reine Kapitalis – nur für Display-Elemente! */
  --accent: "EB Garamond", var(--serif);
  --accent-adjust: .43;
  /* x-Höhen-Angleich: höher = größer (Source Sans 3 = .486) */

  /* Fließtext-Feinabstimmung */
  --body-weight: 350;
  --body-tracking: .012em;
  --body-leading: 1.85;
}

@font-face {
  font-family: "Cinzel";
  src: url("../assets/fonts/cinzel.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gazette Sans";
  src: url("../assets/fonts/gazettesans.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  /* variable Gewichtsachse */
}

@font-face {
  font-family: "Gazette Sans";
  src: url("../assets/fonts/gazettesans-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  /* echter Kursivschnitt */
}

@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/ebgaramond.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Grundlagen ---------- */
* {
  box-sizing: border-box
}

html {
  -webkit-text-size-adjust: 100%
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--iron);
  font-family: var(--body);
  font-size: 1.125rem;
  font-weight: var(--body-weight);
  letter-spacing: var(--body-tracking);
  line-height: var(--body-leading);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: var(--rune);
  text-decoration: none;
  text-underline-offset: .15em
}

a:hover,
a:focus-visible {
  text-decoration: underline
}

strong,
b {
  font-weight: 600
}

/* bei Grundgewicht 350 klar sichtbar */
:focus-visible {
  outline: 2px solid var(--rune);
  outline-offset: 2px
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--paper);
  color: var(--iron);
  padding: .5em .9em;
  z-index: 20;
  border: 1px solid var(--rune)
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap
}

/* Cinzel nur hier: Wortmarke, Seitentitel, Hub-Links, Mailadresse, Footer-Signet, Initiale */
.wordmark,
h1.page,
.hub a,
.contact-mail,
.site-footer__mark,
.dropcap::first-letter {
  font-family: var(--display);
  letter-spacing: .03em
}

.wordmark {
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--iron)
}

/* ---------- Banner (Hero) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(340px, 62vh, 600px);
  padding: 2rem 1.25rem;
  text-align: center;
  background: var(--stone) url("../assets/hero-menhire.jpg") center/cover no-repeat
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(232, 230, 216, .62) 0%, rgba(232, 230, 216, .12) 38%, rgba(38, 38, 31, .12) 100%)
}

.hero__inner {
  position: relative;
  max-width: min(92vw, 56rem);
  width: 100%
}

.hero__title {
  font-size: clamp(1.9rem, 8.5vw, 5.25rem);
  margin: 0;
  white-space: nowrap;
  letter-spacing: .03em;
  text-shadow: 0 1px 2px rgba(240, 238, 226, .55)
}

a.hero__title:hover,
a.hero__title:focus-visible {
  text-decoration: none
}

.hero__tagline {
  margin: .6rem auto 0;
  font-style: italic;
  color: var(--moss);
  max-width: 34ch;
  font-size: clamp(1rem, 3.2vw, 1.4rem)
}

.hero__rule {
  width: 64px;
  height: 2px;
  background: var(--rune);
  border: 0;
  margin: 1.15rem auto 0
}

.hero--klein {
  min-height: clamp(170px, 26vh, 280px)
}

.hero--klein .hero__title {
  font-size: clamp(1.8rem, 7vw, 3.4rem)
}

.hero--klein .hero__tagline {
  font-size: clamp(.95rem, 3vw, 1.2rem)
}

/* ---------- Inhalt ---------- */
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) 1.25rem
}

main.legal {
  max-width: 74ch
}

h1.page {
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  color: var(--iron);
  margin: 0 0 1.2rem;
  line-height: 1.15;
  text-align: center
}

h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 .6rem;
  color: var(--iron);
  line-height: 1.3;
  font-weight: 600
}

h3 {
  font-size: 1.12rem;
  margin: 1.6rem 0 .4rem;
  color: var(--moss);
  font-weight: 600
}

p {
  margin: 0 0 1.1rem
}

.lead {
  font-size: inherit
}

.dropcap::first-letter {
  font-weight: 700;
  color: var(--rune);
  float: left;
  font-size: 3.75em;
  line-height: .72;
  padding: .15em .12em 0 0;
}

.brotkrume {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1rem
}

.brotkrume a {
  color: var(--rune)
}

.brotkrume_next {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1rem
}

.brotkrume_next::before {
  content: "Weiter mit: ";
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.brotkrume_next a {
  color: var(--rune)
}

/* Karten / Impressum */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rune);
  padding: 1.15rem 1.35rem;
  margin: 0 0 1.5rem
}

.postal {
  white-space: pre-line;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55
}

.langs img {
  display: inline-block;
  vertical-align: middle;
  margin: 0 .18em;
  border: 1px solid var(--line)
}

.contact-mail {
  font-size: clamp(1.2rem, 4.5vw, 1.7rem);
  display: inline-block;
  margin: .2rem 0 .4rem
}

/* Rechtstext */
.legal h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: .2em
}

.legal h3 {
  color: var(--iron)
}

.legal p {
  font-size: 1rem;
  line-height: 1.7
}

.legal a {
  word-break: break-word
}

.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--moss);
  padding: .9rem 1.15rem;
  margin: 0 0 1.6rem;
  font-size: .98rem;
  color: var(--muted)
}

.note-muted {
  margin: 0;
  color: var(--muted)
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--iron);
  color: #d7d3c2;
  margin-top: 3rem
}

.site-footer__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  text-align: center
}

.site-footer nav {
  display: flex;
  gap: 1.15rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: .9rem
}

.site-footer a {
  color: #e6e2d2
}

.site-footer a:hover {
  color: #fff
}

.site-footer__mark {
  letter-spacing: .08em;
  font-size: .85rem;
  color: #9c977f
}

/* ============ Hauptmenü ============ */
.mainnav {
  position: relative;
  background: var(--fog);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(122, 59, 46, .28)
}

.mainnav__list {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .1rem
}

.mainnav__item {
  position: relative
}

.mainnav__item>a {
  display: block;
  padding: .85rem .9rem;
  color: var(--iron);
  font-size: 1.1rem
}

.mainnav__item>a:hover,
.mainnav__item>a:focus-visible {
  text-decoration: none;
  color: var(--rune)
}

.mainnav__item>a[aria-current="page"],
.mainnav__item.is-active>a {
  color: var(--rune);
  box-shadow: inset 0 0px 0 var(--rune), 0 2px 0 var(--rune)
}

.mainnav__sub {
  list-style: none;
  margin: 0;
  padding: .3rem 0
}

.mainnav__sub a {
  display: block;
  color: var(--iron);
  font-size: .98rem
}

.mainnav__sub a:hover,
.mainnav__sub a:focus-visible {
  color: var(--rune);
  background: rgba(122, 59, 46, .06);
  text-decoration: none
}

.mainnav__sub a[aria-current="page"] {
  color: var(--rune)
}

.mainnav__cb {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none
}

.mainnav__burger {
  display: none
}

/* ---- Desktop (ab 760px): waagerechtes Menü mit Aufklapp ---- */
@media (min-width:760px) {
  .mainnav__list {
    flex-wrap: nowrap;
    justify-content: center
  }

  .mainnav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 17rem;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(38, 38, 31, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .12s ease, transform .12s ease;
    z-index: 30
  }

  .mainnav__sub a {
    padding: .5rem 1.1rem;
    white-space: nowrap
  }

  .has-sub:hover>.mainnav__sub,
  .has-sub:focus-within>.mainnav__sub {
    opacity: 1;
    visibility: visible;
    transform: none
  }

  .has-sub>a::after {
    content: "▾";
    margin-left: .35em;
    font-size: .8em;
    color: var(--moss)
  }
}

/* ---- Mobil (unter 760px): kleines Banner + Burger auf dem Banner ---- */
@media (max-width:759.98px) {
  .hero--klein {
    min-height: clamp(104px, 27vw, 150px);
    padding: .8rem 1rem
  }

  .hero--klein .hero__title {
    font-size: clamp(1.3rem, 6.2vw, 2rem)
  }

  .hero--klein .hero__tagline {
    font-size: clamp(.85rem, 3.6vw, 1.05rem);
    margin-top: .2rem
  }

  .hero--klein .hero__rule {
    display: none
  }

  /* Navi-Balken unsichtbar; Menü klappt als Overlay über den Inhalt */
  .mainnav {
    min-height: 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none
  }

  .mainnav__list {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    padding: .2rem 1rem .4rem;
    background: var(--fog);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 14px rgba(38, 38, 31, .15)
  }

  #nav-cb:checked~.mainnav .mainnav__list {
    display: flex
  }

  .mainnav__item {
    border-top: 1px solid var(--line)
  }

  .mainnav__item:first-child {
    border-top: 0
  }

  .mainnav__item>a {
    padding: .85rem .3rem
  }

  .mainnav__sub {
    display: none
  }

  /* Burger-Kachel; Icon aus zwei Linien gezeichnet (exakt zentriert, ≡ und × gleich groß) */
  .mainnav__burger {
    display: block;
    position: absolute;
    z-index: 25;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper)
  }

  .mainnav__burger::before,
  .mainnav__burger::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.35rem;
    height: 2px;
    background: var(--iron);
    border-radius: 1px;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease
  }

  .mainnav__burger::before {
    box-shadow: 0 -7px 0 var(--iron), 0 7px 0 var(--iron)
  }

  .mainnav__burger::after {
    opacity: 0
  }

  #nav-cb:checked~.hero .mainnav__burger::before {
    box-shadow: none;
    transform: translate(-50%, -50%) rotate(45deg)
  }

  #nav-cb:checked~.hero .mainnav__burger::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg)
  }

  .hero--klein .mainnav__burger {
    right: 1.4rem;
    top: 50%;
    margin-top: -1.25rem
  }

  .hero:not(.hero--klein) .mainnav__burger {
    left: 50%;
    bottom: .8rem;
    margin-left: -1.25rem
  }
}

/* ---------- Startseite: Bereichs-Hub / Bereichsindex ---------- */
.hub ul,
.subindex ul {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0
}

.hub li,
.subindex li {
  border-top: 1px solid var(--line)
}

.hub li:last-child,
.subindex li:last-child {
  border-bottom: 1px solid var(--line)
}

.hub a {
  display: block;
  padding: .85rem .2rem;
  font-size: 1.18rem;
  color: var(--iron)
}

.hub a:hover,
.hub a:focus-visible {
  color: var(--rune);
  text-decoration: none
}

.subindex a {
  display: block;
  padding: .7rem .2rem;
  font-size: 1.08rem
}

.subindex a:hover,
.subindex a:focus-visible {
  text-decoration: none;
  color: var(--rune)
}

/* ---------- Platzhalter ---------- */
.placeholder {
  background: var(--paper);
  border: 1px dashed var(--stone);
  padding: .9rem 1.15rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 1.4rem
}

.section-lead {
  font-size: inherit
}

/* ============ Fließtext / Artikel ============ */
/* <div class="artikel"> um den Beitrag legen; jeder Absatz als <p> … </p>. */
.artikel {
  background: var(--paper);
  border: 1px solid var(--stone);
  padding: .9rem 1.15rem;
  margin: 0 0 1.4rem;
  max-width: 100%
}

.artikel> :first-child {
  margin-top: 0
}

.artikel p {
  margin: 0 0 1.25rem;
  color: var(--text);
  text-align: justify;
  line-height: 1.95;
  letter-spacing: .02em
}

.artikel .lead {
  font-size: inherit
}

.artikel h2 {
  font-size: 1.4rem;
  color: var(--iron);
  margin: 2rem 0 .6rem
}

.artikel h3 {
  font-size: 1.15rem;
  color: var(--moss);
  margin: 1.5rem 0 .4rem
}

.artikel ul,
.artikel ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  line-height: 1.9
}

.artikel li {
  margin: .3rem 0
}

.artikel li::marker {
  color: var(--rune)
}

.artikel blockquote {
  font-size: 1.1rem;
  margin: 1.4rem 0;
  padding: .3rem 0 .3rem 1.1rem;
  border-left: 3px solid var(--rune);
  color: var(--muted);
  font-style: italic
}

.artikel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0
}

/* nummerierte Liste als „1) 2) …" */
.artikel ol.klammer {
  list-style: none;
  counter-reset: item
}

.artikel ol.klammer>li {
  counter-increment: item
}

.artikel ol.klammer>li::before {
  content: counter(item) ") ";
  color: var(--rune)
}

/* Bilder im Fließtext */
.artikel figure {
  margin: 1.6rem 0
}

.artikel img {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line)
}

.artikel figcaption {
  margin-top: .4rem;
  font-size: 1.1rem;
  color: var(--muted);
  font-style: italic;
  text-align: center
}

.artikel .bild-voll {
  display: block;
  max-width: 90%;
  height: auto;
  margin-left: auto;
  margin-right: auto
}

.artikel .bild-rechts {
  float: right;
  max-width: min(42%, 320px);
  margin: .3rem 0 1rem 1.4rem
}

.artikel .bild-links {
  float: left;
  max-width: min(42%, 320px);
  margin: .3rem 1.4rem 1rem 0
}

.artikel::after {
  content: "";
  display: block;
  clear: both
}

@media (max-width:600px) {

  .artikel .bild-rechts,
  .artikel .bild-links {
    float: none;
    max-width: 100%;
    margin: 1.4rem 0
  }
}

/* ---------- Kleine Schirme: Hero-Feinschliff ---------- */
@media (max-width:520px) {
  .hero {
    padding: 1.5rem 1rem
  }

  .hero__title {
    letter-spacing: .02em
  }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto
  }

  .mainnav__sub,
  .mainnav__burger::before,
  .mainnav__burger::after {
    transition: none
  }
}

/* ============ Akzentschrift: EB Garamond ============ */
/* Zitate, Hervorhebungen, Links, Menü, Footer – klassische Antiqua mit echten
   Kleinbuchstaben. Cinzel bleibt Wortmarke, Seitentiteln, Hub-Links,
   Mailadresse, Footer-Signet und Initiale vorbehalten (höhere Spezifität).
   <i> ist bewusst NICHT dabei: es bleibt Source Sans 3 Kursiv (echter Schnitt). */
h2,
h3,
blockquote,
strong,
b,
em,
cite,
.hero__tagline,
.brotkrume,
figcaption,
.artikel figcaption,
a,
.mainnav a,
.site-footer a,
.subindex a {
  font-family: var(--accent);
  letter-spacing: normal;
  /* Sperrung des Fließtexts nicht mitschleppen */
  font-size-adjust: var(--accent-adjust);
}

strong,
b {
  font-weight: 700
}