/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #fff;
}

/* Header and Navigation */
header {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 100%;
    padding-right: 20px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    white-space: nowrap;
}
.nav-list li {
    margin-left: 20px;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
}


/* Headline Section */
.headline {
    font-family: 'Moon Flower', serif;
    font-size: 3rem;
    color: #fff;
    text-align: center;
    margin: 0;
    line-height: 1.1;
}


/* Main Content Container */
.grid-container {
    width: 100%;
}

/* Hero Section - Full viewport height */
.hero-wrapper {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #121212;
}

.headline-section {
    margin-bottom: 50px;
    z-index: 10;
    position: relative;
}

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

.portrait {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
}

/* Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(4, 222, 218, 0.5);
    backdrop-filter: blur(5px);
    width: 150px;
    height: 150px;
    bottom: 80%;
    left: 5%;
}

.bubble.medium {
    width: 100px;
    height: 100px;
    background-color: #ED4E2B;
    top: 10%;
    right: 10%;
}

.bubble.small {
    width: 50px;
    height: 50px;
    bottom: 20%;
    right: 15%;
}

.bubble.right {
    width: 150px;
    height: 150px;
    bottom: 80%;
    right: 5%;
}

.bubble.small.right {
    width: 50px;
    height: 50px;
    bottom: 78%;
    left: 91%;
    background-color: #ED4E2B;
}

.bubble.medium.right {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 86%;
    background-color: rgba(4, 222, 218, 0.5);
}

.bubble.small.right.II {
    width: 80px;
    height: 80px;
    top: 18%;
    left: 87%;
    background-color: rgba(4, 222, 218, 0.5);
    z-index: 999;
}

/* Section Styling */
.section {
    min-height: 100vh;
    width: 100%;
    padding: 100px 50px;
    background-color: #1e1e1e;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
}

.section h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
}

.section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

/* Bücher Sektion */
#buecher {
    background-color: #1e1e1e; 
    display: flex;
    flex-direction: column;
    padding: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    padding: 100px 0 80px;
    background-color: #1e1e1e;
    margin: 0;
    width: 100%;
}

.book-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
    padding: 60px 0;
    margin: 0;
    background-color: #1e1e1e;
}

.book-link {
    flex: 1;
    display: flex;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

.book-link:hover {
    transform: scale(1.03); 
}

.book-image {
    flex: 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1e1e1e;
    min-height: 10vh;
    width: 100%; 
}

.book-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 60px;
    background-color: #1e1e1e;
}

.book-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    max-width: 600px;
    color: #04DED8;
}

.book-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

.book-content .book-quote {
    font-style: italic;
    font-size: 1.8rem;
    /* 30px top, auto left/right (centers it), 20px bottom */
    margin: 30px auto 55px; 
    max-width: 600px;
    text-align: center; /* Ensures the text inside is centered */
    display: block;     /* Ensures margin: auto works correctly */
    width: 100%;
}

/* Adjust the source span so it doesn't get too massive */
.book-quote span {
    display: block;
    font-style: normal;
    font-size: 0.6em; /* Relative to the new large quote size */
    opacity: 0.7;
    margin-top: 0px;
}

.book-meta {
    margin-top: 30px;
    font-size: 0.90em;
    opacity: 0.85;
}

.book-content .book-meta {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7); /* Faded white for the "Erschienen..." text */
    text-align: center;
    width: 100%;
    margin-top: 20px;
}

.book-content .book-meta a {
    font-size: 1rem;
    color: #04DED8;      /* Full brightness for your link color */
    text-decoration: none; /* Removes the underline */
    opacity: 1;
    transition: filter 0.2s ease; /* Makes the hover effect smooth */
}

.book-content .book-meta a:hover {
    text-decoration: none; /* Ensures no underline appears on hover */
    filter: brightness(1.3); /* The link will "glow" slightly when hovered */
}

.book-container.reverse {
    flex-direction: row-reverse;
}

/* Beiträge in Büchern (Grid) */
.contributions-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    max-width: 100%;
    margin: 40px auto;
    padding: 0 20px 100px;
    flex-wrap: nowrap;
}

.contribution-item {
    flex: 0 1 auto;
    display: block;
    transition: transform 0.3s ease;
}

.contribution-item img {
    height: 350px;           
    width: auto;
    display: block;
    object-fit: contain;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
}

.contribution-item:hover {
    transform: scale(1.05);
}

/* Artikel Sektion Styles */
.articles-container {
    width: 100%;
    max-width: 800px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px; 
}

