/* Grundlegende Stile */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-color: #f4f4f4;
    --dark-color: #222;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --cream-color: #f8f8f8;
    /* Cremefarbener Hintergrund */
    --white-color: #fff;
    /* white background */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Didot', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Main Content */
main {
    padding: 2rem 0;
}

/* Grundlegende Styles für die Werk-Seite */
.work-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.work-page h1 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #1a1a1a;
}

/* Kategorie-Filter */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-filters .filter-btn {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.gallery-filters .filter-btn:hover {
    background-color: #e0e0e0;
}

.gallery-filters .filter-btn.active {
    background-color: #333;
    color: white;
}

/* Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.gallery-item-content {
    position: relative;
    overflow: hidden;
}

.gallery-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #ffffff;
    font-family: 'Didot', serif;
    font-size: 2em;
    font-weight: 100;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
    text-align: center;
    white-space: normal;
    /* Ändere von nowrap zu normal für Wortumbruch */
    overflow-wrap: break-word;
    /* Ermöglicht Umbruch bei langen Wörtern */
    word-wrap: break-word;
    /* Fallback für ältere Browser */
    hyphens: auto;
    /* Automatische Silbentrennung */
    overflow: visible;
    /* Ändere von hidden zu visible, um den gesamten Text anzuzeigen */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-height: none;
    /* Entferne Höhenbegrenzung */
}

.gallery-item-content:hover .gallery-item-title {
    opacity: 1;
    transform: translateY(-5px);
}

.gallery-item-content:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item:hover img {
    opacity: 0.9;
}

.gallery-item-content a {
    position: relative;
    z-index: 3;
}

/* Fehlermeldung */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    text-align: center;
}

/* Detailseiten */
.work-details-container {
    position: relative;
    padding: 2rem 0;
}

.work-details {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 2rem 0;
    gap: 2rem;
    align-items: flex-start;
}

.work-images {
    flex: 0 0 65%;
    max-width: calc(65% - 2rem);
}

.work-info {
    flex: 0 0 35%;
    max-width: calc(35% - 2rem);
}

.work-images img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left top;
    align-self: flex-start;
}

.work-info h2 {
    font-size: 3.5rem;
    margin-bottom: 1.8rem;
    color: #1a1a1a;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.work-metadata {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.work-metadata .metadata-label {
    display: block;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: -0.5rem;
    font-weight: 400;
}

.work-metadata .metadata-value {
    font-family: 'Helvetica Neue', 'Helvetica', sans-serif;
    font-size: 1rem;
    color: #e4aecf;
    margin-bottom: 2rem;
    font-weight: 400;
    padding-top: 0.5rem;
}

.work-description {
    margin-bottom: 2rem;
}

.work-description p {
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-family: 'Helvetica Neue', 'Helvetica', sans-serif;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #e4aecf;
}

/* Navigation-Links Container */
.navigation-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    padding: 0 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.prev-link,
.next-link,
.back-link {
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
}

.prev-link,
.next-link {
    max-width: 30%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Spezielle Anpassung für die work-details Ansicht - mit höherer Spezifität */
body[data-page="work-detail"] main .container,
.work-details-container .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* Anpassung der Innenabstände für die work-details */
.work-details {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive Design für Work-Seite */
@media (max-width: 768px) {
    .work-page h1 {
        font-size: 2.5rem;
    }

    .gallery-filters {
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
    }

    .work-details {
        flex-direction: column;
        padding: 2rem 0;
    }

    .work-images,
    .work-info {
        max-width: 100%;
        flex: 0 1 100%;
    }
}

/* About Page und Impressum Styles */
.biography-page .about-page,
.imprint-page .about-page {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 2rem 2rem 2rem 0;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.biography-page .work-images,
.imprint-page .work-images {
    flex: 0 0 65%;
    max-width: calc(65% - 2rem);
    width: 100%;
    height: auto;
}

.biography-page .work-images img,
.imprint-page .work-images img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left top;
    align-self: flex-start;
    margin-left: 0;
}

.biography-page .work-info,
.imprint-page .work-info {
    flex: 0 0 35%;
    max-width: calc(35% - 2rem);
}

.biography-page h1,
.imprint-page h1 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #1a1a1a;
    font-family: 'Didot', serif;
}

/* Category Headlines für Biography und Imprint */
.biography-page .about-section h2,
.imprint-page .about-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    font-family: 'Didot', serif;
    font-weight: 400;
}

.biography-page .about-section,
.imprint-page .about-section {
    margin-bottom: 2rem;
}

.biography-page .about-content,
.imprint-page .about-content {
    margin-left: 1rem;
}

/* Subheadings für Biography und Imprint */
.biography-page .about-content p,
.imprint-page .about-content p {
    font-size: 1rem;
    margin: 0.5rem 0;
    font-family: 'Didot', serif;
    line-height: 1.6;
}

.biography-page .back-link,
.imprint-page .back-link {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: -2rem;
    font-family: 'Didot', serif;
    text-decoration: none;
    color: #333;
}

/* Responsive Design für Biography und Imprint */
@media (max-width: 768px) {

    .biography-page .work-details,
    .imprint-page .work-details {
        flex-direction: column;
        padding: 2rem;
        max-width: 100%;
    }

    .biography-page .work-images,
    .biography-page .work-info,
    .imprint-page .work-images,
    .imprint-page .work-info {
        order: 0;
        max-width: 100%;
        flex: 0 1 100%;
        margin-left: 0;
        padding-left: 0;
    }

    .biography-page .back-link,
    .imprint-page .back-link {
        position: static;
        margin-bottom: 1rem;
    }

    .biography-page h1,
    .imprint-page h1 {
        font-size: 2.5rem;
    }
}

