/* =========================================================
   Kulturgalerie Zur Schlucht – Stylesheet
   Modern, ruhig, Naturtöne. Keine externen Fonts (DSGVO).
   ========================================================= */

:root {
  /* Farben */
  --paper:        #f7f5ef;   /* warmer Hintergrund      */
  --surface:      #ffffff;   /* Karten / Flächen        */
  --ink:          #232a22;   /* Haupttext               */
  --muted:        #5d635a;   /* Sekundärtext            */
  --green:        #46603f;   /* Leitfarbe (Moos/Wald)   */
  --green-dark:   #344a2e;
  --green-soft:   #eef1e9;   /* zarte grüne Fläche      */
  --brass:        #9a7b3f;   /* Akzent (Messingschild)  */
  --brass-soft:   #f3ecdd;
  --line:         #e2ddd1;   /* Rahmen / Trennlinien    */

  /* Typografie */
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --maxw: 1080px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(35,42,34,.05), 0 8px 24px rgba(35,42,34,.06);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration-color: rgba(70,96,63,.35); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); text-decoration-color: currentColor; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brass);
  margin: 0 0 .75rem;
}

.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Skip-Link (Barrierefreiheit) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,239,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; }
.brand b {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink);
  letter-spacing: .01em;
}
.brand span {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass);
  margin-top: 2px;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .5rem .7rem; cursor: pointer; color: var(--ink);
  font-size: 1rem;
}

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .7rem; border-radius: var(--radius);
  text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--green-dark); background: var(--green-soft); }
.nav-links a[aria-current="page"] { color: var(--green-dark); background: var(--green-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; font-size: .98rem; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { margin: 0 0 1rem; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; border-radius: 10px; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.hero-media figcaption {
  position: absolute; bottom: .75rem; left: .75rem;
  background: rgba(35,42,34,.78); color: #fff; font-size: .8rem;
  padding: .35rem .7rem; border-radius: 4px;
}

/* ---------- Sektionen ---------- */
section { padding: clamp(2.25rem, 5vw, 3.75rem) 0; }
.section-tint { background: var(--green-soft); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Karten / Raster ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .5rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(35,42,34,.08), 0 14px 32px rgba(35,42,34,.08); }
.card-link .more { color: var(--green); font-weight: 600; font-size: .9rem; }

/* ---------- Inhaltsfluss (Text-Seiten) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose .note {
  background: var(--brass-soft); border-left: 3px solid var(--brass);
  padding: 1rem 1.25rem; border-radius: var(--radius); color: var(--muted); font-size: .95rem;
}

/* Wechselseitige Bild/Text-Reihen */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem,3vw,2.5rem); align-items: center; margin-bottom: 2.5rem; }
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media img { border-radius: 8px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-row h3 { margin-top: 0; }

/* Personen */
.person { display: flex; gap: 1.25rem; align-items: flex-start; }
.person img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surface); box-shadow: var(--shadow); flex: none;
}

/* Definitions-/Datenliste */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .k { flex: none; width: 9rem; color: var(--muted); font-weight: 600; }

/* Bücher-/Publikationsliste */
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.pub-list li:last-child { border-bottom: 0; }
.pub-list .meta { color: var(--muted); font-size: .92rem; }

/* Themen-Spalten */
.topic-group { margin-bottom: 2rem; }
.topic-group h3 { color: var(--green-dark); border-bottom: 2px solid var(--green-soft); padding-bottom: .35rem; }
.columns { columns: 2; column-gap: 2.5rem; }
.columns li { break-inside: avoid; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3rem); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #d9e0d4; margin-top: 3rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h4 { font-family: var(--serif); color: #fff; margin: 0 0 .75rem; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .brand b { color: #fff; }
.site-footer .brand span { color: #c9b78d; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.1rem 0; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: 0; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .columns { columns: 1; }
  .facts .k { width: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-link:hover { transform: none; }
}
