/* =========================================================
   Hundeschule & Hundepension Elbe Elster
   Technischer Neubau des Templates "frontend" fuer Joomla 6.
   Grundlage: HTML-Vorlage "Neue Webseite".
     Gruen #99cc33  Orange #f59c17  Text-Braun #663300
     Inhaltsbreite 1038px  Kopfbreite 1163px
   ========================================================= */

:root{
  --gruen:#99cc33;
  --orange:#f59c17;
  --braun:#663300;
  --schwarz:#000;
  --weiss:#fff;
  --bg:#e4ffb2;
  --inhalt:1038px;
  --kopf:1163px;
  --rahmen:#573f4a;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial,Verdana,sans-serif;
  font-size:100%;
  line-height:1.5;
  color:var(--braun);
  background:var(--bg) url("../images/bg_body.jpg") repeat-y center top;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

h1,h2,h3,h4{font-weight:bold;color:var(--schwarz);line-height:1.25}
h1{font-size:1.6em}
h2{font-size:1.25em}
h3{font-size:1.1em}
a{color:var(--orange);font-weight:bold;text-decoration:none}
a:hover,a:focus{text-decoration:underline}
img{max-width:100%;height:auto}

.center{text-align:center}
.orange{color:var(--orange)}
.gruen{color:var(--gruen)}
.visually-hidden,.sr-only{
  position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;padding:0;margin:-1px;
}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:1000;
  background:var(--orange);color:var(--schwarz);padding:10px 16px;
}
.skip-link:focus{left:0}

/* ---------- Kopfbereich ----------
   Hoehe = Hoehe der Kopfgrafik (1163x150), damit die Leiste wie im
   Original unmittelbar darunter sitzt. */
.kopfzeile{
  width:100%;
  max-width:var(--kopf);
  height:150px;
  margin:0 auto;
  background-repeat:no-repeat;
  background-position:left top;
  position:relative;
}
.art-Logo{
  display:block;position:absolute;
  left:94px;top:0;width:475px;height:133px;
}
.art-Logo img{width:475px;height:133px;display:block}

@media (max-width:1163px){
  .kopfzeile{height:0;padding-bottom:12.9%;background-size:contain}
  .art-Logo{left:8.08%;top:0;width:40.8%;height:auto}
  .art-Logo img{width:100%;height:auto}
}

/* ---------- Navigation ---------- */
.navigation_top{
  max-width:1075px;
  margin:3px auto 0;
  background:var(--gruen);
  position:relative;
  z-index:999;
}
.navigation_top .mod-menu{
  list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:wrap;
}
.navigation_top .mod-menu > li{position:relative;display:flex;align-items:stretch}
.navigation_top .mod-menu > li > a{
  display:flex;align-items:center;
  color:var(--schwarz);
  text-transform:uppercase;
  font-size:1em;
  min-height:50px;
  padding:0 13px;
  border-left:2px solid var(--weiss);
  transition:background .2s linear,color .2s linear;
}
.navigation_top .mod-menu > li:first-child > a{border-left:none}
.navigation_top .mod-menu > li > a:hover,
.navigation_top .mod-menu > li > a:focus,
.navigation_top .mod-menu > li.active > a,
.navigation_top .mod-menu > li.current > a{
  background:var(--orange);text-decoration:none;
}
.navigation_top .mod-menu > li > a img{display:block;width:24px;height:auto}

/* Der Aufklapp-Knopf von mod_menu wird nur im mobilen Menue gebraucht.
   Am Schreibtisch oeffnet der Zeiger das Untermenue - und die Leiste
   bleibt einreihig wie im Original. */
.navigation_top .mod-menu__toggle-sub{
  display:none;
  border:0;background:transparent;cursor:pointer;
  padding:0 8px 0 0;color:var(--schwarz);font:inherit;
}

/* Untermenue */
.navigation_top .mod-menu__sub{
  list-style:none;margin:0;padding:10px 0;
  position:absolute;left:0;top:100%;min-width:240px;
  background:#ffe6b5;
  visibility:hidden;opacity:0;transform:translateY(-6px);
  transition:opacity .2s,transform .2s,visibility .2s;
  box-shadow:0 6px 14px rgba(0,0,0,.15);
}
.navigation_top .mod-menu > li:hover > .mod-menu__sub,
.navigation_top .mod-menu > li:focus-within > .mod-menu__sub,
.navigation_top .mod-menu__sub.show-menu{
  visibility:visible;opacity:1;transform:translateY(0);
}
.navigation_top .mod-menu__sub li a{
  display:block;color:var(--schwarz);
  text-transform:uppercase;font-size:.9em;line-height:1.4;
  padding:6px 15px;
}
.navigation_top .mod-menu__sub li a:hover{background:var(--orange);text-decoration:none}

/* Mobiler Menueknopf */
.nav-toggle{
  display:none;width:100%;
  border:0;background:var(--gruen);color:var(--schwarz);
  font-size:1.1em;font-weight:bold;text-transform:uppercase;
  padding:14px 16px;cursor:pointer;
  align-items:center;gap:10px;
}
.nav-toggle-bar{width:24px;height:3px;background:var(--schwarz);display:block}
.nav-toggle-bar+.nav-toggle-bar{margin-top:-6px}
.nav-toggle-label{margin-left:8px}

/* ---------- Inhaltsrahmen ---------- */
#inhalt{width:100%;padding:10px 0 40px;flex:1 0 auto}
.inhalt2{max-width:var(--inhalt);margin:0 auto;padding:0 15px}
.brotkrumen{font-size:.85em}
.brotkrumen ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:0 0 10px}

