/* Pawlak V1.4.5. Only the existing, explicit request-button markers opt in.
   Important declarations in this named layer intentionally outrank the older
   unlayered !important skins, including their hover and inline brand styles. */
@layer pawlak-request-material {
  :is(a, button)[data-contact-ui="button"][data-contact-action="request"] {
    --request-core: rgb(130 52 27 / .91);
    --request-film: linear-gradient(180deg, rgb(255 224 185 / .23), rgb(255 224 185 / .04) .28rem, transparent .65rem),
                    linear-gradient(126deg, rgb(255 229 198 / .09), transparent 44%, rgb(70 26 14 / .1));
    --request-rim: rgb(255 230 198 / .72);
    --request-lower: rgb(71 28 14 / .42);
    --request-edge: #74361e;
    background: var(--request-film) var(--request-core) !important;
    border: 1px solid var(--request-edge) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 var(--request-rim), inset 0 -2px 0 var(--request-lower),
                0 2px 3px rgb(48 27 15 / .13) !important;
    transition: border-color .14s ease, box-shadow .14s ease !important;
  }
  button[type="submit"][data-contact-action="request"] {
    --request-core: #873b20; --request-film: none;
    --request-rim: rgb(255 230 198 / .34);
    --request-lower: rgb(71 28 14 / .2);
  }
  @supports (backdrop-filter: blur(3px)) {
    /* Only the primary home enquiry gets a local optical finish, never the grid or page. */
    :where(.home-split-hero) .calm-request-action[data-contact-ui="button"][data-contact-action="request"] {
      backdrop-filter: var(--request-optics, blur(3px) saturate(1.15)) !important;
    }
  }
  @media (hover: hover) {
    :is(a, button)[data-contact-ui="button"][data-contact-action="request"]:hover {
      --request-core: rgb(126 51 26 / .98);
      --request-rim: rgb(255 235 210 / .76);
      --request-edge: #5d2b19;
    }
  }
  :is(a, button)[data-contact-ui="button"][data-contact-action="request"]:active {
    --request-core: #71331d;
    --request-rim: rgb(255 230 198 / .24);
    --request-lower: transparent;
  }
  :is(a, button)[data-contact-ui="button"][data-contact-action="request"]:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 6px #172536 !important;
  }
  @media (prefers-reduced-motion: reduce) {
    :is(a, button)[data-contact-ui="button"][data-contact-action="request"] { transition: none !important; }
  }
  @media (prefers-reduced-transparency: reduce) {
    :is(a, button)[data-contact-ui="button"][data-contact-action="request"] {
      --request-optics: none; background: #873b20 !important;
      box-shadow: inset 0 1px 0 #be7959, inset 0 -1px 0 #64321e !important;
    }
    :is(a, button)[data-contact-ui="button"][data-contact-action="request"]:focus-visible {
      box-shadow: 0 0 0 6px #172536 !important;
    }
  }
  @media (forced-colors: active) {
    :is(a, button)[data-contact-ui="button"][data-contact-action="request"] {
      --request-optics: none;
      color: ButtonText !important; background: ButtonFace !important;
      border: 2px solid ButtonText !important; box-shadow: none !important;
    }
    :is(a, button)[data-contact-ui="button"][data-contact-action="request"]:focus-visible {
      outline: 3px solid Highlight !important; box-shadow: none !important;
    }
  }
}

/* Home index. One real link per entry. An optional third line belongs only to
   the cleaning card; there are no reserved title, label or note heights. */
