/* Ergänzungen zum exportierten Solo-Layout.
   Ziel: gleiche Optik, aber normales Scrollverhalten, Barrierefreiheit und eigene Bausteine (Formular, Karte, Galerie). */

/* Die Seite scrollt wieder im Browser (bei Solo scrollte ein innerer Container) */
html, body { height: auto !important; min-height: 100%; overflow-y: visible !important; }
html body #__next, #__next { display: block !important; height: auto !important; }
main#inhalt { height: auto !important; overflow: visible !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Kopfzeile bleibt oben stehen */
#header { position: sticky; top: 0; z-index: 100; }

/* Sprunglink für Tastatur und Screenreader */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #f2c94c; color: #000; padding: .5rem 1rem; }
.skip-link:focus { left: 0; }

/* Fokus sichtbar */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #f2c94c; outline-offset: 2px;
}

/* Kontaktformular */
.kf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.kf-status { margin-top: .75rem; min-height: 1.5em; font-weight: 600; }
.kf-status.ok { color: #9be3a4; }
.kf-status.err { color: #ff9aa2; }
.kf-note { font-size: .8rem; opacity: .75; margin: .75rem 0 0; line-height: 1.4; }
.kf-note a { text-decoration: underline; }
form#kontaktformular button[disabled] { opacity: .6; cursor: wait; }

/* Karte (Zwei-Klick-Lösung, lädt OpenStreetMap erst nach Klick) */
.map-box { max-width: 960px; margin-inline: auto; text-align: center; }
.map-addr { margin-bottom: 1rem; }
.map-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  min-height: 300px; padding: 1.5rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px; background: rgba(0, 0, 0, .18); }
.map-hint { font-size: .85rem; opacity: .8; max-width: 38rem; margin: 0; }
.map-box iframe { width: 100%; height: 420px; border: 0; border-radius: 4px; display: block; }
.map-link { margin: .75rem 0 0; font-size: .9rem; }
.map-link a { text-decoration: underline; }

/* Galerie-Lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lb::backdrop { background: rgba(0, 0, 0, .88); }
.lb-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-inner img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 2px; }
.lb button { position: absolute; background: rgba(17, 17, 20, .75); color: #fff; border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%; width: 44px; height: 44px; font-size: 24px; line-height: 1; cursor: pointer; }
.lb button:hover { background: #111114; }
.lb .lb-close { top: 16px; right: 16px; }
.lb .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.gallery-item a { cursor: zoom-in; }

/* Mobil: Bootstrap-Zeilen mit negativen Rändern dürfen kein horizontales Scrollen erzeugen */
html, body { overflow-x: clip; }

@media (max-width: 575.98px) {
  .col-lg-8.f6tinqi { padding-left: 16px; padding-right: 16px; }
}
