/* Fonts */
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: 'Roboto Serif';
    src: url('fonts/RobotoSerif-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto Serif';
    src: url('fonts/RobotoSerif-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto Serif';
    src: url('fonts/RobotoSerif-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary-color: #12659c;
    --text-color: #000000;
    --text-color-inverted: white;
    --background-gray: white;
    --background-empty: white;
    --font-primary: 'Playfair Display', Georgia, Arial, sans-serif;
    --font-secondary: 'Roboto Serif', Georgia, Arial, sans-serif;
  }

/* General Styles */
body {
    font-family: var(--font-primary);
    margin: 0;
    background-color: var(--background-gray);
}


/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1000;
    overflow: visible;
}

header h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
}

header a { color: white; text-decoration: none; }

#menu-toggle { display: none; }

#menu-toggle + label {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    text-underline-offset: 6px;
}

nav li {
    padding: 5px;
    font-size: 1.2rem;
}

.kontakt-button {
    background-color: white;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
}


/* Content Sections */
.content-wrapper {
    display: flex;
    margin: 0 auto;
    align-items: flex-start;
    padding: 2rem;
    padding-top: 50px;
    padding-bottom: 50px;
}

.blue-section {
    background-color: var(--primary-color);
    color: var(--text-color-inverted);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.20);
    position: relative;
}
.white-section { background-color: var(--background-empty); color: var(--text-color); }
.gray-section { background-color: var(--background-gray); color: var(--text-color); }

.left-column, .right-column, .left-column-start, .right-column-start {
    flex: 0 0 50%;
    padding: 0 20px;
    box-sizing: border-box;
}

.left-column-start, .right-column-start{ padding: 0; }

h2 {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 4vw;
    margin-top: 0;
}

.blue-section h2, .blue-section ul { color: var(--text-color--inverted); }
.white-section h2 { color: var(--primary-color); }

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

li, p {
    font-family: var(--font-secondary);
    margin: 1rem 0;
    font-size: 1.10rem;
    font-weight: 400;
    position: relative;
}

li { padding-left: 1.5em; }


/* Ueber Section */
#ueber h2 {
    color: var(--primary-color);
    text-align: center;
}

#ueber p {
    color: var(--text-color);
    text-align: center;
}

#ueber h2 { padding-bottom: 80px; }
#ueber p { font-size: 1.4rem; padding-bottom: 60px; }

#ueber img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

#ueber .right-column, #impressum .right-column, #datenschutz .right-column { padding: 0; }

#datenschutz a, #impressum a{
    color: var(--text-color);
}


/* Kontakt Section */
.image-background {
    position: relative;
    width: 100%;
    height: 450px;
    background-image: url(pictures/see.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.overlay-text {
    text-align: center;
    padding: 20px;
}

.overlay-text h3 {
    color: white;
    font-size: 4rem;
    font-weight: 400;
}


/*kontakt mit map*/

#kontakt .table-wrapper {
    list-style-type: none;
    padding: 80px 40px;
    display: flex;
    justify-content: space-between;
}

#kontakt .option a {
    text-decoration: none;
    color: var(--font-secondary);
}

#kontakt .option {
    font-family: var(--font-secondary);
    text-align: center;
}

.map-container {
    position: relative;
    width: 100%;
    height: 600px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.map-container iframe {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
}

.map-container img {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.map-overlay-content {
    background-color: rgba(128, 128, 128, 0.8); /* Grauer, halbtransparenter Hintergrund */
    padding: 15px;
    border-radius: 5px;
    max-width: 80%; /* Begrenzt die Breite des Textbereichs */
}

.map-overlay p {
    margin: 5px 0;
    color: white; /* Verbessert die Lesbarkeit auf grauem Hintergrund */
}

.map-overlay a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
}


/* List Styles */
.blue-section li::before, .white-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    width: 1em;
    display: inline-block;
}

.blue-section li::before { color: var(--text-color-inverted); }
.white-section li::before { color: var(--primary-color); }


/* Start Section */
.content-wrapper-start {
    display: flex;
    align-items: stretch;
    margin: 0 auto;
}

.left-column-start, .right-column-start { flex: 1; }

.left-column-start {
    display: flex;
    align-items: center;
    position: relative;
}

.image-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.profile-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.text-container {
    width: 100%;
    text-align: center;
    color: var(--primary-color);
}

