/* Import Cooper Hewitt Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cooper+Hewitt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cooper Hewitt', sans-serif;
    font-weight: 100;
    font-size: 16px;
    line-height: 1.6;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    background-color: #f8f8f8;
    color: #1e3a8a;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cooper Hewitt', sans-serif;
    border: none;
    outline: none;
}

h1 {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

h2 {
    font-weight: 600;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

h3 {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
    line-height: 1.4;
}

h4 {
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 2em;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
    line-height: 1.4;
    text-decoration: underline;
}

/* Citation Styling */
.citation {
    font-family: 'Cooper Hewitt', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.1rem;
    color: #1e3a8a;
    text-align: justify;
    margin-bottom: 1rem;
    max-width: 600px;
    line-height: 1.6;
    background-color: #f5f5f5;
    padding: 1rem;
    box-sizing: border-box;
}

/* Table Styling */
table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e8e9ea;
}

th {
    background-color: #1e3a8a;
    color: white;
    font-family: 'Cooper Hewitt', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #f1f3f4;
    transition: background-color 0.2s ease;
}

td {
    color: #1e3a8a;
    font-size: 1.1rem;
}

.concept-column {
    font-weight: 500;
    color: #1e3a8a;
    width: 30%;
}

.description-column {
    width: 70%;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 3px solid #1e3a8a;
    padding: 1rem;
    z-index: 1003;
    justify-content: space-between;
    align-items: center;
}

.mobile-title {
    font-family: 'Cooper Hewitt', sans-serif;
    font-size: 1.4rem;
    color: #1e3a8a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-breadcrumb {
    color: #1e3a8a;
    font-weight: 700;
}

.mobile-breadcrumb::before {
    content: " > ";
    color: #1e3a8a;
    margin: 0 0.25rem;
}

