/* Footer, Reflow und Tastaturbedienung; nach main.css laden. */
html { scroll-padding-top: 1.5rem; }
body { overflow-wrap: break-word; }
.header-inner > *, .content-hero > *, .contact-grid > *, .editable-quote > * { min-width: 0; }
img, svg, video, iframe { max-width: 100%; }
pre { max-width: 100%; overflow: auto; }
.frame table { display: block; max-width: 100%; overflow-x: auto; }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #242722; }
#inhalt:focus { outline: none; box-shadow: none; }
.skip { position: fixed; top: 0; transform: translateY(-200%); font-size: 1rem; }
.skip:focus { top: .75rem; transform: none; }
.button, .text-link, .editable-card > a, .page-heading > a { min-height: 2.75rem; }
.editable-card > a, .page-heading > a { display: inline-flex; align-items: center; }
.editable-card > a { font-size: .9375rem; }
.editable-card p:not(.number), .editable-step p, .editable-heading > p:not(.eyebrow),
.editable-faq > div, .contact-body p, .editable-quote p { font-size: 1rem; line-height: 1.75; }
.eyebrow, .number { font-size: .75rem; }
.editable-faq summary { min-height: 2.75rem; font-size: 1rem; }
.contact-body a { display: inline-block; padding-block: .4rem; text-decoration: underline; }
.desktop-nav { align-items: center; gap: 1rem; }
.desktop-nav .nav-item { display: flex; align-items: center; }
.desktop-nav .nav-item > a, .desktop-nav .submenu a { display: flex; align-items: center; min-height: 2.75rem; padding: .5rem; font-size: .9375rem; }
.nav-disclosure { position: relative; }
.nav-disclosure > summary { cursor: pointer; display: flex; align-items: center; justify-content: center; width: 2.75rem; min-height: 2.75rem; list-style: none; }
.nav-disclosure > summary::-webkit-details-marker { display: none; }
.nav-disclosure > summary::after { content: '⌄'; font-size: 1.25rem; }
.nav-disclosure[open] > summary::after { content: '⌃'; }
.nav-disclosure:not([open]) > .submenu { display: none; }
.nav-disclosure[open] > .submenu { display: block; left: auto; right: 0; min-width: 16rem; max-width: 24rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.footer-line { flex-wrap: wrap; align-items: center; gap: 1rem 2rem; font-size: .875rem; }
.footer-line > span:nth-child(2) { display: inline; }
.footer-meta { margin-left: auto; }
.footer-meta ul { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; margin: 0; }
.footer-meta a, .footer-top { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem 1rem; font-size: .9375rem; }
.footer-meta a { border: 1px solid #62645c; border-radius: 2px; text-decoration: none; color: #242722; }
.footer-meta a:hover { background: #692823; border-color: #692823; color: #fff; text-decoration: underline; }
.footer-top { text-decoration: underline !important; }
@media (max-width: 63.999rem) {
  .header-inner { flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1rem; min-height: 6rem; }
  .desktop-nav, .header-contact { display: none; }
  .brand { max-width: calc(100% - 4rem); }
  .brand img { flex-shrink: 0; }
  .brand strong { font-size: clamp(.9rem, 3.4vw, 1.4375rem); }
  .brand small { font-size: .625rem; letter-spacing: .08em; }
  .mobile-nav { display: block; position: static; font-size: 1rem; }
  .mobile-nav summary { cursor: pointer; padding: .6rem; min-height: 2.75rem; width: fit-content; margin-left: auto; }
  .mobile-nav[open] { flex-basis: 100%; }
  .mobile-nav nav { position: static; min-width: 0; width: 100%; padding: .75rem; background: var(--paper); border: 1px solid #62645c; box-shadow: none; }
  .mobile-nav a, .mobile-nav a.child-link { display: flex; align-items: center; min-height: 2.75rem; padding: .65rem .75rem; font-size: 1rem; text-decoration: underline; }
  .mobile-nav a.child-link { padding-left: 1.75rem; }
}
@media (max-width: 60rem) {
  .editable-content { grid-template-columns: 1fr; }
  .editable-content > .editable-card, .editable-content > .editable-step { grid-column: 1 / -1; }
  .content-hero, .editable-quote, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .content-hero h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
  .editable-card > img { max-width: 30rem; align-self: center; }
  .editable-quote h2 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
}
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .footer-line { align-items: flex-start; gap: .75rem; }
  .footer-meta { margin-left: 0; flex-basis: 100%; }
  .footer-meta ul { gap: .75rem; }
  .page-heading h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .editable-content > .frame h2, .contact h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .button { max-width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
  .footer-meta a, .mobile-nav nav { border-color: ButtonText; }
}
