/* HOF Automation - Projektfilter, bestehende Kacheln und Bootstrap-5-Modals. */
.hof-projects-overview .hof-projects-heading{max-width:850px;margin-bottom:2rem}
.hof-projects-overview .hof-projects-heading h2{color:inherit;max-width:none}
.hof-projects-filters{margin:0 0 2rem}
.hof-projects-cert{display:flex;gap:.65rem;flex-wrap:wrap;margin:0 0 1.2rem}
.hof-projects-filter-button{appearance:none;background:transparent;border:1px solid #b5d0bb;color:#e2eee5;padding:.65rem 1.15rem;min-height:44px;border-radius:999px;font:inherit;font-weight:700;font-size:.9rem;line-height:1.25;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.hof-projects-filter-button:hover,.hof-projects-filter-button.is-active{color:#17321c;background:#00fb00;border-color:#00fb00}
.hof-projects-filter-row{display:flex;gap:1rem;flex-wrap:wrap;align-items:end}
.hof-projects-filter-field{display:grid;gap:.4rem;flex:1 1 220px;max-width:360px;min-width:0}
.hof-projects-filter-field label{color:#f2f7f3;font-size:.85rem;font-weight:700}
.hof-projects-filter-field select{width:100%;min-height:46px;padding:.65rem 2.25rem .65rem 1rem;border:1px solid #cadacb;border-radius:7px;background:#fff;color:#16281b;font:inherit}
.hof-projects-reset{min-height:46px;padding:.65rem .2rem;background:transparent;color:#cfe6d4;border:0;text-decoration:underline;text-underline-offset:3px;font:inherit;cursor:pointer}
.hof-projects-reset:hover{color:#00fb00}
.hof-projects-filter-button:focus-visible,.hof-projects-reset:focus-visible,.hof-projects-filter-field select:focus-visible,.hof-project-card-trigger:focus-visible{outline:3px solid #00fb00;outline-offset:3px}
.hof-projects-result{color:#d4e5d6;margin:1rem 0 0;font-size:.9rem}
.hof-projects-empty{padding:1.2rem;border:1px solid #577462;border-radius:8px;color:#e0ede3}
.hof-projects-overview .hof-project-card{min-width:0;display:flex;height:100%;background:#2b4033;border-radius:12px;overflow:hidden}
.hof-projects-overview .hof-project-card[hidden],.hof-projects-empty[hidden]{display:none!important}
.hof-project-card-trigger{width:100%;height:100%;display:flex;flex-direction:column;text-align:left;background:transparent!important;border:0;padding:0;color:inherit;cursor:pointer;font:inherit;box-shadow:none!important}
.hof-project-card-trigger .hof-project-card-image{width:100%;flex:none}
.hof-project-card-trigger .hof-project-card-content{width:100%;flex:1;display:flex;flex-direction:column}
.hof-projects-overview .hof-project-card-content h3{font-size:1.3rem;line-height:1.3;text-transform:none;color:#fff!important;margin:.35rem 0 .65rem}
.hof-projects-overview .hof-project-card-content .hof-project-card-location{color:#e1e9e2!important;line-height:1.5;margin:0 0 1.1rem}
.hof-projects-overview .hof-project-card-content .hof-project-category{color:#00fb00!important;margin:0}
.hof-project-card-more{margin-top:auto;color:#00fb00;font-weight:800;font-size:.87rem}
.hof-project-card-trigger:hover .hof-project-card-more{text-decoration:underline;text-underline-offset:4px}
.hof-project-card-image img{transition:transform .2s ease}
.hof-project-card-trigger:hover .hof-project-card-image img{transform:scale(1.035)}
/* Modals are moved to body so the dark band cannot obscure the dialog. */
.hof-project-modal{--bs-modal-bg:#fff;--bs-modal-color:#17251c;color:#17251c!important}
.hof-project-modal .modal-content{background:#fff!important;color:#17251c!important;border:0;border-radius:14px;overflow:hidden;box-shadow:0 20px 70px rgba(0,0,0,.3)}
.hof-project-modal .modal-dialog{max-width:min(850px,calc(100% - 1.5rem));margin:1rem auto}
.hof-project-modal .modal-header{padding:1.2rem 1.5rem;border-bottom:1px solid #dae7dd;background:#eff4ef!important;align-items:flex-start}
.hof-project-modal .modal-title{font-size:clamp(1.3rem,2.2vw,1.75rem)!important;line-height:1.2;color:#17251c!important;margin:0!important;max-width:none!important}
.hof-project-modal .hof-project-modal-eyebrow{color:#087b24!important;font-size:.78rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;margin:0 0 .35rem}
.hof-project-modal .modal-body{padding:1.4rem 1.5rem;background:#fff!important;color:#17251c!important}
.hof-project-modal .modal-body :is(p,li,h2,h3,h4,dt,dd){color:#17251c!important}
.hof-project-modal .hof-project-modal-image{aspect-ratio:16/9;max-height:355px;overflow:hidden;border-radius:9px;background:#e5ece6;margin:0 0 1.3rem}
.hof-project-modal .hof-project-modal-image img{width:100%;height:100%;object-fit:cover;display:block}
.hof-project-modal .hof-project-modal-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;padding-bottom:1rem;border-bottom:1px solid #dbe6dd;margin:0 0 1.3rem}
.hof-project-modal .hof-project-modal-facts div{min-width:0}
.hof-project-modal .hof-project-modal-facts dt{font-size:.75rem;color:#43614d!important;font-weight:800;text-transform:uppercase;letter-spacing:.035em;margin:0 0 .35rem}
.hof-project-modal .hof-project-modal-facts dd{line-height:1.5;margin:0;overflow-wrap:anywhere}
.hof-project-modal .hof-project-modal-description[hidden],.hof-project-modal .hof-project-modal-services[hidden]{display:none!important}
.hof-project-modal .hof-project-modal-description :last-child,.hof-project-modal .hof-project-modal-services :last-child{margin-bottom:0}
.hof-project-modal .hof-project-modal-description{margin:0 0 1.2rem}
.hof-project-modal .hof-project-modal-services{margin:1.2rem 0 0}
.hof-project-modal .modal-footer{background:#fff!important;border-top:1px solid #dbe6dd;padding:1rem 1.5rem}
@media(max-width:767.98px){.hof-project-modal .hof-project-modal-facts{grid-template-columns:1fr 1fr}.hof-projects-filter-field{max-width:none}}
@media(max-width:575.98px){.hof-projects-filter-button{flex:1 1 auto}.hof-projects-filter-field{flex-basis:100%}.hof-projects-reset{min-height:36px}.hof-project-modal .modal-dialog{max-width:calc(100% - 1rem);margin:.5rem auto}.hof-project-modal .modal-header,.hof-project-modal .modal-body,.hof-project-modal .modal-footer{padding:1rem}.hof-project-modal .hof-project-modal-facts{grid-template-columns:1fr;gap:.85rem}.hof-project-modal .hof-project-modal-image{aspect-ratio:4/3}}
@media(prefers-reduced-motion:reduce){.hof-project-card-image img,.hof-projects-filter-button{transition:none}}

/* ===============================================================
   PID 12 - Filter: kontrastreiche Darstellung auf Sage-Hintergrund
   Fix 2026-10-15. Nutzt die tatsaechlichen Members-Klassennamen.
   =============================================================== */
.hof-projects-overview .hof-projects-filter-button {
  background: #ffffff;
  border: 1px solid #8ea898;
  color: #203229;
  font-weight: 700;
  opacity: 1;
}
.hof-projects-overview .hof-projects-filter-button:hover {
  background: #d9e8dd;
  border-color: #203229;
  color: #203229;
}
.hof-projects-overview .hof-projects-filter-button.is-active,
.hof-projects-overview .hof-projects-filter-button[aria-pressed="true"] {
  background: #00fb00;
  border-color: #00fb00;
  color: #14271b;
}
.hof-projects-overview .hof-projects-filter-button.is-active:hover,
.hof-projects-overview .hof-projects-filter-button[aria-pressed="true"]:hover {
  background: #00e500;
  border-color: #00e500;
  color: #14271b;
}
.hof-projects-overview .hof-projects-filter-field label {
  color: #203229;
  font-weight: 700;
}
.hof-projects-overview .hof-projects-filter-field select {
  background-color: #fff;
  border-color: #97b19f;
  color: #203229;
}
.hof-projects-overview .hof-projects-reset {
  color: #203229;
  font-weight: 600;
}
.hof-projects-overview .hof-projects-reset:hover {
  color: #08671b;
}
.hof-projects-overview .hof-projects-result {
  color: #314d3b;
  font-weight: 600;
}
.hof-projects-overview .hof-projects-filter-button:focus-visible,
.hof-projects-overview .hof-projects-filter-field select:focus-visible,
.hof-projects-overview .hof-projects-reset:focus-visible {
  outline: 3px solid #008d18;
  outline-offset: 3px;
}