.article-item {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

/* Klickbare Artikel-Headline */
.article-headline-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.article-headline-link:hover {
    opacity: 0.8;
}

.article-headline {
    font-size: 2em;
    color: #04DED8;
    margin-bottom: 30px;
    font-weight: normal;
}

/* Artikel Bild-Link mit Hover-Effekt */
.article-link {
    display: block;
    width: 100%;
    /* Mittel-kleine Größe festlegen */
    max-width: 400px; 
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.article-link:hover {
    transform: scale(1.03);
}


.article-text {
    font-size: 1.2em;
    /* Reduced line-height slightly from 1.8 to 1.6 for a tighter editorial feel */
    line-height: 1.6;
    color: #fff;
    max-width: 100%;
    /* Ensure there is no top margin pushing it away */
    margin-top: 0;
}
/* Styling for secondary links (Articles & Instagram) to match Book Meta */
.more-articles, 
.contact-instagram {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.7); 
    text-align: center;
    width: 100%;
    margin-top: 50px !important;
    line-height: 1.6; /* Improves readability for the double links in ViG */
}

.more-articles a, 
.contact-instagram a {
    font-size: 1rem;
    color: #04DED8;
    text-decoration: none;
    opacity: 1;
    transition: filter 0.2s ease;
}

.more-articles a:hover, 
.contact-instagram a:hover {
    filter: brightness(1.3);
    text-decoration: none;
}




/* Auszeichnungen Sektion */
.awards-container {
    width: 100%;
    max-width: 800px; /* Gleiche Breite wie Artikel & Buchtexte */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Abstand zwischen den Listenpunkten */
}

.award-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Dezente Trennlinie */
    padding-bottom: 15px;
}

.award-item:last-child {
    border-bottom: none;
}

.award-year {
    font-weight: bold;
    color: #04DED8; /* Deine Akzentfarbe */
    min-width: 80px; /* Sorgt dafür, dass die Jahre untereinander stehen */
    font-size: 1.1em;
}

.award-details {
    flex: 1;
}

.award-details p {
    margin: 0;
    text-align: left; /* Überschreibt das zentrierte globale P-Styling */
    font-size: 1.1em;
    line-height: 1.5;
    max-width: 100%;
}

.award-details a {
    color: #04DED8;
    text-decoration: none;
}

.award-details a:hover {
    text-decoration: underline;
}

/* ViG Image Grid Styling */
.vig-grid {
    display: flex;
    gap: 20px;
    max-width: 800px; /* Matching your text width */
    margin: 0 auto 40px auto;
    height: 400px; /* Height roughly matching your other book grids */
}

.vig-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vig-right-column {
    flex: 1;
}

.vig-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the box without stretching */
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Specifically makes the left two half-height */
.vig-left-column .vig-img {
    height: calc(50% - 10px);
}

/* Mobile: Stack them all vertically */
@media (max-width: 600px) {
    .vig-grid {
        flex-direction: column;
        height: auto;
    }
    .vig-left-column .vig-img {
        height: 200px;
    }
    .vig-right-column .vig-img {
        height: 400px;
    }
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    .award-item {
        flex-direction: column;
        gap: 5px;
    }
}

/* Poem Section Styling */
#gedichte {
    background-color: #1e1e1e;
    padding-bottom: 100px;
}

.poem-container {
    display: flex;
    width: 100%;
    min-height: 80vh;
    align-items: center;
    background-color: #1e1e1e;
    margin-bottom: 60px;
}

.poem-container.reverse {
    flex-direction: row-reverse;
}



.poem-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.poem-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 2px;
}

.large-poem-image {
    width: auto;
    height: 200vh; /* This makes it 75% of the screen height */
    max-height: 2000px; /* A cap so it doesn't get ridiculous on huge monitors */
    object-fit: contain;
    display: block;
    margin: 0 auto; /
}



.poem-container:has(.large-poem-image) .poem-image-wrapper {

    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; 

}

.poem-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.poem-text {
    text-align: left; /* Poems usually look better left-aligned */
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
    font-style: italic;
    max-width: 450px;
}

.poem-text p {
    margin-bottom: 1.5rem;
    text-align: left; /* Overrides the global center alignment */
}

/* Poem Meta (Matching more-articles style) */
.poem-meta {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    width: 100%;
    margin-top: 80px !important;
}

.poem-meta a {
    color: #04DED8;
    text-decoration: none;
}

.poem-meta a:hover {
    filter: brightness(1.3);
}



/* Mobile Fix for Poems */
@media (max-width: 768px) {
    .poem-container, .poem-container.reverse {
        flex-direction: column;
    }
    .poem-text {
        padding: 20px;
        text-align: center;
    }
    .poem-text p {
        text-align: center;
    }
}

/* Container for poems without images */
.poems-plain-container {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 20px;
}

/* 1. Remove background and padding from the wrapper */
.poem-container:has(.large-poem-image) .poem-image-wrapper {
    background: transparent; /* Ensures no color behind the image */
    padding: 0;             /* Removes the inner frame gap */
    display: flex;
    justify-content: center; /* Centers the image if it's narrow */
}

/* 2. Style the image to be large but proportional */
.poem-image.large-poem-image {
    max-height: 80vh;       /* Tall as 80% of screen */
    width: auto;            /* Maintain original shape */
    display: block;
    box-shadow: none;       /* Shadows often make the 'bars' look more obvious */
}

.poem-plain-item {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poem-title {
    font-size: 1.5rem;
    color: #04DED8;
    margin-bottom: 30px;
    font-weight: normal;
    text-align: center;
    letter-spacing: 2px;
}

/* Subtle line between poems */
.poem-divider {
    width: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 40px auto;
}


/* --- NEW: Specific footer link for the Poem section --- */
.poem-footer-link {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7); 
    text-align: center;  /* This does the centering work */
    width: 100%;        
    margin: 40px auto 0; 
    line-height: 1.6;
}

