/* ========================================
   WS-Technik Projekte - Styles
   Farben basierend auf ws-technik.com
   ======================================== */

   :root {
    --ws-primary: #003d7a;
    --ws-primary-dark: #002d5c;
    --ws-primary-light: #0056a8;
    --ws-accent: #e8a500;
    --ws-text: #2c3e50;
    --ws-text-light: #5a6a7a;
    --ws-bg: #f5f7fa;
    --ws-white: #ffffff;
    --ws-border: #dde3ea;
    --ws-shadow: 0 2px 12px rgba(0, 61, 122, 0.08);
    --ws-shadow-hover: 0 8px 30px rgba(0, 61, 122, 0.15);
    --ws-radius: 6px;
    --ws-transition: 0.3s ease;
}


/* ========================================
   THEME-TITEL AUF PROJEKTSEITEN VERSTECKEN
   (verhindert den doppelten Titel)
   ======================================== */

.single-projekt .entry-title,
.single-projekt .page-title,
.single-projekt .post-title,
.single-projekt .entry-header .entry-title,
.single-projekt article > header > h1,
.single-projekt .site-content > article > header,
.single-projekt .wp-block-post-title,
.single-projekt .fancy-title,
.single-projekt .page-title-head,
.single-projekt #page-title,
.single-projekt .masthead .entry-title {
    display: none !important;
}


/* ========================================
   SHARED STYLES
   ======================================== */
   .page-title {
       display: none !important;
   }

.ws-projekt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ws-projekt-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--ws-transition);
}

.ws-projekt-breadcrumb a:hover {
    color: var(--ws-white);
}

.ws-projekt-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.ws-projekt-breadcrumb span:last-child {
    color: var(--ws-white);
}


/* ========================================
   CTA BEREICH (shared)
   ======================================== */

.ws-projekt-cta {
    background: var(--ws-primary);
    padding: 80px 24px;
    text-align: center;
}

.ws-projekt-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.ws-projekt-cta h2 {
    color: var(--ws-white);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.ws-projekt-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.ws-projekt-cta-btn {
    display: inline-block;
    background: var(--ws-white);
    color: var(--ws-primary);
    padding: 14px 36px;
    border-radius: var(--ws-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ws-transition);
    border: 2px solid var(--ws-white);
}

.ws-projekt-cta-btn:hover {
    background: transparent;
    color: var(--ws-white);
}


/* ========================================
   SINGLE PROJEKT
   ======================================== */

.ws-projekt-single {
    background: var(--ws-bg);
}

/* Hero Tags */
.ws-projekt-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ws-hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--ws-white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

/* Factbar */
.ws-projekt-factbar {
    background: var(--ws-white);
    border-bottom: 1px solid var(--ws-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ws-projekt-factbar-inner {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.ws-factbar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    flex: 1;
    min-width: 180px;
    border-right: 1px solid var(--ws-border);
    color: var(--ws-primary);
}

.ws-factbar-item:last-child {
    border-right: none;
}

.ws-factbar-item svg {
    flex-shrink: 0;
    color: var(--ws-primary);
}

.ws-factbar-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ws-factbar-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ws-text-light);
}

.ws-factbar-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ws-text);
}

/* Sidebar CTA */
.ws-projekt-sidebar-cta {
    background: var(--ws-primary);
    border-radius: var(--ws-radius);
    padding: 28px;
    margin-top: 24px;
    text-align: center;
}

.ws-projekt-sidebar-cta h4 {
    color: var(--ws-white);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.ws-projekt-sidebar-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.ws-sidebar-cta-btn {
    display: inline-block;
    background: var(--ws-white);
    color: var(--ws-primary);
    padding: 12px 28px;
    border-radius: var(--ws-radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ws-transition);
    border: 2px solid var(--ws-white);
}

.ws-sidebar-cta-btn:hover {
    background: transparent;
    color: var(--ws-white);
}

/* Hero */
.ws-projekt-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background: var(--ws-primary-dark);
    overflow: hidden;
}

.ws-projekt-hero-img {
    position: absolute;
    inset: 0;
}

.ws-projekt-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-projekt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 30, 60, 0.85) 0%, rgba(0, 30, 60, 0.3) 100%);
}

.ws-projekt-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px 48px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.ws-projekt-hero-content h1 {
    color: var(--ws-white);
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.ws-projekt-hero-excerpt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin: 16px 0 0 0;
    line-height: 1.6;
    max-width: 700px;
}

