/* AG Herdenschutzhunde – gesamtes Aussehen der Seite.
   Werte aus dem alten Elementor-CSS (wp-content/uploads/elementor/css/post-*.css) und gemessen an
   der alten Seite (arbeit/grundgeruest/mess-*.txt). Umbruchpunkte wie Elementor: ≤1024 Tablet, ≤767 Handy. */

@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("schriften/anton-latin.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("schriften/roboto-latin.woff2") format("woff2"); }

:root {
  --braun: #4A3234;
  --braun-dunkel: #492D30;
  --text: #595959;
  --creme: #F3EAD6;
  --creme-hell: #EFE7D2;
  --gruen: #61CE70;
  --graubraun: #9C8E85;
  --sand: #DDD1B7;
  --karte: #F9FAFA;
  --fb: #59373B;
  --schatten: 0 0 10px 0 rgba(0, 0, 0, .5);
  --schrift: "Trebuchet MS", sans-serif;
  --kopf-hoehe: 80px;
  --fokus: 0 0 0 3px var(--creme), 0 0 0 5px var(--braun-dunkel);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-hoehe) + 10px); }
body { margin: 0; background: var(--creme); color: var(--text); font: 400 18px/30px var(--schrift); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
img { border: 0; }
a { color: var(--braun); text-decoration: none; }
.text a:hover, .text a:focus-visible { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--braun); font-family: var(--schrift); font-weight: 600; line-height: 1; }
p { margin: 0 0 14.4px; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--braun-dunkel); outline-offset: 2px; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sprung { position: absolute; left: 10px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--braun-dunkel); color: var(--creme); text-decoration: none; }
.sprung:focus { top: 10px; }
main:focus { outline: none; }