/* Modulrahmen */
.modul{min-width:0}
.modul > .modul-titel{margin:0 0 10px}

/* ---------- Bildwechsler (position-3) ---------- */
.slider{
  position:relative;max-width:728px;margin:0 auto 20px;
  aspect-ratio:728/212;
}
.slider .modul{position:absolute;inset:0}
.slider .slide{
  position:absolute;inset:0;line-height:0;margin:0;
  opacity:0;transition:opacity .6s ease;pointer-events:none;
}
.slider .slide.is-active{opacity:1;pointer-events:auto}
.slider img{width:100%;height:100%;object-fit:cover;border-radius:2px;display:block}

/* ---------- Beitrag ---------- */
.component{display:block}
.item-page h1{margin:.4em 0}
.item-page .intro,.intro{text-align:justify}

/* ---------- Vier Info-Boxen (position-5) ---------- */
.boxen-grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:15px;margin:25px 0 45px;
}
.boxen-grid > .modul{
  background:var(--weiss);
  border:5px solid var(--orange);
  border-bottom-width:30px;
  display:flex;flex-direction:column;
  position:relative;
}
/* Joomla schiebt zwischen .modul und den Absatz noch ein div.mod-custom. */
.boxen-grid > .modul > div{display:flex;flex-direction:column;flex:1}
.boxen-grid .modul p:not(.Mehr_erfahren){margin:0;padding:8px 10px 14px;font-size:.8em;line-height:1.45;text-align:justify}
.boxen-grid .modul p:first-child{padding:0}
.boxen-grid .modul img{width:100%;display:block;margin:0}
.boxen-grid .Mehr_erfahren{
  position:absolute;left:0;right:0;bottom:-26px;
  padding:0;margin:0;text-align:center;
}
.boxen-grid .Mehr_erfahren a{
  display:block;text-transform:uppercase;
  color:var(--schwarz);font-weight:bold;font-size:.9em;line-height:26px;
}
.boxen-grid .Mehr_erfahren a:hover{color:var(--weiss);text-decoration:none}

/* ---------- Galerie-Zeile (position-6 + position-7) ---------- */
.galerie-zeile{
  display:grid;grid-template-columns:1fr auto 370px;
  gap:20px;align-items:start;margin:20px 0 30px;
}
.galerie-zeile > .modul > .modul-titel{
  background:var(--orange);color:var(--schwarz);
  text-transform:uppercase;font-size:1em;line-height:30px;
  padding:0 15px;margin:0 0 10px;
}
.galerie-zeile > .hund-startseite > p{margin:0}
.galerie-zeile > .hund-startseite img{height:293px;width:auto;border-radius:2px;display:block}