/* Burger Menu */
.burger-menu {
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #1e3a8a;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background: white;
    transition: right 0.3s ease;
    z-index: 1002;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.mobile-nav-title {
    font-family: 'Cooper Hewitt', sans-serif;
    font-size: 1.4rem;
    color: #1e3a8a;
    font-weight: 500;
}

.mobile-nav-close {
    font-size: 1.7rem;
    color: #1e3a8a;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-nav-mugshot {
    width: 100%;
    max-width: 300px;
    height: auto;
    border: 3px solid #1e3a8a;
    margin-bottom: 3rem;
    object-fit: cover;
    max-height: 250px;
}

.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.mobile-nav-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.mobile-nav-button {
    font-family: 'Cooper Hewitt', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e3a8a;
    background: white;
    border: 3px solid #1e3a8a;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.mobile-nav-button:hover,
.mobile-nav-button:focus {
    background-color: #1e3a8a;
    color: white;
}

.mobile-nav-button:active {
    transform: translateY(1px);
}

/* Hide old mobile navigation elements */
.mobile-nav-items,
.mobile-contact-section {
    display: none;
}

/* Desktop Navigation */
nav {
    flex: 0 0 200px;
}

nav .name-link {
    font-family: 'Cooper Hewitt', sans-serif;
    color: #1e3a8a;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.4rem;
    font-weight: 500;
}

nav .name-link:hover {
    text-decoration: underline;
    color: #1e40af;
}

.mobile-name-link {
    font-family: 'Cooper Hewitt', sans-serif;
    color: #1e3a8a;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.4rem;
    font-weight: 500;
}

.mobile-name-link:hover {
    text-decoration: underline;
    color: #1e40af;
}

main {
    flex: 1;
    padding-right: 2rem;
}

nav p {
    font-size: 1.1rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Force borders on ALL img elements with mugshot classes */
img.mugshot,
img.mugshot-inline,
img.mugshot-about,
img.floating-mugshot,
img.mobile-nav-mugshot,
.mugshot,
.mugshot-inline,
.mugshot-about,
.floating-mugshot,
.mobile-nav-mugshot {
    border: 3px solid #1e3a8a !important;
    border-style: solid !important;
    border-width: 3px !important;
    border-color: #1e3a8a !important;
}

.mugshot {
    width: 150px;
    height: auto;
    margin: 0 1rem 1rem 0;
    float: left;
    display: block;
}

.mugshot-inline {
    width: clamp(140px, 30vw, 200px);
    height: auto;
    margin: 0 0 2rem 0;
    display: block;
}

/* Mugshot for About page */
.mugshot-about {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 1rem;
    object-fit: cover;
    display: block;
}

.about-content {
    position: relative;
}

nav ul {
    list-style: none;
    margin-top: 0;
}

nav li {
    margin-bottom: 0.5rem;
}

nav a {
    font-family: 'Cooper Hewitt', sans-serif;
    color: #1e3a8a;
    text-decoration: none;
    font-size: 1.2rem;
    cursor: pointer;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
    font-weight: 500;
}

/* Floating Contact Area */
.floating-contact-area {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
    margin-right: calc((100vw - 1200px) / 2);
    width: clamp(120px, 15vw, 150px);
}

/* Hide floating contact on About and Contact pages */
body[data-current-page="about"] .floating-contact-area,
body[data-current-page="contact"] .floating-contact-area {
    display: none !important;
}

.floating-mugshot {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
    object-fit: cover;
    max-height: 200px;
}

.contact-button {
    width: 100%;
    padding: 1rem;
    background: white;
    color: #1e3a8a !important;
    text-decoration: none;
    border: 3px solid #1e3a8a;
    font-size: 1.2rem;
    font-family: 'Cooper Hewitt', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
    position: relative;
    text-align: center;
    display: block;
}

.contact-button:hover {
    background-color: #1e3a8a;
    color: white !important;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
    transform: translateY(-1px);
}

.contact-button span {
    transition: opacity 0.2s ease;
}

.contact-button:hover span {
    opacity: 0;
}

.contact-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.contact-button:hover::before {
    content: "& See imprint";
    opacity: 1;
}

/* Main Content */
main p {
    max-width: 600px;
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Home Page Styles */
.home-content {
    max-width: 600px;
}

.mugshot-home {
    width: 150px;
    height: auto;
    object-fit: cover;
    margin: 0 0 1rem 1rem;
    float: right;
    display: block;
    max-height: 200px;
}

.home-text h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.home-text p {
    margin-bottom: 1rem;
    text-align: justify;
    max-width: 600px;
    color: #1e3a8a;
    font-size: 1.1rem;
}

.inline-link {
    color: #1e3a8a;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 100;
    transition: all 0.2s ease;
}

.inline-link:hover {
    text-decoration: underline;
    color: #1e40af;
}

/* CV Styles */
.cv-content {
    display: none;
    margin-top: 2rem;
    max-width: 600px;
}

.cv-section {
    margin-bottom: 2rem;
    max-width: 600px;
}

.cv-item {
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.cv-item h5 {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1e3a8a;
    max-width: 600px;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.cv-item ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    max-width: 600px;
}

.cv-item li {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.cv-description {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-align: justify;
    max-width: 600px;
}

/* Text Section Styles */
.text-entry {
    margin-bottom: 2.5rem;
}

.text-entry h3 {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: manual;
    max-width: 600px;
    overflow-wrap: break-word;
}

.text-entry h4 {
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 2em;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
    line-height: 1.4;
    text-decoration: underline;
    word-wrap: break-word;
    hyphens: manual;
    max-width: 600px;
    overflow-wrap: break-word;
}

.text-content {
    white-space: normal;
    line-height: 1.6;
    text-align: justify;
    max-width: 600px;
    color: #1e3a8a;
    font-size: 1.1rem;
}

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

.expand-toggle {
    color: #1e3a8a;
    cursor: pointer;
    font-weight: normal;
    font-size: 1.1rem;
    font-family: 'Cooper Hewitt', sans-serif;
    font-weight: 100;
    text-decoration: underline;
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    max-width: 600px;
    transition: color 0.2s ease;
}

.expand-toggle:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Audio/Video Styles */
.audio-item {
    margin-bottom: 3rem;
}

.audio-item h3 {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: manual;
    max-width: 600px;
    overflow-wrap: break-word;
}

.audio-item h4 {
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 2em;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
    line-height: 1.4;
    text-decoration: underline;
    word-wrap: break-word;
    hyphens: manual;
    max-width: 600px;
    overflow-wrap: break-word;
}

.audio-description {
    margin-bottom: 1rem;
    color: #1e3a8a;
    font-size: 1.1rem;
    text-align: justify;
    max-width: 600px;
}

.soundcloud-embed {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border: none;
}

.video-item {
    margin-bottom: 3rem;
}

.video-item h3 {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: manual;
    max-width: 600px;
    overflow-wrap: break-word;
}

.video-item h4 {
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 2em;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
    line-height: 1.4;
    text-decoration: underline;
    word-wrap: break-word;
    hyphens: manual;
    max-width: 600px;
    overflow-wrap: break-word;
}

.video-description {
    margin-bottom: 1rem;
    color: #1e3a8a;
    font-size: 1.1rem;
    text-align: justify;
    max-width: 600px;
}

.youtube-embed {
    width: 100%;
    max-width: 600px;
    height: 315px;
    border: none;
    border-radius: 0;
}

/* Contact Section */
.contact-section {
    margin-bottom: 2rem;
}

.contact-section p {
    text-align: justify;
}

address {
    font-style: normal;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #1e3a8a;
}

#email-placeholder {
    cursor: pointer;
    color: #1e3a8a;
    text-decoration: underline;
}

#email-placeholder:hover {
    text-decoration: underline;
}

/* Media Queries */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding: 1rem;
        padding-top: 5rem;
        font-size: 17px;
    }

    .mobile-header {
        display: flex;
    }

    nav {
        display: none;
    }

    .floating-contact-area {
        display: none;
    }

    main {
        padding-right: 0;
        padding-top: 1rem;
    }

    main p {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    h4 {
        font-size: 1rem;
    }

    .youtube-embed {
        height: 200px;
        max-width: 600px;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Home Page Mobile Styles */
    .mugshot-home {
        width: clamp(140px, 30vw, 200px);
        height: auto;
        margin: 0 0 2rem 0;
        float: none;
        display: block;
        max-height: 250px;
    }

    /* Mobile About Mugshot */
    .mugshot-about {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Responsive Tables */
    table {
        font-size: 1rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    .concept-column {
        width: 35%;
    }
    
    .description-column {
        width: 65%;
    }
}

@media (min-width: 769px) {
    .mobile-header,
    .mobile-nav-overlay,
    .mobile-nav-menu {
        display: none !important;
    }
}