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

/* Colors */
:root {
    --color-background: #f5f5f5;
    --color-text: #2d6464; 
    --color-highlight: #63b040;
    --color-banner-bg: #f9ad9a;
    --color-list-bg: #ffffff;
    --vh: 1vh;

    --font-clean: 'Playfair Display', serif; /* Cleaner font for body text */
    --font-cool: 'Playfair Display', serif; /* Cooler font for headers and corner items */
}

/* Class to highlight within texts */
.color_highlight {
    color: var(--color-highlight);
}

html, body {
    height: auto;
    font-family: var(--font-clean);
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden; 
    text-align: left;

}

/* Clean font for all text except headers */
h1, h2, .top-left, .top-right, .bottom-left, .bottom-right {
    font-family: var(--font-cool); 
}

.no_scr_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(var(--vh) * 100); 
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.scr_container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: calc(var(--vh) * 100);
    padding: 1.25rem;
    position: relative;
    overflow-y: auto; 
}

.scr_container:not(:first-child),
.no_scr_container:not(:first-child) {
    min-height: calc(var(--vh) * 95); 
    margin-top: calc(var(--vh) * 5); 
}

.content {
    margin: 0 auto;
    width: 70vw;
    padding: 0vh;
    font-weight: normal; 
    margin-top: calc(var(--vh) * 5); 
    margin-bottom: calc(var(--vh) * 5); 
}

@media (max-height: 38rem) or (max-width: 38rem) {
    .content {
        width: 85vw;
    }
}

h1 {
    font-size: 6rem;
    letter-spacing: 0.1em;
    font-weight: normal;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 4rem;
    letter-spacing: 0.1em;
    font-weight: normal;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

p {
    font-weight: normal;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.right-align {
    display: block;       /* Macht das Element zu einem Block, sodass text-align wirkt */
    text-align: right;    /* Richtet den Text rechtsbündig aus */
}


@media (max-height: 50rem) or (max-width: 60rem) {
    h1 {
        font-size: 4rem;
    }
    h2 {
        font-size: 2.66rem;
    }
    p {
        font-size: 1.33rem;
    }
}
@media (max-height: 38rem) or (max-width: 38rem) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2rem;
    }
    p {
        font-size: 1rem;
    }
}

/* ---------------------------------------------------------------- */

.top-banner {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-banner-bg);
    color: var(--color-text);
    text-align: center;
    padding: calc(var(--vh) * 1) 0; /* Adjusted for dynamic vh */
    font-weight: bold;
    z-index: 1000;
}

.language-button {
    color: var(--color-highlight);
    background: transparent;
    border: 0px solid var(--color-highlight);
    cursor: pointer;
    font-size: 1.2rem;
    margin: 0; /* No margins by default */
}

.language-button:not(:last-child) {
    margin-right: 0.3125rem; /* Space between buttons */
}

.language-button.active {
    color: var(--color-text);
}

.corner-vertical {
    position: absolute;
    width: calc(var(--vh) * 40);
    height: 3vw;
    display: flex;
    border: 0px solid var(--color-highlight);
}

.rotated-text {
    transform: rotate(0deg);
    font-size: 1.2rem;
    transform-origin: right;
}

.corner-horizontal {
    position: absolute;
    width: calc(var(--vh) * 40);
    height: 3vw;
    display: flex;
    font-size: 1.2rem;
    border: 0px solid var(--color-highlight);
}

.top-left {
    top: calc(var(--vh) * 41);
    left: 1vw;
    justify-content: right;
    align-items: end;
    flex-direction: column;
    transform: rotate(270deg);
    transform-origin: top left;
}

@media (max-height: 38rem) or (max-width: 38rem) {
.top-left {
        align-items: start;
        top: calc(var(--vh) * 1);
        transform: rotate(0deg);
    }
}

.top-right {
    top: calc(var(--vh) * 1); /* Adjusted for dynamic vh */
    right: 1vw;
    justify-content: right;
    align-items: start;
}

.bottom-left {
    bottom: calc(var(--vh) * 1); /* Adjusted for dynamic vh */
    left: 1vw;
    justify-content: left;
    align-items: end;
}

