/* Design der Ortsgemeinde Quirnbach — portiert aus der home.html-Vorlage
   Farbwelt: Gelb #F7CE00, Tinte #1A1A1A, Papier #FCFBF7, Seite #E9E7DE, Gold #B8901A */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/libre-franklin-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/libre-franklin-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-italic-latin.woff2') format('woff2');
}

:root {
  --gelb: #F7CE00;
  --tinte: #1A1A1A;
  --papier: #FCFBF7;
  --seite: #E9E7DE;
  --gold: #B8901A;
  --gold-hell: #DDBB33;
  --text: #413D33;
  --text-leise: #6B6659;
  --grau: #8A857A;
  --linie: #E6E3D8;
  --karte-rand: #EAE7DB;
  --schrift-titel: 'Bricolage Grotesque', sans-serif;
  --schrift-text: 'Libre Franklin', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--seite);
  font-family: var(--schrift-text);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

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

.shell {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--papier);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 44px;
  border-bottom: 4px solid var(--gelb);
}

.site-brand { display: flex; align-items: center; gap: 20px; }
.site-brand:hover { color: inherit; }

.site-wappen { height: 64px; width: auto; display: block; }

.site-title {
  display: block;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 28px;
  color: var(--tinte);
  letter-spacing: -0.5px;
}

.site-sub {
  display: block;
  font-size: 13px;
  color: var(--grau);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- Navigation ---------- */

.nav-toggle { display: none; }
.nav-burger { display: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 36px;
  background: var(--gelb);
}

.site-nav > a,
.nav-drop > a {
  display: block;
  padding: 15px 16px;
  font-weight: 500;
  font-size: 15px;
  color: #3A3626;
  border-bottom: 4px solid transparent;
  white-space: nowrap;
}

.site-nav > a.aktiv,
.nav-drop > a.aktiv {
  font-weight: 700;
  color: var(--tinte);
  border-bottom-color: var(--tinte);
}

.site-nav > a:hover,
.nav-drop > a:hover { color: var(--tinte); }

.nav-drop { position: relative; }

.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--tinte);
  border-radius: 0 0 10px 10px;
  padding: 8px 0;
  z-index: 50;
  box-shadow: 0 14px 30px -12px rgba(30, 26, 10, 0.55);
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: block; }

.nav-drop-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #F7F4EA;
}

.nav-drop-menu a:hover { color: var(--gelb); background: rgba(247, 206, 0, 0.08); }

/* ---------- Hero (Pferdemarkt-Aufruf) ---------- */

.hero-wrap { padding: 36px 44px 8px; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--tinte);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 30px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(247, 206, 0, 0.22), transparent 55%);
}

.hero > * { position: relative; }

.hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }

.hero-badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tinte);
  background: var(--gelb);
  padding: 6px 12px;
  border-radius: 6px;
}

.hero-termin { font-size: 13px; font-weight: 600; color: var(--gold-hell); letter-spacing: 0.5px; }

.hero h2 {
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 23px;
  line-height: 1.15;
  color: #F7F4EA;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.hero p { font-size: 14px; line-height: 1.55; color: #B7B2A2; margin: 0; max-width: 520px; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--tinte);
  background: var(--gelb);
  padding: 13px 24px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 12px 26px -10px rgba(247, 206, 0, 0.6);
}

.hero-cta:hover { color: var(--tinte); transform: translateY(-1px); }

/* ---------- Sektionen ---------- */

.sektion { padding: 32px 44px 40px; }

.sektion-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--linie);
  padding-top: 34px;
  margin-bottom: 26px;
}

.sektion-kopf h2 {
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 26px;
  color: var(--tinte);
  margin: 0;
  letter-spacing: -0.5px;
}

.sektion-kopf a { font-weight: 600; font-size: 14px; color: var(--gold); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

h1.seiten-titel {
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  color: var(--tinte);
  margin: 12px 0 22px;
  letter-spacing: -1px;
}

/* ---------- Willkommen ---------- */

.willkommen { display: grid; grid-template-columns: 1fr 220px; gap: 44px; padding: 32px 44px 40px; }

.willkommen p { font-size: 17px; line-height: 1.7; margin: 0 0 16px; }

.willkommen .grussformel strong { font-weight: 700; color: var(--tinte); }
.willkommen .grussformel span { color: var(--grau); }

.willkommen-signatur { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.willkommen-signatur::before { content: ''; width: 52px; height: 4px; background: var(--gelb); }
.willkommen-signatur strong { color: var(--tinte); }
.willkommen-signatur span { font-weight: 500; color: var(--grau); }

.willkommen-bild {
  align-self: start;
  position: relative;
  /* Oberkante auf Höhe der Überschrift: Eyebrow-Zeile + deren Abstand zum Titel */
  margin: 32px 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--tinte);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.4);
}
.willkommen-bild img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  object-fit: cover;
}
.willkommen-bild figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #F7F4EA;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}
.willkommen-bild figcaption span {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  font-size: 13px;
  color: var(--gold-hell);
}