.poem-footer-link a {
    color: #04DED8;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.poem-footer-link a:hover {
    filter: brightness(1.3);
}

/* Kontakt Section Styling */
.contact-container {
    text-align: center;
    padding: 40px 20px;
}

.contact-container p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.contact-email a {
    font-size: 1.5rem; /* Larger and clearer */
    color: #04DED8;
    text-decoration: none;
    transition: filter 0.2s ease, letter-spacing 0.3s ease;
    display: inline-block;
}

.contact-email a:hover {
    filter: brightness(1.3);
    letter-spacing: 1px; /* Subtle expansion effect on hover */
}


/* Update the general article image size */
.article-image {
    width: 100%;
    /* Increased height from 250px to 450px for a more editorial look */
    height: 450px; 
    display: block;
    object-fit: cover; 
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

/* Adjust the specific portrait-mode constraint */
.article-image.portrait-mode {
    height: auto;
    max-height: 600px;      
    width: auto;
    max-width: 450px;       
    display: block;
    margin: 0 auto 10px auto; 
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .article-image.portrait-mode {
        max-width: 75vw;
        max-height: 420px;
    }

    .article-image {
        height: 280px;
    }
}

/* Ensure the container link allows for the larger image */
.article-link {
    display: block;
    width: 100%;
    max-width: 700px; 
    /* Changed from 30px to 10px to bring text closer */
    margin: 0 auto 10px auto; 
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Tighten the spacing for these smaller items */
.article-item:has(.portrait-mode) {
    gap: 10px; 
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 20px 0;
    width: 100%;
}


.made-by {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7); 
    text-align: center;  /* This does the centering work */
    width: 100%;        
    margin: 0px auto 0; 
    line-height: 1.6;
}

.made-by a {
    color: #04DED8;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.made-by a:hover {
    filter: brightness(1.3);
}


/* Z-Index Fixes */
.section, .headline, .portrait {
    position: relative;
    z-index: 10;
}

/* Media Queries */
@media (max-width: 768px) {
    .bubble.medium, .bubble.small { display: none; }
    .bubble { width: 60px; height: 60px; opacity: 0.3; }
    .headline { font-size: 2rem; }
}

@media (max-width: 400px) {
    .headline { font-size: 1.5rem; }
}

@media (max-width: 1024px) {
    .bubble.medium.right { top: 30%; left: 75%; }
    .bubble.small.right { top: 40%; left: 80%; }
    .bubble { width: 120px; height: 120px; bottom: 70%; left: 10%; }
    .bubble.medium { width: 80px; height: 80px; top: 20%; right: 20%; }
    .bubble.small.right.II { top: 40%; left: 75%; }
}

@media (max-width: 600px) {
    .contributions-grid { flex-wrap: wrap; justify-content: center; }
    .contribution-item img { height: 250px; }
    .bubble.medium.right { top: 40%; left: 60%; }
    .bubble.small.right { top: 50%; left: 70%; }
    .bubble { width: 100px; height: 100px; bottom: 60%; left: 15%; }
    .bubble.medium { width: 60px; height: 60px; top: 30%; right: 30%; }
    .bubble.small.right.II { top: 50%; left: 65%; }
}
@media (max-width: 768px) {
    /* 1. Hide the desktop nav list by default on mobile */
    .nav-list {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        right: 0;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    /* 2. Show the hamburger icon */
    .menu-toggle {
        display: flex;
    }

    /* 3. Logic to show menu when a class is added via JS */
    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 15px 0; /* Space out items vertically */
    }
}

@media (max-width: 600px) {
    /* Stack the book image and text vertically */
    .book-container, 
    .book-container.reverse {
        flex-direction: column;
        min-height: auto;
        padding: 40px 20px;
    }

    /* Ensure the image takes up appropriate space */
    .book-image {
        min-height: 400px; /* Gives the book cover a visible height */
        width: 100%;
        margin-bottom: 20px;
    }

    /* Reset the content padding for mobile */
    .book-content {
        padding: 20px 0;
        align-items: center; /* Centers the text under the image */
    }

    .book-content h2, 
    .book-content p {
        text-align: center; /* Matches the "stacked" look of other sections */
    }
}

/* Target only the last poem in the container */
.poem-plain-item:last-of-type .poem-text p {
    /* On large screens, keep every <p> on one single line */
    white-space: nowrap;
}

.poem-plain-item:last-of-type .poem-text {
    /* Ensure the container can expand to fit the long lines */
    max-width: none;
    width: fit-content;
}

/* Responsive Fix: Allow wrapping on mobile/tablets */
@media (max-width: 900px) {
    .poem-plain-item:last-of-type .poem-text p {
        white-space: normal; /* Returns to standard line breaking */
    }
    
    .poem-plain-item:last-of-type .poem-text {
        max-width: 450px; /* Matches your other poem widths */
        width: auto;
    }
}