/* ---------- Kopfleiste ---------- */
.kopf { position: fixed; top: 0; left: 0; right: 0; z-index: 95; height: var(--kopf-hoehe); padding: 0 5%; background: var(--creme-hell); transition: height .3s ease, box-shadow .3s ease; }
.kopf--kompakt { height: 64px; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.kopf__innen { display: flex; align-items: center; height: 100%; }
.kopf__logo { flex: 0 0 10%; display: flex; align-items: center; }
.kopf__logo img { display: block; width: 91px; height: 53px; object-fit: contain; transition: height .3s ease; }
.kopf--kompakt .kopf__logo img { height: 44px; }
.kopf__schalter { display: none; }
.menue { flex: 1 1 90%; display: flex; justify-content: flex-end; }
.menue__liste { display: flex; align-items: center; gap: 40px; list-style: none; }
.menue__punkt { position: relative; list-style: none; }
.menue__link { display: block; padding: 4px 10px; font: 400 16px/24px var(--schrift); letter-spacing: 1.5px; color: var(--braun-dunkel); text-decoration: none; transition: background-color .3s, color .3s; }
.hat-unter > .menue__link { padding-right: 36px; }
.menue__punkt:hover > .menue__link, .menue__punkt:focus-within > .menue__link, .ist-aktiv > .menue__link,
.menue__punkt.ist-offen > .menue__link { background: var(--braun-dunkel); color: var(--creme); }
.menue__auf { position: absolute; top: 0; right: 10px; height: 32px; width: 16px; padding: 0; border: 0; background: none; color: var(--braun-dunkel); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color .3s; }
.menue__punkt:hover > .menue__auf, .menue__punkt:focus-within > .menue__auf, .ist-aktiv > .menue__auf, .ist-offen > .menue__auf { color: var(--creme); }
.menue__pfeil { width: 10px; height: 16px; transition: transform .3s; }
.menue__unter { position: absolute; top: 100%; left: 0; min-width: 12em; list-style: none; background: var(--creme); font-size: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility 0s .2s; z-index: 10; }
.menue__punkt:hover > .menue__unter, .menue__punkt:focus-within > .menue__unter, .menue__punkt.ist-offen > .menue__unter { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
html.js .menue__punkt.ist-zu > .menue__unter { opacity: 0; visibility: hidden; }
.menue__unter li { list-style: none; }
.menue__unterlink { display: block; padding: 13px 20px; border-left: 8px solid transparent; font: 300 14px/20px "Roboto", sans-serif; letter-spacing: 1.53px; text-transform: uppercase; color: var(--braun-dunkel); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.menue__unterlink:hover, .menue__unterlink:focus-visible, .menue__unterlink[aria-current="page"] { background: var(--braun-dunkel); color: var(--creme); }

/* Tablet und Handy: Menü hinter dem Schalter */
@media (max-width: 1024px) {
  .kopf__logo { flex: 0 0 auto; }
  .kopf__schalter { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 1px solid #000; border-radius: 0; background: transparent; color: #000; cursor: pointer; }
  .kopf__schalter-striche, .kopf__schalter-striche::before, .kopf__schalter-striche::after { display: block; width: 22px; height: 2.5px; background: currentColor; border-radius: 1px; transition: transform .3s, opacity .3s; }
  .kopf__schalter-striche { position: relative; }
  .kopf__schalter-striche::before, .kopf__schalter-striche::after { content: ""; position: absolute; left: 0; }
  .kopf__schalter-striche::before { top: -7px; }
  .kopf__schalter-striche::after { top: 7px; }
  .kopf__schalter[aria-expanded="true"] .kopf__schalter-striche { background: transparent; }
  .kopf__schalter[aria-expanded="true"] .kopf__schalter-striche::before { transform: translateY(7px) rotate(45deg); }
  .kopf__schalter[aria-expanded="true"] .kopf__schalter-striche::after { transform: translateY(-7px) rotate(-45deg); }

  .menue { position: absolute; top: 100%; left: 0; right: 0; display: block; background: var(--creme); max-height: calc(100vh - var(--kopf-hoehe)); overflow-y: auto; box-shadow: 0 8px 16px rgba(0, 0, 0, .12); }
  html.js .menue { visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
  html.js .menue.ist-offen { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s, visibility 0s; }
  html:not(.js) .menue { position: static; box-shadow: none; } /* ohne Skript: Liste offen unter der Leiste */
  html:not(.js) .kopf { position: static; height: auto; padding-top: 13px; padding-bottom: 13px; }
  html:not(.js) .kopf__innen { flex-wrap: wrap; }
  html:not(.js) .kopf__schalter, html:not(.js) .menue__auf { display: none; }
  .menue__liste { display: block; }
  .menue__punkt { border-top: 1px solid rgba(73, 45, 48, .08); }
  .menue__link, .hat-unter > .menue__link { padding: 10px 64px 10px 20px; min-height: 44px; font: 300 14px/24px "Roboto", sans-serif; letter-spacing: 1.53px; text-transform: uppercase; border-left: 8px solid transparent; }
  .menue__punkt:hover > .menue__link, .menue__punkt:focus-within > .menue__link, .menue__punkt.ist-offen > .menue__link { background: transparent; color: var(--braun-dunkel); }
  .menue__link[aria-current="page"], .menue__link:hover, .menue__link:focus-visible { background: var(--braun-dunkel) !important; color: var(--creme) !important; }
  .menue__auf { top: 0; right: 0; width: 56px; height: 44px; color: var(--braun-dunkel); }
  .menue__punkt:hover > .menue__auf, .menue__punkt:focus-within > .menue__auf, .ist-aktiv > .menue__auf { color: var(--braun-dunkel); }
  .menue__link[aria-current="page"] + .menue__auf { color: var(--creme); }
  .ist-offen > .menue__auf .menue__pfeil { transform: rotate(180deg); }
  .menue__unter, .menue__punkt:hover > .menue__unter, .menue__punkt:focus-within > .menue__unter { position: static; display: none; min-width: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .menue__punkt.ist-offen > .menue__unter, html:not(.js) .menue__unter { display: block; }
  .menue__unterlink { padding: 12px 20px 12px 40px; white-space: normal; min-height: 44px; }
}
@media (max-width: 767px) {
  .kopf { padding: 0 5%; }
  .kopf__logo img { width: 53px; }
}

/* Inhalte unter der festen Leiste: Seiten ohne Kopfbild bekommen oben Platz */
main > :first-child:not(.kopfbild) { margin-top: var(--kopf-hoehe); }
html:not(.js) main > :first-child:not(.kopfbild) { margin-top: 0; }

/* ---------- Kopfbild ---------- */
.kopfbild { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding-top: 200px; background: var(--braun); text-align: center; }
.kopfbild--h333 { min-height: 333px; } .kopfbild--h400 { min-height: 400px; } .kopfbild--h500 { min-height: 500px; } .kopfbild--h600 { min-height: 600px; }
.kopfbild--oben-100 { padding-top: 100px; }
.kopfbild--oben-unten { padding-top: 0; justify-content: flex-end; }
.kopfbild--oben-unten .kopfbild__inhalt { padding-bottom: 70px; }
.kopfbild__bild { position: absolute; left: 0; top: -10%; z-index: -2; width: 100%; max-width: none; height: 120%; object-fit: none; object-position: center; transform: translate3d(0, var(--verschiebung, 0px), 0); will-change: transform; }
.kopfbild--fuellen .kopfbild__bild { object-fit: cover; }
.kopfbild::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--braun); opacity: .7; }
.kopfbild--schwarz::before { background: #000; opacity: .5; }
.kopfbild__inhalt { width: 100%; max-width: 1008px; padding: 20px 20px 90px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.kopfbild__logo { display: block; width: 300px; height: 300px; }
.kopfbild__titel { font: 600 50px/50px var(--schrift); letter-spacing: 2.9px; text-transform: uppercase; color: var(--creme); }
.kopfbild__unterzeile { margin: 0; font: 600 24px/24px var(--schrift); letter-spacing: 2.9px; text-transform: uppercase; color: var(--creme); }

/* ---------- Bereiche und Raster ---------- */
.bereich { background: var(--creme); }
.bereich--oben { padding-top: 50px; }
.bereich--unten { padding-bottom: 50px; }
.inhalt { width: 100%; max-width: 1140px; margin: 0 auto; padding: 10px; }
.inhalt--schmal { max-width: 1026px; }
.inhalt--luft { padding-top: 20px; padding-bottom: 20px; }
.stapel { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.stapel > * { max-width: 100%; }
.mitte { text-align: center; }
.abstand { width: 100%; height: 50px; flex: none; }
.abstand--33 { height: 33px; }
.spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; padding: 10px; }
.spalten--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spalten--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.text { font: 400 18px/30px var(--schrift); color: var(--text); }
.text--28 { line-height: 28px; }
.text a { color: var(--braun); text-decoration: none; }
.text a:hover, .text a:focus-visible { text-decoration: underline; }
.text ul, .text ol { margin: 0 0 14.4px; padding-left: 1.4em; }

/* ---------- Abschnittstitel ---------- */
.abschnitt { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.abschnitt__titel { font: 400 48px/60px var(--schrift); letter-spacing: 3.1px; color: var(--braun); }
.abschnitt--mittel .abschnitt__titel { font-size: 42px; }
.abschnitt--gross .abschnitt__titel { font-size: 51px; line-height: 51px; }
.abschnitt--klein .abschnitt__titel { font-size: 36px; line-height: 36px; }
.abschnitt__linie { width: 100%; height: 1px; margin: 15px 0; background: var(--braun); }
.abschnitt--gross .abschnitt__linie { width: 65%; }
.abschnitt__unterzeile { margin: 0; font: 300 23px/23px var(--schrift); letter-spacing: 3.5px; text-transform: uppercase; color: var(--braun); }
.abschnitt--gross .abschnitt__unterzeile { line-height: 28px; margin: 0 100px; }
.titel-gross { font: 400 51px/51px var(--schrift); letter-spacing: 3.1px; color: var(--braun); text-align: center; }

/* ---------- Linie, Banner, Siegel ---------- */
.linie { display: block; width: 1px; height: 100px; flex: none; }
.banner { width: 52%; padding: 20px; background: var(--graubraun); }
.banner__text { margin: 0; font: 300 23px/29px var(--schrift); letter-spacing: 2.6px; color: var(--creme-hell); text-align: center; }
.logo-siegel { display: block; width: 300px; height: 300px; flex: none; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 3px; font: 500 15px/15px var(--schrift); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s, box-shadow .3s; }
.knopf--gruen { background: var(--gruen); color: var(--braun); }
.knopf--gruen:hover, .knopf--gruen:focus-visible { background: #55bd63; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.knopf--rahmen { border: 2px solid var(--braun); color: var(--braun); background: transparent; }
.knopf--rahmen:hover, .knopf--rahmen:focus-visible { background: var(--braun); color: var(--creme); }
.knopf--hell { border: 3px solid var(--creme-hell); color: var(--creme-hell); background: transparent; }
.knopf--hell:hover, .knopf--hell:focus-visible { background: var(--creme-hell); color: var(--braun); }
.knopf--rahmen-hell { border: 2px solid var(--creme); color: var(--creme); background: transparent; }
.knopf--rahmen-hell:hover, .knopf--rahmen-hell:focus-visible { background: var(--creme); color: var(--braun); }

/* ---------- Karten ---------- */
.karte { display: flex; flex-direction: column; width: 100%; overflow: hidden; background: var(--karte); box-shadow: var(--schatten); color: var(--braun); text-decoration: none; transition: transform .4s ease, box-shadow .4s ease; }
.karte:hover, .karte:focus-visible { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
.karte__bild { position: relative; height: 200px; overflow: hidden; flex: none; }
.karte__bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s ease; }
.karte:hover .karte__bild img, .karte:focus-visible .karte__bild img { transform: scale(1.2); }
.karte__inhalt { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 35px; background: var(--karte); text-align: center; }
.karte__titel { margin: 0 0 15px; font: 600 23px/1.2 var(--schrift); color: var(--braun); }
.karte__unterzeile { margin: 0 0 15px; font: 400 18px/30px var(--schrift); text-transform: uppercase; color: var(--braun); }
.karte__knopf { display: inline-block; padding: 12px 24px; border: 2px solid var(--braun); border-radius: 3px; font: 500 15px/15px var(--schrift); color: var(--braun); transition: background-color .3s, color .3s; }
.karte:hover .karte__knopf, .karte:focus-visible .karte__knopf { background: var(--braun); color: var(--karte); }
.karte__symbol { display: block; width: 67px; height: 67px; margin-bottom: 30px; color: var(--creme); }
.karte--dunkel { width: 50%; background: var(--braun); }
.karte--dunkel .karte__bild { height: 233px; }
.karte--dunkel .karte__inhalt { background: var(--braun); }
.karte--dunkel .karte__titel { margin-bottom: 30px; line-height: 28px; color: var(--creme); }
.karte--dunkel .karte__knopf { border-color: var(--creme); color: var(--creme); }
.karte--dunkel:hover .karte__knopf, .karte--dunkel:focus-visible .karte__knopf { background: var(--creme); color: var(--braun); }

.karten-reihe { width: 100%; display: flex; flex-direction: column; align-items: center; padding-bottom: 20px; }
.karten-reihe__titel { margin: 0 0 20px; font: 400 36px/36px var(--schrift); letter-spacing: 3.1px; color: var(--braun); text-align: center; }
.karten-reihe__oben, .karten-reihe__unten { display: block; width: 800px; height: auto; }
.karten-reihe__oben { margin-bottom: 20px; }
.karten-reihe__raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; padding: 10px; }
.auch-interessant { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px 10px 70px; background: var(--creme); }
.auch-interessant .karten-reihe { max-width: 1120px; }
.auch-interessant .karten-reihe { padding-bottom: 0; }
.auch-interessant .karten-reihe__oben { margin-bottom: 10px; }
.auch-interessant .karten-reihe__unten { margin-top: 10px; }

/* ---------- PDF-Kachel ---------- */
.pdf-kachel { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pdf-kachel__bild img { display: block; width: 150px; height: 150px; transition: transform .3s; }
.pdf-kachel__bild:hover img { transform: translateY(-3px); }

/* ---------- Hinweis (Startseite, HTML aus inc/hinweise.php): Kalenderblatt, Einzelheiten zum Aufklappen ---------- */
.hinweise { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 24px; padding: 50px 0; }
.hinweis { flex: 1 1 100%; max-width: 1000px; display: grid; grid-template-columns: 112px minmax(0, 1fr); background: #FFF9EE; box-shadow: 0 6px 18px rgba(73, 45, 48, .18); color: var(--braun-dunkel); text-align: left; }
.hinweis__kal { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 18px 8px; background: var(--braun-dunkel); color: var(--creme); text-align: center; }
.hinweis__kal-tag { font: 600 40px/1 var(--schrift); }
.hinweis__kal-tag--lang { font-size: 24px; white-space: nowrap; }
.hinweis__kal-monat, .hinweis__kal-jahr { font: 600 15px/1.2 var(--schrift); letter-spacing: 4px; text-transform: uppercase; }
.hinweis__kal-monat { margin-top: 4px; }
.hinweis__kal-wt { margin-top: 2px; font: 400 13px/1.2 var(--schrift); opacity: .8; }
.hinweis__kal-frei { font: 600 15px/1.3 var(--schrift); letter-spacing: 2px; text-transform: uppercase; overflow-wrap: anywhere; }
.hinweis__rechts { position: relative; min-width: 0; padding: 18px 68px 18px 20px; }
.hinweis__mehr[open] { width: auto; margin-right: -48px; }
.hinweis__rechts:not(:has(.hinweis__mehr[open])) { display: flex; flex-direction: column; justify-content: center; }
.hinweis__art { margin: 0; font: 600 12px/1.4 var(--schrift); letter-spacing: 3px; text-transform: uppercase; color: #8A6D4F; }
.hinweis__titel { margin: 8px 0 12px; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; font: 600 19px/1.35 var(--schrift); color: var(--braun-dunkel); }
.hinweis__mehr { width: 100%; }
.hinweis__auf { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: var(--braun-dunkel); cursor: pointer; list-style: none; transition: background-color .3s; }
.hinweis__auf::-webkit-details-marker { display: none; }
.hinweis__auf:hover { background: rgba(73, 45, 48, .08); }
.hinweis__dreieck { width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 14px solid currentColor; transform: translateY(2px); transition: transform .3s; }
.hinweis__mehr[open] .hinweis__dreieck { transform: translateY(-2px) rotate(180deg); }
.hinweis__auf-offen, .hinweis__mehr[open] .hinweis__auf-zu { display: none; }
.hinweis__mehr[open] .hinweis__auf-offen { display: inline; }
.hinweis:has(.hinweis__mehr[open]) .hinweis__kal { justify-content: flex-start; padding-top: 26px; }
.hinweis__inhalt { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; padding: 16px 0 6px; border-top: 1px solid rgba(73, 45, 48, .15); color: var(--text); font-size: 16px; line-height: 1.6; }
.hinweis__text p { margin: 0; }
.hinweis__text p + p { margin-top: 10px; }
.hinweis__fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.hinweis__teil { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--creme); border-left: 3px solid var(--braun-dunkel); }
.hinweis__teil p { margin: 0; overflow-wrap: break-word; }
.hinweis__inhalt p { text-wrap: pretty; }
.hinweis__teil p + p { margin-top: 6px; }
.hinweis__unter { margin: 0; font: 600 12px/1.3 var(--schrift); letter-spacing: 3px; text-transform: uppercase; color: #8A6D4F; }
.hinweis__dateien { display: flex; flex-wrap: wrap; gap: 10px; }
.hinweis a.hinweis__datei { flex: 1 1 190px; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; background: #fff; border: 1px solid rgba(73, 45, 48, .2); color: var(--braun-dunkel); text-decoration: none; transition: border-color .3s, transform .3s, box-shadow .3s; }
.hinweis a.hinweis__datei:hover, .hinweis a.hinweis__datei:focus-visible { border-color: var(--braun-dunkel); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, .12); text-decoration: none; }
.hinweis__datei img { flex: none; display: block; width: 40px; height: 40px; }
.hinweis__datei-text { display: flex; flex-direction: column; min-width: 0; }
.hinweis__datei-art { font: 600 11px/1.3 var(--schrift); letter-spacing: 2px; text-transform: uppercase; color: #8A6D4F; }
.hinweis__datei-name { font: 600 15px/1.35 var(--schrift); }
.hinweis__aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
@media (min-width: 900px) {
  /* Aufgeklappt: links Text und Wann/Wo, rechts die PDFs, darunter die Knöpfe */
  .hinweis__inhalt { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px 28px; align-items: start; }
  .hinweis__text { grid-column: 1 / -1; grid-row: 1; }
  .hinweis__fakten { grid-column: 1; grid-row: 2 / span 2; }
  .hinweis__dateien { grid-column: 2; grid-row: 2; flex-direction: column; }
  .hinweis__aktionen { grid-column: 2; grid-row: 3; align-self: end; display: grid; gap: 10px; }
  .hinweis__aktionen .knopf { width: 100%; box-sizing: border-box; }
  .hinweis__text { max-width: 62ch; }
  .hinweis__inhalt:not(:has(.hinweis__fakten)) .hinweis__aktionen, .hinweis__inhalt:not(:has(.hinweis__fakten)) .hinweis__dateien { grid-column: 1 / -1; }
  .hinweis a.hinweis__datei { flex: none; }
}
.hinweis a:not(.knopf) { color: var(--braun); text-decoration: none; }
.hinweis a:not(.knopf):hover { text-decoration: underline; }

/* ---------- Download-Bereich (HTML aus inc/downloads.php; Werte gemessen an /formulare/) ---------- */
.downloads { width: 100%; }
.dl-gruppe { --dl-grund: #59373B; padding: 73px 10px 70px; background: var(--dl-grund); color: var(--creme); text-align: center; }
.dl-gruppe--schulungen, .dl-gruppe--tierschutz { --dl-grund: #694448; }
.dl-gruppe--wolf { --dl-grund: #5A4245; }
.dl-gruppe--herdenschutzhunde { --dl-grund: #624B4D; }
.dl-gruppe:has(.dl-gruppe__logo) { padding-top: 20px; }
.dl-gruppe__logo { display: block; width: 150px; height: 150px; margin: 0 auto 20px; }
.dl-gruppe__titel { max-width: 892px; margin: 0 auto 90px; font: 600 29px/29px var(--schrift); letter-spacing: 10px; text-transform: uppercase; color: var(--creme); }
.dl-raster { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 20px; max-width: 1120px; margin: 0 auto; }
.dl-gruppe--schulungen .dl-raster { max-width: 835px; } /* alt: drei je Reihe */
/* Managementpläne: Reihen 4 / 4 / 3 / 2 wie bisher – greift nur bei genau 13 Einträgen */
@media (min-width: 1160px) {
  .dl-gruppe--wolf .dl-kachel:nth-child(9):nth-last-child(5) { margin-left: 142.5px; }
  .dl-gruppe--wolf .dl-kachel:nth-child(11):nth-last-child(3) { margin-right: 142.5px; }
}
.dl-kachel { flex: 0 0 265px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.dl-kachel__bild { display: block; width: 150px; height: 150px; }
.dl-kachel__bild img { display: block; width: 150px; height: 150px; object-fit: contain; transition: transform .3s; }
a.dl-kachel__bild:hover img { transform: translateY(-3px); }
.dl-kachel__titel { margin: 0; font: 600 18px/18px var(--schrift); letter-spacing: .4px; text-transform: uppercase; color: var(--creme); }
.dl-kachel__links { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.dl-kachel .dl-kachel__knopf { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 43px; padding: 12px 24px; border: 2px solid var(--creme); border-radius: 3px; background: var(--dl-grund, transparent);
  font: 500 15px/15px var(--schrift); letter-spacing: 0; text-transform: none; color: var(--creme); text-align: center; text-decoration: none; transition: background-color .3s, color .3s; }
.dl-kachel .dl-kachel__knopf:hover, .dl-kachel .dl-kachel__knopf:focus-visible { background: var(--creme); color: var(--braun); }
.dl-gruppe :focus-visible { outline-color: var(--creme); }

/* ---------- Einleitung (z. B. Download Center) ---------- */
.einleitung { width: 100%; max-width: 570px; margin: 0 auto; padding: 73px 10px 35px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.einleitung .text { margin-top: 53px; }
.abschnitt--versal .abschnitt__titel { font: 600 32px/32px var(--schrift); letter-spacing: 10px; text-transform: uppercase; }
.text--mitte { text-align: center; }

/* ---------- Formular (HTML aus inc/formular.php; Werte gemessen an /anmeldung-zur-pruefung/) ---------- */
.anmeldung { width: 100%; max-width: 1026px; margin: 0 auto; padding: 50px 10px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.anmeldung__logo { display: block; width: 300px; height: 300px; }
.formular { width: 100%; max-width: 902px; margin: 0 auto; display: flex; flex-wrap: wrap; text-align: left; }
.formular__feld { width: 100%; padding: 0 5px; margin: 0 0 15px; display: flex; flex-direction: column; gap: 0; min-width: 0; border: 0; }
.formular__feld--80 { width: 80%; } .formular__feld--66 { width: 66.666%; } .formular__feld--50 { width: 50%; } .formular__feld--33 { width: 33.333%; } .formular__feld--20 { width: 20%; }
.formular__label { padding: 0; margin: 0; font: 400 18px/18px var(--schrift); color: var(--text); }
.formular__eingabe { width: 100%; height: 40px; padding: 8px 16px; border: 1px solid #CFCFCF; border-radius: 3px; background: #fff; color: var(--text); font: 400 15px/21px var(--schrift); }
.formular__auswahl { height: 42px; padding-right: 40px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23595959' d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E") no-repeat right 14px center / 10px 16px; }
.formular__eingabe::placeholder { color: #9a9a9a; }
.formular__eingabe:focus { outline: 2px solid var(--braun-dunkel); outline-offset: 1px; border-color: var(--braun-dunkel); }
.formular__gruppe legend { padding: 0; margin: 0 0 5px; }
.formular__option { display: flex; align-items: flex-start; gap: 8px; margin-top: 5px; font: 400 18px/1.4 var(--schrift); color: var(--text); }
.formular__option input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--braun); }
.formular__option label { cursor: pointer; }
.formular__fehler { margin: 6px 0 0; font: 400 15px/1.3 var(--schrift); color: #b3261e; }
.formular__feld--fehler .formular__eingabe { border-color: #b3261e; }
.formular__senden { width: 100%; min-height: 47px; padding: 15px 30px; border: 0; border-radius: 4px; background: var(--gruen); color: var(--braun); font: 500 16px/16px var(--schrift); cursor: pointer; transition: background-color .3s, box-shadow .3s; }
.formular__senden:hover, .formular__senden:focus-visible { background: #55bd63; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.formular__meldung { width: 100%; max-width: 892px; padding: 16px 20px; border-left: 6px solid var(--gruen); background: #fff; color: var(--braun); text-align: left; }
.formular__meldung p { margin: 0; }
.formular__meldung--fehler { border-left-color: #b3261e; }
.formular__meldung:focus { outline: none; }

/* ---------- Facebook-Band ---------- */
.fb-band { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: center; min-height: 333px; padding: 50px 10px; background: var(--fb); text-align: center; }
.fb-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #000; opacity: .6; }
.fb-band__bild { position: absolute; left: 0; top: -15%; z-index: -2; width: 100%; max-width: none; height: 130%; object-fit: none; object-position: center; transform: translate3d(0, var(--verschiebung, 0px), 0); will-change: transform; }
.fb-band--links-oben .fb-band__bild { object-position: left top; }
.fb-band__inhalt { width: 40%; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.fb-band__symbol { display: block; height: 109px; color: var(--creme-hell); transition: transform .3s; }
.fb-band__symbol svg { display: block; width: 100px; height: 100px; }
.fb-band__symbol:hover { transform: scale(1.06); }
.fb-band__titel { font: 600 21px/24px var(--schrift); letter-spacing: 10px; text-transform: uppercase; color: var(--creme); }
.fb-band__titel a { color: inherit; text-decoration: none; }

/* ---------- Fuß ---------- */
.fuss { padding: 5% 5% 3%; background: var(--braun); color: var(--creme-hell); }
.fuss__innen { display: grid; grid-template-columns: 26.55fr 26.55fr 31fr 15.9fr; }
.fuss__spalte { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fuss__spalte--logo { align-items: center; justify-content: center; }
.fuss__spalte--logo img { display: block; width: 180px; height: 180px; }
.fuss__titel { font: 400 20px/25px "Anton", "Impact", "Arial Narrow", sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--creme-hell); }
.fuss p, .fuss__menue a { font: 300 16px/1.6em "Roboto", sans-serif; letter-spacing: -.45px; color: var(--creme-hell); }
.fuss p { margin: 0 0 14.4px; }
.fuss__menue { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.fuss__menue li { list-style: none; }
.fuss__menue a { display: inline-block; text-decoration: none; transition: color .3s; }
.fuss__menue a:hover, .fuss__menue a:focus-visible { color: #b9aea9; }
.fuss__mad42 { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
.fuss__mad42 img { display: block; width: 100px; height: 42px; }
.fuss :focus-visible { outline-color: var(--creme-hell); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .fuss__innen { grid-template-columns: 1fr 1fr; gap: 48px; }
  .fuss__spalte--logo { grid-column: 1 / -1; align-items: flex-start; }
  .fuss p, .fuss__menue a { font-size: 14px; }
  .spalten--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Handy ---------- */
@media (max-width: 767px) {
  .kopfbild--logo .kopfbild__inhalt { padding-top: 30px; padding-bottom: 110px; }
  .kopfbild--logo .kopfbild__titel { font-size: 35px; line-height: 35px; }
  .kopfbild--logo .kopfbild__unterzeile { font-size: 21px; line-height: 21px; }
  .abschnitt__titel { font-size: 32px; line-height: 1.3; }
  .abschnitt--mittel .abschnitt__titel { font-size: 24px; letter-spacing: 2.1px; }
  .abschnitt--gross .abschnitt__titel { line-height: 51px; }
  .abschnitt--gross .abschnitt__unterzeile { margin: 0; font-size: 16px; line-height: 1.5; letter-spacing: 2px; }
  .abschnitt--klein .abschnitt__titel { line-height: 1.3; }
  .titel-gross { font-size: 36px; line-height: 1.3; }
  .abstand:not(.abstand--33) { display: none; }
  .spalten, .spalten--3, .spalten--4 { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .banner { width: 100%; }
  .karten-reihe__oben, .karten-reihe__unten { width: 100%; }
  .karten-reihe__raster { grid-template-columns: minmax(0, 1fr); }
  .karte--dunkel { width: 328px; }
  .karte--dunkel .karte__titel { font-size: 20px; line-height: 1.5; }
  .karte--dunkel .karte__knopf { font-size: 17px; line-height: 17px; }
  .knopf { min-height: 44px; }
  .hinweis { flex-basis: 100%; max-width: none; grid-template-columns: 88px minmax(0, 1fr); }
  .hinweis__kal-tag { font-size: 32px; }
  .hinweis__kal-tag--lang { font-size: 20px; }
  .hinweis__rechts { padding: 16px 56px 16px 16px; }
  .hinweis__auf { top: 6px; right: 4px; }
  .hinweis__mehr[open] { margin-right: -40px; }
  .hinweis__aktionen { display: grid; }
  .hinweis__aktionen .knopf { width: 100%; box-sizing: border-box; }
  .hinweis__titel { font-size: 17px; }
  .hinweis__unter { overflow-wrap: anywhere; }
  .fb-band__titel { overflow-wrap: anywhere; }
  .fb-band__inhalt { width: 100%; }
  .fuss { padding: 15% 5% 5%; text-align: center; }
  .fuss__innen { grid-template-columns: minmax(0, 1fr); }
  .fuss__spalte--logo { align-items: center; }
  .fuss__mad42 { align-self: center; }
  .fuss__menue a { min-height: 44px; display: inline-flex; align-items: center; }
  .dl-gruppe__titel { margin-bottom: 50px; font-size: 20px; line-height: 1.3; letter-spacing: 4px; overflow-wrap: anywhere; }
  .dl-kachel { flex-basis: 100%; max-width: 330px; margin: 0 !important; }
  .einleitung { padding-top: 50px; }
  .einleitung .text { margin-top: 0; }
  .abschnitt--versal .abschnitt__titel { font-size: 24px; line-height: 1.3; letter-spacing: 5px; }
  .formular__feld, .formular__feld--80, .formular__feld--66, .formular__feld--50, .formular__feld--33, .formular__feld--20 { width: 100%; }
  .formular__eingabe { height: 44px; }
  .formular__option { min-height: 44px; }
  .formular__option label { min-height: 44px; }
  .formular__option input { width: 22px; height: 22px; }
  .dl-kachel .dl-kachel__knopf { min-height: 44px; }
}

/* ---------- Einblenden beim Rollen (nur mit Skript, nur ohne Bewegungsreduktion) ---------- */
html.js .einblenden { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .einblenden.ist-sichtbar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js .einblenden { opacity: 1; transform: none; }
  .kopfbild__bild, .fb-band__bild { transform: none !important; }
  .karte:hover, .karte:focus-visible, .knopf:hover { transform: none; }
  .karte:hover .karte__bild img { transform: none; }
}

@media print {
  .kopf, .fb-band, .sprung { display: none; }
  main > :first-child:not(.kopfbild) { margin-top: 0; }
  .kopfbild { padding-top: 40px; min-height: 0; }
}

/* Nachträge Abnahme 17.11.2026 */
.dl-gruppe:has(.dl-gruppe__logo) .dl-gruppe__titel { margin-bottom: 159px; } /* alt: größerer Abstand unter dem ersten Gruppentitel */
.seite--kontakt .sa-personen--3 { column-gap: 10px; } /* alt: Mailadressen passen in eine Zeile */

/* Großbild-Fenster der Galerie */
.grossbild { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.grossbild[open] { display: flex; align-items: center; justify-content: center; animation: grossbild-auf .25s ease; }
.grossbild::backdrop { background: rgba(38, 24, 26, .92); }
.grossbild__rahmen { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.grossbild__bild { display: block; max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.grossbild__text { color: var(--creme); font: 400 14px/1 var(--schrift); letter-spacing: 2px; }
.grossbild__knopf { position: fixed; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0 0 4px; border: 1px solid var(--creme); border-radius: 50%; background: rgba(74, 50, 52, .6); color: var(--creme); font: 400 30px/1 var(--schrift); cursor: pointer; transition: background .2s; }
.grossbild__knopf:hover, .grossbild__knopf:focus-visible { background: var(--braun); }
.grossbild__zu { top: 16px; right: 16px; }
.grossbild__zurueck { left: 16px; top: calc(50% - 24px); }
.grossbild__weiter { right: 16px; top: calc(50% - 24px); }
@keyframes grossbild-auf { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .grossbild[open] { animation: none; } }
.formular__hinweis { margin: 6px 0 2px; font: 400 14px/1.5 var(--schrift); color: var(--text); }
.formular__hinweis a { color: var(--braun); text-decoration: underline; display: inline-block; padding: 12px 0; margin: -12px 0; }