/* ---------- Beitragskarten ---------- */

.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.karte {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--karte-rand);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.karte:hover { border-color: var(--gelb); box-shadow: 0 14px 30px -18px rgba(30, 26, 10, 0.5); }

.karte-balken { height: 8px; background: var(--gelb); }

.karte-inhalt { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }

.karte-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }

.karte-kategorie {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--tinte);
  background: var(--gelb);
  padding: 4px 9px;
  border-radius: 6px;
}

.karte-datum { font-size: 12px; color: var(--grau); font-weight: 500; }

.karte h3 { font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--tinte); margin: 0 0 10px; }

.karte p { font-size: 14px; line-height: 1.6; color: var(--text-leise); margin: 0 0 18px; flex: 1; }

.karte-link { font-size: 14px; font-weight: 700; color: var(--gold); }

/* ---------- Artikel / Inhaltsseiten ---------- */

.artikel { max-width: 760px; }

.artikel-inhalt { font-size: 17px; line-height: 1.7; }
.artikel-inhalt p { margin: 0 0 16px; }
.artikel-inhalt img { border-radius: 10px; }
.artikel-inhalt h2, .artikel-inhalt h3, .artikel-inhalt h4 {
  font-family: var(--schrift-titel);
  color: var(--tinte);
  letter-spacing: -0.3px;
  margin: 28px 0 12px;
}
.artikel-inhalt a { color: var(--gold); font-weight: 600; }
.artikel-inhalt table { border-collapse: collapse; max-width: 100%; }
.artikel-inhalt td, .artikel-inhalt th { border: 1px solid var(--linie); padding: 6px 10px; }

/* Entwicklerhinweis am Ende des Impressums: deutlich vom Fließtext abgesetzt,
   aber zurückhaltend. Der Selektor muss `.artikel-inhalt p` überbieten, sonst
   setzt dessen margin-Regel den Abstand nach oben wieder zurück. */
.artikel-inhalt .entwickler-hinweis {
  margin: 56px 0 0;
  padding: 22px 24px;
  border-top: 2px solid var(--linie);
  background: rgba(230, 227, 216, 0.35);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--grau);
}
.entwickler-hinweis img { margin-top: 10px; opacity: 0.6; transition: opacity 0.2s; }
.entwickler-hinweis a:hover img { opacity: 1; }

.artikel-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }

.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.galerie a { display: block; border-radius: 10px; overflow: hidden; background: var(--linie); }
.galerie img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.2s; }
.galerie a:hover img { transform: scale(1.03); }

/* ---------- Veranstaltungen ---------- */

.termin-liste { display: flex; flex-direction: column; gap: 16px; }

.termin {
  display: flex;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--karte-rand);
  border-radius: 14px;
  padding: 20px 22px;
  align-items: flex-start;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.termin:hover { border-color: var(--gelb); box-shadow: 0 14px 30px -18px rgba(30, 26, 10, 0.5); }

.termin-datum {
  flex: 0 0 auto;
  text-align: center;
  background: var(--tinte);
  color: var(--gelb);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 74px;
}

.termin-datum .tag { display: block; font-family: var(--schrift-titel); font-weight: 800; font-size: 26px; line-height: 1; }
.termin-datum .monat { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

.termin h3 { margin: 0 0 6px; font-size: 19px; color: var(--tinte); }
.termin-ort { font-size: 14px; color: var(--grau); margin-bottom: 8px; }
.termin p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-leise); }

.termin-vergangen { opacity: 0.6; }

/* ---------- Formulare ---------- */

.formular { max-width: 760px; }

fieldset {
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 22px;
  background: #fff;
}

legend {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 17px;
  color: var(--tinte);
  padding: 0 8px;
}

.feld { margin-bottom: 14px; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label { display: block; font-size: 14px; font-weight: 600; color: var(--tinte); margin-bottom: 5px; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="date"], input[type="datetime-local"], input[type="number"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  border: 1px solid #D8D4C6;
  border-radius: 8px;
  background: var(--papier);
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gelb);
  outline-offset: 0;
  border-color: var(--gold);
}

textarea { min-height: 140px; resize: vertical; }
textarea.gross { min-height: 320px; font-family: ui-monospace, monospace; font-size: 13px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin-bottom: 10px; }
.check input { margin-top: 3px; }
/* Ohne eigene Regel würden die Links die globale Regel `a { color: inherit;
   text-decoration: none }` erben und wären von normalem Text nicht zu unterscheiden. */
