/*
Theme Name: Schusterhäusl
Description: Theme für den Begegnungshof am Schusterhäusl, Germering.
Version: 1.6
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: schusterhaeusl
*/

.sh-hero{min-height:78vh}
.sh-hero h1,.sh-hero p{text-shadow:0 2px 12px rgba(0,0,0,.6)}
.sh-card{border-radius:16px;overflow:hidden;box-shadow:0 4px 16px rgba(60,40,20,.08)}
.sh-card figure{margin:0}
.sh-card img{aspect-ratio:4/3;object-fit:cover;width:100%}
.sh-rounded img{border-radius:18px;box-shadow:0 10px 30px rgba(60,40,20,.15)}
.sh-list{list-style:none;padding-left:0;columns:2 200px}
.sh-list li::before{content:"♥ ";color:var(--wp--preset--color--accent)}
.sh-note{border-left:4px solid var(--wp--preset--color--green)}
.sh-gallery img{border-radius:12px}
header.wp-block-template-part{position:sticky;top:0;z-index:20}
.admin-bar header.wp-block-template-part{top:32px}
html{scroll-behavior:smooth;scroll-padding-top:72px}

/* --- Korrekturen v1.1 --- */
.sh-hero h1,.sh-hero p{color:#fff!important}
.sh-hero .wp-block-cover__background{background:linear-gradient(180deg,rgba(0,0,0,.1) 20%,rgba(20,25,15,.85))!important;opacity:1!important}
.sh-hero .is-style-outline .wp-block-button__link{border-color:#fff;color:#fff}
.sh-card{display:flex;flex-direction:column}
.sh-card .wp-block-image,.sh-card figure{width:100%;margin:0!important}
.sh-card img{width:100%;height:auto;display:block}
.sh-card h3{margin:.6em 0 .3em}
.wp-block-navigation{font-size:.95rem}
.wp-block-navigation a:hover{color:var(--wp--preset--color--accent)}
.wp-block-site-title a{text-decoration:none;color:var(--wp--preset--color--green-dark)}
.sh-gallery.wp-block-gallery img{aspect-ratio:4/3;object-fit:cover}

/* Veranstaltungen */
.sh-events{display:grid;gap:22px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.sh-event{background:var(--wp--preset--color--paper);border-radius:16px;overflow:hidden;box-shadow:0 4px 16px rgba(60,40,20,.08);transition:transform .2s}
.sh-event:hover{transform:translateY(-3px)}
.sh-event-link{color:inherit!important;text-decoration:none;display:block;height:100%}
.sh-event-img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.sh-event-body{display:flex;gap:16px;padding:18px}
.sh-event-date{flex:none;width:58px;height:62px;border-radius:12px;background:var(--wp--preset--color--accent);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.sh-event-date .d{font:700 1.5rem Georgia,serif}.sh-event-date .m{font-size:.8rem;text-transform:uppercase;margin-top:3px}
.sh-event h3{margin:0 0 .2em;font-size:1.2rem}
.sh-event-when{margin:0 0 .5em;color:var(--wp--preset--color--green);font-weight:600;font-size:.95rem}
.sh-event p{margin:0 0 .5em;font-size:.95rem}
.sh-event-more{color:var(--wp--preset--color--accent);font-weight:600;font-size:.95rem}
.sh-events-empty{background:var(--wp--preset--color--sage);padding:16px 20px;border-radius:12px}
.sh-termin{background:var(--wp--preset--color--sage);padding:14px 18px;border-radius:12px}
@media (prefers-reduced-motion:reduce){.sh-event{transition:none}}

/* Karte */
.sh-map{position:relative;width:100%;height:clamp(300px,40vw,440px);border-radius:16px;overflow:hidden;background:#e7e2d2 url(assets/img/map-bg.svg) center/cover}
.sh-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.sh-map-consent{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;background:rgba(250,245,234,.82)}
.sh-map-consent p{max-width:420px;font-size:.95rem}
.sh-map-btn{background:var(--wp--preset--color--accent);color:#fff;border:0;border-radius:999px;padding:12px 24px;font-weight:600;font-size:1rem;cursor:pointer;min-height:44px}
.sh-map-btn:focus-visible{outline:3px solid var(--wp--preset--color--green);outline-offset:2px}
.sh-map-links{font-size:.95rem;margin-top:10px}
.sh-hero .wp-block-button__link{color:#fff!important}
.sh-hero .is-style-outline .wp-block-button__link{border:2px solid #fff!important;background:rgba(0,0,0,.15)!important}
.has-sage-background-color .sh-events-empty{background:var(--wp--preset--color--paper)}
.wp-block-group.sh-card{padding:0!important}
.sh-event img.sh-event-img{width:100%!important;height:auto!important;aspect-ratio:16/9!important;object-fit:cover!important}
.sh-hero.wp-block-cover{padding:0 20px}
.sh-hero .wp-block-cover__inner-container{width:100%!important;max-width:1100px!important;margin:0 auto!important;padding-bottom:64px}
.sh-hero .wp-block-cover__inner-container>*{margin-left:0!important;max-width:none}
.sh-hero p{max-width:640px!important}
