/* --- Global Info: these rules are ONLY loaded by the subpages. --- */
:root {
    --border-color: #E2E8F0;
}

body {
    background-color: var(--off-white);
}

.subpage-hero {
    padding: 110px 0 70px;
    background: linear-gradient(135deg, var(--petrol-dark), var(--petrol));
    color: white;
    text-align: center;
}

.subpage-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.subpage-hero .breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.subpage-hero .breadcrumb a {
    color: white;
}

.subpage-hero .breadcrumb a:hover {
    text-decoration: underline;
}

.subpage-hero h1 {
    font-size: 3.2rem;
    color: white;
    margin-bottom: 20px;
}

.subpage-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Hero with background image (Infrastrukturelles GM) */
.hero-infrastrukturelles {
    background-image: linear-gradient(135deg, rgba(0, 60, 72, 0.85), rgba(0, 80, 95, 0.75)), url("images/leistungen/Infrastrukturelles Gebäudemanagement.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-reinigung {
    background-image: linear-gradient(135deg, rgba(0, 60, 72, 0.85), rgba(0, 80, 95, 0.75)), url("images/leistungen/Infrastrukturelles Gebäudemanagement.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero with background image (Technisches GM) */
.hero-technisches {
    background-image: linear-gradient(135deg, rgba(0, 60, 72, 0.85), rgba(0, 80, 95, 0.75)), url("images/leistungen/Technisches Gebäudemanagement.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero with background image (Hausmeister & Objektservice) */
.hero-hausmeister {
    background-image: linear-gradient(135deg, rgba(0, 60, 72, 0.85), rgba(0, 80, 95, 0.75)), url("images/leistungen/Hausmeister- & Objektservice.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero with background image (Sonder- & Projektleistungen) */
.hero-sonder {
    background-image: linear-gradient(135deg, rgba(0, 60, 72, 0.85), rgba(0, 80, 95, 0.75)), url("images/leistungen/Sonder- & Projektleistungen.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-aussenanlagen {
    background-image: linear-gradient(135deg, rgba(0, 60, 72, 0.85), rgba(0, 80, 95, 0.75)), url("images/leistungen/Außenanlagen & Saisonservice.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-sanierung {
    background-image: linear-gradient(135deg, rgba(0, 60, 72, 0.85), rgba(0, 80, 95, 0.75)), url("images/leistungen/Sanierung & Innenausbau.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optional: Different gradient for Karriere */
.karriere-hero {
    background: linear-gradient(135deg, var(--green-light), var(--green));
}

.karriere-hero h1 {
    font-size: 3rem;
}

/* ─── Stats Bar (Referenzen) ─── */
.stats-bar {
    background: white;
    border-bottom: 1px solid var(--light-gray);
    padding: 30px 0;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-num {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--petrol);
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 5px;
}

/* ─── Filter Section (Referenzen, Blog) ─── */
.ref-section {
    padding: 80px 0;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--light-gray);
    background: white;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--petrol);
    color: white;
    border-color: var(--petrol);
}

/* ─── Grid Systems ─── */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.ref-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.ref-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.ref-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: rgba(255, 255, 255, 0.4);
    overflow: hidden;
    background: var(--petrol);
}

.ref-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ref-img svg {
    width: 48px;
    height: 48px;
}

.ref-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ref-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ref-client {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.ref-location {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.ref-location svg {
    width: 16px;
    height: 16px;
}

.ref-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.ref-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ref-tags span {
    background: var(--off-white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text);
}

/* ─── Partners Section ─── */
.partners-section {
    padding: 80px 0;
    background: var(--off-white);
}

.partners-section .section-header {
    margin-bottom: 40px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.partner-logo {
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
}

/* ─── Benefits Section (Karriere) ─── */
.benefits-section {
    padding: 80px 0;
    background: var(--off-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ─── Jobs Section (Karriere) ─── */
.jobs-section {
    padding: 80px 0;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.job-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    padding: 40px;
    transition: all 0.3s;
}

.job-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.job-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.job-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-icon svg {
    width: 30px;
    height: 30px;
}

.job-title-wrap h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.job-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.job-tag {
    background: var(--off-white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job-tag.urgent {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
}

.job-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.job-section h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--petrol);
}

.job-section ul {
    list-style: none;
}

.job-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}

.job-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--petrol);
    font-weight: bold;
}

.job-apply {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--off-white);
    padding: 24px;
    border-radius: var(--radius);
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--petrol);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-apply:hover {
    background: var(--petrol-light);
    transform: translateY(-2px);
    color: white;
}

.apply-hint {
    font-size: 0.9rem;
    color: var(--text-light);
}

.initiative-box {
    background: linear-gradient(135deg, var(--petrol-dark), var(--petrol));
    color: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 40px;
}

.initiative-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.initiative-icon svg {
    width: 36px;
    height: 36px;
}

.initiative-box h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.initiative-box p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.initiative-link {
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.initiative-link:hover {
    border-color: white;
}

/* ─── Team Section ─── */
.team-section {
    padding: 80px 0;
    background: white;
}

.team-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-card {
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.founder-photo-wrap {
    margin-bottom: 25px;
}

.founder-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    background: var(--petrol);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.photo-placeholder svg {
    width: 48px;
    height: 48px;
}

.founder-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.founder-details h3 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.founder-title {
    font-weight: 600;
    color: var(--petrol);
    margin-bottom: 8px;
}

.founder-degree {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-style: italic;
}

.founder-details .founder-degree:only-of-type {
    margin-bottom: 20px;
}

.founder-degree-tuv {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: normal;
    line-height: 1.45;
}

.founder-details p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text);
    flex: 0 1 auto;
}

.founder-details p:last-of-type {
    margin-bottom: 24px;
    flex: 1;
}

.founder-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.founder-tags span {
    padding: 6px 14px;
    background: var(--off-white);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 500;
}

/* ─── Team Areas ─── */
.team-areas {
    padding: 80px 0;
    background: var(--off-white);
}

.team-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.team-area-card {
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-area-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.team-area-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-area-icon svg {
    width: 32px;
    height: 32px;
}

.team-area-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.team-area-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
    flex: 1;
}

.team-stat {
    font-weight: 600;
    color: var(--petrol);
    font-size: 0.95rem;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

/* ─── Values Section ─── */
.values-section {
    padding: 100px 0;
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.values-content h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.values-content>p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.value-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.value-item {
    display: flex;
    gap: 20px;
}

.value-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.value-item strong {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.values-cta-card {
    background: var(--off-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    text-align: center;
}

.values-cta-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.values-cta-card p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.6;
}

.values-cta-card .btn-primary {
    display: inline-flex;
}

/* ─── Blog Section ─── */
.blog-section {
    padding: 80px 0;
    background: white;
}

.blog-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.blog-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--light-gray);
    background: white;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--text);
}

.blog-tab.active,
.blog-tab:hover {
    background: var(--petrol);
    color: white;
    border-color: var(--petrol);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: rgba(255, 255, 255, 0.4);
    overflow: hidden;
    background: var(--petrol);
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-img svg {
    width: 54px;
    height: 54px;
}

.blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-badge.news {
    background: var(--petrol);
}

.blog-badge.ratgeber {
    background: var(--green);
}

.blog-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    line-height: 1.4;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

.blog-card-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 25px;
    flex: 1;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
    margin-top: auto;
}

.blog-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.blog-author span {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
}

/* ─── Externe News Section ─── */
.extern-section {
    margin-top: 20px;
}

.extern-info-box {
    background: rgba(18, 75, 101, 0.05);
    border: 1px solid rgba(18, 75, 101, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    gap: 24px;
    margin-bottom: 35px;
    align-items: flex-start;
}

.extern-info-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--petrol);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.extern-info-icon svg {
    width: 24px;
    height: 24px;
}

.extern-info-box h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    color: var(--petrol);
    margin-bottom: 10px;
}

.extern-info-box p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

.grid-nav-wrapper {
    position: relative;
    width: 100%;
}

.grid-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
    color: var(--petrol);
    transition: all 0.3s ease;
}

.grid-nav-btn:hover {
    background: var(--petrol);
    color: white;
    border-color: var(--petrol);
    transform: translateY(-50%) scale(1.05);
}

.grid-nav-btn.prev {
    left: -20px;
}

.grid-nav-btn.next {
    right: -20px;
}

@media (max-width: 768px) {
    .grid-nav-btn {
        display: none;
        /* Hide on mobile where swipe is natural */
    }
}

.extern-grid {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 10px 0 24px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.extern-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for a cleaner swipe UI */
}

.extern-grid {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.extern-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    min-width: 350px;
    max-width: 350px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.extern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--petrol), var(--green-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.extern-card:hover {
    border-color: transparent;
    box-shadow: 0 15px 35px rgba(18, 75, 101, 0.12);
    transform: translateY(-5px);
}

.extern-card:hover::before {
    opacity: 1;
}

.extern-source {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.extern-source-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.extern-card h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.5;
}

.extern-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
    flex: 1;
}

.extern-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--petrol);
    margin-top: auto;
}

.extern-link:hover {
    gap: 10px;
}

/* ─── Newsletter CTA ─── */
.newsletter-section {
    padding: 80px 0;
    background: var(--off-white);
}

.newsletter-box {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    padding: 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.newsletter-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.6;
}

.newsletter-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


/* ─── Responsive Adjustments ─── */
@media (max-width: 768px) {
    .subpage-hero {
        padding: 90px 0 50px;
    }

    .subpage-hero h1 {
        font-size: 2.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }

    .karriere-hero h1 {
        font-size: 2.2rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 30px;
    }

    .ref-grid {
        grid-template-columns: 1fr;
    }

    .job-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-apply {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .founders-grid {
        grid-template-columns: 1fr;
    }

    .team-areas-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .extern-info-box {
        flex-direction: column;
    }

    .initiative-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }

    .newsletter-box {
        padding: 40px 20px;
    }
}

/* ─── Service Details (Gebäudeservice) ─── */
.service-details-section {
    padding: 80px 0;
    background: var(--off-white);
}

.service-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-details-content h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: var(--dark);
}

.service-details-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
}

.service-highlight-box {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--petrol);
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

.service-highlight-box h3 {
    font-size: 1.3rem;
    color: var(--petrol);
    margin-bottom: 12px;
}

.custom-checkmark-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-checkmark-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 500;
}

.custom-checkmark-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.custom-checkmark-list li svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .service-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Modal Overlay */
.blog-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.blog-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.blog-modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    -webkit-overflow-scrolling: touch;
}

.blog-modal-overlay.active .blog-modal-content {
    transform: translateY(0);
}

.blog-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
    z-index: 10;
}

