.about-section { margin-bottom: 5rem; scroll-margin-top: 150px; }
.about-section h2 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 400; border-bottom: 1px solid #ddd; padding-bottom: 1rem; margin: 0 0 2rem; }
.about-profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.about-profile > .wp-block-group__inner-container { display: contents; }
.about-profile .wp-block-image { margin: 0; }
.about-profile .wp-block-image img { display: block; width: 100%; height: auto; }
.about-copy p, .about-section > .wp-block-group__inner-container > p, .about-section > p { font-size: .9375rem; line-height: 1.85; margin: 0 0 1.25rem; }
.about-section a { color: inherit; text-underline-offset: 4px; }
.about-gallery { margin-top: 2rem; }
.about-gallery .js-lightbox { display: block; width: 100%; overflow: hidden; cursor: zoom-in; }
.about-gallery.wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.about-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100%; margin: 0; align-self: start; }
.about-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center; }
@media (max-width: 1000px) { .about-section { scroll-margin-top: 100px; } }
@media (max-width: 700px) {
  .about-contact-link { justify-content: center; }
  .about-profile { grid-template-columns: minmax(0, 1fr); }
  .about-profile > .wp-block-group__inner-container > .wp-block-image,
  .about-profile > .wp-block-image { width: 100%; max-width: 320px; justify-self: center; margin-inline: auto; }
  .about-profile .wp-block-image img { aspect-ratio: 1; object-fit: cover; object-position: center top; }
}
@media (max-width: 540px) {
  .about-gallery.wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (any-hover: hover) {
  .about-gallery.wp-block-gallery .wp-block-image img {
    transform: scale(1);
    transition: transform 420ms cubic-bezier(.22, .61, .36, 1), filter 260ms ease;
  }
  .about-gallery.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.035);
    filter: brightness(1.03) contrast(1.02);
  }
}
@media (prefers-reduced-motion: no-preference) { html:has(.about-page) { scroll-behavior: smooth; } }
.kontakt-section .wpcf7 { max-width: 42rem; margin-inline: auto; padding-top: 1.5rem; }
.kontakt-section .kontakt-namen > p { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); column-gap: 2rem; }
.kontakt-section form p > br { display: none; }
.kontakt-section form p > label { display: block; margin-bottom: 2rem; }
.kontakt-section .wpcf7-text, .kontakt-section textarea {
  box-sizing: border-box;
  width: 100%;
  display: block;
  margin: 0;
  padding: .4rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #888;
  border-radius: 0;
  font: inherit;
  line-height: 1.8;
}
.kontakt-section .wpcf7-text { min-height: 2.75rem; }
.kontakt-section .wpcf7-text:focus, .kontakt-section textarea:focus {
  outline: none;
  border-bottom-color: currentColor;
  box-shadow: 0 1px currentColor;
}
.kontakt-section form p { margin: 0; }
.kontakt-section textarea { height: 6rem; resize: vertical; }
.kontakt-section .wpcf7-acceptance { display: block; margin: .5rem 0 .75rem; }
.kontakt-section .wpcf7-list-item-label,
.kontakt-section form p.kontakt-hinweis { font-size: .8125rem; line-height: 1.6; }
.kontakt-section form p.kontakt-hinweis { margin-bottom: 3.5rem; }
.kontakt-section .wpcf7-acceptance label { display: flex; align-items: baseline; gap: .85rem; line-height: 1.65; }
.kontakt-section .wpcf7-list-item { margin-left: 0; }
.about-contact-link { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: 1.75rem; }
.about-contact-link a, .kontakt-section .wpcf7-submit {
  display: inline-block;
  padding: .65rem 1.2rem;
  border: 1px solid #767676;
  border-radius: 2px;
  background: #efefef;
  color: #222;
  font: 1rem/1.3 var(--font-base);
  text-decoration: none;
  cursor: pointer;
}
.kontakt-section .wpcf7-submit { display: block; margin-inline: auto; }
.kontakt-section .wpcf7-not-valid-tip {
  display: block;
  margin-top: .5rem;
  font-size: .8125rem;
  line-height: 1.5;
}
.kontakt-section .wpcf7 form .wpcf7-response-output {
  border: 0;
  padding: 0;
  font-size: .8125rem;
  line-height: 1.5;
}
.kontakt-section .wpcf7 form:is(.invalid, .unaccepted, .failed, .aborted, .spam) .wpcf7-response-output {
  color: #dc3232;
}