.check a {
  display: inline-block;
  margin-top: 3px;
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.check a:hover { text-decoration: none; }

.knopf {
  display: inline-block;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--tinte);
  background: var(--gelb);
  border: 0;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(247, 206, 0, 0.6);
}

.knopf:hover { filter: brightness(0.96); }

.knopf-leise {
  display: inline-block;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid #D8D4C6;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.knopf-gefahr { border-color: #C0392B; color: #C0392B; background: transparent; }

.hinweis-ok, .hinweis-fehler {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 15px;
}

.hinweis-ok { background: #EAF5E4; border: 1px solid #B7D9A8; color: #2F5D22; }
.hinweis-fehler { background: #FBEAE8; border: 1px solid #E5B5AF; color: #92322A; }

/* ---------- Tabellen (Admin) ---------- */

.tabelle { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }

.tabelle th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grau);
  background: #F5F3EA;
  padding: 12px 14px;
}

.tabelle td { padding: 12px 14px; border-top: 1px solid var(--linie); font-size: 15px; vertical-align: top; }

.tabelle-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }

.tabelle-huelle { overflow-x: auto; border: 1px solid var(--karte-rand); border-radius: 12px; }

/* ---------- Pagination ---------- */

.blaettern { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }

.blaettern a, .blaettern span {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--karte-rand);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

.blaettern .aktuell { background: var(--gelb); border-color: var(--gelb); color: var(--tinte); }

/* ---------- Bearbeiten-Knopf am Inhalt (nur für Angemeldete) ---------- */

.bearbeiten-leiste { margin: -8px 0 20px; }

.bearbeiten-leiste .knopf-leise {
  border-color: var(--gelb);
  background: rgba(247, 206, 0, 0.14);
  color: var(--tinte);
}

.bearbeiten-leiste .knopf-leise:hover { background: var(--gelb); }

/* ---------- Dateibrowser (Admin) ---------- */

#dateibrowser {
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--papier);
  overflow: hidden;
}

.db-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #F5F3EA;
  border-bottom: 1px solid var(--linie);
  flex-wrap: wrap;
}

.db-brotkrumen { font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.db-brotkrumen a { color: var(--gold); font-weight: 600; }
.db-trenner { color: var(--grau); }

.db-liste { max-height: 340px; overflow-y: auto; }

.db-zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--linie);
  font-size: 14px;
}

.db-zeile:last-child { border-bottom: 0; }
a.db-zeile:hover { background: rgba(247, 206, 0, 0.1); color: inherit; }

.db-ordner { font-weight: 600; color: var(--tinte); }

.db-symbol { flex: 0 0 34px; text-align: center; font-size: 18px; }

.db-mini {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--linie);
}

.db-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.db-name a { color: var(--tinte); font-weight: 600; }
.db-name a:hover { color: var(--gold); }
.db-meta { font-size: 12px; color: var(--grau); }

.db-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.db-knoepfe .knopf-leise { padding: 5px 12px; font-size: 13px; }

.db-leer { padding: 18px 14px; color: var(--grau); font-size: 14px; }

.db-fuss {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #F5F3EA;
  border-top: 1px solid var(--linie);
  flex-wrap: wrap;
}

.db-fuss input[type="file"] { flex: 1; min-width: 200px; font-size: 13px; }
.db-status { font-size: 13px; color: var(--grau); }

/* ---------- Honeypot (für Menschen unsichtbar) ---------- */

.hp-feld {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Druck-Zusammenfassung ---------- */

.zusammenfassung {
  background: #fff;
  border: 1px solid var(--karte-rand);
  border-radius: 14px;
  padding: 26px 30px;
  max-width: 760px;
}

.zusammenfassung h2 {
  font-family: var(--schrift-titel);
  font-size: 20px;
  color: var(--tinte);
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gelb);
}

.zusammenfassung h2:first-child { margin-top: 0; }

.zusammenfassung table { width: 100%; border-collapse: collapse; }

.zusammenfassung td {
  padding: 6px 10px 6px 0;
  vertical-align: top;
  font-size: 15px;
  border-bottom: 1px solid var(--linie);
}

.zusammenfassung td:first-child { width: 40%; color: var(--grau); font-weight: 600; }

.zusammenfassung-kopf { font-size: 14px; color: var(--grau); margin-bottom: 4px; }

