/*
Theme Name: Johle Accessible
Theme URI: https://johle.de/
Author: Wirth Oliver
Description: Barrierearmes, responsives WordPress-Theme für die Narrenzunft. Zuständig ausschließlich für Design, Layout und Darstellung. Vereinsverwaltung gehört in Plugins wie Wirth Verein.
Version: 1.26.6
Text Domain: johle-themes
Requires at least: 6.4
Requires PHP: 8.0
*/


/* v1.10.0 – moderne Vereinsoptik: Schwarz, Braun, Bordeaux */
:root{
  --johle-black:#171313;
  --johle-brown:#5a382f;
  --johle-bordeaux:#68131c;
  --johle-bordeaux-dark:#451014;
  --johle-cream:#f4ebe5;
  --johle-paper:#fffaf6;
  --johle-gold:#b4945d;
}
body{background:var(--johle-cream);color:var(--johle-black)}
.site-header{background:rgba(255,250,246,.97);border-bottom:1px solid rgba(90,56,47,.18)}
.site-navigation{background:#fffaf6;border-top:1px solid rgba(90,56,47,.12);border-bottom:1px solid rgba(90,56,47,.15)}
.site-navigation a{color:var(--johle-bordeaux-dark)}
.site-navigation .current-menu-item>a,.site-navigation a:hover,.site-navigation a:focus-visible{background:rgba(104,19,28,.09);color:var(--johle-bordeaux)}
.hero{background:linear-gradient(135deg,#ead8cf 0%,#f6eeea 58%,#e5d0c6 100%);border-bottom:1px solid rgba(90,56,47,.18)}
.hero h1,.entry-content h1,.entry-content h2,.entry-content h3{color:#3b1014}
.hero-panel,.card,.widget,.hero-slide{background:rgba(255,250,246,.92);border:1px solid rgba(90,56,47,.2);box-shadow:0 12px 32px rgba(44,20,18,.07)}
.button,.wp-element-button{background:var(--johle-bordeaux);border-color:var(--johle-bordeaux);color:#fff}
.button:hover,.button:focus-visible,.wp-element-button:hover{background:var(--johle-bordeaux-dark)}
.button-secondary{background:transparent;color:var(--johle-bordeaux);border-color:var(--johle-bordeaux)}
.front-page-content{padding-top:clamp(2rem,5vw,4.5rem);padding-bottom:clamp(2rem,5vw,4.5rem);background:linear-gradient(180deg,#f7efea 0%,#fffaf6 100%)}
.front-page-content .entry-content{max-width:1100px;margin-inline:auto;text-align:center}
.front-page-content .wp-block-image img{max-height:min(58vh,680px);width:auto;object-fit:contain}
.site-footer{background:#1b0d10;color:#f7ece7;border-top:4px solid var(--johle-bordeaux)}
.site-footer a{color:#e7c589}
.site-footer strong,.site-footer h2,.site-footer h3{color:#fff}
@media (max-width:782px){
  .front-page-content{padding-top:1.5rem;padding-bottom:2rem}
  .front-page-content .entry-content{padding-inline:1rem}
  .front-page-content h1{font-size:clamp(1.8rem,8vw,2.7rem)}
}


/* v1.12.0 – Gutenberg-Ausrichtung und responsive Inhaltsbreite */
.front-page-content .entry-content > *{margin-left:auto;margin-right:auto}
.front-page-content .entry-content > .wp-block-image,
.front-page-content .entry-content > figure,
.front-page-content .entry-content > .wp-block-group,
.front-page-content .entry-content > .wp-block-columns{max-width:100%}
.front-page-content .wp-block-image.aligncenter,
.front-page-content figure.aligncenter{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-inline:auto}
.front-page-content .wp-block-image.aligncenter img,
.front-page-content figure.aligncenter img,
.front-page-content .wp-block-image img{display:block;margin-left:auto;margin-right:auto}
.front-page-content .alignwide{width:min(100%,var(--container));max-width:var(--container)}
.front-page-content .alignfull{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}

.johle-runtime-warning{max-width:var(--container);margin:1rem auto;padding:1rem;border:1px solid #d63638;background:#fff2f2;color:#4a1111;border-radius:10px}

/* v1.20.8 – Einzelbeitrag und Plugin-Ausgaben */
body.single-post .site-main,
body.single-post main,
body.blog .site-main,
body.blog main{
  min-height:0;
}
body.single-post .entry-content,
body.single-post article,
body.single-post .post,
body.blog .wv-posts-page-shell{
  box-sizing:border-box;
}
body.single-post .entry-content{
  width:min(1100px,calc(100% - 40px));
  margin-inline:auto;
}
body.single-post .entry-content > figure,
body.single-post .entry-content > .wp-block-image{
  max-width:100%;
}
body.single-post .entry-content img{
  max-width:100%;
  height:auto;
}
/* Keine reservierte Bildhöhe, wenn kein Bild geladen/ausgegeben wird. */
body.single-post figure:empty,
body.single-post .post-thumbnail:empty,
body.single-post .wp-post-image[src=""],
body.single-post .wp-block-post-featured-image:empty{
  display:none!important;
  min-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
}
body.blog .site-main,
body.blog main#primary{
  width:100%!important;
  max-width:none!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* v1.20.8 – Medien in migrierten Einzelbeiträgen */
body.single-post .entry-content figure,
body.single-post .entry-content .wp-block-image,
body.single-post .entry-content .wp-caption{width:auto!important;max-width:100%!important;height:auto!important;min-height:0!important;margin-left:auto!important;margin-right:auto!important}
body.single-post .entry-content figure img,
body.single-post .entry-content .wp-block-image img,
body.single-post .entry-content .wp-caption img{display:block!important;width:auto!important;max-width:100%!important;height:auto!important;margin-inline:auto!important}
body.single-post .entry-content .wp-caption-text,
body.single-post .entry-content figcaption{max-width:900px;margin:.55rem auto 1.15rem;text-align:center;line-height:1.45}
body.single-post .entry-content img[width][height]{max-width:100%!important;height:auto!important}

/* v1.20.8 – Einzelbeiträge auf Smartphones kompakter */
@media (max-width: 680px){
  body.single-post .container.narrow,
  body.single-post .container.content-with-sidebar,
  body.single-post .main-content-column{
    width:100%!important;
    max-width:none!important;
  }

  body.single-post .entry-header,
  body.single-post .entry-content{
    width:min(100% - 44px, 620px)!important;
    max-width:620px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  body.single-post .entry-header h1{
    font-size:clamp(2rem,9.2vw,2.9rem)!important;
    line-height:1.08!important;
    letter-spacing:-.015em;
    overflow-wrap:anywhere;
  }

  body.single-post .entry-header .meta{
    font-size:1rem!important;
    margin-top:1rem!important;
  }

  body.single-post .entry-content{
    font-size:1.08rem!important;
    line-height:1.72!important;
  }

  body.single-post .entry-content p,
  body.single-post .entry-content li{
    line-height:1.72!important;
  }

  body.single-post .entry-content > *{
    max-width:100%!important;
  }
}

@media (max-width: 430px){
  body.single-post .entry-header,
  body.single-post .entry-content{
    width:calc(100% - 38px)!important;
  }

  body.single-post .entry-header h1{
    font-size:clamp(1.9rem,8.8vw,2.55rem)!important;
  }

  body.single-post .entry-content{
    font-size:1.04rem!important;
  }
}

/* v1.20.8 – frei konfigurierbares Headerbild */
.header-brand-inner.has-header-hero{
  display:grid;
  grid-template-columns:minmax(230px,1fr) minmax(0,var(--header-hero-width));
  gap:24px;
  align-items:center;
  min-height:calc(var(--header-hero-height) + 20px);
}
.header-brand-left{min-width:0}
.header-brand-inner.has-header-hero .brand-wrap{min-width:0}
.johle-header-hero{
  position:relative;
  width:100%;
  height:var(--header-hero-height);
  min-width:0;
  overflow:hidden;
  border-radius:var(--header-hero-radius);
  isolation:isolate;
}
.johle-header-hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  background-image:
    linear-gradient(rgba(0,0,0,var(--header-hero-tint)),rgba(0,0,0,var(--header-hero-tint))),
    var(--johle-header-image);
  background-size:cover;
  background-position:var(--header-hero-x) var(--header-hero-y);
  background-repeat:no-repeat;
  border-radius:inherit;
}
@supports ((-webkit-mask-image:linear-gradient(#000,#000)) or (mask-image:linear-gradient(#000,#000))){
  .johle-header-hero-bg{
    -webkit-mask-image:radial-gradient(
      ellipse at center,
      #000 0%,
      #000 calc(100% - var(--header-hero-fade)),
      transparent 100%
    );
    mask-image:radial-gradient(
      ellipse at center,
      #000 0%,
      #000 calc(100% - var(--header-hero-fade)),
      transparent 100%
    );
  }
}
.johle-header-hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:18px 28px;
  color:var(--header-hero-text)!important;
  text-align:center;
  text-decoration:none!important;
}
.johle-header-hero-kicker{
  display:block;
  font-family:var(--header-hero-kicker-font);
  font-size:clamp(.78rem,1.3vw,1.05rem);
  font-weight:800;
  letter-spacing:.08em;
  text-transform:none;
}
.johle-header-hero-title{
  display:block;
  max-width:95%;
  font-family:var(--header-hero-title-font);
  font-size:var(--header-hero-title-size);
  font-weight:400;
  line-height:1.02;
  color:inherit;
}
.johle-header-hero-overlay:not(.no-text-shadow){
  text-shadow:0 2px 2px rgba(0,0,0,.88),0 0 7px rgba(0,0,0,.68),1px 0 0 rgba(0,0,0,.75),-1px 0 0 rgba(0,0,0,.75);
}
.johle-header-hero-overlay.no-text-shadow{text-shadow:none}


@media(max-width:900px){
  .header-brand-inner.has-header-hero{
    grid-template-columns:minmax(0,1fr) minmax(280px,52%);
    gap:14px;
  }
  .johle-header-hero-title{font-size:var(--header-hero-mobile-title-size)}
}
@media(max-width:767px){
  .header-brand-inner.has-header-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    min-height:0;
  }
  .header-brand-inner.has-header-hero .header-brand-left{grid-column:1}
  
  .johle-header-hero{
    grid-column:1 / -1;
    grid-row:2;
    width:100%;
    height:min(var(--header-hero-height),150px);
    margin-top:10px;
  }
  .johle-header-hero.hide-header-hero-mobile{display:none!important}
  .johle-header-hero-overlay{padding:12px 18px}
  .johle-header-hero-title{font-size:var(--header-hero-mobile-title-size)}
}

/* v1.20.8 – Headerbild wirklich auf derselben Mittelachse wie der Seiteninhalt.
   Wenn links weder Logo noch Titel sichtbar sind, darf das Header-Grid keine
   unsichtbare erste Spalte mehr reservieren. */
@media (min-width:768px){
  .header-brand-inner.has-header-hero.header-brand-left-hidden{
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    position:relative;
  }
  .header-brand-inner.has-header-hero.header-brand-left-hidden > .johle-header-hero{
    width:var(--header-hero-width) !important;
    flex:0 0 var(--header-hero-width) !important;
    margin-inline:auto !important;
  }
}

/* v1.20.8 – eindeutige Headerbild-Textgrößen */
.johle-header-hero-kicker{
  font-size:var(--header-hero-kicker-size,18px)!important;
  line-height:1.15!important;
}
.johle-header-hero-title{
  font-size:var(--header-hero-title-size,42px)!important;
}
@media(max-width:767px){
  .johle-header-hero-kicker{
    font-size:var(--header-hero-mobile-kicker-size,14px)!important;
  }
  .johle-header-hero-title{
    font-size:var(--header-hero-mobile-title-size,26px)!important;
  }
}

/* v1.20.8 – Logo links unabhängig vom mittigen Headerbild */
@media(min-width:768px){
  .header-brand-inner.has-header-hero{
    position:relative!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    min-height:calc(var(--header-hero-height) + 20px);
  }

  .header-brand-inner.has-header-hero > .johle-header-hero{
    width:var(--header-hero-width)!important;
    flex:0 0 var(--header-hero-width)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    position:relative;
    z-index:1;
  }

  .header-brand-inner.has-header-hero > .header-brand-left{
    position:absolute!important;
    left:0;
    top:50%;
    transform:translateY(-50%);
    z-index:2;
    max-width:calc((100% - var(--header-hero-width))/2 - 18px);
    margin:0!important;
  }

  .header-brand-inner.has-header-hero > .header-brand-left.header-logo-only{
    display:flex;
    align-items:center;
    justify-content:flex-start;
  }

  .header-brand-inner.has-header-hero > .header-brand-left.header-logo-only .brand-wrap{
    display:flex;
    align-items:center;
    justify-content:flex-start;
  }

  .header-brand-inner.has-header-hero > .header-brand-left.header-logo-only .brand-logo{
    max-height:calc(var(--header-hero-height) * .72)!important;
    width:auto!important;
    object-fit:contain;
  }

  
}

/* Auf Mobil bleibt der bestehende responsive Aufbau erhalten. */
@media(max-width:767px){
  .header-brand-inner.has-header-hero > .header-brand-left{
    position:static!important;
    transform:none!important;
    max-width:none!important;
  }
}

/* v1.20.8 – Logo-Größe und Header-Hintergrund */
.header-brand-row,
.site-header,
.site-header .header-brand-row,
.site-header .header-brand-inner{
  background-color:var(--header-bg,#fffaf7)!important;
}
.header-brand-left .brand-logo,
.header-brand-left .custom-logo{
  width:auto!important;
  height:auto!important;
  max-height:var(--header-logo-size-desktop,96px)!important;
  max-width:var(--header-logo-size-desktop,96px)!important;
  object-fit:contain!important;
}
@media(max-width:767px){
  .header-brand-left .brand-logo,
  .header-brand-left .custom-logo{
    max-height:var(--header-logo-size-mobile,74px)!important;
    max-width:var(--header-logo-size-mobile,74px)!important;
  }
}

/* v1.20.8 – Logo-Größe auf tatsächliche Header-Markup-Struktur anwenden */
.header-brand-left .site-logo{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  line-height:0!important;
}
.header-brand-left .site-logo picture{
  display:block!important;
  line-height:0!important;
}
.header-brand-left .site-logo img{
  display:block!important;
  width:var(--header-logo-size-desktop,96px)!important;
  max-width:none!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
}
@media(max-width:767px){
  .header-brand-left .site-logo img{
    width:var(--header-logo-size-mobile,74px)!important;
  }
}
/* Headerfarbe konsequent auf den kompletten oberen Kopfbereich */
.site-header,
.header-brand-row,
.header-brand-inner,
.site-header .container.header-brand-inner{
  background:var(--header-bg,#fffaf7)!important;
  background-color:var(--header-bg,#fffaf7)!important;
}

/* v1.20.8 – vergrößerbare Bilder in Einzelbeiträgen */
body.single-post .entry-content img[data-johle-lightbox="1"]{
  cursor:zoom-in;
}
body.single-post .entry-content a[data-johle-lightbox-link="1"]{
  cursor:zoom-in;
}
.johle-post-lightbox[hidden]{display:none!important}
.johle-post-lightbox{
  position:fixed;
  inset:0;
  z-index:999999;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 64px;
  align-items:center;
  padding:28px;
  background:rgba(15,10,10,.92);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.johle-post-lightbox-stage{
  margin:0;
  min-width:0;
  max-width:100%;
  max-height:calc(100vh - 56px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.johle-post-lightbox-stage img{
  display:block;
  max-width:min(1500px,100%);
  max-height:calc(100vh - 130px);
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:12px;
  box-shadow:0 18px 55px rgba(0,0,0,.45);
}
.johle-post-lightbox-stage figcaption{
  margin-top:12px;
  max-width:900px;
  color:#fff;
  text-align:center;
  font-size:.95rem;
  line-height:1.45;
}
.johle-post-lightbox-close,
.johle-post-lightbox-prev,
.johle-post-lightbox-next{
  appearance:none;
  border:0;
  color:#fff;
  background:rgba(255,255,255,.12);
  cursor:pointer;
  border-radius:999px;
}
.johle-post-lightbox-close{
  position:absolute;
  right:20px;
  top:20px;
  width:46px;
  height:46px;
  font-size:32px;
  line-height:1;
}
.johle-post-lightbox-prev,
.johle-post-lightbox-next{
  width:48px;
  height:48px;
  font-size:40px;
  line-height:.9;
  justify-self:center;
}
.johle-post-lightbox-download{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 16px;
  border-radius:999px;
  background:#fff;
  color:#5b1f26!important;
  font-weight:700;
  text-decoration:none!important;
}
html.johle-lightbox-open,
body.johle-lightbox-open{overflow:hidden!important}
@media(max-width:700px){
  .johle-post-lightbox{
    grid-template-columns:44px minmax(0,1fr) 44px;
    padding:18px 8px;
  }
  .johle-post-lightbox-stage img{
    max-height:calc(100vh - 120px);
    border-radius:8px;
  }
  .johle-post-lightbox-prev,
  .johle-post-lightbox-next{
    width:40px;
    height:40px;
    font-size:32px;
  }
  .johle-post-lightbox-close{
    width:42px;
    height:42px;
    right:10px;
    top:10px;
  }
}

/* v1.20.8 – Beitragsbild-Lightbox komplett neu aufgebaut */
body.single-post .entry-content .johle-lightbox-target{
  cursor:zoom-in!important;
}
body.single-post .entry-content .johle-lightbox-trigger{
  cursor:zoom-in!important;
}
body.single-post .entry-content .johle-lightbox-position{
  position:relative!important;
}
body.single-post .entry-content .johle-lightbox-trigger,
body.single-post .entry-content .johle-lightbox-position{
  max-width:100%;
}
.johle-lightbox-zoom-badge{
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#5b1f26;
  box-shadow:0 4px 16px rgba(0,0,0,.25);
  opacity:0;
  transform:scale(.9);
  transition:opacity .16s ease,transform .16s ease;
  pointer-events:none;
}
.johle-lightbox-trigger:hover > .johle-lightbox-zoom-badge,
.johle-lightbox-position:hover > .johle-lightbox-zoom-badge{
  opacity:1;
  transform:scale(1);
}
.johle-lightbox-magnifier{
  position:relative;
  display:block;
  width:17px;
  height:17px;
  border:3px solid currentColor;
  border-radius:50%;
}
.johle-lightbox-magnifier::after{
  content:"";
  position:absolute;
  width:9px;
  height:3px;
  right:-8px;
  bottom:-5px;
  border-radius:2px;
  background:currentColor;
  transform:rotate(45deg);
  transform-origin:left center;
}
@media(hover:none){
  .johle-lightbox-zoom-badge{opacity:.88;transform:scale(.88)}
}

.johle-lightbox[hidden]{display:none!important}
.johle-lightbox{
  position:fixed;
  inset:0;
  z-index:2147483000;
}
.johle-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(14,9,10,.93);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.johle-lightbox-dialog{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 64px;
  align-items:center;
  gap:10px;
  padding:28px 22px;
}
.johle-lightbox-stage{
  grid-column:2;
  margin:0;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.johle-lightbox-image{
  display:block;
  width:auto;
  height:auto;
  max-width:min(1600px,100%);
  max-height:calc(100vh - 130px);
  object-fit:contain;
  border-radius:10px;
  background:#111;
  box-shadow:0 18px 60px rgba(0,0,0,.5);
}
.johle-lightbox-caption{
  max-width:950px;
  margin-top:12px;
  color:#fff;
  text-align:center;
  line-height:1.45;
}
.johle-lightbox-close,
.johle-lightbox-prev,
.johle-lightbox-next{
  appearance:none;
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  background:rgba(255,255,255,.13);
  color:#fff;
  cursor:pointer;
  box-shadow:none;
}
.johle-lightbox-close:hover,
.johle-lightbox-prev:hover,
.johle-lightbox-next:hover{background:rgba(255,255,255,.24)}
.johle-lightbox-close{
  position:absolute;
  top:16px;
  right:16px;
  z-index:3;
  width:48px;
  height:48px;
  font-size:34px;
  line-height:1;
}
.johle-lightbox-prev,
.johle-lightbox-next{
  position:relative;
  z-index:2;
  width:50px;
  height:50px;
  font-size:40px;
  line-height:.8;
  justify-self:center;
}
.johle-lightbox-prev{grid-column:1}
.johle-lightbox-next{grid-column:3}
.johle-lightbox-download{
  position:absolute;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  z-index:3;
  min-height:40px;
  padding:9px 17px;
  border-radius:999px;
  background:#fff;
  color:#5b1f26!important;
  text-decoration:none!important;
  font-weight:700;
}
.johle-lightbox-counter{
  position:absolute;
  left:18px;
  top:18px;
  z-index:3;
  color:#fff;
  font-weight:700;
}
html.johle-lightbox-open,
body.johle-lightbox-open{overflow:hidden!important}

@media(max-width:700px){
  .johle-lightbox-dialog{
    grid-template-columns:42px minmax(0,1fr) 42px;
    gap:3px;
    padding:58px 5px 38px;
  }
  .johle-lightbox-image{max-height:calc(100vh - 125px);border-radius:7px}
  .johle-lightbox-prev,.johle-lightbox-next{width:38px;height:38px;font-size:30px}
  .johle-lightbox-close{top:10px;right:10px;width:42px;height:42px;font-size:30px}
  .johle-lightbox-counter{top:18px;left:12px;font-size:.88rem}
  .johle-lightbox-caption{padding-inline:8px;font-size:.9rem}
}

/* v1.20.8 – mobiler Header kompakter, Logo separat schaltbar */
@media(max-width:767px){
  body.johle-mobile-logo-hidden .header-brand-left .site-logo{display:none!important}
  body.johle-mobile-logo-hidden .header-brand-left.header-logo-only{display:none!important}
  body.johle-mobile-header-compact .header-brand-inner.has-header-hero{padding-top:8px!important;padding-bottom:8px!important;gap:6px!important}
  body.johle-mobile-header-compact .header-brand-inner.has-header-hero .header-brand-left{min-height:50px!important;display:flex;align-items:center!important}
  body.johle-mobile-header-compact .header-brand-left .site-logo img{width:min(var(--header-logo-size-mobile,74px),58px)!important;max-width:58px!important}
  
  body.johle-mobile-header-compact .johle-header-hero{margin-top:3px!important;height:min(var(--header-hero-height),145px)!important}
  body.johle-mobile-header-hero_overlay .header-brand-inner.has-header-hero{display:block!important;position:relative!important;padding:8px 10px!important}
  body.johle-mobile-header-hero_overlay .johle-header-hero{display:block!important;width:100%!important;height:min(var(--header-hero-height),170px)!important;margin:0!important}
  
  body.johle-mobile-header-hero_overlay .header-brand-left{position:absolute!important;left:18px!important;top:14px!important;z-index:20!important;transform:none!important;max-width:86px!important;margin:0!important}
  body.johle-mobile-header-hero_overlay .header-brand-left .brand-wrap{display:block!important}
  body.johle-mobile-header-hero_overlay .header-brand-left .site-branding{display:none!important}
  body.johle-mobile-header-hero_overlay .header-brand-left .site-logo img{width:min(var(--header-logo-size-mobile,74px),60px)!important;max-width:60px!important;height:auto!important;filter:drop-shadow(0 2px 4px rgba(255,255,255,.75))}
  body.johle-mobile-header-hero_overlay.johle-mobile-logo-hidden .header-brand-left{display:none!important}
  body.johle-mobile-header-hero_overlay .johle-header-hero-overlay{padding:36px 20px 14px!important}
}


/* v1.20.8 –  vollständig sichtbar und intern scrollbar */


/* v1.20.8 – mobiles Pull-to-refresh */
.johle-pull-refresh{
  position:fixed;
  z-index:2147482000;
  left:50%;
  top:max(10px,env(safe-area-inset-top));
  transform:translate(-50%,calc(-70px + var(--pull-distance,0px)));
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(255,250,247,.96);
  color:#681923;
  box-shadow:0 5px 18px rgba(0,0,0,.16);
  font-size:13px;
  font-weight:700;
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease,transform .12s ease;
}
.johle-pull-refresh.is-visible{opacity:1}
.johle-pull-refresh.is-ready .johle-pull-refresh-icon{transform:rotate(180deg)}
.johle-pull-refresh.is-refreshing .johle-pull-refresh-icon{animation:johle-pull-spin .7s linear infinite}
.johle-pull-refresh-icon{font-size:18px;transition:transform .18s ease}
@keyframes johle-pull-spin{to{transform:rotate(360deg)}}
@media(min-width:768px){.johle-pull-refresh{display:none!important}}
@media(prefers-reduced-motion:reduce){.johle-pull-refresh,.johle-pull-refresh-icon{transition:none!important;animation:none!important}}

/* JohlePortal 1.22 – nahtlose Website-Integration */
body:has(.awd-app-shell) .entry-header,
body:has(.awd-app-shell) .page-header,
body:has(.awd-app-shell) .entry-title{display:none!important}
body:has(.awd-app-shell) .site-main,
body:has(.awd-app-shell) .entry-content{max-width:none!important}
body:has(.awd-app-shell) .entry-content{margin-top:0!important}
@media(max-width:782px){body:has(.awd-app-shell) .site-content{padding-left:0!important;padding-right:0!important}}

/* v1.23.0 – JohlePortal App-Look: lebendige Schnellzugriffe und Navigation */
body:has(.awd-app-shell){--jp-red:#a92f43;--jp-navy:#17345f;--jp-cream:#fff9f5;--jp-line:#eadfd9;--jp-shadow:0 10px 28px rgba(70,40,35,.08)}
body:has(.awd-app-shell) .awd-app-shell{overflow:visible!important}
body:has(.awd-app-shell) [data-johle-portal-item]{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;background-image:linear-gradient(145deg,rgba(255,255,255,.98),rgba(255,249,246,.94))!important}
body:has(.awd-app-shell) [data-johle-portal-item]:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(53,39,38,.12)!important;border-color:rgba(169,47,67,.22)!important}
body:has(.awd-app-shell) .johle-emoji{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:14px;font-size:23px;line-height:1;background:var(--johle-icon-bg,#fff0f2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.75);flex:0 0 42px}
body:has(.awd-app-shell) [data-johle-kind="anmeldungen"]{--johle-icon-bg:#e9f2ff}
body:has(.awd-app-shell) [data-johle-kind="termine"]{--johle-icon-bg:#fff0d8}
body:has(.awd-app-shell) [data-johle-kind="sprungplan"]{--johle-icon-bg:#f4eaff}
body:has(.awd-app-shell) [data-johle-kind="arbeitsdienste"]{--johle-icon-bg:#e7f7ed}
body:has(.awd-app-shell) [data-johle-kind="tausch"]{--johle-icon-bg:#e7f6f8}
body:has(.awd-app-shell) [data-johle-kind="profil"]{--johle-icon-bg:#edf1ff}
body:has(.awd-app-shell) [data-johle-kind="familie"]{--johle-icon-bg:#fff0e5}
body:has(.awd-app-shell) [data-johle-kind="einwilligungen"]{--johle-icon-bg:#eaf7ed}
body:has(.awd-app-shell) [data-johle-kind="funktion"]{--johle-icon-bg:#f7eafa}
body:has(.awd-app-shell) [data-johle-kind="verlauf"]{--johle-icon-bg:#f0f1f3}
body:has(.awd-app-shell) [data-johle-kind="start"]{--johle-icon-bg:#fde9ec}
body:has(.awd-app-shell) [data-johle-portal-item] .johle-emoji + svg,
body:has(.awd-app-shell) [data-johle-portal-item] .johle-emoji ~ .dashicons{display:none!important}
/* Schnellzugriff: Karten stärker differenzieren */
body:has(.awd-app-shell) .johle-portal-quick{position:relative!important;overflow:hidden!important;border:1px solid var(--jp-line)!important;box-shadow:var(--jp-shadow)!important}
body:has(.awd-app-shell) .johle-portal-quick:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--johle-accent,#d9a4ad);opacity:.8}
body:has(.awd-app-shell) .johle-portal-quick[data-johle-kind="anmeldungen"]{--johle-accent:#5d8ed8}
body:has(.awd-app-shell) .johle-portal-quick[data-johle-kind="termine"]{--johle-accent:#d79a36}
body:has(.awd-app-shell) .johle-portal-quick[data-johle-kind="sprungplan"]{--johle-accent:#8a61bd}
body:has(.awd-app-shell) .johle-portal-quick[data-johle-kind="arbeitsdienste"]{--johle-accent:#459b65}
body:has(.awd-app-shell) .johle-portal-quick[data-johle-kind="tausch"]{--johle-accent:#4d9ca6}
body:has(.awd-app-shell) .johle-portal-quick[data-johle-kind="profil"]{--johle-accent:#7184c8}
body:has(.awd-app-shell) .johle-portal-quick[data-johle-kind="familie"]{--johle-accent:#d78658}
/* Menü als echte App-Navigation */
body:has(.awd-app-shell) .johle-portal-menu-item{border-radius:14px!important;margin:2px 0!important}
body:has(.awd-app-shell) .johle-portal-menu-item:hover{background:#fff8f7!important}
body:has(.awd-app-shell) .johle-portal-menu-item[aria-current="page"],body:has(.awd-app-shell) .johle-portal-menu-item.is-active{background:#fbecef!important;box-shadow:inset 4px 0 0 var(--jp-red)!important}
@media(min-width:900px){body:has(.awd-app-shell) .johle-portal-menu-panel{width:min(460px,36vw)!important;max-width:460px!important}}
@media(max-width:782px){
 body:has(.awd-app-shell).johle-portal-menu-open{overflow:hidden!important;touch-action:none}
 body:has(.awd-app-shell) .johle-portal-menu-panel{max-height:100dvh!important;height:100dvh!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;padding-bottom:max(28px,env(safe-area-inset-bottom))!important}
 body:has(.awd-app-shell) .johle-emoji{width:40px;height:40px;flex-basis:40px;font-size:22px;border-radius:13px}
}
@media(prefers-reduced-motion:reduce){body:has(.awd-app-shell) [data-johle-portal-item]{transition:none!important}}


/* =========================================================
   Johle Theme 1.23.2 – Portal-Menü repariert
   ========================================================= */

/* Schnellzugriff: farbig, aber ohne doppelten Symbol-Zwang */
.awd-app-tilegrid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
.awd-app-tile{
  min-height:132px!important;
  padding:14px 12px 12px!important;
  border-radius:18px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  text-align:center!important;
  overflow:hidden!important;
  border:1px solid #e4e8ef!important;
  background:#fff!important;
}
.awd-app-tile__icon{
  display:grid!important;
  place-items:center!important;
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  border-radius:14px!important;
  font-size:24px!important;
  line-height:1!important;
}
.awd-app-tile__label,
.awd-app-tile > span:last-child{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  font-size:16px!important;
  line-height:1.18!important;
  font-weight:800!important;
  hyphens:none!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}

/* Menü: bestehende HTML-Struktur respektieren.
   Keine SVGs/Icons ausblenden und keine Spalten entfernen. */
.awd-dropdown{
  box-sizing:border-box!important;
}
.awd-nav-row{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) auto 18px!important;
  align-items:center!important;
  gap:10px!important;
  min-height:50px!important;
  padding:6px 10px!important;
  border-radius:13px!important;
  overflow:hidden!important;
}
.awd-nav-row__icon{
  display:grid!important;
  place-items:center!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  border-radius:11px!important;
  overflow:hidden!important;
}
.awd-nav-row__icon svg,
.awd-nav-row__icon .awd-icon{
  display:block!important;
  width:20px!important;
  height:20px!important;
  max-width:20px!important;
  max-height:20px!important;
}
.awd-nav-row__label{
  min-width:0!important;
  max-width:100%!important;
  justify-self:start!important;
  text-align:left!important;
  font-size:14px!important;
  line-height:1.15!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.awd-nav-badge{
  justify-self:end!important;
}
.awd-nav-row__chevron{
  justify-self:end!important;
  width:18px!important;
  text-align:center!important;
}
.awd-nav-row.is-active{
  background:#f7e8eb!important;
  border-color:#ead0d6!important;
  box-shadow:inset 3px 0 0 #A83847!important;
}

@media(min-width:900px){
  .awd-dropdown{
    width:440px!important;
    min-width:440px!important;
    max-width:440px!important;
    max-height:min(74vh,680px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
}
@media(max-width:700px){
  .awd-app-tilegrid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .awd-app-tile{
    min-height:112px!important;
  }
  .awd-dropdown{
    width:min(92vw,400px)!important;
    min-width:0!important;
    max-width:min(92vw,400px)!important;
  }
  .awd-nav-row{
    grid-template-columns:40px minmax(0,1fr) auto 18px!important;
  }
}


/* =========================================================
   Johle Theme 1.23.3 – Menütext wieder direkt beim Symbol
   ========================================================= */

/* Menüzeile klassisch von links nach rechts:
   Emoji | Funktionsicon | Text | Pfeil */
.awd-nav-row{
  display:grid!important;
  grid-template-columns:40px 40px minmax(0,1fr) 18px!important;
  align-items:center!important;
  column-gap:8px!important;
  width:100%!important;
}

.awd-nav-row__icon{
  grid-column:auto!important;
  justify-self:start!important;
}

/* Text nicht mehr an den rechten Rand schieben */
.awd-nav-row__label{
  grid-column:auto!important;
  justify-self:start!important;
  text-align:left!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Badges bleiben direkt vor dem Pfeil, falls vorhanden */
.awd-nav-badge{
  justify-self:end!important;
  margin-left:auto!important;
}

.awd-nav-row__chevron{
  grid-column:4!important;
  justify-self:end!important;
  margin:0!important;
}

/* Falls eine Zeile nur EIN Symbol besitzt, Text trotzdem links halten */
.awd-nav-row > .awd-nav-row__icon + .awd-nav-row__label{
  justify-self:start!important;
}

/* Startzeile und normale Menüzeilen identisch ausrichten */
.awd-dropdown .awd-nav-row{
  text-align:left!important;
}

@media(max-width:700px){
  .awd-nav-row{
    grid-template-columns:38px 38px minmax(0,1fr) 16px!important;
    column-gap:7px!important;
  }
}


/* =========================================================
   Johle Theme 1.23.4 – wirklich nur EIN Symbol je Menüpunkt
   ========================================================= */

/* In der aktuellen Menüstruktur werden zwei Icon-Container ausgegeben:
   1) farbiges Emoji/App-Symbol
   2) zusätzliches altes rosa Funktionssymbol.
   Ab jetzt wird der zweite Icon-Container vollständig ausgeblendet. */
.awd-nav-row{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) 18px!important;
  align-items:center!important;
  column-gap:10px!important;
}

/* erstes Symbol sichtbar */
.awd-nav-row > .awd-nav-row__icon:first-of-type{
  display:grid!important;
  grid-column:1!important;
}

/* jedes weitere Symbol in derselben Menüzeile ausblenden */
.awd-nav-row > .awd-nav-row__icon:not(:first-of-type){
  display:none!important;
}

/* Text rückt direkt an das eine verbleibende Symbol */
.awd-nav-row__label{
  grid-column:2!important;
  justify-self:start!important;
  text-align:left!important;
  margin:0!important;
  padding:0!important;
  width:auto!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Pfeil sauber rechts */
.awd-nav-row__chevron{
  grid-column:3!important;
  justify-self:end!important;
}

/* Badge vor dem Pfeil, falls vorhanden */
.awd-nav-row:has(.awd-nav-badge){
  grid-template-columns:40px minmax(0,1fr) auto 18px!important;
}
.awd-nav-row:has(.awd-nav-badge) .awd-nav-badge{
  grid-column:3!important;
}
.awd-nav-row:has(.awd-nav-badge) .awd-nav-row__chevron{
  grid-column:4!important;
}

@media(max-width:700px){
  .awd-nav-row{
    grid-template-columns:38px minmax(0,1fr) 16px!important;
  }
  .awd-nav-row:has(.awd-nav-badge){
    grid-template-columns:38px minmax(0,1fr) auto 16px!important;
  }
}


/* =========================================================
   Johle Theme 1.23.5 – Schnellzugriff: nur EIN Symbol
   ========================================================= */

/* In den Schnellzugriff-Kacheln werden aktuell zwei Symbole ausgegeben:
   oben das farbige App-/Emoji-Symbol und darunter das alte Funktionssymbol.
   Das zweite Symbol wird vollständig ausgeblendet. */
.awd-app-tile{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
}

/* erstes Icon sichtbar */
.awd-app-tile > .awd-app-tile__icon:first-of-type{
  display:grid!important;
  place-items:center!important;
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  margin:0!important;
}

/* jedes weitere Icon derselben Kachel ausblenden */
.awd-app-tile > .awd-app-tile__icon:not(:first-of-type){
  display:none!important;
}

/* Falls das alte Symbol nicht dieselbe Klasse besitzt:
   direkt nach dem ersten App-Symbol liegende reine Icon-Container ausblenden. */
.awd-app-tile > .awd-app-tile__icon:first-of-type + .awd-icon,
.awd-app-tile > .awd-app-tile__icon:first-of-type + [class*="icon"]:not(.awd-app-tile__label),
.awd-app-tile > .awd-app-tile__icon:first-of-type + span:has(svg){
  display:none!important;
}

/* Titel rückt direkt unter das eine Symbol */
.awd-app-tile__label,
.awd-app-tile > span:last-child{
  margin-top:0!important;
}

/* Kacheln dadurch etwas kompakter */
.awd-app-tile{
  min-height:116px!important;
  padding:14px 12px!important;
}

@media(max-width:700px){
  .awd-app-tile{
    min-height:104px!important;
  }
  .awd-app-tile > .awd-app-tile__icon:first-of-type{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
  }
}


/* v1.25.0 –  */
