/* Eigenständige Gestaltung für den öffentlichen Projektbereich. Startseite und Sidebar bleiben unverändert. */
.projects-page { min-height: 65vh; }
.projects-page-hero { padding: 76px 0 58px; background: linear-gradient(135deg, #f2f7fa 0%, #fff 72%); }
.projects-eyebrow { color: #1689bd; font-size: .76rem; font-weight: 750; letter-spacing: .1em; line-height: 1.4; margin: 0 0 10px; text-transform: uppercase; }
.projects-page-hero h1 { color: #172b3a; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 760; letter-spacing: -.025em; margin: 0 0 14px; }
.projects-page-hero p:last-child { color: #62717c; font-size: 1.05rem; line-height: 1.7; margin: 0; max-width: 800px; }
.projects-list-section { padding-top: 42px; padding-bottom: 76px; }
.projects-filters { display: flex; align-items: center; gap: 10px; max-width: 900px; margin: 0 auto 44px; padding: 9px; border: 1px solid #dce5eb; border-radius: 13px; background: #fff; box-shadow: 0 8px 28px rgba(20,43,58,.06); }
.projects-search-field { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 150px; padding: 0 10px; color: #71818d; }
.projects-search-field i { font-size: 1.1rem; }
.projects-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 11px 0; color: #172b3a; background: transparent; }
.projects-status-field select { min-height: 43px; padding: 0 34px 0 12px; border: 1px solid #e2e9ed; border-radius: 8px; color: #40545f; background: #fff; }
.projects-filters button { min-height: 43px; padding: 0 20px; border: 0; border-radius: 8px; color: #fff; background: #1689bd; font-weight: 680; }
.projects-filters button:hover { background: #116f9b; }
.projects-reset { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 40px; color: #71818d; text-decoration: none; }
.projects-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.projects-results-heading h2, .project-section-heading h2 { color: #172b3a; font-size: 1.55rem; font-weight: 740; margin: 0 0 5px; }
.projects-results-heading p { color: #75838d; font-size: .92rem; margin: 0; }
.projects-legend { display: inline-flex; align-items: center; gap: 7px; color: #74838c; font-size: .82rem; }
.project-status-dot { display: inline-block; width: 8px; height: 8px; margin-left: 9px; border-radius: 50%; }
.project-status-dot.is-active { background: #299b70; }
.project-status-dot.is-completed { background: #1689bd; }
.projects-list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.project-list-card { min-width: 0; overflow: hidden; border: 1px solid #e7edf1; border-radius: 13px; background: #fff; box-shadow: 0 7px 24px rgba(21,43,57,.055); transition: transform .2s ease, box-shadow .2s ease; }
.project-list-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(21,43,57,.11); }
.project-list-image { position: relative; display: block; height: 218px; overflow: hidden; background: #edf2f5; }
.project-list-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-list-card:hover .project-list-image img { transform: scale(1.035); }
.project-image-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: #9aabb6; font-size: 2.7rem; }
.project-status-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 27px; padding: 5px 10px; border-radius: 30px; font-size: .74rem; font-weight: 720; line-height: 1.15; }
.project-list-image .project-status-badge { position: absolute; top: 14px; left: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.project-status-badge.is-active { color: #176b4e; background: #e6f5ed; }
.project-status-badge.is-completed { color: #17678c; background: #e7f3f8; }
.project-list-card-body { padding: 21px 22px 23px; }
.project-card-meta { display: flex; align-items: center; gap: 7px; color: #81909a; font-size: .78rem; margin: 0 0 10px; }
.project-list-card h3 { font-size: 1.16rem; line-height: 1.4; font-weight: 730; margin: 0 0 10px; }
.project-list-card h3 a { color: #172b3a; text-decoration: none; }
.project-list-card h3 a:hover { color: #1689bd; }
.project-card-excerpt { color: #667680; font-size: .93rem; line-height: 1.65; margin: 0 0 16px; }
.project-read-more { color: #1689bd; font-size: .9rem; font-weight: 720; text-decoration: none; }
.project-read-more i { margin-left: 4px; }
.projects-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 42px; }
.projects-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #e0e8ed; border-radius: 8px; color: #314957; text-decoration: none; }
.projects-pagination a:hover, .projects-pagination a.is-active { color: #fff; border-color: #1689bd; background: #1689bd; }
.projects-pagination-dots { color: #87949c; padding: 0 3px; }
.projects-empty, .projects-not-found { padding: 78px 0; text-align: center; }
.projects-empty > i, .projects-not-found .container > i { display: inline-block; color: #9aabb6; font-size: 2.8rem; margin-bottom: 16px; }
.projects-empty h2, .projects-not-found h1 { color: #172b3a; font-size: 1.55rem; font-weight: 730; }
.projects-empty p, .projects-not-found p { color: #6d7c86; }
.projects-empty a { color: #1689bd; font-weight: 680; }

/* Projekt-Detailseite */
.project-article-header { padding: 54px 0 36px; background: linear-gradient(135deg, #f0f6f9 0%, #f7fafb 70%, #edf5f8 100%); }
.project-article-header-inner { max-width: 980px; }
.project-back-link { display: inline-flex; align-items: center; gap: 8px; color: #1689bd; font-size: .92rem; font-weight: 680; text-decoration: none; }
.project-back-link:hover { color: #105f86; }
.project-article-header .project-back-link { margin-bottom: 29px; }
.project-article-header .projects-eyebrow { margin-bottom: 10px; }
.project-article-header > .container > .project-status-badge { margin-bottom: 14px; }
.project-article-header h1 { max-width: 900px; margin: 0 0 18px; color: #172b3a; font-size: clamp(2.25rem, 4vw, 3.4rem); font-weight: 760; line-height: 1.12; letter-spacing: -.035em; }
.project-article-meta { display: flex; flex-wrap: wrap; gap: 9px 10px; color: #637682; font-size: .84rem; }
.project-article-meta span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 12px; border: 1px solid #e1e9ee; border-radius: 30px; background: rgba(255,255,255,.82); }
.project-cover-wrap { width: min(100% - 48px, 1040px); margin: 32px auto 0; }
.project-cover { overflow: hidden; margin: 0; border: 1px solid #e8eef1; border-radius: 17px; background: #f4f7f8; box-shadow: 0 14px 38px rgba(23,43,58,.09); }
.project-cover img { display: block; width: 100%; max-height: 620px; object-fit: contain; }
.project-article-layout { max-width: 980px; padding-top: 48px; padding-bottom: 72px; }
.project-article-content { max-width: 760px; margin: 0 auto; color: #344b59; font-size: 1.0625rem; line-height: 1.88; letter-spacing: .002em; }
.project-article-teaser { margin: 0 0 1.55em; color: #263d4b; font-size: 1.15rem; font-weight: 560; line-height: 1.7; }
.project-richtext { color: #344b59; }
.project-richtext p { margin: 0 0 1.25em; }
.project-richtext h2, .project-richtext h3, .project-richtext h4 { color: #172b3a; font-weight: 730; line-height: 1.3; }
.project-richtext h2 { margin: 1.9em 0 .65em; font-size: clamp(1.45rem, 2.5vw, 1.85rem); }
.project-richtext h3 { margin: 1.65em 0 .65em; font-size: 1.3rem; }
.project-richtext h4 { margin: 1.5em 0 .6em; font-size: 1.12rem; }
.project-richtext ul, .project-richtext ol { padding-left: 1.45em; margin: .45em 0 1.4em; }
.project-richtext li { padding-left: .18em; margin-bottom: .42em; }
.project-richtext a { color: #1689bd; }
.project-richtext blockquote { margin: 1.7em 0; padding: 18px 24px; border-left: 4px solid #1689bd; border-radius: 0 10px 10px 0; background: #f2f7f9; color: #4d626e; }
.project-richtext img { max-width: 100%; height: auto; border-radius: 12px; }
.project-richtext figure { max-width: 100%; }
.project-content-missing { color: #73838d; font-style: italic; }
.project-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.project-section-heading h2 { margin-bottom: 6px; }
.project-section-heading p:last-child { color: #6d7c86; margin: 0; }
.project-section-heading > span { color: #7b8992; font-size: .85rem; }
.project-gallery { margin-top: 58px; }
.project-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.project-gallery-grid figure, .project-update-gallery figure { min-width: 0; overflow: hidden; margin: 0; border: 1px solid #e7edf1; border-radius: 11px; background: #fff; }
.project-gallery-grid a, .project-update-gallery a { display: block; overflow: hidden; background: #edf2f5; }
.project-gallery-grid img { display: block; width: 100%; height: 210px; object-fit: cover; transition: transform .3s ease; }
.project-gallery-grid a:hover img, .project-update-gallery a:hover img { transform: scale(1.035); }
.project-gallery-grid figcaption, .project-update-gallery figcaption { padding: 10px 12px; color: #73818a; font-size: .79rem; line-height: 1.5; }
.project-timeline { margin-top: 64px; }
.project-timeline-list { position: relative; display: grid; gap: 18px; margin-top: 26px; }
.project-timeline-list::before { position: absolute; top: 10px; bottom: 18px; left: 9px; width: 2px; background: #dce8ee; content: ''; }
.project-timeline-entry { position: relative; display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 16px; }
.project-timeline-marker { position: relative; z-index: 1; padding-top: 7px; color: #1689bd; font-size: .68rem; }
.project-timeline-card { padding: 22px 24px; border: 1px solid #e5edf1; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(21,43,57,.04); }
.project-timeline-date { display: flex; align-items: center; gap: 7px; color: #7c8a94; font-size: .82rem; margin: 0 0 8px; }
.project-timeline-card h3 { color: #172b3a; font-size: 1.2rem; font-weight: 730; margin: 0 0 12px; }
.project-update-content { font-size: .96rem; line-height: 1.75; }
.project-update-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 17px; }
.project-update-gallery img { display: block; width: 100%; height: 140px; object-fit: cover; transition: transform .3s ease; }
.project-article-bottom { margin-top: 46px; padding-top: 24px; border-top: 1px solid #e5ecef; }
.project-article-bottom .project-back-link { min-height: 42px; padding: 9px 15px; border: 1px solid #e0e9ee; border-radius: 9px; background: #fff; }
.project-related-section { padding: 58px 0 72px; background: #f6f9fa; }
.project-related-section .project-section-heading { margin-bottom: 22px; }
.project-related-section .project-section-heading > a { color: #1689bd; font-size: .9rem; font-weight: 700; text-decoration: none; }
.project-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.project-related-card { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 14px; min-width: 0; padding: 13px; border: 1px solid #e5ecef; border-radius: 12px; background: #fff; }
.project-related-image { display: block; height: 118px; overflow: hidden; border-radius: 8px; background: #edf2f5; }
.project-related-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-related-image span { display: flex; align-items: center; justify-content: center; height: 100%; color: #9aabb6; font-size: 2rem; }
.project-related-card > div { min-width: 0; }
.project-related-card .project-status-badge { min-height: 23px; padding: 4px 8px; font-size: .68rem; }
.project-related-card h3 { margin: 7px 0 5px; font-size: .98rem; line-height: 1.35; font-weight: 730; }
.project-related-card h3 a { color: #172b3a; text-decoration: none; }
.project-related-card p { color: #6b7b85; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .82rem; line-height: 1.5; margin: 0; }
.projects-not-found .container { max-width: 720px; }
.projects-not-found .project-back-link { margin-top: 14px; }
@media (max-width: 991px) {
  .projects-list-grid, .project-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .projects-results-heading { align-items: start; flex-direction: column; }
  .projects-legend { margin-top: 1px; }
  .project-related-card { grid-template-columns: 100px minmax(0,1fr); }
  .project-update-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575px) {
  .projects-page-hero { padding: 52px 0 42px; }
  .projects-filters { flex-wrap: wrap; gap: 8px; padding: 10px; margin-bottom: 34px; }
  .projects-search-field { flex-basis: 100%; }
  .projects-status-field { flex: 1; }
  .projects-status-field select { width: 100%; }
  .projects-filters button { padding: 0 16px; }
  .projects-list-grid, .project-gallery-grid, .project-update-gallery, .project-related-grid { grid-template-columns: 1fr; }
  .project-list-image { height: 220px; }
  .project-list-card-body { padding: 19px; }
  .project-article-header { padding: 40px 0 28px; }
  .project-cover-wrap { width: calc(100% - 32px); margin-top: 20px; }
  .project-cover { border-radius: 10px; }
  .project-article-layout { padding-top: 32px; padding-bottom: 54px; }
  .project-gallery, .project-timeline { margin-top: 46px; }
  .project-gallery-grid img { height: 220px; }
  .project-timeline-entry { gap: 10px; }
  .project-timeline-card { padding: 18px; }
  .project-update-gallery img { height: 190px; }
  .project-related-card { grid-template-columns: 105px minmax(0,1fr); }
}