/* Bewertungen (ersetzt den alten Community-/Facebook-Block) */
.bewertungen .bewertungen-inner{
  background:var(--weiss);border:2px solid var(--orange);
  padding:14px;min-height:251px;
}
.bew-karte{border-bottom:1px solid #eee;padding-bottom:12px;margin-bottom:12px}
.bew-sterne{color:var(--orange);font-size:1.3em;letter-spacing:2px}
.bew-text{font-size:.9em;margin:.4em 0;color:var(--braun)}
.bew-autor{font-size:.8em;color:#888}
.bew-aktionen{display:flex;flex-direction:column;gap:8px}
.btn{
  display:block;text-align:center;color:var(--weiss);
  text-transform:uppercase;font-size:.85em;
  padding:9px 12px;border-radius:3px;
}
.btn:hover{text-decoration:none;filter:brightness(1.05)}
.btn-google{background:var(--gruen)}
.btn-fb{background:#1877f2}

/* ---------- Textbloecke (position-8) ---------- */
.modul h3{margin:1.4em 0 .4em}
#inhalt > .inhalt2 > .modul p{text-align:justify}
/* Wie im Original laeuft der Text um ein eingebundenes Bild herum. Die
   naechste Zwischenueberschrift beginnt darunter, und der Textblock
   schliesst sein Bild ein, damit nichts in den Fussbereich ragt. */
#inhalt > .inhalt2 > .modul h3{clear:both}
#inhalt > .inhalt2 > .modul::after{content:"";display:block;clear:both}
.imglinks{float:left;margin:0 15px 10px 0}
.imgrechts{float:right;margin:0 0 10px 15px}

/* ---------- Fussbereich ----------
   Aufteilung und Breiten wie im Original: gruenes Band ueber die volle
   Fensterbreite, darin der Inhalt im Container (Kopfbreite). Von links
   nach rechts: soziale Netzwerke und Barfshop-Bild, zwei Menuespalten
   mit weissem Trennstrich, rechts aus dem Container heraus das Schild. */
.fussbereich{
  background:var(--gruen);
  border-bottom:15px solid var(--orange);
  flex-shrink:0;margin-top:auto;
}
.fuss-inner{
  position:relative;
  max-width:var(--kopf);
  min-height:190px;
  margin:0 auto;
  padding:15px 15px 15px 50px;
  display:flex;align-items:flex-start;
  background:url("../images/blaetter.jpg") no-repeat 500px top;
}

/* Spalte 1: soziale Netzwerke, darunter das Barfshop-Bild */
.modul.fuss-links{flex:0 0 190px;padding-top:5px}
.fuss-social{display:flex;gap:12px;margin:0 0 14px;padding:0;list-style:none}
.fuss-social a{
  display:block;width:42px;height:42px;border-radius:10px;
  background-repeat:no-repeat;background-position:center;background-size:24px 24px;
  box-shadow:0 1px 3px rgba(0,0,0,.25);
  transition:transform .15s ease;
}
.fuss-social a:hover,.fuss-social a:focus{transform:translateY(-2px)}
.fuss-social .sm-facebook{
  background-color:#1877f2;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M24 12.07C24 5.4 18.63 0 12 0S0 5.4 0 12.07C0 18.1 4.39 23.09 10.13 24v-8.44H7.08v-3.49h3.05V9.41c0-3.02 1.79-4.69 4.53-4.69 1.31 0 2.68.24 2.68.24v2.97h-1.51c-1.49 0-1.96.93-1.96 1.89v2.25h3.33l-.53 3.49h-2.8V24C19.61 23.09 24 18.1 24 12.07Z'/%3E%3C/svg%3E");
}
.fuss-social .sm-instagram{
  background-color:#c13584;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='17.6' cy='6.4' r='1.1' fill='%23fff' stroke='none'/%3E%3C/svg%3E");
}
.fuss-shop{display:inline-block;line-height:0}
.fuss-shop img{width:180px;height:auto;border:1px solid rgba(0,0,0,.15)}

/* Spalten 2 und 3: die beiden Fussmenues */
.modul.fuss-menue{
  flex:0 0 auto;min-width:180px;min-height:130px;
  border-left:5px solid var(--weiss);
  margin:15px 0 0 10px;
}
.fuss-menue .mod-menu{list-style:none;margin:0;padding:0 0 0 30px}
.fuss-menue .mod-menu li{
  position:relative;padding-left:22px;
  font-size:.9em;font-weight:bold;line-height:25px;
}
.fuss-menue .mod-menu li::before{
  content:"";position:absolute;left:0;top:6px;width:14px;height:13px;
  background:url("../images/pfote.png") no-repeat;
}
.fuss-menue .mod-menu li a{color:var(--schwarz)}
.fuss-menue .mod-menu li a:hover{color:var(--weiss)}
.fuss-menue .mod-menu__toggle-sub{display:none}

/* Schild rechts - Lage wie im Original: 100px vom rechten Containerrand,
   unten 15px in die orange Leiste hinein, oben ueber das gruene Band hinaus. */
.hundetreffpunktfooter{
  position:absolute;right:100px;bottom:-15px;
  width:238px;height:261px;
  background:url("../images/hundeschule-uPension.png") no-repeat;
  background-size:contain;pointer-events:none;
}
@media (max-width:1180px){
  .hundetreffpunktfooter{right:15px}
}

/* Nach oben */
.nach-oben{
  position:fixed;right:18px;bottom:24px;z-index:900;
  width:44px;height:44px;line-height:44px;text-align:center;
  background:var(--orange);color:var(--schwarz);border-radius:50%;
  font-size:1.2em;box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.nach-oben:hover{text-decoration:none;background:var(--gruen)}
.nach-oben[hidden]{display:none}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:980px){
  .galerie-zeile{grid-template-columns:1fr 1fr;gap:16px}
  .galerie-zeile > .hund-startseite{grid-column:1 / -1;order:3;text-align:center}
  .galerie-zeile > .hund-startseite img{height:auto;max-height:320px;margin:0 auto}
  .galerie-zeile > .bewertungen{grid-column:1 / -1;order:4}
}
@media (max-width:860px){
  .boxen-grid{grid-template-columns:repeat(2,1fr)}
  .fuss-inner{
    flex-wrap:wrap;gap:24px;
    padding:20px 15px 30px;background-image:none;
  }
  .modul.fuss-menue{border-left:0;margin:0;min-height:0}
  .fuss-menue .mod-menu{padding-left:0}
}
@media (max-width:820px){
  .navigation_top{max-width:100%;margin-top:0}
  .nav-toggle{display:flex}
  .navigation_top .mod-menu{display:none;flex-direction:column}
  .navigation_top .mod-menu.offen{display:flex}
  .navigation_top .mod-menu > li{flex-wrap:wrap}
  .navigation_top .mod-menu__toggle-sub{display:block;padding:0 16px}
  .navigation_top .mod-menu > li > a{
    border-left:none;border-top:1px solid rgba(255,255,255,.5);
    min-height:0;padding:14px 16px;flex:1;
  }
  .navigation_top .mod-menu__sub{
    position:static;visibility:visible;opacity:1;transform:none;
    box-shadow:none;background:rgba(255,255,255,.5);padding:0;
    width:100%;max-height:0;overflow:hidden;transition:max-height .25s;
  }
  .navigation_top .mod-menu__sub.show-menu{max-height:600px}
  .navigation_top .mod-menu__sub li a{padding-left:32px}
}
@media (max-width:620px){
  .galerie-zeile{grid-template-columns:1fr}
  .boxen-grid{grid-template-columns:1fr}
  .imglinks,.imgrechts{float:none;margin:0 auto 12px}
  .hundetreffpunktfooter{display:none}
}

/* =========================================================
   UNTERSEITEN - einheitliche Typografie & Bildbehandlung
   ========================================================= */
/* Volle Breite des Inhaltsbereichs wie im Original (.inhalt2 = 1038px). */
.item-page{padding:6px 0 30px;line-height:1.65;font-size:1.02em}
.item-page > h1{margin:.2em 0 .8em;font-size:1.7em;line-height:1.2}
.item-page h2{color:var(--gruen);font-size:1.28em;margin:1.5em 0 .5em;line-height:1.25}
.item-page h3{color:var(--gruen);font-size:1.12em;margin:1.3em 0 .4em}
.item-page p{margin:0 0 1.1em;text-align:left}
.item-page img{max-width:100%;height:auto;border-radius:3px}
.item-page p > img:only-child{
  display:block;margin:1.2em auto;box-shadow:0 2px 10px rgba(0,0,0,.12);
  max-height:520px;width:auto;
}
.item-page img[style*="float: left"],
.item-page img[style*="float:left"]{float:left;margin:4px 18px 12px 0!important;max-width:45%;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.item-page img[style*="float: right"],
.item-page img[style*="float:right"]{float:right;margin:4px 0 12px 18px!important;max-width:45%;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.item-page [style*="unicode-bidi"]{margin:0 0 1.1em!important;text-indent:0!important;text-align:left!important}
.item-page [style*="width: 500px"],
.item-page [style*="width:500px"]{width:auto!important;max-width:100%!important}
.item-page a{color:var(--orange)}
.item-page a:hover{text-decoration:underline}
.item-page ul{list-style-image:url("../images/pfoteo.png");padding-left:22px;margin:0 0 1.2em 8px}
.item-page ul li{margin:.35em 0;line-height:1.5}
.item-page ol{padding-left:26px;margin:0 0 1.2em}
.item-page ol li{margin:.35em 0}
.item-page table{width:100%;border-collapse:collapse;margin:1em 0 1.4em;font-size:.98em}
.item-page table td,.item-page table th{border:1px solid #e0d4b8;padding:8px 10px;text-align:left;vertical-align:top}
.item-page table th{background:var(--orange);color:#fff}
.item-page table tr:nth-child(even) td{background:#fbf6ea}
.item-page::after{content:"";display:block;clear:both}
.item-page h2,.item-page h3{clear:both}
.item-page video{max-width:560px;width:100%;height:auto;display:block;margin:1.2em auto;border-radius:3px;box-shadow:0 2px 10px rgba(0,0,0,.15)}
.item-page p[style*="text-align: center"] img{margin-left:auto;margin-right:auto;display:block}

/* Systemmeldungen dezent einpassen */
#system-message-container{margin:10px 0}

/* =========================================================
   GALERIE (JoomGallery) - Uebersicht, Kategorien, Detail
   Markup: templates/wes_hundepension/html/com_joomgallery/*
   ========================================================= */
.galerie{max-width:1000px;margin:0 auto;padding:6px 0 30px;line-height:1.65}
.galerie > h1{margin:.2em 0 .6em;font-size:1.7em;line-height:1.2;color:var(--schwarz)}
.galerie-text{margin:0 0 1.2em}
.galerie-text p{margin:0 0 1em}
.galerie-zurueck{margin:0 0 1em}
.galerie-zurueck a{color:var(--orange)}
.galerie-leer{margin:1.5em 0}

/* Zahlen der Galerie (Bildmenge, Zugriffe, Bestenlisten, Hinweis "neu") */
.galerie-zahlen{
  margin:0 0 1.2em;padding:10px 14px;
  border-left:4px solid var(--orange);background:#fff6e6;
  font-size:.9em;
}
.galerie-gesamt{margin:0}
.galerie-top{margin:.4em 0 0}
.galerie-top a{color:var(--orange);font-weight:bold}
.galerie-anzahl{margin:1.2em 0 .6em;font-size:.9em;color:var(--braun)}
.gal-neu{
  display:inline-block;vertical-align:baseline;
  background:var(--gruen);color:var(--braun);
  font-size:.85em;font-weight:bold;text-transform:uppercase;
  line-height:1;padding:2px 5px;border-radius:2px;
}
.gal-neu-bild{position:absolute;top:4px;left:4px;z-index:1}

/* Kategoriekacheln */
.galerie-kategorien{
  display:grid;
  grid-template-columns:repeat(var(--wes-katspalten,4),1fr);
  gap:16px;margin:20px 0;
}
/* Die Kacheln einer Reihe sind gleich hoch. Der unterste Streifen fuellt
   den Rest der Kachel, sonst bleibt unter einer einzeiligen Beschriftung
   ein weisser Rand stehen. */
.gal-kat{
  display:flex;flex-direction:column;
  border:3px solid var(--orange);border-radius:3px;
  overflow:hidden;background:var(--weiss);text-decoration:none;
}
.gal-kat > :last-child{flex:1}
.gal-kat:hover,.gal-kat:focus{text-decoration:none}
.gal-kat:focus-visible{outline:3px solid var(--gruen);outline-offset:2px}
.gal-kat-img{display:block;flex:none;width:100%;height:150px;object-fit:cover;transition:transform .3s}
.gal-kat:hover .gal-kat-img{transform:scale(1.06)}
.gal-kat-label{
  display:flex;align-items:center;justify-content:center;
  text-align:center;background:var(--orange);color:var(--schwarz);
  font-weight:bold;text-transform:uppercase;font-size:.85em;padding:8px 6px;
}
.gal-kat-text{display:block;padding:8px 10px;font-size:.85em;color:var(--braun)}
.gal-kat-zahlen{
  display:flex;flex-direction:column;gap:2px;
  padding:6px 10px 8px;font-size:.8em;color:var(--braun);text-align:center;
}
.gal-kat-menge{font-weight:bold}
.gal-kat-menge .gal-neu{margin-left:4px}

/* Bilderraster */
.galerie-bilder{
  display:grid;
  grid-template-columns:repeat(var(--wes-spalten,4),1fr);
  gap:10px;margin:20px 0;
}
.gal-bild{
  display:block;position:relative;overflow:hidden;background:var(--weiss);
  border:2px solid var(--rahmen);aspect-ratio:4/3;
}
.gal-bild img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.gal-bild:hover img{transform:scale(1.08)}
.gal-bild:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
/* Ein Bild samt seiner Angaben. Die Angaben stehen unter dem Bild, damit
   sie nicht ueber dem Motiv liegen wie frueher der Titel. */
.gal-zelle{margin:0;display:flex;flex-direction:column}
.gal-bild-info{
  display:flex;flex-direction:column;gap:1px;
  padding:4px 2px 0;font-size:.75em;color:var(--braun);text-align:center;
}
.gal-bild-titel{
  font-weight:bold;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* Einzelbild */
.galerie-detail .gal-detail{margin:0 0 1.2em;text-align:center}
.galerie-detail .gal-detail img{max-width:100%;height:auto;border:3px solid var(--orange);border-radius:3px}
.galerie-detail figcaption{margin-top:8px;font-size:.9em}
.gal-detail-datum{display:block;margin-top:4px;font-size:.85em}
.gal-detail-zugriffe{display:block;margin-top:4px;font-size:.85em}

/* Blaetterleiste */
.galerie .pagination{
  display:flex;flex-wrap:wrap;gap:6px;justify-content:center;
  list-style:none;padding:0;margin:16px 0;
}
.galerie .pagination .page-link{
  display:block;padding:4px 10px;border:1px solid var(--orange);
  border-radius:3px;background:var(--weiss);color:var(--braun);font-weight:bold;
}
.galerie .pagination a.page-link:hover{background:var(--orange);color:var(--weiss);text-decoration:none}
.galerie .pagination .active .page-link{background:var(--orange);color:var(--weiss)}
.galerie .pagination .disabled .page-link{opacity:.45}
/* Joomla setzt fuer die Blaetterpfeile Icon-Klassen aus einer Schriftart,
   die dieses Template nicht laedt. Deshalb echte Zeichen einsetzen. */
.galerie .pagination [class^="icon-"]{border:0;padding:0;background:none;font-style:normal}
.galerie .pagination .icon-angle-left::before{content:"\2039"}
.galerie .pagination .icon-angle-right::before{content:"\203A"}
.galerie .pagination .icon-angle-double-left::before{content:"\00AB"}
.galerie .pagination .icon-angle-double-right::before{content:"\00BB"}
.galerie .counter,.galerie .pagination__wrapper > p{text-align:center;font-size:.85em;margin:0 0 8px}

@media (max-width:820px){
  .galerie-kategorien{grid-template-columns:repeat(3,1fr)}
  .galerie-bilder{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:620px){
  .galerie-kategorien{grid-template-columns:repeat(2,1fr)}
  .galerie-bilder{grid-template-columns:repeat(2,1fr)}
  .gal-kat-img{height:120px}
}
@media (prefers-reduced-motion:reduce){
  .gal-kat-img,.gal-bild img{transition:none}
  .gal-kat:hover .gal-kat-img,.gal-bild:hover img{transform:none}
}

/* Grossansicht der Galerie (wird per JavaScript eingeblendet) */
.gal-gross{
  position:fixed;inset:0;z-index:1000;padding:20px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.85);
}
.gal-gross[hidden]{display:none}
body.gal-gross-offen{overflow:hidden}
.gal-gross-bild{
  margin:0;display:flex;flex-direction:column;align-items:center;gap:10px;
  max-width:100%;max-height:100%;
}
.gal-gross-bild img{
  max-width:100%;max-height:80vh;object-fit:contain;
  border:3px solid var(--orange);background:var(--weiss);
}
.gal-gross-bild figcaption{color:var(--weiss);text-align:center;font-size:.95em}
.gal-gross-knopf{
  position:absolute;width:44px;height:44px;border:0;border-radius:50%;
  background:var(--orange);color:var(--weiss);font-size:28px;line-height:1;
  cursor:pointer;
}
.gal-gross-knopf:hover{background:var(--braun)}
.gal-gross-knopf[hidden]{display:none}
.gal-gross-zu{top:16px;right:16px}
.gal-gross-zurueck{left:16px;top:50%;transform:translateY(-50%)}
.gal-gross-vor{right:16px;top:50%;transform:translateY(-50%)}

@media (max-width:620px){
  .gal-gross{padding:10px}
  .gal-gross-knopf{width:38px;height:38px;font-size:24px}
  .gal-gross-bild img{max-height:70vh}
}

/* =========================================================
   BAUSTEINE DER UNTERSEITEN
   Uebernommen aus der HTML-Vorlage (framework.css). Die Vorlage
   benutzt einige Klassen, ohne sie zu beschreiben - hours-table,
   tag, contact-*, map-*, download-fact, gallery-grid. Die sind
   hier ergaenzt, damit die Seiten vollstaendig aussehen.
   ========================================================= */
:root{
  --ee-gruen-d:#7fb023;
  --ee-orange-d:#e08600;
  --ee-braun:#5a4632;
  --ee-tint:#f6faee;      /* zartes Gruen-Weiss */
  --ee-tint-2:#fef6e8;    /* zartes Orange-Weiss */
  --ee-line:#e6ddc8;
  --ee-sepia:#efe7d8;
  --ee-sepia-d:#8a7355;
  --ee-ink:#3a3025;
}

/* Seiten mit dem neuen Aufbau nutzen die volle Spaltenbreite,
   die Lesebreite regelt .page-wrap. */
.item-page:has(> .page-hero){max-width:none;padding-top:0}
.page-wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.page-main{padding:0 0 20px}

/* ---------- Kopf einer Unterseite ---------- */
.page-hero{
  background:linear-gradient(180deg,var(--ee-tint) 0%,var(--weiss) 100%);
  border-bottom:3px solid var(--gruen);
  padding:30px 0 24px;margin:0 0 34px;
}
.page-hero .page-wrap{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.page-hero .hero-eyebrow{
  display:inline-block;background:var(--orange);color:var(--weiss);
  font-size:.72em;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  padding:5px 12px;border-radius:20px;margin-bottom:10px;
}
.page-hero h1{font-size:2.1em;line-height:1.15;margin:0;color:var(--ee-ink)}
.page-hero .hero-sub{
  width:100%;margin:12px 0 0;color:var(--ee-braun);font-size:1.06em;max-width:70ch;
}

/* ---------- Abschnitte und Karten ---------- */
.section{margin:0 0 40px}
.section > h2{
  font-size:1.5em;color:var(--ee-ink);margin:0 0 6px;
  display:flex;align-items:center;gap:12px;
}
.section > h2::before{
  content:"";flex:0 0 26px;height:4px;border-radius:2px;background:var(--orange);
}
.section > .section-lead{color:var(--ee-braun);margin:0 0 20px;max-width:75ch;font-size:1.04em}
/* Zwischenueberschrift innerhalb eines Abschnitts: kleiner als die
   Abschnittsueberschrift und ohne den orangen Strich davor. */
.section > h3{font-size:1.2em;color:var(--ee-gruen-d);margin:28px 0 6px}
.section > h3 + p{color:var(--ee-braun);margin:0 0 14px}
.card{
  background:var(--weiss);border:1px solid var(--ee-line);border-radius:14px;
  padding:26px 28px;box-shadow:0 4px 18px rgba(90,70,40,.06);
}
.card + .card{margin-top:20px}
.card h3{margin:0 0 10px;color:var(--ee-gruen-d);font-size:1.18em}

/* ---------- Bild-Text-Aufteilung ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;margin:0 0 34px}
/* Neben einer Landkarte wirkt die mittige Ausrichtung wie ein Versatz. */
.split:has(.map-embed){align-items:start}
.split.reverse .split-media{order:2}
.split-media img,.split-media video{
  width:100%;border-radius:14px;display:block;
  box-shadow:0 8px 26px rgba(90,70,40,.14);
}
.split-body h2{font-size:1.5em;margin:0 0 12px;color:var(--ee-ink)}
.split-body h3{font-size:1.2em;margin:0 0 10px;color:var(--ee-gruen-d)}
.split-body p{margin:0 0 12px;color:var(--ee-ink);line-height:1.7}

/* ---------- Zeitleiste ---------- */
.timeline{position:relative;margin:0;padding:0;list-style:none}
.timeline::before{
  content:"";position:absolute;left:26px;top:6px;bottom:6px;width:3px;border-radius:2px;
  background:linear-gradient(180deg,var(--gruen),var(--orange));
}
.tl-item{position:relative;padding:0 0 30px 70px;margin:0}
.tl-item::before{
  content:"";position:absolute;left:16px;top:2px;width:23px;height:23px;border-radius:50%;
  background:var(--weiss);border:4px solid var(--orange);
  box-shadow:0 0 0 4px var(--ee-tint-2);
}
.tl-item .tl-year{
  display:inline-block;font-weight:800;color:var(--ee-orange-d);
  font-size:1.05em;margin:0 0 4px;letter-spacing:.02em;
}
.tl-item h3{margin:0 0 8px;font-size:1.2em;color:var(--ee-ink);line-height:1.3}
.tl-item p{margin:0 0 10px;color:var(--ee-ink);line-height:1.7}
.tl-media{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0 0}
.tl-media img{
  height:150px;width:auto;max-width:100%;border-radius:10px;object-fit:cover;
  box-shadow:0 4px 14px rgba(90,70,40,.14);
}
/* Vier Fotos nebeneinander passen nur etwas flacher in eine Reihe. */
.tl-media.schmal img{height:132px}
.tl-item.tl-sad::before{border-color:var(--ee-sepia-d);box-shadow:0 0 0 4px var(--ee-sepia)}
.tl-item .tl-note{
  display:inline-block;font-style:italic;color:var(--ee-sepia-d);font-size:.92em;margin-top:4px;
}

/* ---------- Erinnerungsblock ---------- */
.retro{
  background:linear-gradient(0deg,rgba(138,115,85,.05),rgba(138,115,85,.05)),var(--ee-sepia);
  border:1px solid #ddd0ba;border-left:6px solid var(--ee-sepia-d);
  border-radius:14px;padding:28px 30px;margin:0 0 40px;position:relative;
}
.retro::after{
  content:"Erinnerung";position:absolute;top:16px;right:20px;
  font-size:.68em;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ee-sepia-d);border:1px solid var(--ee-sepia-d);
  padding:3px 10px;border-radius:16px;opacity:.8;
}
.retro h2{color:#6b573d;font-size:1.4em;margin:0 0 6px}
.retro .retro-sub{color:#7a6748;margin:0 0 18px;font-style:italic}
.retro-timeline{list-style:none;margin:0;padding:0;columns:2;column-gap:38px}
.retro-timeline li{
  break-inside:avoid;margin:0 0 12px;padding:0 0 0 66px;position:relative;
  color:#4a3d2c;line-height:1.5;font-size:.96em;
}
.retro-timeline li .ry{
  position:absolute;left:0;top:0;font-weight:800;color:var(--ee-sepia-d);font-size:.95em;
}
/* Die Erinnerungsfotos fuellen die Breite des Kastens gleichmaessig aus. */
.retro-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0 0}
.retro-photos img{
  width:100%;height:230px;object-fit:cover;display:block;
  border-radius:8px;filter:sepia(.35) contrast(.96);
  box-shadow:0 3px 12px rgba(90,70,40,.18);
}

/* Bilder im Fliesstext, die sich gross anzeigen lassen. */
.item-page .tl-media img,
.item-page .retro-photos img,
.item-page .bild-gross{cursor:zoom-in}

/* ---------- Zahlen- und Fakten-Kacheln ---------- */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:0 0 34px}
.fact{
  background:var(--ee-tint);border:1px solid var(--ee-line);border-radius:12px;
  padding:20px;text-align:center;
}
.fact .fact-num{font-size:1.9em;font-weight:800;color:var(--ee-orange-d);line-height:1}
.fact .fact-label{color:var(--ee-braun);font-size:.95em;margin-top:6px}
/* Stehen die Kacheln neben einem Bild, ist die Spalte zu schmal fuer
   mehrere nebeneinander. Dort untereinander. */
.split-body .facts{grid-template-columns:1fr;margin:0}

/* Kachel als Download-Verweis */
a.download-fact,
.download-fact{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  text-decoration:none;transition:transform .15s,border-color .15s,box-shadow .15s;
}
.download-fact:hover,.download-fact:focus{
  text-decoration:none;border-color:var(--orange);transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(90,70,40,.12);
}
.download-fact .dl-ico{font-size:2em;line-height:1}
.download-fact .fact-label{color:var(--ee-braun)}
.download-fact .fact-label strong{color:var(--ee-orange-d)}

/* ---------- Schaltflaechen ---------- */
a.btn-cta,
.btn-cta{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--orange);color:var(--weiss);font-weight:700;
  padding:12px 22px;border-radius:26px;text-decoration:none;
  transition:transform .15s,background .15s;
}
a.btn-cta:hover,a.btn-cta:focus,
.btn-cta:hover,.btn-cta:focus{background:var(--ee-orange-d);color:var(--weiss);text-decoration:none;transform:translateY(-1px)}
a.btn-ghost,
.btn-ghost{
  display:inline-flex;align-items:center;gap:8px;
  border:2px solid var(--ee-gruen-d);color:var(--ee-gruen-d);font-weight:700;
  padding:10px 20px;border-radius:26px;text-decoration:none;background:var(--weiss);
}
a.btn-ghost:hover,a.btn-ghost:focus,
.btn-ghost:hover,.btn-ghost:focus{background:var(--ee-tint);text-decoration:none}

/* ---------- Verweisliste mit Pfoten ---------- */
.paw-list{list-style:none;margin:0 0 20px;padding:0}
.paw-list li{position:relative;padding:6px 0 6px 30px;line-height:1.5}
.paw-list li::before{
  content:"";position:absolute;left:0;top:8px;width:18px;height:18px;
  background:url("../images/pfoteo.png") no-repeat center/contain;
}
.paw-list li a{color:var(--ee-orange-d);font-weight:600}

/* ---------- Kontaktkarte ---------- */
.contact-card .contact-row{
  display:flex;align-items:flex-start;gap:12px;
  margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid var(--ee-line);
}
.contact-card .contact-row:last-child{margin:0;padding:0;border-bottom:0}
.contact-ico{
  flex:0 0 34px;width:34px;height:34px;border-radius:50%;
  background:var(--ee-tint-2);display:flex;align-items:center;justify-content:center;
  font-size:1em;line-height:1;
}
.contact-label{
  display:block;font-size:.74em;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ee-braun);margin-bottom:2px;
}
.contact-card a{color:var(--ee-orange-d);font-weight:600}

/* ---------- Kartenvorschau ohne Cookies ---------- */
.map-embed{
  border:1px solid var(--ee-line);border-radius:14px;overflow:hidden;
  background:
    repeating-linear-gradient(45deg,rgba(153,204,51,.10) 0 12px,transparent 12px 24px),
    linear-gradient(160deg,var(--ee-tint) 0%,var(--ee-tint-2) 100%);
  box-shadow:0 8px 26px rgba(90,70,40,.10);
}
a.map-cta,
.map-cta{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:4px;min-height:240px;padding:26px 20px;text-align:center;text-decoration:none;
}
.map-cta:hover,.map-cta:focus{text-decoration:none;background:rgba(255,255,255,.35)}
.map-pin{font-size:2.4em;line-height:1}
.map-title{font-weight:700;color:var(--ee-orange-d);font-size:1.1em}
.map-sub{color:var(--ee-ink)}
.map-hint{font-size:.82em;color:var(--ee-braun)}

/* ---------- Oeffnungszeiten-Tabelle ---------- */
/* Der Selektor beginnt mit  table. , damit diese Regeln die allgemeine
   Artikeltabelle weiter oben ueberwiegen. Sonst faerbt  .item-page table th
   die Tagesspalte orange und die geschlossenen Tage werden grau auf orange. */
table.hours-table{width:100%;max-width:420px;border-collapse:collapse;margin:0}
table.hours-table caption{
  text-align:left;font-weight:700;color:var(--ee-ink);padding:0 0 10px;
}
table.hours-table th,table.hours-table td{
  border:0;border-bottom:1px solid var(--ee-line);
  padding:8px 4px;text-align:left;background:none;
}
table.hours-table th{width:56px;color:var(--ee-braun);font-weight:700}
table.hours-table tr:last-child th,table.hours-table tr:last-child td{border-bottom:0}
table.hours-table tr.closed th,table.hours-table tr.closed td{color:#9b8f7d}
table.hours-table tr:nth-child(even) td{background:none}

/* ---------- Angebots-Schlagworte ---------- */
.tag-grid{display:flex;flex-wrap:wrap;gap:8px;margin:0}
a.tag,
.tag{
  display:inline-block;background:var(--ee-tint);border:1px solid var(--ee-line);
  border-radius:20px;padding:6px 14px;font-size:.9em;color:var(--ee-ink);
}

/* ---------- Bilderreihe im Textfluss ---------- */
.gallery-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:0;
}
.gallery-grid img{
  width:100%;height:200px;object-fit:cover;border-radius:12px;display:block;
  box-shadow:0 4px 14px rgba(90,70,40,.14);
}

/* ---------- kleinere Bildschirme ---------- */
@media (max-width:860px){
  .split{grid-template-columns:1fr;gap:18px}
  .split.reverse .split-media{order:0}
  .retro-timeline{columns:1}
  .retro-photos{grid-template-columns:1fr;gap:12px}
  .retro-photos img{height:200px}
  .page-hero h1{font-size:1.7em}
}
@media (max-width:560px){
  .timeline::before{left:18px}
  .tl-item{padding-left:52px}
  .tl-item::before{left:8px;width:19px;height:19px}
  .tl-media img,.tl-media.schmal img{height:120px}
  .retro-timeline li{padding-left:56px}
  .card{padding:20px 18px}
  .retro{padding:22px 18px}
  .gallery-grid img{height:170px}
}
@media (prefers-reduced-motion:reduce){
  .btn-cta,.download-fact{transition:none}
  .btn-cta:hover,.download-fact:hover{transform:none}
}

/* Verweise in die Bildergalerien (Seite Hundepension) */
a.tag{transition:background .15s,border-color .15s,color .15s}
a.tag:hover,a.tag:focus-visible{
  background:var(--gruen);border-color:var(--gruen);color:var(--weiss);
  text-decoration:none;
}
/* .item-page p ist spezifischer - deshalb hier ebenfalls mit .item-page. */
.item-page p.tagebuch{margin:30px 0 0}

/* ---------- Videoplayer ---------- */
/* Die beiden Filme liegen nur in 320x240 vor. Breiter als 760px
   hochgerechnet werden sie sichtbar unscharf - daher der Deckel. */
.video-paar{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:0 0 10px}
.wes-video{margin:0;max-width:760px}
.wes-video .buehne{
  position:relative;aspect-ratio:4/3;border-radius:14px;overflow:hidden;
  background:#241f19;box-shadow:0 8px 26px rgba(90,70,40,.18);
}
/* Die aeltere Regel .item-page video setzt Rand, Deckel und Schatten -
   in der Buehne muss der Film buendig sitzen, sonst rutscht er 1.2em
   nach unten und wird unten abgeschnitten. */
.wes-video video{width:100%;height:100%;max-width:none;display:block;margin:0;
  border-radius:0;box-shadow:none;background:#241f19}
.wes-video .start{
  position:absolute;inset:0;width:100%;border:0;padding:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,rgba(36,31,25,.10),rgba(36,31,25,.42));
  transition:background .2s;
}
.wes-video .start::before{
  content:"";width:78px;height:78px;border-radius:50%;
  background:var(--orange) no-repeat center/30px url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  box-shadow:0 8px 24px rgba(0,0,0,.4);transition:transform .2s;
}
.wes-video .start:hover{background:linear-gradient(180deg,rgba(36,31,25,.04),rgba(36,31,25,.32))}
.wes-video .start:hover::before,.wes-video .start:focus-visible::before{transform:scale(1.08)}
.wes-video.laeuft .start{display:none}
.wes-video figcaption{margin:10px 0 0;color:var(--ee-braun);font-size:.94em;line-height:1.5}
.wes-video figcaption strong{color:var(--ee-ink);font-weight:700}
.wes-video figcaption .dauer{
  display:inline-block;margin-left:6px;color:var(--ee-sepia-d);
  font-variant-numeric:tabular-nums;
}
.wes-video .ersatz{color:var(--weiss);padding:20px;text-align:center}

/* 2003 zeigt vier Fotos in einer Reihe, die zu zwei Themen gehoeren.
   Zwei Paare mit eigener Beschriftung, unten buendig ausgerichtet. */
.tl-paare{display:flex;gap:26px;flex-wrap:wrap;align-items:flex-end;margin:12px 0 0}
.tl-paare .tl-media{margin:0}
.tl-paare .tl-paar-titel{
  display:block;font-style:italic;color:var(--ee-braun);font-size:.94em;margin:0 0 6px;
}

@media (max-width:860px){
  .video-paar{grid-template-columns:1fr;gap:24px}
}
@media (max-width:560px){
  .tl-paare{gap:14px}
  .wes-video .start::before{width:62px;height:62px;background-size:24px}
}
@media (prefers-reduced-motion:reduce){
  .wes-video .start,.wes-video .start::before{transition:none}
  .wes-video .start:hover::before,.wes-video .start:focus-visible::before{transform:none}
}