.blog-modal-close:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.blog-modal-header h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.3;
    padding-right: 40px;
    /* Space for close button */
}

.blog-modal-header .blog-meta,
.blog-modal-header .blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.blog-modal-header .blog-author {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--light-gray);
}

.blog-modal-header .blog-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-modal-body h4 {
    font-size: 1.25rem;
    color: var(--petrol);
    margin: 30px 0 15px;
    font-family: 'DM Sans', sans-serif;
}

.blog-modal-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
}

.blog-modal-body ul,
.blog-modal-body ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.blog-modal-body li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 10px;
}

.blog-modal-body strong {
    color: var(--dark);
}

@media (max-width: 768px) {
    .blog-modal-content {
        padding: 24px;
        padding-top: 50px;
    }

    .blog-modal-close {
        top: 15px;
        right: 15px;
    }

    .blog-modal-header h2 {
        font-size: 1.8rem;
        padding-right: 0;
    }
}

/* ==========================================================================
   FAQ Section Styles
   ========================================================================== */
.faq-section {
    padding: 80px 0;
    background-color: var(--off-white);
    min-height: 60vh;
}

/* Search Bar */
.faq-search-wrapper {
    max-width: 800px;
    margin: 0 auto 40px auto;
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 20px 20px 20px 60px;
    border-radius: 50px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: white;
    font-size: 1.1rem;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--petrol);
    box-shadow: 0 15px 40px rgba(13, 60, 97, 0.1);
}