@media print {
  @page { margin: 1.5cm; }
  .site-header, .site-nav, .site-footer, .nav-burger, .nav-toggle,
  .hero-wrap, .kein-druck, .eyebrow { display: none !important; }
  body, .shell { background: #fff !important; color: #000; }
  .shell { max-width: none; box-shadow: none; }
  .site-main, .sektion { padding: 0 !important; }
  .zusammenfassung { border: 0; padding: 0; }
  .zusammenfassung h2 { border-bottom: 2px solid #000; }
  .zusammenfassung td { border-bottom: 1px solid #999; }
  .hinweis-ok { border: 1px solid #999; background: #fff; color: #000; }
  h1.seiten-titel { font-size: 24px; }
  a { color: #000; text-decoration: none; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 18, 10, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.offen,
.lightbox.schliesst { display: flex; }

/* Öffnen: Hintergrund einblenden, Bild sanft heranzoomen */
.lightbox.offen { animation: lb-einblenden 0.22s ease-out; }
.lightbox.offen .lightbox-buehne { animation: lb-zoom-rein 0.22s ease-out; }

/* Schließen: rückwärts, Endzustand halten bis JS ausblendet */
.lightbox.schliesst { animation: lb-ausblenden 0.18s ease-in forwards; }
.lightbox.schliesst .lightbox-buehne { animation: lb-zoom-raus 0.18s ease-in forwards; }

@keyframes lb-einblenden {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lb-ausblenden {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes lb-zoom-rein {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes lb-zoom-raus {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(0.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox.offen, .lightbox.offen .lightbox-buehne,
  .lightbox.schliesst, .lightbox.schliesst .lightbox-buehne { animation: none; }
  .lightbox.schliesst { display: none; }
}

body.lightbox-aktiv { overflow: hidden; }

.lightbox-buehne {
  margin: 0;
  max-width: calc(100vw - 120px);
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lightbox-bild {
  max-width: 100%;
  max-height: calc(100vh - 90px);
  border-radius: 10px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}

.lightbox-zaehler {
  color: #B7B2A2;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.lightbox-schliessen {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 34px;
  line-height: 1;
  padding: 6px 14px;
  background: transparent;
  border: 0;
  color: #F7F4EA;
  cursor: pointer;
  z-index: 2;
}

.lightbox-schliessen:hover { color: var(--gelb); }

.lightbox-nav {
  flex: 0 0 auto;
  font-size: 42px;
  line-height: 1;
  padding: 14px 18px;
  margin: 0 6px;
  background: rgba(247, 206, 0, 0.12);
  border: 0;
  border-radius: 12px;
  color: #F7F4EA;
  cursor: pointer;
}

.lightbox-nav:hover { background: var(--gelb); color: var(--tinte); }

@media (max-width: 640px) {
  .lightbox-buehne { max-width: calc(100vw - 16px); }
  .lightbox-nav {
    position: absolute;
    bottom: 16px;
    z-index: 2;
  }
  .lightbox-zurueck { left: 16px; }
  .lightbox-weiter { right: 16px; }
  .lightbox-bild { max-height: calc(100vh - 140px); }
}

/* ---------- Footer ---------- */

.site-footer { margin-top: auto; background: var(--tinte); color: #B7B2A2; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 44px;
  font-size: 14px;
  line-height: 1.6;
  flex-wrap: wrap;
}

.footer-inner strong { color: #F7F4EA; }

.footer-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-links a { font-weight: 600; color: #F7F4EA; }
.footer-links a:hover { color: var(--gelb); }

/* ---------- Admin-Kopf ---------- */

.admin-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

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

@media (max-width: 900px) {
  .site-header { padding: 18px 24px; }
  .hero-wrap, .sektion, .willkommen { padding-left: 24px; padding-right: 24px; }
  .footer-inner { padding: 26px 24px; }

  .hero { grid-template-columns: 1fr; }
  .willkommen { grid-template-columns: 1fr; }
  .willkommen-bild { max-width: 300px; margin-top: 0; }
  .karten { grid-template-columns: repeat(2, 1fr); }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .admin-kacheln { grid-template-columns: 1fr; }

  /* Mobiles Menü */
  .nav-burger {
    display: block;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    color: var(--tinte);
    background: var(--gelb);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
  }

  .site-nav { display: none; flex-direction: column; padding: 0; }
  .nav-toggle:checked ~ .site-nav { display: flex; }

  .site-nav > a, .nav-drop > a { border-bottom: 1px solid rgba(26, 26, 26, 0.12); padding: 14px 24px; }
  .nav-drop-menu { display: block; position: static; border-radius: 0; box-shadow: none; }
}

@media (max-width: 640px) {
  .site-title { font-size: 21px; }
  .site-sub { letter-spacing: 1px; font-size: 11px; }
  .site-wappen { height: 48px; }
  h1.seiten-titel { font-size: 30px; }
  .hero h2 { font-size: 26px; }
  .karten { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr; }
  .feld-reihe { grid-template-columns: 1fr; }
  .termin { flex-direction: column; }
}