.text-container h2:nth-of-type(1) { font-size: 5.8vw; font-weight: 500; margin: 20px 0 0; }
.text-container h2:nth-of-type(2) { font-size: 4.6vw; font-weight: 500; margin: 0 0 50px; }
.text-container p { font-family: var(--font-primary); margin-bottom: 20px; margin-left: 20px; margin-right: 20px;}
.text-container p:nth-of-type(1) { font-size: 2.5vw; font-style: italic; margin-bottom: 180px; }
.text-container p:nth-of-type(2), .text-container p:nth-of-type(3), .text-container p:nth-of-type(4) {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    margin: 5px;
    margin-left: 20px; margin-right: 20px;
    color: var(--text-color); }
.text-container p:nth-of-type(4) { margin-bottom: 70px; }
.text-container p:nth-of-type(5) {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    margin-bottom: 100px; 
    color: var(--text-color);}


/* Images */
.image-container-2 {
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

.first-image {
    flex: 1 1 1;
    height: 600px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.20);
}

.second-image {
    flex: 1 1 auto;
    height: 600px;
    object-fit: cover;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.20);
}

figure {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

figcaption {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
}


/* Footer */
footer { padding: 1rem 0; }

.content-wrapper-footer {
    margin: 0 auto;
    padding: 2rem;
}

.footer-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.footer-nav li { padding: 0; }

.footer-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.footer-nav .kontakt-button {
    background-color: var(--primary-color);
    color: var(--background-empty);
}


/* Media Queries */
@media (min-width: 1600px) {
    .text-container h2:nth-of-type(1) { font-size: 6rem; }
    .text-container h2:nth-of-type(2) { font-size: 4.7rem; }
    .text-container p:nth-of-type(1) { font-size: 2.4rem; }
    .text-container p:nth-of-type(2), .text-container p:nth-of-type(3), .text-container p:nth-of-type(4), .text-container p:nth-of-type(5) { font-size: 1.1rem; }
    h2 { font-size: 4rem; }
    .image-container { height: 850px; }
}

@media (min-width: 751px) {
    #menu-toggle + label { display: none; }
    nav { display: block !important; }
}

@media (max-width: 1000px) {
    .text-container p:nth-of-type(1) { font-size: 1.5rem; }
    .text-container p:nth-of-type(2), .text-container p:nth-of-type(3), .text-container p:nth-of-type(4), .text-container p:nth-of-type(5)
    { font-size: 1.0rem; }
}

@media (max-width: 750px) {

    /*header*/
    header {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
        position: relative;
    }
    header h1, header li { font-size: 1.05rem; }
    #menu-toggle + label {
        display: block;
        margin-left: auto;
    }
    .header-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        z-index: 1;
    }
    #menu-toggle:checked ~ .header-nav { display: flex; }
    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: center;
    }
    nav ul li { margin: 0 0 25px; }


    /*start*/
    .content-wrapper, .content-wrapper-start { flex-direction: column; }
    .left-column-start {
        margin-bottom: 20px;
        position: static;
    }
    .image-container {
        position: relative;
        height: 120vw;
        max-height: 75vh;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.20);
    }
    .profile-image {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 200%;
    }
    .text-container h2:nth-of-type(1) { font-size: 12vw; }
    .text-container h2:nth-of-type(2) { font-size: 9.6vw; margin-bottom: 30px; }
    .text-container p:nth-of-type(1) { font-size: 6vw; margin-bottom: 100px; }
    .text-container p:nth-of-type(2), .text-container p:nth-of-type(3), .text-container p:nth-of-type(4), .text-container p:nth-of-type(5) { font-size: 1.1rem; }
    .text-container p:nth-of-type(4), .text-container p:nth-of-type(5) { margin-bottom: 50px; }

    /*body*/
    li, p { font-size: 1.0rem; }
    h2 { font-size: 1.8rem; }
    #ueber h2 { padding-bottom: 25px; }
    #ueber p { font-size: 1rem; padding-bottom: 60px; }
    #datenschutz .content-wrapper, #impressum .content-wrapper { padding: 15px; }
    #impressum .right-column, #datenschutz .right-column { padding-left: 22px; }
    #kontakt .table-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }
    #kontakt .option { margin: 8px 0; }
    .image-background { height: 250px; }
    .map-container { height: 450px; }


    /*footer*/
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .option { margin-bottom: 45px; }
    .footer-nav li { margin-bottom: 1.8rem; }
    .text-container h2 { font-size: 30px; }
    .first-image {
        height: auto;
        width: 100%;
    }
    .figure {
        height: auto;
        width: 100%;
    }
    .second-image { display: none; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4aa2dd;
        --text-color: white;
        --text-color-inverted: white;
        --background-gray: hsl(0, 0%, 12%);
        --background-empty: hsl(0, 0%, 12%);
        --font-primary: 'Playfair Display', Georgia, Arial, sans-serif;
        --font-secondary: 'Roboto Serif', Georgia, Arial, sans-serif;
      }
  }