/* Main Layout */
.ws-projekt-main {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* Sidebar / Steckbrief */
.ws-projekt-sidebar {
    flex: 0 0 320px;
}

.ws-projekt-steckbrief {
    background: var(--ws-white);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    padding: 28px;
    position: sticky;
    top: 100px;
}

.ws-projekt-steckbrief h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ws-primary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ws-primary);
}

.ws-projekt-steckbrief ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ws-projekt-steckbrief li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ws-border);
}

.ws-projekt-steckbrief li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ws-steckbrief-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ws-text-light);
}

.ws-steckbrief-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--ws-text);
}

.ws-steckbrief-value a {
    color: var(--ws-primary);
    text-decoration: none;
}

.ws-steckbrief-value a:hover {
    text-decoration: underline;
}

/* Content */
.ws-projekt-content {
    flex: 1;
    min-width: 0;
}

.ws-projekt-beschreibung {
    background: var(--ws-white);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    padding: 40px;
}

.ws-projekt-beschreibung h2,
.ws-projekt-beschreibung h3,
.ws-projekt-beschreibung h4 {
    color: var(--ws-primary);
    margin-top: 32px;
}

.ws-projekt-beschreibung h2:first-child,
.ws-projekt-beschreibung h3:first-child {
    margin-top: 0;
}

.ws-projekt-beschreibung p {
    color: var(--ws-text);
    font-size: 16px;
    line-height: 1.7;
}

.ws-projekt-beschreibung ul,
.ws-projekt-beschreibung ol {
    color: var(--ws-text);
    padding-left: 24px;
    line-height: 1.7;
}

/* Galerie */
.ws-projekt-galerie {
    margin-top: 40px;
}

.ws-projekt-galerie h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ws-primary);
    margin: 0 0 24px 0;
}

.ws-projekt-galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ws-galerie-item {
    position: relative;
    display: block;
    border-radius: var(--ws-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.ws-galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ws-transition);
}

.ws-galerie-item:hover img {
    transform: scale(1.05);
}

.ws-galerie-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 61, 122, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ws-transition);
    color: var(--ws-white);
}

.ws-galerie-item:hover .ws-galerie-item-overlay {
    opacity: 1;
}


/* Weitere Projekte */
.ws-projekt-weitere {
    background: var(--ws-white);
    padding: 60px 24px;
}

.ws-projekt-weitere-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ws-projekt-weitere h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ws-primary);
    margin: 0 0 32px 0;
    text-align: center;
}

.ws-projekt-weitere-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ws-projekt-preview-card {
    display: flex;
    flex-direction: column;
    background: var(--ws-bg);
    border-radius: var(--ws-radius);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--ws-transition);
    box-shadow: var(--ws-shadow);
}

.ws-projekt-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-hover);
}

.ws-preview-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ws-preview-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ws-transition);
}

.ws-projekt-preview-card:hover .ws-preview-card-img img {
    transform: scale(1.05);
}

.ws-preview-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ws-border);
    color: var(--ws-text-light);
}

.ws-preview-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-preview-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ws-primary);
    margin: 0;
    line-height: 1.3;
}

.ws-preview-card-standort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ws-text-light);
}

.ws-preview-card-body p {
    font-size: 14px;
    color: var(--ws-text-light);
    margin: 0;
    line-height: 1.5;
}

.ws-projekt-weitere-alle {
    text-align: center;
    margin-top: 40px;
}

.ws-projekt-alle-btn {
    display: inline-block;
    background: var(--ws-primary);
    color: var(--ws-white);
    padding: 12px 32px;
    border-radius: var(--ws-radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--ws-transition);
}

.ws-projekt-alle-btn:hover {
    background: var(--ws-primary-dark);
}


/* ========================================
   ARCHIV
   ======================================== */

.ws-projekte-archiv {
    background: var(--ws-bg);
}

/* Archiv Hero */
.ws-projekte-archiv-hero {
    background: var(--ws-primary);
    padding: 60px 24px 48px;
}

.ws-projekte-archiv-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ws-projekte-archiv-hero h1 {
    color: var(--ws-white);
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.ws-projekte-archiv-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
}

/* Filter */
.ws-projekte-filter {
    background: var(--ws-white);
    border-bottom: 1px solid var(--ws-border);
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ws-projekte-filter-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ws-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ws-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ws-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ws-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ws-filter-btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ws-text);
    background: var(--ws-bg);
    border: 1px solid var(--ws-border);
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--ws-transition);
    white-space: nowrap;
}

