/*
Theme Name: Hauser Swiss Minimal
Theme URI: https://hausertreuhand.ch/
Author: Peter Hauser AG
Description: Ruhiger, responsiver Auftritt mit WordPress Navigation und lokalen Gestaltungselementen.
Version: 2.1.1
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: hauser-swiss-minimal
*/
:root{--hauser-navy:#183047;--hauser-sand:#b39976;--hauser-cream:#f5f3ee;--hauser-text:#415362;--hauser-line:#e3e4df;--hauser-gutter:clamp(20px,4vw,56px)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;color:var(--hauser-text);background:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.7}
img{max-width:100%;height:auto}a{color:var(--hauser-navy);text-underline-offset:5px;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #826a46;outline-offset:5px}
h1,h2,h3{color:var(--hauser-navy);font-weight:500;line-height:1.15;letter-spacing:-.035em;text-wrap:balance}
h1{font-size:clamp(38px,5.3vw,72px)}h2{font-size:clamp(30px,3.5vw,46px)}h3{font-size:clamp(21px,2vw,27px)}
p{margin:0 0 18px}h1,h2,h3{margin:0 0 22px}button,input{font:inherit}
.wp-site-blocks{padding:0}.wp-site-blocks>*,.wp-block-post-content>*{margin-block-start:0}
.wp-block-post-content{margin:0}.hauser-shell{width:100%;max-width:1200px;margin-inline:auto!important;min-width:0}
.hauser-section{padding:clamp(48px,5.5vw,76px) var(--hauser-gutter)}
.hauser-section .wp-block-group>*:first-child{margin-block-start:0}
.hauser-section .wp-block-group>*:last-child{margin-block-end:0}
.hauser-eyebrow{font-size:11px;font-weight:700;line-height:1.6;letter-spacing:.15em;color:#756041;margin:0 0 18px}
.hauser-lead{font-size:clamp(17px,1.7vw,20px);line-height:1.75;max-width:560px}
.hauser-caption{font-size:13px;line-height:1.65;color:#61717c}
.hauser-section-intro{max-width:640px;margin-bottom:34px}
/* Header: keep branding and menu control on one line. */
.hauser-header{padding:22px var(--hauser-gutter)!important;border-bottom:1px solid var(--hauser-line);position:relative;z-index:30;background:#fff}
.hauser-header>div{width:100%;max-width:1200px;margin-inline:auto!important;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:nowrap!important}
.hauser-header>div>div{min-width:0}
.hauser-header .wp-block-site-title{margin:0!important;font-size:24px!important;line-height:1.3;letter-spacing:-.04em!important}
.hauser-header .wp-block-site-title a{text-decoration:none;color:var(--hauser-navy)}
.hauser-header .wp-block-site-title+p{margin:5px 0 0!important;font-size:9px!important;letter-spacing:.15em!important;line-height:1.5;color:#756041!important}
nav.hauser-nav{flex-shrink:0}.hauser-nav a{text-decoration:none;font-size:14px;font-weight:500}
.hauser-nav .wp-block-navigation__container{gap:28px}
.hauser-nav .wp-block-navigation-item:last-child>a{background:var(--hauser-navy);color:white;padding:11px 18px;border-radius:6px}
.hauser-nav .wp-block-navigation__responsive-container-open,.hauser-nav .wp-block-navigation__responsive-container-close{align-items:center;justify-content:center;min-width:48px;min-height:48px;color:var(--hauser-navy);border:1px solid var(--hauser-line);border-radius:6px;background:white}
/* WordPress flow margins must not offset items inside CSS grids. */
.hauser-hero-grid > *,
.hauser-services-grid > *,
.hauser-about-grid > *,
.hauser-steps-grid > *,
.hauser-contact-grid > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    min-width: 0;
}
.hauser-services-grid { align-items: stretch; }
.hauser-service { height: 100%; }

/* Hero */
.hauser-hero{background:var(--hauser-cream);min-height:0;padding-block:clamp(36px,5.5vw,76px)}
.hauser-hero-grid{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:clamp(28px,5vw,76px)}
.hauser-hero-copy,.hauser-hero-visual{min-width:0}
.hauser-hero h1{margin:0 0 24px!important;font-size:clamp(38px,5.3vw,72px)!important;font-weight:500!important;line-height:1.1!important;letter-spacing:-.05em!important}
.hauser-hero .hauser-caption{margin-top:24px!important}
.hauser-hero-visual{position:relative;background:#eae5da;border-radius:120px 12px 12px 12px;overflow:hidden}
.hauser-hero-visual figure{margin:0}.hauser-hero-visual img{display:block;width:100%;aspect-ratio:6/5;object-fit:cover}
.hauser-visual-note{position:absolute;bottom:23px;right:26px;font-size:14px;font-weight:500;line-height:1.5;color:var(--hauser-navy);text-align:right;background:#f5f3ee;padding:13px 18px;border-radius:4px;margin:0!important}
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:13px 21px;border:1px solid var(--hauser-navy);border-radius:6px;background:var(--hauser-navy);color:#fff;font-size:14px;font-weight:600;line-height:1.5;text-decoration:none;box-shadow:none}
.wp-block-button__link:hover{background:#29485f;color:#fff;text-decoration:none}
.is-style-outline .wp-block-button__link{background:transparent;color:var(--hauser-navy);border:1px solid #aab3b8}
.is-style-outline .wp-block-button__link:hover{background:#fff;border-color:var(--hauser-navy)}
/* Services remain readable without hover or expanded panels. */
.hauser-services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:30px}
.hauser-service{position:relative;min-width:0;padding:clamp(24px,3vw,36px);border:1px solid #e1e8ec;border-radius:12px;background:#f0f4f6;min-height:0}
/* Decorative, local icons: cards are informational, not clickable. */
.hauser-service::before{content:"";display:block;width:42px;height:3px;margin-bottom:22px;background:var(--hauser-sand);border-radius:2px}
.hauser-service::after{content:"";position:absolute;top:28px;right:28px;width:36px;height:36px;background-position:center;background-repeat:no-repeat;background-size:contain;pointer-events:none}
.hauser-service:nth-child(1)::after{background-image:url("assets/service-buchhaltung.svg")}
.hauser-service:nth-child(2)::after{background-image:url("assets/service-steuern.svg")}
.hauser-service:nth-child(3)::after{background-image:url("assets/service-lohn.svg")}
.hauser-service:nth-child(4)::after{background-image:url("assets/service-gruendung.svg")}
.hauser-service > *{margin-block-start:0!important}
.hauser-service .hauser-number{margin-bottom:18px!important;padding-right:44px;color:#756041}
.hauser-service .hauser-card-intro{margin-bottom:12px!important}
.hauser-service > p:last-child{margin-bottom:0!important}
.hauser-number{font-size:12px;font-weight:600;letter-spacing:.12em;color:#756041;margin-bottom:27px}
.hauser-service h3{margin:0 0 12px!important;overflow-wrap:anywhere}
.hauser-card-intro{font-weight:600;color:var(--hauser-navy);margin-bottom:12px}
.hauser-service p:last-child{font-size:15px;line-height:1.75;margin-bottom:0}
.hauser-about{background:var(--hauser-cream)}
.hauser-about-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:clamp(28px,7vw,100px);align-items:start}
.hauser-about-copy{padding-top:5px;min-width:0}
.hauser-about-title h2{font-size:clamp(34px,4vw,52px)}
.hauser-steps-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin-top:30px}
.hauser-step{border-top:1px solid #b9aa94;padding-top:24px;min-width:0}
.hauser-step h3{font-size:22px}.hauser-step p:last-child{font-size:15px;margin-bottom:0}
.hauser-contact-section{padding-top:0}
.hauser-contact-grid{display:grid;grid-template-columns:1.3fr 1fr;border:1px solid var(--hauser-line);border-radius:12px;overflow:hidden}
.hauser-contact-main{padding:clamp(26px,4vw,52px);background:var(--hauser-navy);color:#e0e6ea}
.hauser-contact-main h2{color:white}.hauser-contact-main .hauser-eyebrow{color:#e1caa8}
.hauser-contact-main .wp-block-button__link{background:#f5f3ee;color:var(--hauser-navy);border-color:#f5f3ee}
.hauser-contact-main .is-style-outline .wp-block-button__link{color:white;background:transparent;border-color:#8a9aa6}
.hauser-contact-main a{color:white}.hauser-email{font-size:14px;margin-top:24px;overflow-wrap:anywhere}
.hauser-address{padding:clamp(26px,4vw,52px);background:var(--hauser-cream);display:flex;flex-direction:column;justify-content:center}
.hauser-address h3{margin-bottom:16px}.hauser-address .hauser-caption{margin-top:12px}
.hauser-footer{padding:26px var(--hauser-gutter);border-top:1px solid var(--hauser-line);background:white;color:#5c6c77}
.hauser-footer-inner{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;font-size:12px}
.hauser-footer p{margin:0!important}
/* Compatibility for the existing start page while its replacement is installed. */
#leistungen:not(.hauser-section),#ueber-uns:not(.hauser-section),#kontakt:not(.hauser-section){padding:64px var(--hauser-gutter)!important}
#leistungen:not(.hauser-section)>.wp-block-columns{gap:18px}
#leistungen:not(.hauser-section) .hauser-service{padding:26px}
#leistungen:not(.hauser-section) .hauser-service h3{font-size:22px}
#kontakt a{overflow-wrap:anywhere}
/* One navigation breakpoint, including tablets and phone landscape. */
@media(min-width:901px){
 .hauser-header .wp-block-navigation__responsive-container-open{display:none!important}
 .hauser-header .wp-block-navigation__responsive-container:not(.is-menu-open){display:block!important;position:relative!important}
}
@media(max-width:900px){
 .hauser-header .wp-block-navigation__responsive-container-open{display:flex!important}
 .hauser-header .wp-block-navigation__responsive-container:not(.is-menu-open){display:none!important}
 .hauser-header .wp-block-navigation__responsive-container.is-menu-open{display:flex!important;position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100vh;height:100dvh;overflow-y:auto!important;overscroll-behavior:contain;background:var(--hauser-cream)!important;color:var(--hauser-navy);padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));z-index:100000}
 .hauser-nav .wp-block-navigation__responsive-close{width:100%;max-width:720px;margin-inline:auto}
 .hauser-nav .wp-block-navigation__responsive-dialog{position:relative;width:100%;padding-top:72px}
 .hauser-nav .wp-block-navigation__responsive-container-close{position:absolute;top:0;right:0;display:flex}
 .hauser-nav .wp-block-navigation__responsive-container-content{padding:0!important;align-items:stretch!important;width:100%}
 .hauser-nav .wp-block-navigation__container{flex-direction:column!important;align-items:stretch!important;gap:12px!important;width:100%}
 .hauser-nav .wp-block-navigation-item{width:100%}
 .hauser-nav .wp-block-navigation-item__content{display:block;padding:18px 16px!important;font-size:22px;line-height:1.4;white-space:normal;border-bottom:1px solid var(--hauser-line)}
 .hauser-nav .wp-block-navigation-item:last-child>a{margin-top:6px;border:0}
 .hauser-hero-grid{gap:28px;grid-template-columns:1.1fr 1fr}
 .hauser-visual-note{font-size:12px;bottom:16px;right:16px;padding:10px 12px}
 .hauser-steps-grid{gap:24px}
}
@media(max-width:700px){
 .hauser-header{padding-block:16px!important}
 .hauser-header>div{gap:12px}
 .hauser-header .wp-block-site-title{font-size:22px!important}
 .hauser-header .wp-block-site-title+p{font-size:8px!important;letter-spacing:.1em!important}
 .hauser-hero-grid,.hauser-about-grid,.hauser-contact-grid{grid-template-columns:1fr}
 .hauser-hero-copy .hauser-lead{max-width:none}
 .hauser-hero-visual{border-top-left-radius:80px;max-width:540px;width:100%;margin-inline:auto!important}
 .hauser-hero-visual img{aspect-ratio:1.7;object-position:center 44%}
 .hauser-visual-note{font-size:13px}
 .hauser-services-grid{gap:14px}
 .hauser-service{padding:24px}
 .hauser-steps-grid{grid-template-columns:1fr;gap:26px}
 .hauser-step .hauser-number{margin-bottom:12px}
 .hauser-contact-main .wp-block-buttons{gap:10px}
 .hauser-footer-inner{align-items:flex-start;flex-direction:column;gap:8px}
}
@media(max-width:480px){
 .hauser-services-grid{grid-template-columns:1fr}
 .hauser-hero h1{font-size:clamp(34px,9.5vw,45px)!important}
 .hauser-service h3{font-size:25px}
 .hauser-number{margin-bottom:20px}
 .wp-block-buttons>.wp-block-button{width:100%}
 .wp-block-button__link{width:100%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Legal documents: comfortable line length and explicit spacing.
   Override WordPress constrained-layout margins only on these pages. */
body.hauser-legal-page main.hauser-section {
    width:100%;max-width:920px;margin-inline:auto!important;
    padding:clamp(40px,6vw,72px) clamp(20px,4vw,40px) clamp(56px,7vw,88px);
}
body.hauser-legal-page main > .wp-block-post-title {
    max-width:none!important;margin:0 0 30px!important;
    font-size:clamp(30px,4vw,52px);line-height:1.16;letter-spacing:-.035em;
    overflow-wrap:anywhere;
}
body.hauser-legal-page main > .wp-block-post-content {
    width:100%;max-width:none!important;margin:0!important;
    font-size:16px;line-height:1.8;
}
body.hauser-legal-page .wp-block-post-content > * {
    max-width:none!important;margin-inline:0!important;
}
body.hauser-legal-page .wp-block-post-content p {
    margin-block:0 18px!important;
}
body.hauser-legal-page .wp-block-post-content h2 {
    margin-block:38px 14px!important;padding-top:24px;
    border-top:1px solid #e1e6e9;
    font-size:clamp(23px,2.5vw,29px);line-height:1.3;letter-spacing:-.025em;
    overflow-wrap:anywhere;
}
body.hauser-legal-page .wp-block-post-content h3 {
    margin-block:28px 12px!important;font-size:21px;line-height:1.35;
}
body.hauser-legal-page .wp-block-post-content ul,
body.hauser-legal-page .wp-block-post-content ol {
    margin-block:0 22px!important;padding-left:24px;
}
body.hauser-legal-page .wp-block-post-content li {
    margin-block:0 8px!important;padding-left:3px;
}
body.hauser-legal-page .wp-block-post-content a {
    overflow-wrap:anywhere;text-decoration-color:#8c7657;
}
body.hauser-legal-page .wp-block-post-content > p:empty,
body.hauser-legal-page .wp-block-post-content > h2:empty {
    display:none;
}
body.hauser-legal-page .wp-block-post-content > :last-child {
    margin-bottom:0!important;
}
@media(max-width:600px) {
    body.hauser-legal-page main > .wp-block-post-content {font-size:16px;line-height:1.75}
    body.hauser-legal-page .wp-block-post-content h2 {margin-top:30px!important;padding-top:20px}
}