.bottom-right {
    bottom: calc(var(--vh) * 41); /* Adjusted for dynamic vh */
    right: 1vw;
    justify-content: end;
    align-items: start;
    flex-direction: column;
    transform: rotate(270deg);
    transform-origin: bottom right;
}

@media (max-height: 38rem) or (max-width: 38rem) {
    .bottom-right {
        align-items: end;
        flex-direction: row;
        bottom: calc(var(--vh) * 1); /* Adjusted for dynamic vh */
        transform: rotate(0deg);
        padding-left: 0.5rem;
    }
}

/* ---------------------------------------------------------------- */
@media (max-height: 38rem) or (max-width: 38rem) {
    .pdf-viewer {
        display: none;
    }
}

/* ---------------------------------------------------------------- */

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    font-style: italic;}

/* Styles 1 */
.link-style-1 {
    color: var(--color-highlight);
}

.link-style-1:hover {
    font-weight: italic;
    cursor: pointer;
}

/* Style 2 (ohne highlight, wird nur für die Mail benutzt... */
.link-style-2 {
    color: inherit;
}
.link-style-2:hover {
    text-decoration: none;
    cursor: pointer;
}

/* Button styles */
button {
    font-size: 1.2rem;
    color: var(--color-highlight);
    font-family: var(--font-cool);
    background: none;
    border: none;
    cursor: pointer;
    transition: font-style 0.3s ease;
}

button:hover {
    font-style: italic;
}

.styled-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.styled-list li {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    background-color: var(--color-list-bg);
    border-left: 0.375rem solid var(--color-highlight);
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.styled-list li.open .hidden-content {
    display: left;
    transition: all 0.3s ease;
}

.hidden-content {
    display: none; /* Hidden by default */
    margin-top: 0.5rem;
    width: 100%;
    font-size: 1rem;
    text-align: left;
    font-weight: normal;
}


body {
    font-family: var(--font-clean), sans-serif; /* Beispiel Schriftart */
    margin: 0;
    padding: 0;
}

.vertical-container {
    display: flex; /* Flexbox Layout */
    justify-content: center; /* Center elements horizontally */
    align-items: center; /* Center elements vertically */
    width: 80vw; /* Default width of the container */
    margin: 0; /* Reset margin if needed */
    padding-bottom: 3rem; /* Reset padding if needed */
}

.gallery {
    position: relative; /* For positioning controls */
    width: 35vw; /* Adjust width for larger screens */
    margin-left: 4rem; /* Optional: adjust as needed */
    overflow: hidden; /* Prevent overflow */
}

.gallery-item {
    width: 100%; /* Take full width of the gallery */
    height: auto; /* Maintain aspect ratio */
    border-radius: 1rem; /* Optional: rounded corners */
    display: left; /* Prevent extra space around the image */
    margin: 0; /* Reset any margin */
}

.gallery-controls {
    position: absolute;
    top: 50%; /* Vertically center */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Space between controls */
    transform: translateY(-50%); /* Center controls */
}

.gallery-caption {
    text-align: center; /* Center the caption */
    font-size: 1rem;
}

.control-button {
    background-color: rgba(255, 255, 255, 0.7); /* Light background for buttons */
    border: none;
    padding: 4%; /* Optional: button padding */
    cursor: pointer;
    font-size: 100%; /* Button size */
    border-radius: 20%; /* Rounded corners */
}

/* Hover effects for buttons */
.control-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.gallery .gallery-item {    
    aspect-ratio: 1 / 1; 
    object-fit: cover;       /* Ensure the image fills the square area */
    display: block;          /* Ensure proper layout */
    margin: 0 auto;          /* Center-align if needed */
}


/* Media Query for smaller screens */
@media (max-height: 38rem) or (max-width: 38rem) {
    .vertical-container {
        flex-direction: row; /* Arrange items horizontally */
        flex-wrap: wrap; /* Wrap items if necessary */
        width: 100vw; /* Full width of the screen */
    }
    .gallery {
        width: 80vw; /* Full width of the container */
        margin-left: 0vw; /* Optional: adjust as needed */
        align-self: center;
        margin-left: 0rem; /* Optional: adjust as needed */

    }
}
