/* barlow-300 - latin */
@font-face {
    font-display: swap;
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 300;
    src: url('barlow-v12-latin-300.woff2') format('woff2');
}
/* barlow-600 - latin */
@font-face {
    font-display: swap;
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 600;
    src: url('barlow-v12-latin-600.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    font-size: 18px;
    line-height: 170%;
}


/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.00) 37.28%), url('Porsche-Header-Zeitwerk.webp') lightgray 0px -150.759px / 100% 115.714% no-repeat;
    background-size: cover;
    background-position: 50% 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    color: white;
}

.hero-content {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.logo-container {
    opacity: 0;
    animation: fadeInLogo 1.5s ease-in-out 0.1s forwards;
}

.logo-svg {
    width: 480px;
    height: auto;
}

.hero-bottom {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: 35px;
    font-weight: 600;
    letter-spacing: 1.25rem;
    opacity: 0;
    animation: expandLetterSpacing 2s ease-in-out 1.2s forwards;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 0.1rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInSubtitle 0.8s ease-in-out 2s forwards;
}

/* Content Section */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.intro-container {
    display: flex;
    justify-content: space-between;
    margin: 150px 0;
    font-size: 20px;
}

.intro-text {
    line-height: 200%;
    text-align: right;
    width: 55%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.intro-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-section {
    width: 35%;
    align-self: center;
}

.contact-text {
    margin-bottom: 1rem;
}

.phone-number {
    font-size: 40px;
    font-weight: 600;
    a {
    color: #000;
    text-decoration: none;
    }
}

.content-row {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.content-left {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.service-block {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.service-block.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-title {
    font-size: 18px;
    font-weight: 600;
}

.content-right {
    flex: 1;
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    margin-right: calc(-50vw + 700px);
}

.content-right-img {
    background: url("Porsche-interior-side.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    min-height: 400px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease-out;
}

.content-right-img.animate {
    opacity: 1;
    transform: translateX(0);
}

.bottom-section {
    margin: 170px 0;
}

.bottom-content {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.bottom-content p {
    margin-bottom: 1rem;
}

.bottom-title {
    font-size: 40px;
    margin-bottom: 2rem;
    line-height: 120%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.bottom-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.bottom-text {
    font-size: 24px;
    margin-bottom: 2rem;
}

.container {
    max-width: 1400px;
    padding: 0 1rem;
    margin: 0 auto;
}

header .logo {
    padding: 1rem 0 4rem;
    display: block;
}

header .logo svg {
    width:250px;
}

.text-page {
    .main-content {
        margin-bottom: 4rem;

        p {
            margin: 1rem 0;
        }

        h1 {
            margin: 2rem 0;
        }
    }
}

/* Team Section */
.team-section {
    width: 100%;
    padding: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.team-member {
    position: relative;
    cursor: pointer;
}

.team-member-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.team-member-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease;
}

.team-member-info {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-member-name {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.team-member-title {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0 0 0.75rem 0;
}

.team-member-link {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.team-member-link:hover {
    opacity: 0.8;
}

/* Hover State */
.team-member:hover .team-member-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.team-member:hover .team-member-info {
    opacity: 1;
    transform: translateY(0);
}

.team-member:hover .team-member-image img {
    transform: scale(1.05);
}

/* Modal */
.team-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    padding: 2rem;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-modal.visible {
    opacity: 1;
}

.team-modal-content {
    background: #fff;
    max-width: 900px;
    width: 100%;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.team-modal.visible .team-modal-content {
    transform: scale(1);
}

.team-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: #fff;
    border: none;
    font-size: 1.75rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
}

.team-modal-close:hover {
    background: #f0f0f0;
}

.team-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.team-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;
}

.team-modal-info {
    padding: 3rem;
    max-height: 80vh;
    overflow-y: auto;
}

.team-modal-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.team-modal-title {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin: 0 0 1.5rem 0;
}

.team-modal-bio {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    white-space: pre-line;
}

/* Responsive */
/* Responsive */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Always show overlay on mobile */
    .team-member-overlay {
        background: rgba(0, 0, 0, 0.5);
        padding: 1rem;
    }

    .team-member-info {
        opacity: 1;
        transform: translateY(0);
    }

    .team-member-name {
        font-size: 1rem;
    }

    .team-member-title {
        font-size: 0.75rem;
    }

    /* Modal without image on mobile */
    .team-modal-body {
        grid-template-columns: 1fr;
    }

    .team-modal-image {
        display: none;
    }

    .team-modal-info {
        padding: 2rem;
        max-height: none;
    }

    .team-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .team-modal {
        padding: 1rem;
        align-items: flex-start;
    }

    .team-modal-name {
        font-size: 1.5rem;
    }

    .team-modal-close {
        background: transparent;
    }
}

.about-section {
    width: 100%;
}

.about-image {
    width: 100%;
    height: 500px;
    background-image: url("zeitwerk-team.webp");
    display: block;
    background-size: cover;
    background-position: center;
}


.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-heading {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: #1a1a1a;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin: 0 0 1.5rem 0;
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    color: #1a1a1a;
}

.about-content ul {
    margin: 0 0 1.5rem 0;
    padding: 0 0 0 1.5rem;
}

.about-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.about-dedication {
    font-style: italic;
    margin-top: 3rem;
}

.about-tagline {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .about-image {
        max-height: 300px;
    }

    .about-container {
        padding: 2rem 1.5rem;
    }

    .about-heading {
        font-size: 1.5rem;
    }

    .about-content h3 {
        font-size: 1.25rem;
    }
}

.footer {
    background-color: #6B655C;
    color: #fff;
    padding: 3rem 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 3rem;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-menu a {
    color: #fff;
}

.footer-menu h4 {
    font-size: 1.25rem;
}

.footer-right {
    display: flex;
    gap: 3rem;
}

.footer-text {
    text-align: right;
    max-width: 380px;
}

.footer-information {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    a {
    color: #fff;
    text-decoration: none;
    }
}

.footer-information p {
    display: flex;
    align-items: flex-start;
}

.footer-information svg {
    display: block;
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
}

.footer-bottom a {
    font-size: 16px;
    color: #fff;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLetterSpacing {
    0% {
        opacity: 0;
        letter-spacing: 0;
    }
    50% {
        opacity: 1;
        letter-spacing: 1.25rem;
    }
    100% {
        opacity: 1;
        letter-spacing: 1.25rem;
    }
}

@keyframes fadeInSubtitle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LARGE TABLET STYLES */
@media (max-width: 1200px) {
    .content-right {
        margin-right: calc(-50vw + 600px);
    }
}

/* TABLET STYLES */
@media (max-width: 1024px) {
    .main-content {
        padding: 0 2rem;
    }

    .intro-container {
        margin: 100px 0;
        gap: 2rem;
    }

    .intro-text {
        width: 60%;
        font-size: 18px;
    }

    .contact-section {
        width: 40%;
    }

    .phone-number {
        font-size: 32px;
    }

    .content-row {
        gap: 2rem;
        overflow: hidden;
    }

    .content-right {
        margin-right: calc(-50vw + 512px);
    }

    .content-right-img {
        min-height: 350px;
        width: 100%;
    }

    .bottom-section {
        margin: 120px 0;
    }

    .bottom-title {
        font-size: 32px;
    }

    .bottom-text {
        font-size: 20px;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-right {
        gap: 2rem;
    }

    .footer-text {
        max-width: 280px;
    }
}

/* MEDIUM TABLET STYLES */
@media (max-width: 900px) {
    .content-right {
        margin-right: calc(-50vw + 450px);
    }

    .content-right-img {
        min-height: 320px;
    }
}

/* SMALL TABLET STYLES */
@media (max-width: 820px) {
    .main-content {
        padding: 0 1.5rem;
    }

    .content-right {
        margin-right: calc(-50vw + 410px);
    }

    .content-right-img {
        min-height: 300px;
    }
}

/* MOBILE STYLES */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .hero-content {
        top: 60px;
    }

    .logo-svg {
        width: 320px;
    }

    .hero-bottom {
        bottom: 30px;
    }

    .hero-title {
        font-size: 24px;
        letter-spacing: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 0.05rem;
    }

    .main-content {
        padding: 0 1rem;
    }

    .intro-container {
        flex-direction: column;
        margin: 80px 0;
    }

    .intro-text {
        width: 100%;
        text-align: center;
    }

    .contact-section {
        width: 100%;
        text-align: center;
    }

    .phone-number {
        font-size: 28px;
    }

    .content-row {
        flex-direction: column;
        gap: 3rem;
    }

    .content-left {
        max-width: 100%;
    }

    .content-right {
        margin-right: 0;
        width: 100%;
        order: -1;
    }

    .content-right-img {
        min-height: 250px;
    }

    .service-block {
        margin-bottom: 2rem;
    }

    .service-title {
        font-size: 16px;
        margin-bottom: 0.5rem;
    }

    .bottom-section {
        margin: 100px 0;
    }

    .bottom-title {
        font-size: 24px;
        margin-bottom: 1.5rem;
    }

    .bottom-text {
        font-size: 16px;
    }


    .footer-content {
        flex-direction: column;
    }

    .footer-right {
        flex-direction: column;
    }

    .footer-text {
        text-align: left;
        max-width: 100%;
    }

    .footer-information p {
        gap: 0.5rem;
    }

    .footer-information svg {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* SMALL MOBILE STYLES */
@media (max-width: 480px) {
    .hero-section {
        height: 75vh;
        background-position: 70% 100%;
    }
    .hero-content {
        top: 40px;
    }

    .logo-svg {
        width: 280px;
    }

    .hero-bottom {
        bottom: 20px;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 20px;
        letter-spacing: 0.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .intro-container {
        margin: 60px 0;
    }

    .phone-number {
        font-size: 24px;
    }

    .content-right-img {
        min-height: 200px;
    }

    .bottom-section {
        margin: 80px 0;
    }

    .bottom-title {
        font-size: 20px;
    }

    .service-title {
        font-size: 15px;
    }
}