.ebh-menu { display: none; }
.ebh-document, .ebh-legal {
  max-width: 72ch;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.ebh-document h1, .ebh-legal h1 { font-size: clamp(1.9rem, 5vw, 3.3rem); }
.ebh-document h2, .ebh-legal h2 { margin: 1.6em 0 .5em; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.ebh-document p, .ebh-legal p, .ebh-legal address { max-width: 68ch; margin: .85em 0; }
.ebh-legal address { line-height: 1.7; font-size: 1.125rem; font-style: normal; }
.ebh-legal a, .ebh-document a:not(.site-button) { color: var(--site-action); text-decoration: underline; text-underline-offset: .2em; }
.ebh-document ul { padding-left: 1.2em; list-style: disc; line-height: 2; }
.ebh-contact {
  min-width: 0;
  margin-top: 1.1rem;
  border-block: 1px solid #b6c39d;
}
.ebh-contact summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: .8rem 2rem .8rem 2px;
  color: var(--site-action);
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 700;
}
.ebh-contact summary::-webkit-details-marker { display: none; }
.ebh-contact summary::before, .ebh-contact summary::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  width: .85rem;
  height: 0;
  border-top: 2px solid currentColor;
}
.ebh-contact summary::after { transform: rotate(90deg); }
.ebh-contact[open] summary::after { display: none; }
.ebh-contact summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.ebh-contact form { display: grid; gap: 1rem; padding: .5rem 0 1.25rem; }
.ebh-contact form > div { min-width: 0; }
.ebh-contact label { font-weight: 700; font-size: 1.125rem; }
.ebh-contact-hint { display: block; color: var(--site-quiet); }
.ebh-contact :is(textarea, input[type="text"]) {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: .35rem;
  padding: .65rem .8rem;
  border: 1px solid #778266;
  border-radius: 2px;
  background: var(--site-paper);
  color: var(--site-ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.ebh-contact textarea { resize: vertical; }
.ebh-contact :is(summary, textarea, input):focus-visible, .ebh-contact-feedback:focus {
  outline: 3px solid var(--site-action);
  outline-offset: 3px;
}
.ebh-contact :is(input, textarea)[aria-invalid="true"] { border: 2px solid #934020; }
.ebh-contact .site-button { justify-self: start; cursor: pointer; }
.ebh-contact .site-button:disabled { cursor: wait; }
.ebh-contact .ebh-contact-privacy, .ebh-contact .ebh-contact-feedback { font-size: 1rem; line-height: 1.5; }
.ebh-contact-privacy { color: var(--site-quiet); }
.ebh-contact-privacy a { color: var(--site-action); text-decoration: underline; text-underline-offset: .15em; }
.ebh-contact-feedback { padding: .65rem .8rem; border-left: 3px solid #934020; background: var(--site-paper); }
.ebh-contact-feedback[data-status="gesendet"] { border-color: var(--site-action); }
.contact-letter > .ebh-contact-fallback { display: block; }
.ebh-contact-fallback .ebh-contact { max-width: 38rem; }
@media (max-width: 760px) {
  .ebh-contact :is(summary, textarea, input, a, button, [tabindex]) {
    scroll-margin-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }
}
.ebh-storm-dialog {
  margin: auto;
  border: 0;
  width: min(54rem, calc(100% - 2rem));
  max-height: 90dvh;
  background: white;
  color: #303529;
  overflow: auto;
}
.ebh-storm-dialog::backdrop { background: rgb(22 26 18 / 80%); }
.ebh-storm-frame { height:min(60dvh, 40rem); background: #20251d; }
.ebh-storm-frame img { width: 100%; height: 100%; object-fit: contain; }
.ebh-storm-close, .ebh-storm-controls button {
  min-height: 44px;
  padding: .5em .85em;
  background: white;
  border: 1px solid #bac3aa;
  border-radius: 2px;
  font-weight: 700;
  color: #43551a;
}
.ebh-storm-close { position: absolute; right: .75rem; top: .75rem; }
.ebh-storm-footer { padding: 1rem; }
.ebh-storm-footer h2 { margin: 0 0 .7em; font-size: clamp(1.2rem, 3vw, 1.7rem); }
.ebh-storm-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
@media (max-width: 1100px) {
  .ebh-menu { position: relative; display: block; margin-left: auto; }
  .masthead-contact + .ebh-menu { margin-left: 0; }
  .ebh-menu summary { display: flex; min-height: 44px; align-items: center; gap: .4rem; padding: .4rem .65rem; border: 1px solid var(--site-rule); border-radius: 2px; color: var(--site-action); cursor: pointer; }
  .ebh-menu summary::-webkit-details-marker { display: none; }
  .ebh-menu nav { position: absolute; z-index: 25; right: 0; top: calc(100% + 8px); width: min(18rem, calc(100vw - 2.5rem)); padding: .35rem 1rem; background: white; border: 1px solid var(--site-rule); box-shadow: 0 5px 20px #2222; }
  .ebh-menu nav a { display: flex; min-height: 46px; align-items: center; border-bottom: 1px solid var(--site-rule); }
  .ebh-menu nav a:last-child { border: 0; }
  .ebh-menu summary:focus-visible { outline: 3px solid var(--site-action); outline-offset: 3px; }
}
@media (max-width: 440px) {
  .ebh-menu summary span { position: absolute; height: 1px; width: 1px; clip-path: inset(50%); overflow: hidden; }
  .ebh-menu summary { min-width: 44px; justify-content: center; }
}
@media (max-width: 370px) { .masthead-contact + .ebh-menu { margin-left: auto; } }
