/* Tooltec Modern Page Header - Compact Light Design with Illustrations */

/* Fix ScrollSmoother footer cutoff issue */
#smooth-wrapper {
    overflow: visible !important;
}

#smooth-content {
    overflow: visible !important;
}

/* Only add padding-bottom when page-header is present (avoids gap on pages without it) */
#smooth-content:has(.page-header) {
    padding-bottom: 80px !important;
}

/* Ensure footer is always visible and not cut off */
.main-footer {
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
    margin-bottom: 0 !important;
}

/* Ensure main-footer__bottom is visible on all screen sizes */
.main-footer__bottom {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.main-footer__copyright {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.main-footer__social {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force reset of all position offsets - override tooltec.css with maximum specificity */
/* Header starts directly under main-header navigation */
.page-header.page-header--modern,
section.page-header.page-header--modern,
.page-wrapper .page-header.page-header--modern,
.page-wrapper #smooth-wrapper #smooth-content .page-header.page-header--modern,
#smooth-wrapper .page-header.page-header--modern,
#smooth-content .page-header.page-header--modern,
#smooth-content section.page-header.page-header--modern,
body .page-wrapper #smooth-wrapper #smooth-content section.page-header.page-header--modern {
    position: relative !important;
    top: 0 !important;
    margin-top: 80px !important;
    margin-bottom: 0 !important;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
    z-index: 1 !important;
}

/* Override tooltec.css media query breakpoints specifically */
@media (max-width: 1399px) {
    .page-header.page-header--modern {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }
}

@media (max-width: 1199px) {
    .page-header.page-header--modern {
        top: 0 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 767px) {
    .page-header.page-header--modern {
        display: none !important;
    }

    /* Remove extra top padding on first section after hidden page header */
    .page-header--modern + section {
        padding-top: 15px !important;
        margin-top: 0 !important;
    }
}

/* Header - 40% of viewport */
.page-header.page-header--modern {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 50%, #e8edf5 100%);
    max-height: 40vh;
    min-height: 180px;
    overflow: hidden;
}

.page-header--modern .page-header__bg {
    display: none;
}

/* Container layout for content and illustration */
.page-header--modern .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

/* Decorative shapes */
.page-header__shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.page-header__shape {
    position: absolute;
}

.page-header__shape--1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, rgba(191, 36, 114, 0.1), transparent);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    filter: blur(50px);
}

.page-header__shape--2 {
    width: 300px;
    height: 300px;
    background: rgba(191, 36, 114, 0.06);
    border-radius: 50%;
    bottom: -120px;
    left: -80px;
    filter: blur(60px);
}

.page-header__shape--3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(191, 36, 114, 0.15);
    border-radius: 50%;
    top: 15%;
    left: 8%;
    opacity: 0.7;
}

.page-header__shape--4 {
    width: 50px;
    height: 50px;
    background: rgba(191, 36, 114, 0.1);
    border-radius: 10px;
    top: 60%;
    left: 15%;
    transform: rotate(45deg);
}

.page-header__shape--5 {
    width: 70px;
    height: 70px;
    border: 2px solid rgba(191, 36, 114, 0.12);
    border-radius: 50%;
    bottom: 20%;
    right: 20%;
}

.page-header__shape--6 {
    width: 35px;
    height: 35px;
    background: rgba(191, 36, 114, 0.08);
    border-radius: 50%;
    top: 25%;
    right: 25%;
}

/* Zusätzliche Shapes für breitere Monitore - Mitte füllen */
.page-header__shape--7 {
    width: 80px;
    height: 80px;
    border: 1.5px solid rgba(191, 36, 114, 0.1);
    border-radius: 50%;
    top: 20%;
    left: 42%;
    animation: floatShape 8s ease-in-out infinite;
}

.page-header__shape--8 {
    width: 12px;
    height: 12px;
    background: rgba(191, 36, 114, 0.15);
    border-radius: 50%;
    top: 35%;
    left: 38%;
    animation: pulseShape 4s ease-in-out infinite;
}

.page-header__shape--9 {
    width: 45px;
    height: 45px;
    border: 1.5px solid rgba(191, 36, 114, 0.08);
    border-radius: 8px;
    top: 55%;
    left: 48%;
    transform: rotate(15deg);
    animation: floatShape 10s ease-in-out infinite reverse;
}

.page-header__shape--10 {
    width: 18px;
    height: 18px;
    background: rgba(191, 36, 114, 0.12);
    border-radius: 50%;
    top: 70%;
    left: 35%;
    animation: pulseShape 5s ease-in-out infinite 1s;
}

.page-header__shape--11 {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(191, 36, 114, 0.06);
    border-radius: 50%;
    top: 45%;
    left: 55%;
    animation: floatShape 12s ease-in-out infinite 2s;
}

.page-header__shape--12 {
    width: 8px;
    height: 8px;
    background: rgba(191, 36, 114, 0.2);
    border-radius: 50%;
    top: 25%;
    left: 52%;
    animation: pulseShape 3s ease-in-out infinite 0.5s;
}

.page-header__shape--13 {
    width: 60px;
    height: 60px;
    border: 1px dashed rgba(191, 36, 114, 0.1);
    border-radius: 50%;
    top: 60%;
    left: 45%;
    animation: rotateShape 20s linear infinite;
}

