/* Components – additional component styles */

/* ========================================= */
/* PAGE HERO (fullscreen bg + glass card)    */
/* ========================================= */

.page-hero {
    position: relative;
    min-height: 85vh;
    padding: 0 var(--grid-gutter);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    transform: scale(1.02);
}

.page-hero__container {
    position: relative;
    z-index: 2;
    padding: 165px 0 64px;
    display: flex;
    justify-content: flex-start;
}

.page-hero__card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-width: 560px;
}

.page-hero__title {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--color-primary);
    line-height: 1.1;
    margin-top: 12px;
    margin-bottom: 20px;
}

.page-hero__text {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 12px;
}

.page-hero__text:last-of-type {
    margin-bottom: 0;
}

.page-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 70vh;
        align-items: flex-end;
    }

    .page-hero__container {
        padding: 120px 0 32px;
    }

    .page-hero__card {
        padding: 32px;
        max-width: 100%;
    }

}

@media (max-width: 1024px) {
    .page-hero__bg-image {
        object-position: right center;
    }

    .page-ueber-mich .page-hero__bg-image {
        object-position: 70% center;
    }
}

/* ========================================= */
/* SUBPAGE HERO (simple, for other pages)    */
/* ========================================= */

.subpage-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.subpage-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.subpage-hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.subpage-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.08) 100%
    );
}

.subpage-hero__container {
    position: relative;
    z-index: 1;
    padding: 160px 0 56px;
}

.subpage-hero__title {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--color-white);
    line-height: 1.1;
    margin-top: 12px;
    margin-bottom: 16px;
}

.subpage-hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    line-height: 1.5;
}

.subpage-hero .badge {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0;
}

/* No hero image: dark text on light background */
.subpage-hero:not(:has(.subpage-hero__bg)) {
    min-height: auto;
}

.subpage-hero:not(:has(.subpage-hero__bg)) .subpage-hero__container {
    max-width: 960px;
    padding: 200px var(--grid-gutter) 56px;
}

.subpage-hero:not(:has(.subpage-hero__bg)) .subpage-hero__title {
    color: var(--color-text);
}

.subpage-hero:not(:has(.subpage-hero__bg)) .subpage-hero__subtitle {
    color: var(--color-text-secondary);
}

.subpage-hero:not(:has(.subpage-hero__bg)) .badge {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 768px) {
    .subpage-hero {
        min-height: 320px;
    }

    .subpage-hero__container {
        padding: 120px 0 32px;
    }

    .subpage-hero:not(:has(.subpage-hero__bg)) .subpage-hero__container {
        padding: 150px var(--grid-gutter) 36px;
    }
}

/* ========================================= */
/* SECTION WITH BACKGROUND IMAGE             */
/* ========================================= */

.section-with-bg {
    position: relative;
    padding: 96px var(--grid-gutter);
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.section-with-bg__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-with-bg__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}


.section-with-bg--flipped .section-with-bg__image img {
    object-position: left center;
}

.section-with-bg__content {
    position: relative;
    z-index: 1;
    max-width: var(--grid-max-width);
    margin: 0 auto;
    max-width: 60%;
    margin-left: 0;
}

.section-with-bg--flipped .section-with-bg__content {
    margin-left: auto;
    margin-right: 0;
}

@media (max-width: 1024px) {
    .section-with-bg__content {
        max-width: 75%;
    }
}

@media (max-width: 768px) {
    .section-with-bg {
        padding: 64px var(--grid-gutter);
    }

    .section-with-bg__content {
        max-width: 100%;
    }

}

/* ========================================= */
/* SUBPAGE SECTIONS                          */
/* ========================================= */

.subpage-section {
    margin-bottom: 48px;
}

.subpage-section:last-child {
    margin-bottom: 0;
}

.subpage-section h2 {
    margin-bottom: 16px;
}

.subpage-section ul {
    list-style: none;
    padding: 0;
}

.subpage-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.subpage-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
}

.subpage-image {
    margin: 32px 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.subpage-image img {
    width: 100%;
    height: auto;
    display: block;
}

.subpage-image figcaption {
    font-size: 13px;
    color: #888;
    padding: 12px 0 0;
}

/* ========================================= */
/* CONTAINER NARROW                          */
/* ========================================= */

.container--narrow {
    max-width: 960px;
    margin: 0 auto;
}

/* ========================================= */
/* SUBPAGE CONTENT GRID (main + sidebar)     */
/* ========================================= */

.subpage-content-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.subpage-content-grid__main {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.subpage-content-grid__sidebar .content-highlight {
    margin: 0;
}

@media (max-width: 768px) {
    .subpage-content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ========================================= */
/* FEATURE CARDS (icon + title + text)       */
/* ========================================= */

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

.feature-cards--compact {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.feature-cards--compact .feature-card {
    grid-column: span 3;
}

.feature-cards--compact .feature-card:nth-child(3),
.feature-cards--compact .feature-card:nth-child(4),
.feature-cards--compact .feature-card:nth-child(5) {
    grid-column: span 2;
}

.feature-card {
    background: var(--color-white);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-medium);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-primary);
    margin-bottom: 8px;
}

.feature-card__text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.feature-cards--compact .feature-card {
    padding: 24px 20px;
    text-align: center;
}

.feature-cards--compact .feature-card__icon {
    margin: 0 auto 16px;
}

.feature-cards--compact .feature-card__title {
    font-size: 15px;
    margin-bottom: 4px;
}

.feature-cards--compact .feature-card__text {
    font-size: 13px;
}

@media (max-width: 768px) {
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-cards--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-cards--compact .feature-card,
    .feature-cards--compact .feature-card:nth-child(3),
    .feature-cards--compact .feature-card:nth-child(4),
    .feature-cards--compact .feature-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .feature-cards--compact {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* INFO BOX (sidebar callout, no border-left)*/
/* ========================================= */

.info-box {
    background: var(--color-white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
}

.section-with-bg .info-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.info-box__title {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-primary);
    margin-bottom: 12px;
}

.info-box p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* ========================================= */
/* TEXT COLUMNS                              */
/* ========================================= */

.text-columns {
    column-count: 2;
    column-gap: 48px;
    margin-top: 24px;
}

.text-columns p {
    break-inside: avoid;
}

@media (max-width: 768px) {
    .text-columns {
        column-count: 1;
    }
}

/* ========================================= */
/* SERVICES LIST (linked items)              */
/* ========================================= */

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    margin-bottom: 48px;
}

.services-list__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 99px;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

a.services-list__item:hover {
    background-color: var(--color-primary-light);
    color: var(--color-white);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-soft);
}

a.services-list__item:hover svg {
    stroke: var(--color-white);
}

.services-list__item svg {
    color: var(--color-primary-light);
    flex-shrink: 0;
}

/* ========================================= */
/* CTA BANNER                                */
/* ========================================= */

.cta-banner {
    text-align: center;
}

/* ========================================= */
/* UTILITY: text-center, mb-4, mb-8          */
/* ========================================= */

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

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

/* ========================================= */
/* 404 ERROR PAGE                            */
/* ========================================= */

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0 96px;
    background-color: var(--color-bg);
}

.error-page__inner {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.error-page__code {
    font-family: var(--font-heading);
    font-size: clamp(100px, 15vw, 180px);
    font-weight: 400;
    line-height: 1;
    color: var(--color-bg-alt);
    margin-bottom: 8px;
}

.error-page__title {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 16px;
}

.error-page__message {
    color: #666;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 40px;
}
