/* Long legal terms, URLs and imported image margins must fit narrow columns. */
.entry-content,.entry-title,.page-prelude,.sidebar{overflow-wrap:anywhere}
.entry-content table{max-width:100%!important;overflow-x:auto}
@media(max-width:800px){
  .entry-content img{margin-left:0;margin-right:0}
  .entry-content table{margin-left:0!important;margin-right:0!important}
  .entry-content h3.downüberschrift{height:auto;min-height:2em;line-height:1.5;padding-top:.25em;padding-bottom:.25em}
}

/* Match the original fixed mobile burger and independent navigation panel. */
@media(max-width:974px){
  body{--kuehne-admin-offset:0px}
  body.admin-bar{--kuehne-admin-offset:32px}
  .site-nav{height:0;border:0;padding:0}
  .header-contact{top:var(--kuehne-admin-offset);padding-left:48px}
  .site-nav .menu-toggle{position:fixed;top:var(--kuehne-admin-offset);left:0;z-index:3001;display:block;box-sizing:border-box;width:40px;height:36px;min-width:0;min-height:0;line-height:1;padding:0;border:0;background:transparent;cursor:pointer}
  .menu-icon{position:absolute;top:8px;left:8px;display:block;width:24px;height:24px;background:url('../images/menue-icon.png') no-repeat center;background-size:24px 24px}
  .menu-toggle:focus-visible{outline:2px solid var(--wine);outline-offset:-2px}
  .site-nav .menu-wrap{position:fixed;top:calc(var(--kuehne-admin-offset) + 36px);left:0;z-index:3000;width:min(17rem,90vw);max-height:calc(100dvh - var(--kuehne-admin-offset) - 36px);overflow-y:auto;overscroll-behavior:contain;background:rgba(255,255,255,.96);border-right:1px solid var(--wine);border-bottom:1px solid var(--wine);box-shadow:3px 3px 8px #0002}
  .site-nav ul{padding:5px 20px}
  .content-grid{padding:3%}
  .primary-content>article>.entry-title,.primary-content>article>.entry-content>h1:first-child,.primary-content>article>.page-prelude h1:first-child{margin-top:1.25em}
}
@media(max-width:782px){body.admin-bar{--kuehne-admin-offset:46px}body.admin-bar #wpadminbar{position:fixed;top:0}}

/* WordPress may wrap the certificate image in a paragraph. Center both forms. */
@media(max-width:800px){
  .entry-content>div:has(>.plakette1){display:flex;flex-direction:column;align-items:center;gap:1rem}
  .entry-content>div:has(>.plakette1)>.plakette1{width:100%;margin:0}
  .entry-content>div:has(>.plakette1)>.plakette1 .plakette{margin:0 auto}
  .entry-content>div:has(>.plakette1)>p{display:flex;justify-content:center;width:100%;margin:0}
  .entry-content>div:has(>.plakette1) img{display:block;float:none;margin:0 auto;max-width:100%;height:auto}
}
