@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap");

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

html {
    overflow-y:scroll;
}

body {
    font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.4;
    color: #545454;
    background-color: #fff;
}

.main-nav {
    padding: 1rem 0;
    position: relative;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #4a4a4a;
    margin: 5px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #545454;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

/*
 Using -webkit-text-stroke to simulate the 'font-weight'
 */
.main-nav a:hover,
.main-nav a.active {
    -webkit-text-stroke: 0.4px #2d2d2d;
    color: #2d2d2d;
}

.main-nav a::selection
{
    -webkit-text-stroke-color: white !important;
}

.main-nav a::-moz-selection
{
    -webkit-text-stroke-color: white !important;
}

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

.main-header {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.main-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: normal;
}

.main-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    margin-top: -0.6rem;
    margin-bottom: 2.5rem;
    font-weight: normal;
    line-height: 1;
}

.description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tagline-container {
    text-align: center;
    margin-top: 1rem;
}

.tagline {
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin: 3rem auto;
    max-width: fit-content;
}

.logo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: perspective(1px) translateZ(0);
    filter: blur(0);
    image-rendering: auto;
}

.info-section {
    text-align: center;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.info-section p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.recommendation {
    margin-top: 5rem;
}

.partner-link {
    color: #545454;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    vertical-align: middle;
}

.partner-link:hover {
    text-decoration: underline;
}

.inline-logo {
    width: 30px;
    height: 30px;
    display: block;
}

/* Person page styles */
.person-page .container {
    max-width: 1470px;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: normal;
}

.person-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f0f0f0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2rem;
    margin-bottom: 3rem;
}

.info-card {
    border: none;
    border-radius: 8px;
    padding: 1.5rem 2rem 1.5rem 2rem;
    display: flex;
    gap: 1.5rem;
}

.card-icon {
    flex-shrink: 0;
}

.icon-placeholder {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    image-rendering: smooth;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
}

.card-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-content ul {
    list-style: disc;
    padding-left: 1rem;
    margin-left: 0;
}

.card-content li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-content p {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.page-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.header-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: perspective(1px) translateZ(0);
    filter: blur(0);
    image-rendering: auto;
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .main-header h1 {
        font-size: 2rem;
    }

    .main-header h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 1rem;
    }

    /* Hamburger menu for mobile */
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 5rem;
        gap: 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        flex-direction: row;
    }

    /* Mobile card layout */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .card-content ul {
        text-align: left;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Fix centering for projektbeispiele page on mobile */
    .page-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 2rem;
    }

    .header-icon {
        width: 120px;
        height: 120px;
        display: block;
        margin: 0 auto;
    }

    .card-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
    }

    .card-icon .icon-placeholder {
        width: 50px;
        height: 50px;
        display: block;
        margin: 0 auto;
    }
}

/* Very small devices */
@media (max-width: 425px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Contact page styles */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative !important;
}

.contact__email {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    gap: 1rem;
    left: 50%;
    right: 50%;
    top: 106px;
    bottom: 50%;
    height: fit-content;
}

.contact__house {
    display: flex;
    flex-direction: row;
    width: fit-content;
    height: fit-content;
    justify-content: center;
    align-items: center;
    position: absolute;
    gap: 1rem;
    left: -79px;
    bottom: 55%;
}

.contact__phone {
    display: flex;
    flex-direction: row;
    width: fit-content;
    height: fit-content;
    justify-content: center;
    align-items: center;
    position: absolute;
    gap: 1rem;
    /*right: 40%;*/
    /*right: 316.5px;*/
    right: 8px;
    bottom: 55%;
}

.contact__anchor {
    display: flex;
    flex-direction: column;
    width: fit-content;
    /*height: fit-content;*/
    justify-content: center;
    align-items: center;
    position: absolute;
    gap: 1rem;
    left: 216px;
    bottom: 26.6%;
}

.contact__postal {
    display: flex;
    flex-direction: column;
    width: fit-content;
    /*height: fit-content;*/
    justify-content: center;
    align-items: center;
    position: absolute;
    gap: 1rem;
    right: 186px;
    bottom: 26.6%;
}

/* Pentagram center figure */
.pentagram-center {
    display: none;
}

/* Pentagram layout for desktop */
@media (min-width: 1024px) {
    .contact-section {
        max-width: 800px;
        height: 800px;
        margin: 0 auto;
        margin-top: -5.5rem;
        align-items: stretch;
    }

    .pentagram-center {
        display: block;
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 250px;
        height: 250px;
        z-index: 1;
    }

    .center-figure {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        object-position: center 30%;
    }

    .contact-item {
        position: absolute;
        width: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        z-index: 2;
    }

    /* Calculate pentagram points (star) - 72 degrees apart */
    /* Top point (Email) */
    .contact-item:nth-child(2) {
        top: 9%;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Top-right point (Phone) */
    .contact-item:nth-child(3) {
        top: 30%;
        right: 1%;
    }

    /* Bottom-right point (Keithstr Berlin) */
    .contact-item:nth-child(4) {
        bottom: 22.5%;
        right: 22%;
    }

    /* Bottom-left point (Aachen/Berlin) */
    .contact-item:nth-child(5) {
        bottom: 22.5%;
        left: 25.5%;
    }

    /* Top-left point (MS Marple) */
    .contact-item:nth-child(6) {
        top: 30%;
        left: -10%;
    }

    .contact-content {
        font-size: 0.85rem;
    }

    .contact-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-icon .icon-placeholder {
        width: 50px;
        height: 50px;
    }
}

.contact-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    text-align: left;
}

/* Modifier for text left, icon right */
.contact-item.reverse-row {
    flex-direction: row;
}

.contact-item.column {
    flex-direction: column !important;
    align-items: center !important;
}

.contact-icon {
    flex-shrink: 0;
}

.contact-icon .icon-placeholder {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    image-rendering: smooth;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
}

.contact-content {
    flex: 0 1 auto;
    text-align: center;
}

.contact-content p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

@media (max-width: 1023px) {
    .contact__email,
    .contact__house,
    .contact__phone,
    .contact__anchor,
    .contact__postal {
        display: flex;
        flex-direction: column;
        position: initial;
        margin-bottom: 1.5rem;
    }

    .main-nav a::after {
        position: absolute;
    }

    .contact__email, .contact__house {
        flex-direction: column-reverse;
    }

    .contact-section {
        gap: 1rem;
    }

    .contact-item {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .contact-icon .icon-placeholder {
        width: 50px;
        height: 50px;
    }

    .contact-content p {
        font-size: 1rem;
    }
}

/* Style capital P letters in headings */
.capital-p {
    color: #3a3a3a;
    font-weight: 600;
}

/* Style dots in h2 */
.dots {
    font-size: 1.5em;
    color: #000;
}

/* Style small caps D in Dr. */
.small-caps {
    font-size: 0.8em;
    text-transform: uppercase;
}

/* Impressum page styles */
.impressum-content {
    max-width: 800px;
    margin: 4rem auto 0;
    line-height: 1.5;
}

.impressum-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.impressum-content p {
    margin-bottom: 0.5rem;
}
