/* Keep the saved visual language; replace only legacy runtime-dependent styles. */
[hidden] { display: none !important; }
body { margin: 0; }
img { height: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 20px; top: 8px; z-index: 100; background: white; padding: 10px; }
#main:focus { outline: none; }
button, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, [role="button"]:focus-visible { outline: 2px solid #555; outline-offset: 4px; }
.mobile-menu-toggle { display: none; }
.header { z-index: 10; }
.header__logo img { height: auto; }
.header__logo .header__menu--schalter { display: none !important; }
.subheader__menu--left a { text-decoration: none; color: inherit; }
.subheader__menu--left a[aria-current="page"] span { color: #555; }
#is-container { min-height: 0; }
[data-project-card] { transition: opacity 150ms; }
[data-project-card] img { width: 100%; height: auto; }
[data-gallery-image] { cursor: zoom-in; height: auto; }
.project-filters { position: absolute; z-index: 8; top: 94px; right: 16px; display: flex; align-items: flex-start; gap: 25px; padding: 15px 18px; background: rgba(255,255,255,.97); box-shadow: 0 4px 9px #0001; max-width: calc(100vw - 30px); }
.project-filters button, .project-filters summary { border: 0; padding: 0; background: none; font: 14px Arial,sans-serif; color: #888; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.project-filter-group { position: relative; }
.project-filter-group summary { list-style: none; }
.project-filter-group summary::-webkit-details-marker { display: none; }
.project-filter-group summary:hover, .project-filters button:hover, .project-filters [aria-pressed="true"] { color: #222; text-decoration: underline; }
.project-filter-group ul { position: absolute; left: -10px; margin: 10px 0 0; padding: 10px; background: rgba(255,255,255,.98); box-shadow: 0 4px 9px #0001; max-height: 55vh; overflow: auto; min-width: 120px; }
.project-filter-group li { list-style: none; margin: 0 0 7px; }
.project-filter-group li button { text-align: left; font-size: 12px; }
.filter-status { font: 12px Arial,sans-serif; color: #888; white-space: nowrap; }
.image-viewer-open { overflow: hidden; }
.image-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 55px 80px; border: 0; background: rgba(255,255,255,.98); }
.image-dialog[open] { display: grid; place-items: center; }
.image-dialog::backdrop { background: white; }
.image-dialog img { max-width: 100%; max-height: calc(100dvh - 110px); width: auto; height: auto; object-fit: contain; }
.image-dialog button { position: absolute; z-index: 1; border: none; padding: 5px 15px; background: transparent; color: #555; font: 50px/1 Arial,sans-serif; cursor: pointer; }
.image-close { right: 20px; top: 8px; }
.image-prev { left: 15px; top: calc(50% - 35px); }
.image-next { right: 15px; top: calc(50% - 35px); }
.image-position { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; font: 12px Arial,sans-serif; color: #777; }
.showSingle[aria-pressed="true"] { color: black; }
.external-media { display: grid; place-items: center; width: 100%; min-height: 200px; background: #f5f5f5; }
.external-media button { padding: 12px 18px; border: 1px solid #bbb; background: white; font: 13px Arial,sans-serif; cursor: pointer; }
.external-media iframe { border: 0; width: 100%; height: 100%; min-height: 350px; }
.external-media[data-media-kind="video"], .external-media[data-media-kind="video"] iframe { min-height: 315px; }
.contact-map { min-height: 350px; }
@media (max-width: 829px) {
  .project-filters { top: 95px; left: 10px; right: 10px; gap: 18px; padding: 12px; flex-wrap: wrap; }
}
@media (max-width: 499px) {
  .header__holder { min-height: 76px; z-index: auto; }
  .mobile-menu-toggle { display: flex; flex-direction: column; gap: 2px; position: absolute; top: 27px; right: 12px; width: 20px; height: 20px; margin: 0; padding: 5px; border: 0; background: transparent; cursor: pointer; }
  .mobile-menu-toggle span { height: 2px; width: 12px; background: #aaa; }
  #main-navigation { display: none; }
  .navigation-open #main-navigation { display: block !important; position: absolute; z-index: 12; top: 85px; right: 0; width: 220px; height: auto; padding: 10px 20px 20px; background: #f5f5f5; box-shadow: 0 4px 9px #0001; }
  #main-navigation .subheader__menu--left { border: 0; height: auto; overflow: visible; }
  #main-navigation ul { margin: 0; }
  #main-navigation li { display: block; margin: 0; padding: 8px 0; }
  .project-filters { top: 94px; }
  .project-filter-group ul { max-width: 250px; }
  .image-dialog { padding: 50px 24px; }
  .image-dialog img { max-height: calc(100dvh - 100px); }
  .image-dialog button { padding: 5px; font-size: 40px; }
  .image-prev { left: 0; }
  .image-next { right: 0; }
  .image-close { right: 10px; }
}
@media (max-width: 299px) {
  .w-1080 { width: calc(100% - 20px); }
  .grid-4 > * { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