.faq-search-wrapper .search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--petrol);
    font-size: 1.2rem;
}

/* Category Filters */
.faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-filter-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: white;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-filter-btn:hover {
    border-color: var(--petrol);
    color: var(--petrol);
}

.faq-filter-btn.active {
    background: var(--petrol);
    color: white;
    border-color: var(--petrol);
    box-shadow: 0 4px 15px rgba(13, 60, 97, 0.2);
}

/* Accordion Layout */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.faq-item.active {
    border-left: 4px solid var(--green);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 25px 30px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.faq-item.active .faq-question {
    color: var(--petrol);
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--off-white);
    color: var(--petrol);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    background: var(--petrol);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* arbitrary large value for smooth expanding */
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* No Results State */
.faq-no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
    border: 1px dashed var(--light-gray);
    color: var(--text-light);
}

.faq-no-results i {
    font-size: 2.5rem;
    color: var(--border-color, #e2e8f0);
    margin-bottom: 15px;
}

.faq-no-results h4 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
        font-size: 1.05rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }

    .faq-search-input {
        font-size: 1rem;
        padding: 15px 15px 15px 50px;
    }

    .faq-search-wrapper .search-icon {
        left: 20px;
    }
}

/* FAQ Group Titles */
.faq-category-group {
    margin-bottom: 25px;
}

