@import url("../../components/globals/base.css");
@import url("../../components/navbar/navbar.css");
@import url("../../components/globals/content.css");
@import url("../../components/footer/footer.css");
@import url("../../components/cookie/cookie.css");


.hero {
    overflow: visible !important;
    position: relative;
    min-height: 100vh;
    margin-top: -118px;
}

.hero .container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding-bottom: 60px;
    min-height: 100vh;
}

.hero-side {
    align-self: flex-end;
    position: relative;
    z-index: 10;
}

.hero-figure {
    overflow: visible !important;
    width: 100% !important;
}

.hero-figure img {
    height: calc(100vh - 40px) !important;
    width: auto !important;
    max-height: none !important;
    object-fit: contain;
    object-position: bottom right;
    margin-bottom: -40px;
}

@media (max-width: 1440px) {
    .hero-figure img {
        height: min(750px, 90vh) !important;
        margin-bottom: -35px;
    }
}

@media (max-width: 1200px) {
    .hero-figure img {
        height: min(650px, 85vh) !important;
        margin-bottom: -30px;
    }
}

.hero-grid,
.hero-text,
.hero-text > div:not(.hero-actions) {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
}

.hero-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    margin-top: 24px !important;
    flex-wrap: wrap;
}

@media (min-width: 769px) {
    .hero-text {
        padding-left: 150px;
    }
}


.hero h1 {
    margin-bottom: 10px !important;
    width: 100%;
    max-width: none;
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-weight: 700;
    color: var(--gold);
}

.hero h1 .hero-brand-pars {
    font-weight: 900 !important;
}

.hero h1 .brand-text__p {
    color: var(--gold) !important;
}



.hero h3 {
    font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

@media (max-width: 980px) {
    .hero {
        margin-top: -100px;
    }
    .hero-figure img {
        height: min(550px, 80vh) !important;
        margin-bottom: -25px;
    }
}

@media (max-width: 800px) {
    .hero-side {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: -80px;
        min-height: 100svh;
    }
    .hero .container {
        padding-bottom: 30px;
        min-height: 100svh;
    }
    .hero-figure img {
        height: auto !important;
        max-height: 400px !important;
        margin-bottom: 0;
        object-position: center;
    }
    .hero-side {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

.hero-stats {
    margin-top: 20px !important;
    position: relative !important;
    z-index: 100 !important;
}

.hero-stats .container {
    padding: 0 20px !important;
}

@media (min-width: 980px) {
    .hero-stats .container {
        padding: 0 150px !important;
        max-width: none !important;
        width: 100% !important;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.stats-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px 24px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-rgb), 0.4);
}

.stats-card__blur {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    filter: blur(40px);
    opacity: 0.3;
    z-index: 1;
    border-radius: 50%;
}

.stats-card:nth-child(2) .stats-card__blur {
    background: var(--gold);
    top: auto;
    bottom: -20px;
    left: auto;
    right: -20px;
}

.stats-card:nth-child(3) .stats-card__blur {
    background: var(--gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    opacity: 0.15;
}

.stats-card__content {
    position: relative;
    z-index: 2;
}

.stats-card__value {
    font-size: clamp(2.4rem, 3.5vw, 3.2rem);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.2);
}

.stats-card__label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 980px) {
    .stats-grid {
        gap: 16px;
    }
    .stats-card {
        padding: 24px 16px;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        margin-top: 20px !important;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .stats-card {
        padding: 12px 4px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 4px;
        min-height: 80px;
        border-radius: 12px;
    }
    .stats-card__value {
        margin-bottom: 2px;
        min-width: 0;
        font-size: 1.4rem;
    }
    .stats-card__label {
        font-size: 0.75rem;
        word-break: break-word;
    }
}


/* -- ↓ ↓ ↓ Interactive Glowing Grid Cards Styles ↓ ↓ ↓ -- */

#cards, #referenz-cards, #service-cards {
    display: flex;
    flex-wrap: wrap !important;
    gap: 12px;
    width: 100%;
    margin: 40px auto;
    justify-content: center;
    max-width: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    overflow-x: hidden;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    #cards, #referenz-cards, #service-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 20px 10px;
    }

    .card {
        flex: none !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 100px !important;
    }
}

@media (min-width: 980px) {
    #cards, #referenz-cards, #service-cards {
        padding: 30px 50px 20px 50px;
        flex-wrap: wrap !important;
        justify-content: center;
        overflow-x: visible;
    }
}

.leistungen-cards .card {
    height: 220px !important;
    flex: 0 0 220px !important;
    max-width: 220px !important;
    min-width: 220px !important;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.leistungen-cards .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    height: 100%;
    width: 100%;
}

.leistungen-cards .card-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    margin-bottom: 0;
    z-index: 1;
}

.leistungen-cards .card-image img {
    height: 100%;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.6);
    transition: all 0.5s ease;
}

.leistungen-cards .card:hover .card-image img {
    opacity: 1;
    filter: brightness(0.8);
    transform: scale(1.1);
}

.leistungen-cards h3 {
    font-size: 1.05rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 5px 10px;
    width: 95%;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    hyphens: auto;
}

.card {
    --mouse-x: 0px;
    --mouse-y: 0px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    height: 120px;
    flex-direction: column;
    position: relative;
    flex: 0 0 160px;
    max-width: 160px;
    min-width: 120px;
}

.card::before,
.card::after {
    border-radius: inherit;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: opacity 500ms;
    width: 100%;
    opacity: 0;
}

.card:hover::before {
    opacity: 1;
}

.card::before {
    background: radial-gradient(
            800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            rgba(255, 255, 255, 0.06),
            transparent 40%
    );
    z-index: 3;
}

.card::after {
    background: radial-gradient(
            600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            rgba(255, 255, 255, 0.4),
            transparent 40%
    );
    z-index: 1;
}

.card > .card-content {
    background-color: var(--card-color);
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    inset: 1px;
    padding: 4px;
    position: absolute;
    z-index: 2;
    overflow: hidden;
}

.card-image {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

.card-image img {
    width: auto;
    height: 80%;
    max-width: 80%;
    object-fit: contain;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: brightness(0.2);
    content-visibility: auto;
}

.card:hover .card-image img {
    opacity: 1;
    filter: brightness(1);
}

@media(max-width: 1200px) {
    #cards .card, #referenz-cards .card {
        flex: 0 0 160px;
        max-width: 160px;
        min-width: 140px;
    }
}

@media(max-width: 900px) {
    #cards .card, #referenz-cards .card {
        flex: 0 0 140px;
        max-width: 140px;
        height: 140px;
        min-width: 120px;
    }
    .card-image {
        height: 80px;
    }
}

@media(max-width: 480px) {
    #cards .card, #referenz-cards .card {
        flex: 0 0 130px;
        max-width: 130px;
    }
}