/* Workplan v2 corrective layer. Keep this file loaded after the existing page CSS. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
audio {
  max-width: 100%;
}

main,
section,
article,
.hero,
.hero-copy,
.section,
.container,
.two-column,
.card-grid,
.profile-grid,
.profile-layout,
.contact-layout,
.legal,
.reviews-wall,
.review-phone,
.review-phone-bar,
.review-thread,
.review-message,
.review-contact,
.site-footer,
.site-footer > * {
  min-width: 0;
  max-width: 100%;
}

#main,
#anfrage,
#buchung,
#bewerbungsformular,
#contact-choice-help {
  scroll-margin-top: 7rem;
}

[tabindex="-1"]:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid #f2c777;
  outline-offset: 4px;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border-radius: 0.5rem;
  background: #fffaf4;
  color: #36151f;
}

.legal,
.legal p,
.legal li,
.legal a,
.reviews-wall,
.review-bubble,
.review-bubble p,
.review-contact,
.review-contact a,
.review-phone-bar,
.breadcrumb {
  overflow-wrap: anywhere;
  word-break: normal;
}

body[data-template="privacy"] .hero-copy,
body[data-template="reviews"] .hero-copy {
  width: min(100%, 760px);
  max-width: 100%;
  min-width: 0;
}

body[data-template="reviews"] .review-phone {
  width: min(100%, 780px);
  margin-inline: auto;
}

body[data-template="reviews"] .review-phone-bar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

body[data-template="reviews"] .review-message,
body[data-template="reviews"] .review-contact {
  width: 100%;
  max-width: 100%;
}

body[data-template="home"] .home-final-sticker,
body[data-template="home"] .home-final-sticker img {
  max-width: calc(100vw - 1rem);
}

body[data-template="blog"],
body[data-template="blog-post"] {
  --workplan-blog-accent: #771a36;
  --workplan-blog-muted: #514940;
}

body[data-template="blog"] .section,
body[data-template="blog-post"] .section,
body[data-template="blog"] .blog-index,
body[data-template="blog-post"] .blog-body {
  background-color: rgba(247, 243, 238, 0.97);
}

body[data-template="blog"] .blog-meta,
body[data-template="blog"] .blog-card-copy > span,
body[data-template="blog"] .blog-tools label,
body[data-template="blog"] .blog-filter-box small,
body[data-template="blog"] .filter-summary,
body[data-template="blog-post"] .blog-meta {
  color: var(--workplan-blog-muted);
}

body[data-template="blog"] .blog-card a,
body[data-template="blog"] .blog-tags span,
body[data-template="blog-post"] .blog-body a,
body[data-template="blog-post"] .blog-tags span {
  color: var(--workplan-blog-accent);
}

body[data-template="blog-post"] .blog-body a {
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
}

.fact-list .fact-item,
body[data-template="model"] .fact-list .fact-item {
  display: block;
  padding: 0.95rem;
  border: 1px solid rgba(214, 169, 86, 0.24);
  border-radius: 16px;
  background: rgba(42, 24, 31, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 250, 244, 0.06);
}

body[data-template="model"] .fact-list .fact-item a {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  box-shadow: none;
}

body[data-template="model"] .fact-list .fact-item a:hover {
  transform: none;
  background: none;
  color: #fff8f0;
}

.sensitive-consent-block {
  margin: 1rem 0;
}

.sensitive-consent-heading {
  margin: 0 0 0.65rem;
  color: #3f3831;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.35;
}

.sensitive-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  margin: 0;
  padding: 0.9rem;
  border: 1px solid rgba(127, 23, 49, 0.26);
  border-radius: 12px;
  background: rgba(247, 243, 238, 0.88);
  color: #3f3831;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
}

.sensitive-consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
}

.sensitive-consent span > strong {
  display: inline;
  font-weight: 760;
}

.sensitive-consent-note {
  margin: 0.55rem 0.2rem 0;
  color: #5b524a;
  font-size: 0.8rem;
  line-height: 1.5;
}

.sensitive-consent-note a {
  font-weight: 700;
  text-underline-offset: 0.14em;
}

.footer-links a,
.footer-contact a,
.footer-agencies a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-block: 0.55rem;
}

.related-profile-arrow[hidden] {
  display: none !important;
}

@media (min-width: 821px) {
  .related-profile-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (max-width: 540px) {
  body[data-template="privacy"] .hero,
  body[data-template="reviews"] .hero,
  body[data-template="privacy"] .hero-copy,
  body[data-template="reviews"] .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
  }

  body[data-template="privacy"] .hero-copy,
  body[data-template="reviews"] .hero-copy {
    padding-inline: 1rem;
  }

  body[data-template="reviews"] .review-phone {
    width: 100%;
    margin-inline: 0;
    padding: 0.4rem;
  }

  body[data-template="reviews"] .review-phone-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body[data-template="reviews"] .review-phone-bar > :last-child {
    grid-column: 1 / -1;
  }

  body[data-template="home"] .home-final-sticker {
    right: auto;
    left: 50%;
    width: min(18rem, calc(100vw - 1rem));
    transform: translateX(-50%);
  }

  .whatsapp-float,
  .whatsapp-float:hover {
    position: relative;
    inset: auto;
    z-index: 1;
    width: min(7rem, 32vw);
    margin: 1rem auto 1.5rem;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