.faq-group-title {
    font-size: 1.4rem;
    color: var(--petrol);
    margin-top: 20px;
    margin-bottom: 15px;
    padding-left: 5px;
    font-family: 'DM Sans', sans-serif;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    display: inline-block;
    padding-bottom: 5px;
}

/* ─── Legal Pages (Impressum, Datenschutz) ─── */
.legal-page {
    padding: 120px 0 80px;
    min-height: 60vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
}

.legal-content h1 {
    font-size: 2.4rem;
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
    font-family: 'DM Sans', sans-serif;
}

.legal-content p,
.legal-content li {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.8;
}

.legal-content a {
    color: var(--petrol);
    text-decoration: underline;
}

/* ─── Blog Article Styles ─── */
.blog-article-section {
    padding: 80px 0;
    background: white;
}

.blog-article-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* Hero title override for blog articles */
.subpage-hero h1.blog-hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
}

/* Breadcrumb parent link (no underline, muted) */
.breadcrumb a.breadcrumb-parent {
    color: var(--text);
    text-decoration: none;
}

.breadcrumb a.breadcrumb-parent:hover {
    text-decoration: underline;
}

/* Meta info line */
.blog-article-meta {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.blog-article-meta-text {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-article-meta-text i {
    margin-right: 4px;
}

/* Article content typography */
.blog-article-content {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-article-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.blog-article-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--petrol);
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-top: 8px;
    margin-bottom: 24px;
    padding-left: 0;
    list-style: none;
}

.blog-article-content ul li,
.blog-article-content ol li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--text);
}

.blog-article-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--petrol);
}

.blog-article-content ol {
    counter-reset: article-counter;
}

.blog-article-content ol li {
    counter-increment: article-counter;
}

.blog-article-content ol li::before {
    content: counter(article-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--petrol);
    font-size: 0.95rem;
}

.blog-article-content strong {
    color: var(--dark);
    font-weight: 600;
}

/* Back button in footer */
.blog-article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.blog-back-btn {
    display: inline-flex;
    width: auto;
}

.blog-back-btn i {
    margin-right: 10px;
}

/* Responsive blog article */
@media (max-width: 768px) {
    .blog-article-container {
        padding: 24px;
    }

    .blog-article-content h2 {
        font-size: 1.3rem;
        margin-top: 32px;
    }

    .blog-article-content h3 {
        font-size: 1.1rem;
        margin-top: 24px;
    }

    .subpage-hero h1.blog-hero-title {
        font-size: 1.6rem;
    }
}