.hero {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    text-align: center;
}

.hero h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content {
    margin-bottom: 2rem;
}

.content h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
}

.content p {
    margin-bottom: 1rem;
}

.content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background-color: var(--light-color);
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.project-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 20px 0;
    opacity: 0;
    /* Komplett unsichtbar */
    transition: opacity 0.8s ease;
    /* Sanfter Übergang */
}

footer.visible {
    opacity: 1;
    /* Vollständig sichtbar */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.footer-links a:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Anpassung für die Homepage, um Platz für den Footer zu schaffen */
.featured-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0 100px;
    background-color: rgba(255, 255, 255, 0.8);
    margin-top: 100vh;
    /* Beginnt nach dem ersten Viewport */
    border-radius: 10px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.featured-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 3rem 0;
}

.error-page h2 {
    color: var(--error-color);
    margin-bottom: 1rem;
}

.error-page a {
    color: var(--primary-color);
    text-decoration: none;
}

.error-page a:hover {
    text-decoration: underline;
}

/* Homepage Styles */
.home-page {
    padding-top: 0;
    position: relative;
}

/* Logo Styles */
.logo-container {
    position: fixed;
    display: flex;
    align-items: center;
    z-index: 10;
    /*transition: top 0.3s ease, left 0.3s ease, transform 0.3s ease;*/
    margin: 10px;
    padding: 0;
    transform-origin: left top;
    /* Transformationsursprung in die linke obere Ecke setzen */
    text-decoration: none;
    /* Entfernt die Unterstreichung des Links */
    color: inherit;
    /* Behält die Textfarbe bei */
    cursor: pointer;
    /* Zeigt an, dass es klickbar ist */
}

.logo-container a {
    text-decoration: none;
    color: inherit;
    align-items: center;
}

/* Spezifische Skalierung nur für Nicht-Homepage-Seiten */
body:not(.home-page) .logo-container {
    transform: scale(0.2);
}

.logo-image {
    width: 300px;
    opacity: 90;
    transition: opacity 2s ease;
    position: relative;
    margin-bottom: 0px;
    z-index: 12;
    /* Logo appears on top */
}

.logo-text {
    margin-top: 0;
    font-family: 'Didot', serif;
    font-size: 4rem;
    color: #6c5959;
    white-space: nowrap;
    max-width: 400px;
    opacity: 0;
    animation: fadeIn 3s ease 1s forwards;
    font-weight: 50;
    letter-spacing: 1.5px;
    text-align: center;
    position: relative;
    white-space: nowrap;
    /* Verhindert Umbruch des Textes */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.abbreviated-logo-text {
    display: none;
    font-family: 'Didot', serif;
    font-size: 1.75rem;
    color: #e4aecf;
    font-weight: 50;
    position: fixed;
    top: 4.5px;
    left: 56px;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* Longer transition with smooth easing */
    line-height: 0.7;
    z-index: 11;
}

/* Hamburger-Menü */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.hamburger-menu span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hamburger-menu.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Navigation-Menü */
.main-nav {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 999;
    transition: top 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0; /* Entferne das padding-top */
}

.main-nav.open {
    top: 0;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; /* Zentriert den Text */
}

.main-nav ul li {
    margin-bottom: 20px; /* Etwas mehr Abstand zwischen den Menüpunkten */
}

.main-nav ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 1.5rem; /* Etwas größere Schrift */
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #e4aecf; /* Passend zum Farbschema der Seite */
}

.navigation-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.prev-link,
.next-link,
.back-link {
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
}

.prev-link,
.next-link {
    max-width: 30%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.back-link {
    font-weight: bold;
}

/* About Page Styles */
.about-page {
    display: flex;
    justify-content: flex-end;
}

.about-page .work-images {
    text-align: right;
    margin-left: auto;
}

.about-page .work-images img {
    object-position: right;
}

.about-page .work-info {
    margin-right: 2rem;
}

/* Category Headlines */
.about-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-section {
    margin-bottom: 2rem;
}

.about-content {
    margin-left: 1rem;
}

/* Subheadings */
.about-content p {
    font-size: 1rem;
    margin: 0.5rem 0;
}

/* Responsive Design für Biography und Imprint */
@media (max-width: 768px) {

    .biography-page .work-details,
    .imprint-page .work-details {
        flex-direction: column;
        padding: 2rem;
        max-width: 100%;
    }

    .biography-page .work-images,
    .biography-page .work-info,
    .imprint-page .work-images,
    .imprint-page .work-info {
        order: 0;
        max-width: 100%;
        flex: 0 1 100%;
        margin-left: 0;
        padding-left: 0;
    }

    .biography-page .back-link,
    .imprint-page .back-link {
        position: static;
        margin-bottom: 1rem;
    }

    .biography-page h1,
    .imprint-page h1 {
        font-size: 2.5rem;
    }
}

/* Kontakt-Seite Styles */
.contact-details {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    margin-right: 10px;
}

.contact-item .text {
    font-family: 'Didot', serif;
}

.contact-item .text a {
    text-decoration: none;
    color: inherit;
}

.contact-item .text a:hover {
    color: #e4aecf;
}

/* Styles für mehrere Bilder in der Werkdetailansicht */
.work-images .multi-image {
    margin-bottom: 20px;
    display: block;
}

.work-images .multi-image:last-child {
    margin-bottom: 0;
}
