/*
Theme Name: M&A Grünservice
Description: Eigenes schlankes Theme mit dem freigegebenen M&A-Design. Ohne Page Builder. Kontrollierter Formularversand mit getrennten Freigaben.
Version: 1.1.7
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: ma-gruenservice
License: GPL-2.0-or-later
*/
[hidden]{display:none!important}
[data-ma-status]:empty{display:none}
main h1{overflow-wrap:anywhere}
main h2,main h3,main h4,main h5,main h6{overflow-wrap:anywhere}
summary{list-style:none;cursor:pointer}
summary::-webkit-details-marker{display:none}
details[open] summary [aria-hidden]{transform:rotate(180deg)}
details[data-ma-faq] summary svg{transform:none}
header nav a[aria-current=page]>span::after{transform:scaleX(1)}
.sr-only:focus{position:fixed;width:auto;height:auto;clip:auto;white-space:normal;padding:1rem;z-index:100;background:white;top:0;left:0}
.admin-bar header{top:32px}
@media(max-width:782px){.admin-bar header{top:46px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Only the home hero and the requested error page change their presentation. */
.mag-hero{background:#123b2d}
.mag-hero>div:first-child>img{object-position:75% 0}
.mag-hero>div:first-child>div{background-image:linear-gradient(90deg,rgba(8,34,24,.96) 0%,rgba(8,34,24,.9) 35%,rgba(8,34,24,.6) 52%,rgba(8,34,24,.08) 76%)!important}
.mag-hero>div:nth-child(2){padding-top:88px;padding-bottom:96px}
.mag-hero h1{font-size:clamp(3rem,5vw,4.5rem);max-width:620px}
.mag-hero p{max-width:500px;color:#fff}
.mag-hero h1 em{color:#ffbd59}
.mag-hero a{min-height:48px}
@media(max-width:1099px){
 .mag-hero>div:first-child{position:relative;aspect-ratio:7/4;max-height:420px}
 .mag-hero>div:first-child>img{position:absolute;inset:0;object-position:75% 0}
 .mag-hero>div:first-child>div{background-image:linear-gradient(0deg,rgba(18,59,45,.35),transparent 50%)!important}
 .mag-hero>div:nth-child(2){padding-top:32px;padding-bottom:44px}
 .mag-hero h1{font-size:clamp(2.35rem,6vw,3.75rem);max-width:100%;margin-top:20px}
 .mag-hero p{max-width:600px;font-size:1rem}
 .mag-hero>div:nth-child(2)>div:last-child{margin-top:28px}
}
@media(max-width:639px){
 /* Leave the existing fixed contact shortcuts clear of hero copy. */
 .mag-hero>div:nth-child(2){padding-right:76px}
 .mag-hero h1{font-size:clamp(1.75rem,8.8vw,2.35rem)}
 .mag-hero>div:nth-child(2)>span{font-size:.6rem;letter-spacing:.12em}
 /* The contact-card grid's implicit auto track can otherwise exceed 320 px. */
 .page-template-kontakt main ul.grid{grid-template-columns:minmax(0,1fr)}
 .page-template-kontakt main ul.grid>li{min-width:0}
}
.mag-error{padding:clamp(64px,12vw,120px) 24px;text-align:center;max-width:800px;margin:auto}
.mag-error .mag-error-code{font-family:var(--font-serif,serif);font-size:clamp(5rem,15vw,8rem);line-height:1;color:var(--color-primary,#1a593e);opacity:.2;font-weight:700}
.mag-error h1{font-size:clamp(2rem,5vw,3.25rem);line-height:1.15;margin-top:20px}
.mag-error p{margin-top:24px;line-height:1.7}
.mag-error-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:32px}
.mag-error-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border-radius:999px;border:1px solid var(--color-primary,#1a593e);font-weight:500}
.mag-error-actions a:first-child{background:var(--color-primary,#1a593e);color:#fff}
.mag-error-actions a:focus-visible,.mag-hero a:focus-visible{outline:3px solid #eb982d;outline-offset:4px}

.mag-contact-privacy{margin:1.25rem 0;padding:1rem;border-left:3px solid var(--color-primary,#1a593e);border-radius:.5rem;background:var(--color-secondary,#edf1e5);color:var(--color-foreground,#163c2b);font-size:.9375rem;line-height:1.65;overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
.mag-contact-privacy a{color:var(--color-primary,#1a593e);text-decoration:underline;text-underline-offset:.18em}
.mag-contact-privacy a:focus-visible{outline:3px solid #bf7200;outline-offset:3px;border-radius:2px}
.mag-review-note{margin:.75rem auto 0;max-width:44rem;font-size:.875rem;line-height:1.6;overflow-wrap:anywhere}

/* Only the visible contact discs receive pointer events; gaps and safe-area space stay transparent. */
.mag-floating-contacts{position:fixed;right:max(.75rem,env(safe-area-inset-right,0px));bottom:calc(1.25rem + env(safe-area-inset-bottom,0px));z-index:60;display:flex;flex-direction:column;gap:.75rem;width:max-content;height:auto;max-width:calc(100vw - 1.5rem);pointer-events:none;isolation:isolate}
.mag-floating-contacts>a{position:relative;display:grid;place-items:center;width:3rem;height:3rem;min-width:3rem;min-height:3rem;flex:none;border-radius:999px;text-decoration:none;pointer-events:auto;touch-action:manipulation;box-shadow:0 5px 12px #0002;transition:transform .18s ease}
.mag-floating-contacts>a:hover{transform:scale(1.05)}
.mag-floating-contacts>a:active{transform:scale(.97)}
.mag-floating-contacts>a:focus-visible{outline:3px solid #bf7200;outline-offset:4px}
.mag-floating-contacts svg{pointer-events:none;width:1.5rem;height:1.5rem}
.mag-floating-whatsapp{background:#25d366;color:#fff}
.mag-floating-phone{background:var(--color-primary,#155d29);color:var(--color-primary-foreground,#fff)}
.mag-floating-sms{background:var(--color-secondary,#edf1e5);color:var(--color-secondary-foreground,#163c2b)}
.mag-floating-email{background:var(--color-foreground,#13251c);color:var(--color-background,#fafaf3)}
@media(min-width:640px){.mag-floating-contacts{right:max(1.25rem,env(safe-area-inset-right,0px));bottom:calc(2rem + env(safe-area-inset-bottom,0px))}.mag-floating-contacts>a{width:3.5rem;height:3.5rem;min-width:3.5rem;min-height:3.5rem}}
@media(forced-colors:active){.mag-floating-contacts>a{border:1px solid ButtonText}.mag-floating-contacts>a:focus-visible{outline-color:Highlight}}

/* Contact-page cards only: six entries, equal flexible rows, no ellipsis. */
.mag-contact-cards{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:1rem;align-items:stretch}
.mag-contact-cards>li{display:flex;min-width:0}
.mag-contact-cards .mag-contact-card-link{display:flex;flex:1;min-width:0;height:100%;border-radius:1rem}
.mag-contact-cards .mag-contact-card-body{display:flex;align-items:center;gap:.75rem;flex:1;min-width:0;min-height:6rem;height:100%;padding:1rem;box-sizing:border-box}
.mag-contact-cards .mag-contact-card-body>div{flex:1;min-width:0}
.mag-contact-cards .mag-contact-card-body>div>div{font-size:.875rem;line-height:1.5;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.mag-contact-cards .mag-contact-card-icon{width:2.5rem;height:2.5rem;flex:none}
.mag-contact-cards .mag-contact-card-icon svg{width:1.25rem;height:1.25rem}
.mag-contact-cards .mag-contact-card-link:focus-visible{outline:3px solid #bf7200;outline-offset:4px}
@media(min-width:640px){.mag-contact-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.mag-contact-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Small additions within the existing footer and static review section. */
.mag-footer-credit{flex-basis:100%;font-size:inherit;line-height:1.5}
.mag-footer-credit a,.mag-review-all a{color:inherit;text-decoration:underline;text-underline-offset:.18em}
.mag-footer-credit a:focus-visible,.mag-review-all a:focus-visible,[data-ma-review-write]:focus-visible,.mag-review-qr-link:focus-visible{outline:3px solid #bf7200;outline-offset:4px}
.mag-review-qr-link{width:164px;max-width:100%;min-width:0}
.mag-review-qr-image{display:block;width:164px;max-width:100%;height:auto;aspect-ratio:1;background:#fff;opacity:1;transform:none;box-shadow:0 2px 8px #0001}
.mag-review-all{margin:.75rem auto 0;max-width:44rem;text-align:center;font-size:.875rem;line-height:1.6;overflow-wrap:anywhere}
.mag-reviews{border-block:1px solid var(--color-border,#dfe7dc);background:linear-gradient(to bottom,#ffbd5926,#ffbd591a,#ffbd5926);padding:clamp(4rem,8vw,6rem) 1.5rem}.mag-reviews-inner{max-width:72rem;margin:auto}.mag-reviews-heading{text-align:center;margin-bottom:2rem}.mag-reviews-heading>p{font-size:.875rem;text-transform:uppercase;letter-spacing:.2em;color:var(--color-primary,#155d29);font-weight:600}.mag-reviews-heading h2{margin-top:.5rem;font-size:clamp(2rem,4vw,3rem);line-height:1.1}.mag-reviews-brand{display:flex;justify-content:center;align-items:center;gap:.6rem;margin-top:1rem}.mag-reviews-brand span,.mag-review-stars{color:#bf7200;letter-spacing:.08em}.mag-review-slider{display:flex;gap:1rem;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:.25rem .25rem 1rem}.mag-review-card{flex:0 0 min(100%,22rem);scroll-snap-align:start;border:1px solid var(--color-border,#dfe7dc);border-radius:1rem;background:var(--color-card,#fff);padding:1.5rem;box-shadow:0 10px 40px -12px #163c2b40}.mag-review-card-header{display:flex;align-items:center;gap:.75rem}.mag-review-card-header p{font-weight:600;line-height:1.2}.mag-review-initial{display:grid;place-items:center;flex:none;width:2.75rem;height:2.75rem;border-radius:999px;background:var(--color-primary,#155d29);color:#fff;font-weight:600}.mag-review-stars{margin-top:.85rem;font-size:1rem}.mag-review-text{margin-top:.85rem;line-height:1.6;color:var(--color-muted-foreground,#52635a);white-space:pre-line}.mag-review-write{text-align:center;margin-top:1rem}.mag-review-write a{display:inline-flex;min-height:44px;align-items:center;padding:.7rem 1.2rem;border-radius:999px;background:var(--color-primary,#155d29);color:#fff;font-weight:600;text-decoration:none}.mag-review-write a:focus-visible{outline:3px solid #bf7200;outline-offset:4px}@media(min-width:768px){.mag-review-card{flex-basis:calc(50% - .5rem)}}

/* Google reviews 1.1.1: Embla carousel with restrained controls and 1 / 2 / 3 visible cards. */
.mag-reviews{background:linear-gradient(180deg,rgb(237 241 229 / .72),rgb(255 255 255 / .96));border-color:rgb(21 93 41 / .12)}
.mag-reviews-inner{max-width:76rem}.mag-reviews-heading{margin-bottom:2.5rem}.mag-reviews-brand{color:var(--color-foreground,#163c2b)}
.mag-review-carousel{position:relative}.mag-review-viewport{overflow:hidden;padding:.25rem}.mag-review-slider{display:flex;align-items:stretch;gap:1rem;overflow:visible;padding:0;scroll-snap-type:none;touch-action:pan-y pinch-zoom}
.mag-review-card{display:flex;flex:0 0 100%;flex-direction:column;box-sizing:border-box;min-width:0;min-height:22rem;margin:0;padding:clamp(1.5rem,2.4vw,2rem);border:1px solid rgb(21 93 41 / .14);border-radius:1.125rem;background:#fff;box-shadow:0 12px 30px rgb(22 60 43 / .08);scroll-snap-align:none}
.mag-review-card-header{gap:.875rem}.mag-review-name{margin:0;color:var(--color-foreground,#163c2b);font-size:1.05rem;font-weight:700;letter-spacing:-.01em;line-height:1.3}.mag-review-initial{width:2.9rem;height:2.9rem;background:var(--color-primary,#155d29);font-size:1rem}
.mag-review-stars{margin-top:1.25rem;color:#bf7200;font-size:1.05rem;line-height:1;letter-spacing:.16em}.mag-review-text{margin:1.25rem 0 0;color:rgb(22 60 43 / .82);font-size:1rem;line-height:1.72;white-space:pre-line;overflow-wrap:anywhere}
.mag-review-controls{display:flex;align-items:center;justify-content:center;gap:.875rem;margin-top:1.5rem}.mag-review-arrow{display:grid;place-items:center;width:2.75rem;height:2.75rem;border:1px solid rgb(21 93 41 / .18);border-radius:999px;background:#fff;color:var(--color-primary,#155d29);box-shadow:0 4px 12px rgb(22 60 43 / .08);font-size:1.25rem;line-height:1;transition:background-color .18s ease,color .18s ease,transform .18s ease}.mag-review-arrow:hover{background:var(--color-primary,#155d29);color:#fff;transform:translateY(-1px)}.mag-review-arrow:focus-visible,.mag-review-dot:focus-visible{outline:3px solid #bf7200;outline-offset:3px}
.mag-review-dots{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.4rem;max-width:18rem}.mag-review-dot{width:.5rem;height:.5rem;padding:0;border:0;border-radius:999px;background:rgb(21 93 41 / .22);transition:width .2s ease,background-color .2s ease}.mag-review-dot.is-current{width:1.5rem;background:var(--color-primary,#155d29)}
.mag-review-all{margin-top:1.5rem}.mag-review-write{margin-top:.85rem}.mag-review-write a{box-shadow:0 6px 16px rgb(22 60 43 / .12)}
@media(min-width:640px){.mag-review-card{flex-basis:calc((100% - 1rem)/2);min-height:23rem}.mag-review-controls{margin-top:1.75rem}}
@media(min-width:1024px){.mag-review-card{flex-basis:calc((100% - 2rem)/3);min-height:24rem}}
@media(prefers-reduced-motion:reduce){.mag-review-arrow,.mag-review-dot{transition:none}}

/* Audited contact/legal pages: keep all four shortcuts outside the text on small screens. */
@media(max-width:639px){
 body.page-id-13 .mag-floating-contacts,
 body.page-id-14 .mag-floating-contacts,
 body.page-id-15 .mag-floating-contacts{position:static;flex-direction:row;justify-content:center;width:auto;max-width:none;margin:1.25rem .75rem}
}
