/* Jagdgenossenschaft Prasdorf – Redesign
   Farben aus dem bisherigen Auftritt (#0b3d0f) und dem Prasdorfer Wappen (Gold).
   Keine externen Schriften oder Dienste: alles wird vom eigenen Server geladen. */

:root {
  --green-900: #0b3d0f;   /* bisherige Hausfarbe */
  --green-800: #154a19;
  --green-700: #22602a;
  --green-100: #e6ede3;
  --gold-500: #c9a227;    /* Gold aus dem Wappen, gedämpft */
  --gold-100: #f6efd6;
  --paper: #f7f5ef;
  --white: #ffffff;
  --ink: #1d261d;
  --ink-soft: #4a554a;
  --line: #ddd8cb;

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

  --wrap: 72rem;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-900);
  margin: 0 0 .6em;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

[id] { scroll-margin-top: 5.5rem; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: var(--green-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-900); text-decoration-thickness: 2px; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--green-900); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: .9rem;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; color: var(--green-900);
}
.brand:hover { color: var(--green-900); }
.brand img { width: 2.6rem; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.brand-sub { font-size: .78rem; color: var(--ink-soft); letter-spacing: .02em; }

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  font: inherit; font-size: .95rem; font-weight: 600;
  color: var(--green-900);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .45rem .8rem;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a {
  display: block;
  padding: .55rem .85rem;
  font-size: .95rem; font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
}
.site-nav a:hover { color: var(--green-900); background: var(--green-100); }
.site-nav a[aria-current="page"] {
  color: var(--green-900);
  box-shadow: inset 0 -2px 0 var(--gold-500);
  border-radius: 0;
}

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; gap: 0; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a:hover { background: transparent; }
  .site-nav a[aria-current="page"] { box-shadow: none; font-weight: 600; }
  /* ohne JavaScript: Menü einfach umbrechen */
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
  html:not(.js) .site-nav a { border: 0; padding: .3rem .6rem .3rem 0; }
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  position: relative;
  min-height: clamp(30rem, 78vh, 46rem);
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--green-900);
}
.hero-media, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media img { object-fit: cover; object-position: 50% 62%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(6, 30, 8, .82) 0%, rgba(6, 30, 8, .35) 30%, rgba(6, 30, 8, 0) 50%),
    linear-gradient(to right, rgba(6, 30, 8, .7) 0%, rgba(6, 30, 8, .35) 38%, rgba(6, 30, 8, 0) 62%);
}
.hero-content { position: relative; z-index: 1; padding-block: 3.5rem 4rem; }
.hero .eyebrow { color: var(--gold-100); }
.hero h1 { color: var(--white); max-width: 16ch; margin-bottom: .45em; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 40rem; color: rgba(255,255,255,.92); margin-bottom: 1.75rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.25rem;
  font: inherit; font-size: .98rem; font-weight: 600; line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--green-900); color: var(--white); }
.btn-primary:hover { background: var(--green-700); color: var(--white); text-decoration: none; }
.btn-light { background: var(--white); color: var(--green-900); }
.btn-light:hover { background: var(--gold-100); color: var(--green-900); text-decoration: none; }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: var(--white); text-decoration: none; }
.btn-outline { color: var(--green-900); border-color: var(--green-900); background: transparent; }
.btn-outline:hover { background: var(--green-900); color: var(--white); text-decoration: none; }

/* ---------- Termin-Leiste ---------- */

.termin { background: var(--white); border-bottom: 1px solid var(--line); }
.termin .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.75rem;
  padding-block: 1.75rem;
}
.datebox {
  display: grid; place-items: center;
  width: 5.5rem; padding: .6rem 0 .7rem;
  border: 1px solid var(--green-900);
  border-radius: var(--radius);
  text-align: center; line-height: 1;
  color: var(--green-900);
}
.datebox .d { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; }
.datebox .m { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: .35rem; }
.datebox .y { font-size: .78rem; color: var(--ink-soft); margin-top: .25rem; }
.termin-text .eyebrow { margin-bottom: .2rem; }
.termin-text h2 { font-size: 1.45rem; margin-bottom: .2rem; }
.termin-text p { margin: 0; color: var(--ink-soft); }

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--white); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.split > :first-child h2 { margin-bottom: 0; }
.prose { max-width: 42rem; }
.prose p { color: var(--ink); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }

.pillars {
  list-style: none; margin: 3.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem;
}
.pillars li { border-top: 2px solid var(--gold-500); padding-top: 1.25rem; }
.pillars h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.pillars p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* Dokumente */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
}
.doc-icon {
  width: 3rem; height: 3.6rem; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--green-900);
}
.doc-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--green-900); margin: 0; }
.doc-meta { font-size: .9rem; color: var(--ink-soft); margin: .1rem 0 0; }

/* Ansprechpartner */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
}
.section-alt .person { background: var(--paper); }
.person .role {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700);
  margin-bottom: .5rem;
}
.person h3 { margin-bottom: .5rem; }
.person address { font-style: normal; color: var(--ink-soft); }

