/* All module heroes share the Geschenken proportions and action placement. */
.miwi-module-hero{
  position:relative!important;
  isolation:isolate;
  display:block!important;
  box-sizing:border-box;
  width:100%;
  min-height:clamp(170px,19vw,218px);
  margin:20px 0 22px!important;
  padding:22px 24px!important;
  border:1px solid rgba(54,45,48,.14);
  border-radius:22px;
  background:#4e514c var(--miwi-hero-image) center 50% / cover no-repeat;
  box-shadow:0 14px 28px rgba(47,41,39,.13);
  color:#fffdf8;
}
.miwi-module-hero::before{position:absolute;z-index:-1;inset:0;border-radius:inherit;background:linear-gradient(180deg,rgba(20,20,20,.08),rgba(22,19,25,.04) 27%,rgba(24,19,23,.16) 49%,rgba(24,19,23,.76));content:'';pointer-events:none;}
.miwi-module-hero .heading-action-group{position:static!important;display:contents!important;}
.miwi-module-hero .garden-heading-main{position:static!important;display:contents!important;}
.miwi-module-hero h1,.page-shell main .miwi-module-hero h1{
  position:absolute!important;left:24px;bottom:21px;z-index:1;
  max-width:calc(100% - 170px);margin:0!important;padding:0!important;
  color:#fffdf8!important;font:clamp(32px,4.8vw,51px)/1.05 'DM Serif Display',Georgia,serif!important;
  letter-spacing:-.045em;text-shadow:0 2px 14px rgba(18,15,20,.52);
}
.miwi-module-hero h1 i{color:inherit!important;font:inherit!important;}
.miwi-module-hero :is(.eyebrow,.heading-note,p)[hidden]{display:none!important;}
.miwi-module-hero .miwi-hero-action{
  position:absolute!important;left:auto!important;top:auto!important;right:20px!important;bottom:19px!important;z-index:2;transform:none!important;
  display:inline-flex!important;align-items:center;justify-content:center;
  width:auto!important;min-width:112px!important;max-width:140px!important;min-height:48px!important;height:auto!important;
  margin:0!important;padding:9px 15px!important;
  border:1px solid rgba(255,255,255,.6)!important;border-radius:13px!important;
  background:var(--miwi-hero-accent,#765575)!important;color:#fffdf8!important;
  box-shadow:0 5px 15px rgba(25,20,23,.27)!important;
  font:700 12px/1.2 'DM Sans',sans-serif!important;letter-spacing:0!important;text-align:center;text-transform:none!important;white-space:normal!important;
}
.miwi-module-hero .miwi-hero-action[hidden]{display:none!important;}
.miwi-module-hero .miwi-hero-action:hover{filter:brightness(.91);}
.miwi-module-hero .miwi-hero-action--sync{min-width:48px!important;max-width:112px!important;}
.miwi-module-hero .miwi-hero-tool{position:absolute!important;top:13px!important;right:14px!important;bottom:auto!important;z-index:2;display:grid!important;place-items:center;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.72)!important;border-radius:12px!important;background:rgba(255,253,248,.91)!important;color:#493949!important;backdrop-filter:blur(7px);}
.miwi-module-hero .miwi-hero-tool[hidden]{display:none!important;}
.miwi-module-hero .miwi-hero-count{position:absolute;top:15px;left:22px;z-index:1;color:#fffdf8!important;font-size:11px!important;text-shadow:0 1px 5px #0008;}
.miwi-module-hero .miwi-hero-back{position:absolute;top:14px;left:20px;z-index:1;color:#fffdf8!important;text-shadow:0 1px 5px #0008;}
.miwi-module-hero :is(button,a):focus-visible{outline:3px solid #fffdf8!important;outline-offset:3px;}
.documents-page .documents-intro,.settings-page .settings-intro{display:none;}
body[data-page="shopping"]{--miwi-hero-image:url('/images/hero-shopping.jpg');--miwi-hero-accent:#52664a}
body[data-page="freezer"]{--miwi-hero-image:url('/images/hero-freezer.jpg');--miwi-hero-accent:#476b78}
body[data-page="chores"]{--miwi-hero-image:url('/images/hero-chores.jpg');--miwi-hero-accent:#805a43}
body[data-page="habits"]{--miwi-hero-image:url('/images/hero-habits.jpg');--miwi-hero-accent:#785d82}
body[data-page="garden"]{--miwi-hero-image:url('/images/hero-garden.jpg');--miwi-hero-accent:#4c684b}
body[data-page="walks"]{--miwi-hero-image:url('/images/hero-walks.jpg');--miwi-hero-accent:#46583e}
body[data-page="collections"]{--miwi-hero-image:url('/images/hero-collections.jpg');--miwi-hero-accent:#745273}
body[data-page="addressbook"]{--miwi-hero-image:url('/images/hero-addressbook.jpg');--miwi-hero-accent:#825a68}
body[data-page="contact"]{--miwi-hero-image:url('/images/hero-addressbook.jpg');--miwi-hero-accent:#825a68}
body[data-page="budget"]{--miwi-hero-image:url('/images/hero-budget.jpg');--miwi-hero-accent:#46665c}
body[data-page="house"]{--miwi-hero-image:url('/images/hero-house.jpg');--miwi-hero-accent:#48624c}
body[data-page="documents"]{--miwi-hero-image:url('/images/hero-documents.jpg');--miwi-hero-accent:#4a6677}
body[data-page="loyalty"]{--miwi-hero-image:url('/images/hero-loyalty.jpg');--miwi-hero-accent:#795466}
body[data-page="medication"]{--miwi-hero-image:url('/images/hero-medication.jpg');--miwi-hero-accent:#526c62}
body[data-page="events"]{--miwi-hero-image:url('/images/hero-events.jpg');--miwi-hero-accent:#81505b}
body[data-page="watch"]{--miwi-hero-image:url('/images/hero-watch.jpg');--miwi-hero-accent:#765575}
body[data-page="parcels"]{--miwi-hero-image:url('/images/hero-parcels.jpg');--miwi-hero-accent:#6b6649}
body[data-page="export"],body[data-page="settings"]{--miwi-hero-image:url('/images/hero-export.jpg');--miwi-hero-accent:#536258}
@media(max-width:620px){
  .miwi-module-hero{min-height:166px!important;margin:13px 0 17px!important;padding:18px 16px!important;border-radius:18px!important;}
  .miwi-module-hero h1,.page-shell main .miwi-module-hero h1{left:16px;bottom:19px;max-width:calc(100% - 132px);font-size:clamp(28px,8.7vw,38px)!important;line-height:1.05!important;}
  .miwi-module-hero .miwi-hero-action{right:13px!important;bottom:14px!important;min-width:103px!important;max-width:118px!important;min-height:46px!important;padding:7px 10px!important;font-size:11px!important;}
  .miwi-module-hero .miwi-hero-count{top:12px;left:16px;}
  body[data-page="documents"] .miwi-module-hero h1,body[data-page="loyalty"] .miwi-module-hero h1{font-size:30px!important;}
}
.miwi-module-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:min(760px,calc(100dvh - 32px));margin:auto;padding:20px;border:1px solid #e2dadc;border-radius:22px;background:#fffdf8;color:#292721;box-shadow:0 20px 60px #17151855;overflow:auto;}
.miwi-module-dialog::backdrop{background:#22272099;backdrop-filter:blur(4px);}
.miwi-module-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;}
.miwi-module-dialog-head h2{margin:0;font:30px/1.1 'DM Serif Display',Georgia,serif;}
.miwi-module-dialog-close{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border:1px solid #d8d2cd;border-radius:50%;background:#f6f2ec;color:#292721;font:30px/1 sans-serif;}
.miwi-module-dialog .composer,.miwi-module-dialog .chore-composer,.miwi-module-dialog .freezer-composer{display:grid!important;position:static!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;}
.miwi-module-dialog :is(.composer,.chore-composer,.freezer-composer)[hidden]{display:none!important;}
.miwi-module-dialog :is(input,select,textarea){box-sizing:border-box;max-width:100%;}
.miwi-module-dialog .house-form,.miwi-module-dialog #standardAddPanel,.miwi-module-dialog #lpAddTools{display:grid!important;position:static!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;}
.miwi-module-dialog :is(.house-form,#standardAddPanel,#lpAddTools)[hidden]{display:none!important;}
.collection-detail-page #lpAddToggle{display:none!important;}
.collection-detail-page #lpExperience > #lpAddTools{display:none!important;}
@media(max-width:620px){
  .house-page .house-mobile-picker{display:none!important;}
  .house-page .house-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 24px;padding:5px;border:1px solid #dedfd6;border-radius:17px;background:#eeece5;overflow:visible;}
  .house-page .house-tabs button{width:100%;min-width:0;padding:11px 5px;border-radius:12px;background:transparent;color:#48574f;font-size:12px;white-space:nowrap;}
  .house-page .house-tabs button.active{background:#446b58;color:#fffdf8;box-shadow:0 3px 8px #203e302a;}
  .events-page main .miwi-module-hero h1{max-width:calc(100% - 132px)!important;font-size:24px!important;white-space:nowrap!important;}
  .events-page .miwi-module-hero .miwi-hero-action{min-width:105px!important;max-width:108px!important;}
}
