/* Readability baseline: relative sizes respect browser font preferences and zoom.
   Load after the theme; body-qualified rules also override lazy-loaded dialog CSS. */
body.theme-logo {
  --muted: #4d4a45;
  --action: #9c1d1b;
  --action-hover: #7e1715;
  font-size: 1.25rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
body.theme-logo :is(p,li,h1,h2,h3,label,summary,figcaption) { hyphens: auto; }
body.theme-logo :is(.row>*,.head>*,.service,.region-card,.footer-grid>*) { min-width: 0; }
body.theme-logo :is(h1,h2,h3) { letter-spacing: normal; }
body.theme-logo :is(.hero h1,.page-intro h1) { font-size: clamp(2.125rem,4vw + 1rem,3.75rem); line-height: 1.2; }
body.theme-logo h2 { font-size: clamp(1.75rem,2vw + 1rem,2.75rem); line-height: 1.3; }
body.theme-logo h3 { font-size: 1.5rem; line-height: 1.4; }
body.theme-logo .hero h1 span { color: var(--action); }
body.theme-logo .lead { font-size: 1.375rem; line-height: 1.7; }
body.theme-logo :is(.section-heading>p,.hero .lead,.prose>p,.faq details p) { max-width: 65ch; }
body.theme-logo :is(.service p,.region-card p,.contact label,.angebot-form label,.angebot-preview label) { font-size: 1.25rem; line-height: 1.7; }
body.theme-logo :is(.eyebrow,.number,.brand span,.head nav,.text-link,.hero-note,.photo-label,.trust,.service-details,.service-request,.service p.service-case,.service-scope-note,.angebot-section-link span,.gallery figcaption,.region-card>span,.smallprint,.footer-grid,.footnote,.legal-note,.contact-portrait figcaption span,.service-map-panel>p,.map-consent p,.map-region-contact .button,.lightbox-caption,.lightbox-count,.lightbox button,.angebot-intro,.angebot-privacy,.angebot-form small,.angebot-feedback,.angebot-preview p,.angebot-actions .button,.angebot-close,.angebot-secondary,.stats-consent,.stats-summary-state,[data-statistics-state],small) {
  font-size: 1.125rem;
  line-height: 1.65;
}
body.theme-logo .contact #mail-status { font-size: 1.125rem; line-height: 1.65; }
body.theme-logo .eyebrow { text-transform: none; letter-spacing: .02em; }
body.theme-logo .brand strong { font-size: 1.5rem; letter-spacing: normal; }
body.theme-logo .contact-portrait figcaption strong { font-size: 1.375rem; }
body.theme-logo .head { flex-wrap: wrap; padding-block: 1rem; gap: .75rem 1.25rem; }
body.theme-logo .head nav { flex-wrap: wrap; gap: .25rem 1rem; }
body.theme-logo .head nav>a { display: inline-flex; align-items: center; min-height: 3rem; padding-block: .5rem; }
body.theme-logo :is(.button,button,summary) { min-height: 3rem; }
body.theme-logo :is(.button,button) { max-width: 100%; white-space: normal; overflow-wrap: break-word; }
body.theme-logo :is(.button,.button.small,.head nav .button,.mobile-actions a,.map-region-contact .button) {
  font-size: 1.125rem; line-height: 1.5; padding: .75rem 1rem; white-space: normal;
}
body.theme-logo :is(.service-request,.region-card>a,.footer-grid a,.footnote a,.text-link) { display: inline-block; padding-block: .5rem; }
body.theme-logo .faq details { padding-block: 1.25rem; }
body.theme-logo summary { cursor: pointer; padding: .5rem .25rem; }
body.theme-logo :is(.form-control,.angebot-form input:not([type=checkbox]),.angebot-form select,.angebot-form textarea,.angebot-mailtext) {
  font-size: 1.25rem; line-height: 1.6; min-height: 3rem; padding: .75rem;
  border: 2px solid #756b60; max-width: 100%;
}
body.theme-logo ::placeholder { color: #4d4a45; opacity: 1; }
body.theme-logo .angebot-checks label { min-height: 3rem; padding: .75rem; gap: .75rem; }
body.theme-logo .angebot-checks input { width: 1.5rem; height: 1.5rem; }
body.theme-logo .angebot-form legend { font-size: 1.375rem; line-height: 1.5; }
body.theme-logo :is(.angebot-dialog-head,.lightbox-controls) { flex-wrap: wrap; }
body.theme-logo .angebot-dialog { scroll-padding-top: 10rem; }
body.theme-logo .angebot-dialog-head h2 { font-size: 1.5rem; }
body.theme-logo .photo-label { max-width: calc(100% - 1.5rem); }
body.theme-logo .map-contact-options>.map-region-contact { grid-template-rows: auto auto auto; }
body.theme-logo .map-contact-options>.map-region-contact h3 { min-height: 0; }
body.theme-logo .stats-consent { width: min(28rem,calc(100vw - 24px)); padding: 1rem; max-height: 75dvh; overflow-y: auto; }
body.theme-logo .stats-consent details[open] { max-height: none; overflow: visible; }
body.theme-logo .stats-consent button { margin: .5rem .5rem 0 0; }
body.theme-logo table { font-size: 1.125rem; }
body.theme-logo .cards h3 { font-size: 1.125rem; }
body.theme-logo .cards strong { font-size: 2rem; }
body.theme-logo .leaflet-container { font-size: 1.125rem; line-height: 1.6; }
body.theme-logo .leaflet-control-zoom a { width: 3rem; height: 3rem; line-height: 3rem; font-size: 1.5rem; }
body.theme-logo .leaflet-control-attribution { font-size: 1rem; }
/* A dark outline plus a white halo remains distinguishable on light AND dark sections. */
body.theme-logo :is(a,button,input,textarea,select,summary):focus-visible,
body.theme-logo .contact :is(a,button,input,textarea,select):focus-visible,
body.theme-logo .lightbox button:focus-visible,
body.theme-logo .form-control:focus-visible,
body.theme-logo .contact .form-control:focus-visible {
  outline: 3px solid #141c28; outline-offset: 4px; box-shadow: 0 0 0 7px #fff;
}
body.theme-logo .skip { position: fixed; top: .5rem; left: .5rem; z-index: 10000; transform: translateY(-200%); background: #fff; color: #141c28; }
body.theme-logo .skip:focus { transform: none; }
body.theme-logo :is(a,button,input,textarea,select,summary,[id]) { scroll-margin-block: 8rem; }
@media (max-width: 72rem) {
  body.theme-logo .services { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 62rem) {
  body.theme-logo header { position: static; }
  body.theme-logo .head nav { width: 100%; }
  body.theme-logo .head .brand { width: 100%; justify-content: space-between; }
  body.theme-logo .head .brand span { min-width: 0; }
  body.theme-logo .head .brand img { width: 9rem; max-width: 45%; height: auto; flex: 0 0 auto; margin-left: auto; padding-left: .75rem; }
  body.theme-logo .angebot-grid,body.theme-logo .angebot-checks { grid-template-columns: 1fr; }
  body.theme-logo .mobile-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: calc(100% - 24px); }
  body.theme-logo .mobile-actions a { text-align: center; justify-content: center; }
  body.theme-logo footer { padding-bottom: calc(10rem + env(safe-area-inset-bottom,0px)); }
}
@media (max-width: 44rem) {
  body.theme-logo :is(.services,.gallery,.row-wrap,.footer-grid,.map-contact-options) { grid-template-columns: minmax(0,1fr); }
  body.theme-logo .service h3 { min-height: 0; }
  body.theme-logo .contact-portrait { flex-wrap: wrap; }
  body.theme-logo .photo-label { position: static; margin-top: 1rem; max-width: 100%; }
}
/* At cramped/zoomed sizes, fixed controls must not obstruct reading or keyboard focus. */
@media (max-width: 22rem), (max-height: 32rem) {
  body.theme-logo header { position: static; }
  body.theme-logo .angebot-dialog-head { position: static; }
  body.theme-logo .angebot-dialog { scroll-padding-top: 1rem; }
  body.theme-logo .mobile-actions { position: static; margin: 1rem; max-width: none; }
  body.theme-logo .stats-consent { bottom: .75rem; max-height: calc(100dvh - 1.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  body.theme-logo :is(a,button,input,textarea,select,summary):focus-visible { outline: 3px solid Highlight !important; box-shadow: none !important; }
}