.contact-intro { color: var(--ink-soft); margin: 1.25rem 0 1.5rem; max-width: 26rem; }
.mail-link {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; color: var(--green-900);
  overflow-wrap: anywhere;
}
.mail-link svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--gold-500); }

/* ---------- Unterseiten ---------- */

.page-head {
  position: relative;
  color: var(--white);
  background: var(--green-900);
  overflow: hidden;
}
.page-head-media, .page-head-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-head-media img { object-fit: cover; object-position: 50% 58%; }
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(6, 30, 8, .9) 0%, rgba(6, 30, 8, .72) 45%, rgba(6, 30, 8, .45) 100%);
}
.page-head .wrap { position: relative; z-index: 1; padding-block: clamp(2.5rem, 2rem + 3vw, 4.25rem); }
.page-head h1 { color: var(--white); margin: 0; max-width: 24ch; }
.page-head p { margin: .6rem 0 0; color: rgba(255,255,255,.88); font-size: 1.1rem; }

.breadcrumb { font-size: .88rem; margin-bottom: .9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: rgba(255,255,255,.55); }
.breadcrumb a { color: rgba(255,255,255,.88); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--gold-100); }

.content { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }

.layout-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}

/* Einladung */
.facts {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-900);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  position: sticky; top: 6.5rem;
}
.facts h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.facts dl { margin: 0 0 1.5rem; }
.facts dt {
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700);
}
.facts dd { margin: .1rem 0 1rem; font-size: 1.05rem; }
.facts dd:last-of-type { margin-bottom: 0; }
.facts .actions { flex-direction: column; }
.facts .btn { justify-content: center; }

.agenda { list-style: none; counter-reset: top; margin: 0 0 2.5rem; padding: 0; border-top: 1px solid var(--line); }
.agenda li {
  counter-increment: top;
  display: grid; grid-template-columns: 4.5rem 1fr; align-items: baseline;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
}
.agenda li::before {
  content: "TOP " counter(top);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--green-700);
}

.note {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--gold-100);
  border-left: 3px solid var(--gold-500);
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
}
.note strong { display: block; color: var(--green-900); }
.note p { margin: 0; }

.signature { margin: 0; }
.signature span { display: block; color: var(--ink-soft); }
.signature strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--green-900); }

/* Rechtstexte */
.legal { max-width: 46rem; }
.legal section { padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.legal section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal h2 { font-size: 1.45rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.25rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { margin-bottom: .25rem; }
.legal .label {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700);
  margin-bottom: .35rem;
}

/* ---------- Fußzeile ---------- */

.site-footer { background: var(--green-900); color: rgba(255,255,255,.82); font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold-100); }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-block: 3.25rem 2.5rem;
}
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 3rem; height: auto; flex: none; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--white); margin-bottom: .35rem; }
.site-footer h2 {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-100); margin-bottom: .9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address { font-style: normal; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  padding-block: 1.25rem;
  font-size: .85rem; color: rgba(255,255,255,.65);
}

/* ---------- Responsiv ---------- */

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 1.25rem; }
  .layout-aside { grid-template-columns: 1fr; }
  .facts { position: static; order: -1; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .brand-sub { display: none; }
  .termin .wrap { grid-template-columns: auto 1fr; gap: 1.1rem 1.25rem; }
  .termin .btn { grid-column: 1 / -1; justify-content: center; }
  .pillars { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
  .people { grid-template-columns: 1fr; }
  .doc { grid-template-columns: auto 1fr; }
  .doc .btn { grid-column: 1 / -1; justify-content: center; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  /* Handy: Foto als Band oben, Text darunter auf sattem Grün */
  .hero { min-height: 0; display: block; }
  .hero-media, .hero-media img { bottom: auto; height: 17rem; }
  .hero-media img { object-position: 45% 70%; }
  .hero::after {
    background: linear-gradient(to bottom, rgba(11, 61, 15, 0) 0, rgba(11, 61, 15, 0) 8rem, rgba(11, 61, 15, .85) 13.5rem, var(--green-900) 17rem);
  }
  .hero-content { padding-block: 13rem 2.75rem; }
  .hero .btn { flex: 1 1 100%; justify-content: center; }
  .termin-text h2 { font-size: 1.25rem; }
  .page-head h1 { font-size: 1.85rem; }
  .agenda li { grid-template-columns: 3.9rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Druck (z. B. Einladung) ---------- */

@media print {
  .site-header, .site-footer, .skip-link, .page-head-media, .breadcrumb, .facts .actions, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page-head { background: none; color: #000; }
  .page-head::after { display: none; }
  .page-head .wrap { padding: 0 0 12pt; }
  .page-head h1, .page-head p { color: #000; }
  .content { padding: 0; }
  .layout-aside { grid-template-columns: 1fr; gap: 12pt; }
  .facts { position: static; order: -1; border: 1px solid #999; }
  .note { background: none; border: 1px solid #999; }
  a { color: #000; text-decoration: none; }
}