body.calm-design #leistungen .leistungen-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
  gap: .625rem !important;
}
body.calm-design #leistungen .leistungen-grid > .home-service-card {
  min-width: 0; padding: 0; overflow: visible;
  background: linear-gradient(135deg, #dcc2a4 0%, #f4ead8 46%, #cbb095 100%);
  border: 1px solid #c7ac8c; border-radius: .625rem !important;
}
body.calm-design #leistungen .home-service-card .home-service-link {
  display: grid; height: auto; min-width: 0; align-content: center;
  /* A percentage cap protects the text column even with a 200% root font. */
  grid-template-columns: min(22%, 5rem) minmax(0, 1fr);
  grid-template-areas: "photo title" "photo origin";
  gap: .2rem min(.75rem, 3vw); padding: .5rem min(.75rem, 3vw) .5rem min(.5rem, 2vw);
  color: var(--home-ink, #172536); border-radius: inherit;
  --tile-film: linear-gradient(145deg, rgb(255 255 255 / .86), rgb(255 250 240 / .62) 44%, rgb(255 248 234 / .48) 75%, rgb(255 255 255 / .73));
  background: var(--tile-film);
  box-shadow: inset 0 1px 0 #fff, inset 1px 0 0 rgb(255 253 245 / .64),
              inset 0 -1px 0 rgb(153 112 75 / .2), 0 2px 5px rgb(74 49 27 / .1);
}
body.calm-design #leistungen .home-service-link:has(> .home-service-note) {
  grid-template-areas: "photo title" "photo origin" "photo note";
}
body.calm-design #leistungen .home-service-card .home-service-link > :is(img, .pw-service-original) {
  grid-area: photo; align-self: center; display: block; width: 100%;
  height: auto; aspect-ratio: 1.2 !important; object-fit: cover; border-radius: .35rem;
}
body.calm-design #leistungen .home-service-link > .pw-service-original { position: relative; }
body.calm-design #leistungen .pw-service-original > img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}
body.calm-design #leistungen .leistungen-grid .home-service-link h3 {
  grid-area: title; align-self: end; display: flex; align-items: baseline; gap: .45rem;
  margin: 0 !important; padding: 0; line-height: 1.25; font-size: 1.05rem !important;
  text-wrap: initial;
}
body.calm-design #leistungen .home-service-link > :is(.ai-content-label, .home-real-photo-label) {
  grid-area: origin; align-self: start; display: flex; align-items: baseline;
  gap: .3rem; margin: 0; padding: 0; background: transparent;
  font-size: .75rem; line-height: 1.35; color: #4e5b62 !important;
}
body.calm-design #leistungen .home-service-link .ai-content-badge {
  min-width: 0; min-height: 0; padding: .13rem .26rem;
  border-radius: .22rem; font-size: .625rem;
}
body.calm-design #leistungen .home-service-link > .home-service-note {
  grid-area: note; align-self: start; margin: 0; padding: 0;
  color: #4e5b62; font-size: .75rem; font-weight: 650; line-height: 1.35;
}
body.calm-design #leistungen .home-service-link:focus-visible {
  outline: 3px solid #84391f !important; outline-offset: 2px !important;
}
@media (hover: hover) {
  body.calm-design #leistungen .home-service-card .home-service-link:hover {
    --tile-film: linear-gradient(145deg, rgb(255 255 255 / .84), rgb(251 240 221 / .56) 55%, rgb(255 252 244 / .72));
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(143 102 62 / .35), 0 3px 7px rgb(74 49 27 / .15);
  }
}
@media (min-width: 42rem) {
  body.calm-design #leistungen .leistungen-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .875rem !important; }
  body.calm-design #leistungen .home-service-card { grid-column: span 2; }
  body.calm-design #leistungen .home-service-card:last-child:nth-child(odd) { grid-column: 2 / span 2; }
}
@media (min-width: 64rem) {
  body.calm-design #leistungen .leistungen-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1rem !important; }
  body.calm-design #leistungen .home-service-card:nth-child(5) { grid-column: 2 / span 2; }
  body.calm-design #leistungen .home-service-card:last-child:nth-child(odd) { grid-column: span 2; }
  body.calm-design #leistungen .home-service-card .home-service-link {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "title" "origin";
    padding: .45rem .45rem .75rem; row-gap: .35rem;
  }
  body.calm-design #leistungen .home-service-link:has(> .home-service-note) { grid-template-areas: "photo" "title" "origin" "note"; }
  body.calm-design #leistungen .home-service-card .home-service-link > :is(img, .pw-service-original) { aspect-ratio: 2.15 !important; }
  body.calm-design #leistungen .leistungen-grid .home-service-link h3 { padding: .25rem .375rem 0; }
  body.calm-design #leistungen .home-service-link > :is(.ai-content-label, .home-real-photo-label, .home-service-note) { padding-inline: .375rem; }
}
@media (forced-colors: active) {
  body.calm-design #leistungen .home-service-link:focus-visible { outline-color: Highlight !important; }
}