.ws-filter-btn:hover {
    border-color: var(--ws-primary);
    color: var(--ws-primary);
}

.ws-filter-btn.active {
    background: var(--ws-primary);
    color: var(--ws-white);
    border-color: var(--ws-primary);
}

/* Projekt-Grid */
.ws-projekte-grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.ws-projekte-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ws-projekt-archiv-card {
    display: flex;
    flex-direction: column;
    background: var(--ws-white);
    border-radius: var(--ws-radius);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--ws-transition);
    box-shadow: var(--ws-shadow);
}

.ws-projekt-archiv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-hover);
}

.ws-archiv-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ws-archiv-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ws-transition);
}

.ws-projekt-archiv-card:hover .ws-archiv-card-img img {
    transform: scale(1.05);
}

.ws-archiv-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ws-border);
    color: var(--ws-text-light);
}

.ws-archiv-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ws-archiv-card-badge {
    display: inline-block;
    background: var(--ws-primary);
    color: var(--ws-white);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ws-archiv-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.ws-archiv-card-body h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ws-primary);
    margin: 0;
    line-height: 1.3;
}

.ws-archiv-card-standort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ws-text-light);
}

.ws-archiv-card-body p {
    font-size: 14px;
    color: var(--ws-text-light);
    margin: 0;
    line-height: 1.5;
}

.ws-archiv-card-link {
    margin-top: auto;
    padding-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ws-primary);
    transition: color var(--ws-transition);
}

.ws-projekt-archiv-card:hover .ws-archiv-card-link {
    color: var(--ws-primary-light);
}

/* Keine Projekte */
.ws-projekte-keine {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: var(--ws-text-light);
}

.ws-projekte-keine h2 {
    font-size: 24px;
    color: var(--ws-text);
    margin: 24px 0 8px 0;
}

.ws-projekte-keine p {
    margin: 0 0 24px 0;
}

/* Pagination */
.ws-projekte-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.ws-page-link a,
.ws-page-link span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--ws-radius);
    text-decoration: none;
    transition: all var(--ws-transition);
}

.ws-page-link a {
    color: var(--ws-text);
    background: var(--ws-white);
    border: 1px solid var(--ws-border);
}

.ws-page-link a:hover {
    border-color: var(--ws-primary);
    color: var(--ws-primary);
}

.ws-page-link .current {
    background: var(--ws-primary);
    color: var(--ws-white);
    border: 1px solid var(--ws-primary);
}


/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .ws-projekt-hero-content h1 {
        font-size: 32px;
    }

    .ws-projekt-main {
        flex-direction: column;
    }

    .ws-projekt-sidebar {
        flex: none;
    }

    .ws-projekt-steckbrief {
        position: static;
    }

    .ws-projekt-factbar-inner {
        flex-wrap: wrap;
    }

    .ws-factbar-item {
        flex: 0 0 50%;
        border-bottom: 1px solid var(--ws-border);
    }

    .ws-factbar-item:nth-child(even) {
        border-right: none;
    }

    .ws-projekt-weitere-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ws-projekte-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ws-projekt-galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .ws-projekt-hero {
        min-height: 320px;
    }

    .ws-projekt-hero-content {
        padding: 40px 20px 32px;
    }

    .ws-projekt-hero-content h1 {
        font-size: 26px;
    }

    .ws-projekt-hero-excerpt {
        font-size: 15px;
    }

    .ws-projekt-factbar-inner {
        flex-direction: column;
    }

    .ws-factbar-item {
        flex: none;
        border-right: none;
    }

    .ws-projekt-main {
        padding: 24px 16px;
        gap: 24px;
    }

    .ws-projekt-beschreibung {
        padding: 24px;
    }

    .ws-projekt-galerie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ws-projekt-cta {
        padding: 48px 20px;
    }

    .ws-projekt-cta h2 {
        font-size: 22px;
    }

    .ws-projekt-weitere {
        padding: 40px 16px;
    }

    .ws-projekt-weitere-grid {
        grid-template-columns: 1fr;
    }

    .ws-projekte-archiv-hero {
        padding: 40px 16px 32px;
    }

    .ws-projekte-archiv-hero h1 {
        font-size: 28px;
    }

    .ws-projekte-filter-inner {
        flex-direction: column;
        gap: 12px;
    }

    .ws-filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ws-projekte-grid-wrap {
        padding: 24px 16px 48px;
    }

    .ws-projekte-grid {
        grid-template-columns: 1fr;
    }

    .ws-projekt-breadcrumb {
        font-size: 12px;
    }
}