.page-header__shape--14 {
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, rgba(191, 36, 114, 0.08), transparent);
    border-radius: 6px;
    top: 30%;
    left: 58%;
    transform: rotate(-10deg);
    animation: floatShape 7s ease-in-out infinite 1.5s;
}

.page-header__shape--15 {
    width: 6px;
    height: 6px;
    background: rgba(191, 36, 114, 0.18);
    border-radius: 50%;
    top: 50%;
    left: 40%;
    animation: pulseShape 4s ease-in-out infinite 2s;
}

.page-header__shape--16 {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(191, 36, 114, 0.1), transparent);
    top: 40%;
    left: 50%;
    transform: rotate(-5deg);
}

.page-header__shape--17 {
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(191, 36, 114, 0.08), transparent);
    top: 55%;
    left: 38%;
}

.page-header__shape--18 {
    width: 15px;
    height: 15px;
    border: 1px solid rgba(191, 36, 114, 0.12);
    border-radius: 3px;
    top: 75%;
    left: 52%;
    transform: rotate(45deg);
    animation: floatShape 9s ease-in-out infinite 3s;
}

/* Animationen für die Shapes */
@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-10px) rotate(var(--rotation, 0deg));
    }
}

@keyframes pulseShape {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes rotateShape {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive - Zusätzliche Shapes nur auf größeren Bildschirmen */
@media (max-width: 1199px) {
    .page-header__shape--7,
    .page-header__shape--8,
    .page-header__shape--9,
    .page-header__shape--10,
    .page-header__shape--11,
    .page-header__shape--12,
    .page-header__shape--13,
    .page-header__shape--14,
    .page-header__shape--15,
    .page-header__shape--16,
    .page-header__shape--17,
    .page-header__shape--18 {
        display: none;
    }
}

/* Dot pattern overlay */
.page-header__grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(191, 36, 114, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

/* Accent line at bottom */
.page-header__accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #bf2472 50%, transparent 100%);
    z-index: 3;
}

/* Content styling - compact */
.page-header--modern .page-header__content {
    position: relative;
    z-index: 2;
    flex: 0 0 60%;
    max-width: 60%;
    padding: 5px 0;
}

.page-header--modern .page-header__title {
    color: #1a1a2e;
    text-shadow: none;
    font-size: 3rem !important;
    margin-bottom: 14px !important;
    line-height: 1.2 !important;
}

.page-header--modern .tooltec-breadcrumb {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.page-header--modern .tooltec-breadcrumb li,
.page-header--modern .tooltec-breadcrumb li span,
.page-header--modern .tooltec-breadcrumb li a {
    color: #555;
    font-size: 1.15rem;
}

.page-header--modern .tooltec-breadcrumb li a:hover {
    color: #bf2472;
}

.page-header--modern .tooltec-breadcrumb li::before {
    color: #888;
}

/* Illustration container - compact */
.page-header__illustration {
    position: relative;
    z-index: 2;
    flex: 0 0 35%;
    max-width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.page-header__illustration svg,
.page-header__illustration img {
    max-width: 100%;
    max-height: calc(40vh - 50px);
    height: auto;
    width: auto;
    filter: drop-shadow(0 8px 20px rgba(191, 36, 114, 0.15));
    animation: floatIllustration 6s ease-in-out infinite;
}

@keyframes floatIllustration {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .page-header.page-header--modern,
    section.page-header.page-header--modern,
    #smooth-content .page-header.page-header--modern {
        max-height: 35vh;
        min-height: 160px;
        top: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    .page-header--modern .page-header__content {
        flex: 0 0 60%;
        max-width: 60%;
    }

    .page-header__illustration {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .page-header--modern .page-header__title {
        font-size: 2.6rem !important;
    }

    .page-header__illustration svg,
    .page-header__illustration img {
        max-height: calc(35vh - 40px);
    }
}

@media (max-width: 991px) {
    .page-header.page-header--modern,
    section.page-header.page-header--modern,
    #smooth-content .page-header.page-header--modern,
    body .page-wrapper #smooth-wrapper #smooth-content section.page-header.page-header--modern {
        max-height: 30vh;
        min-height: 140px;
        top: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    .page-header--modern .container {
        flex-direction: row;
        text-align: left;
    }

    .page-header--modern .page-header__content {
        flex: 0 0 65%;
        max-width: 65%;
    }

    .page-header__illustration {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .page-header--modern .page-header__title {
        font-size: 2.2rem !important;
    }

    .page-header__illustration svg,
    .page-header__illustration img {
        max-height: calc(30vh - 40px);
    }

    .page-header--modern .tooltec-breadcrumb li,
    .page-header--modern .tooltec-breadcrumb li span,
    .page-header--modern .tooltec-breadcrumb li a {
        font-size: 1.05rem;
    }

    /* Hide some shapes on tablets */
    .page-header__shape--3,
    .page-header__shape--4,
    .page-header__shape--5,
    .page-header__shape--6 {
        display: none;
    }
}

@media (max-width: 767px) {
    .page-header.page-header--modern,
    section.page-header.page-header--modern,
    #smooth-content .page-header.page-header--modern,
    body .page-wrapper #smooth-wrapper #smooth-content section.page-header.page-header--modern {
        display: none !important;
    }
}