/* The actual fourteen-link catalogue, not the explanatory article cards that
   follow. Normal row-major grid order is also keyboard/screen-reader order. */
body.calm-design .v145-catalogue {
  padding-block: clamp(2.25rem, 4vw, 3.75rem);
  background: linear-gradient(138deg, #ece1d2, #f7f4ed 54%, #eee6d9) !important;
}
body.calm-design .v145-catalogue h2 {
  margin-bottom: 1.25rem !important; text-align: start;
}
body.calm-design .v145-catalogue .grid-3 {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
  gap: .625rem;
}
body.calm-design .v145-catalogue .grid-3 > .card {
  min-width: 0; height: auto; padding: .875rem 1rem;
  border: 1px solid #cdbba5; border-radius: .5rem;
  background: linear-gradient(140deg, rgb(255 255 255 / .82), rgb(255 251 242 / .66) 72%, rgb(247 235 217 / .62));
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(71 45 25 / .06);
  opacity: 1; transform: none; transition: none;
}
body.calm-design .v145-catalogue .card h3 {
  margin: 0; font-size: 1.1rem; line-height: 1.3; letter-spacing: -.015em;
  hyphens: auto; overflow-wrap: anywhere;
}
body.calm-design .v145-catalogue .card p {
  margin: .3rem 0 0; font-size: .9375rem; line-height: 1.5;
}
body.calm-design .v145-catalogue .card > span {
  display: inline-flex; gap: .25rem; align-items: center; max-width: 100%;
  margin-top: .45rem !important; color: #80391f !important;
  font-size: .8125rem; font-weight: 650; line-height: 1.4;
}
body.calm-design .v145-catalogue .card:focus-visible {
  outline: 3px solid #84391f !important; outline-offset: 2px !important;
}
@media (hover: hover) {
  body.calm-design .v145-catalogue .card:hover {
    border-color: #92765e; background: rgb(255 249 238 / .82);
  }
  body.calm-design .v145-catalogue .card:hover > span { text-decoration: underline; text-underline-offset: .15em; }
}
@media (min-width: 42rem) {
  body.calm-design .v145-catalogue .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; }
  body.calm-design .v145-catalogue .grid-3 > .card { padding: 1rem 1.125rem; }
}
@media (min-width: 64rem) {
  body.calm-design .v145-catalogue .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (forced-colors: active) {
  body.calm-design .v145-catalogue .card:focus-visible { outline-color: Highlight !important; }
}
@media (prefers-reduced-transparency: reduce) {
  body.calm-design .v145-catalogue { background: #f3eee5 !important; }
  body.calm-design #leistungen .leistungen-grid > .home-service-card { background: #ede2d2; }
  body.calm-design #leistungen .home-service-card .home-service-link,
  body.calm-design .v145-catalogue .grid-3 > .card {
    background: #f9f3e9; box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #d6c3ab;
  }
}

/* Quiet edges on informational sections; no per-card paint filters. */
body.calm-design .home-prices .home-price-card { border-color: #d3c9bb; }
body.calm-design #ablauf-kurz .grid-auto-sm > .card { border-top-color: #bfa58e; }
/* The three protected quick contacts also need room when text is enlarged.
   Do not touch the bar's fixed position, inert state or consent suppression. */
@media (max-width: 460px) {
  body.calm-design nav.floating-contact-stack {
    gap: 4px !important; padding-inline: max(4px, env(safe-area-inset-left,0px)) max(4px, env(safe-area-inset-right,0px)) !important;
  }
  body.calm-design nav.floating-contact-stack .floating-contact {
    flex-direction: column !important; justify-content: center !important;
    align-items: center !important; gap: .1em !important;
    padding: .24rem 1px !important; min-height: 44px; line-height: 1.14 !important;
  }
  body.calm-design nav.floating-contact-stack .floating-contact span {
    font-size: max(12px, .67rem) !important; line-height: 1.14 !important;
    text-align: center; hyphens: none; word-break: normal;
  }
}
body.calm-design .page-header .pw-catalogue-request {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
  color: #fff !important; text-decoration: underline; text-underline-offset: .22em;
  font-weight: 650; font-size: .95rem;
}
body.calm-design .page-header .pw-catalogue-request:focus-visible {
  outline: 3px solid currentColor; outline-offset: 3px;
}
