/* Gemeinsame, formatfüllende Bildergalerien mit überlappendem Sektionsübergang. */
.has-gallery header .slider-wrapper{width:100%;height:auto;padding:10px;box-sizing:border-box;background:#fff;overflow:hidden;box-shadow:0 8px 25px #71361426}
.has-gallery header .slider{position:relative;width:100%;height:auto;color:#37402e;outline:none}
.has-gallery header .slider .items{display:block;position:relative;aspect-ratio:940/466;width:100%;margin:0;padding:0;background:#f3f1eb;overflow:hidden;list-style:none;touch-action:pan-y}
.has-gallery header .slider .items>li{position:absolute;inset:0;display:block;opacity:0;transition:opacity .65s ease;pointer-events:none;margin:0;padding:0}
.has-gallery header .slider .items>li:first-child,.has-gallery header .slider .items>li.is-current{opacity:1}
.has-gallery header .slider.is-ready .items>li:not(.is-current){opacity:0}
.has-gallery header .slider .items img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;margin:0;border:0}
.gallery-controls{display:flex;align-items:center;gap:18px;background:white;padding:14px 6px 4px;min-height:46px;box-sizing:content-box}
.gallery-caption{flex:1;min-width:0;font:14px/1.5 Arial,sans-serif;color:#444b3d;margin:0}
.gallery-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.gallery-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #dedfd5;border-radius:50%;background:#f8f8f3;color:#415837;cursor:pointer;transition:background .2s,color .2s;box-sizing:border-box}
.gallery-button:hover{background:#415837;color:#fff}.gallery-button:focus-visible,.slider:focus-visible{outline:3px solid #bf5a26!important;outline-offset:3px}
.gallery-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gallery-count{font:14px/1.4 Arial,sans-serif;font-variant-numeric:tabular-nums;color:#526046;min-width:57px;text-align:center}
.gallery-play{margin-left:5px}.gallery-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.has-gallery header .row-bot{background-color:#cf591e;background-size:auto 100%}.has-gallery header .row-bot-bg{padding-bottom:24px;background-size:auto 100%}
@media(max-width:980px){
 body.has-gallery{min-width:0}
 .has-gallery header .main{width:calc(100% - 32px);max-width:960px}
 .has-gallery .row-top{height:auto;padding:14px 0}
 .has-gallery .row-top .wrapper{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:12px;overflow:visible}
 .has-gallery .row-top .logo{position:static;inset:auto;width:270px;max-width:100%;height:auto;margin:0;float:none}
 .has-gallery .row-top h1{display:none}
 .has-gallery .row-top nav{width:100%}
 .has-gallery .menu{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 20px;float:none;margin:0;padding:0}
 .has-gallery .menu li{float:none;padding:0}.has-gallery .menu li a{font-size:13px}
 .has-gallery header h2{font-size:clamp(36px,7vw,60px);line-height:1.15;padding:24px 0 18px;margin:0!important}
 /* Bestehende breite Inhaltstabellen bleiben separat horizontal erreichbar. */
 .has-gallery #content,.has-gallery footer{overflow-x:auto;max-width:100%;box-sizing:border-box}
 .has-gallery #content>.main,.has-gallery footer>.main{margin-left:auto;margin-right:auto}
}
@media(max-width:600px){
 .has-gallery header .main{width:calc(100% - 24px)}
 .has-gallery header .slider-wrapper{padding:7px}
 .has-gallery header .slider .items{aspect-ratio:4/3}
 .gallery-controls{flex-wrap:wrap;gap:8px;padding:12px 4px 4px}
 .gallery-caption{flex-basis:100%;text-align:center;font-size:13px;min-height:39px;display:flex;align-items:center;justify-content:center}
 .gallery-actions{width:100%;justify-content:center;gap:13px}
 .gallery-count{min-width:65px}
}
@media(prefers-reduced-motion:reduce){.has-gallery header .slider .items>li,.gallery-button{transition:none}}

/* Der helle Folgebereich beginnt bereits hinter dem unteren Teil des Bildes. */
.has-gallery header .row-bot-bg{background-image:linear-gradient(to top,#f2f2f2 130px,transparent 130px),url(../images/row-bot-bg.jpg);background-size:100% 100%,auto 100%;background-repeat:no-repeat;background-position:center bottom,center top}
.has-gallery header .slider .items img[src$="terrasse-quer.jpg"]{object-position:50% 62%}
.has-gallery header .slider .items img[src$="blick-burgruine-hohnstein.jpg"]{object-position:50% 35%}
@media(max-width:600px){.has-gallery header .row-bot-bg{background-image:linear-gradient(to top,#f2f2f2 160px,transparent 160px),url(../images/row-bot-bg.jpg)}}
