/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #59666c; /* gleiche Farbe wie Body */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
  
.loader {
    font-size: 24px;
    color: white;
    animation: pulse 1s infinite alternate;
}
  
@keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}
  
/* Verhindert, dass Inhalte beim Laden scrollen */
body.loading {
    overflow: hidden;
}  

/* Allgemein */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: #59666c;
    font-family: Arial, Helvetica, sans-serif;
}


/* === Parallax-Container === */
.parallax {
    position: relative;
    height: 100vh;
    background-attachment: scroll; /* mobile-kompatibel */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 0px;
    z-index: 1;
}

footer {
    background-color: #59666c;
    color: #203038;
    text-align: center;
    padding: 20px;
    margin-top: 5px;
    font-size: 16px;
}

a {
    color: #0d374c;
}

/* Alle Inhalte sollen im Vordergrund schweben */
.titel, .schriftzug, .textbox, footer, #navbar, .burgerposition {
    position: relative;
    z-index: 5;
}

.container {
    position: absolute;
    margin: 20px;
    width: auto;
}

.titel {
    height: auto;
    width: 100%;
    float: left;
    text-align: center;
    background-color: #8ab4c8;
    opacity: 90%;
    color: #203038;
    padding: 30px;
    margin-top: -230px;
    /*margin-bottom: 50%;*/
    font-size: large;
}

.schriftzug {
    height: auto;
    width: 100%;
    background-color: #467bd7;
    font-size: 50px;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    padding: 20px;
}

/* Textgestaltung in der blauen Box */
.textbox {
    background-color: #b2d1df;
    padding: 10vw;
    text-align: left;
    line-height: 1.8;
    color: #203038;
}
  
.textbox h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    color: #0d374c;
    text-transform: uppercase;
}
  
.textbox .intro {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
  
.textbox .highlight {
    font-style: italic;
    color: #0d374c;
    font-weight: bold;
}
  
.textbox .keyword {
    font-weight: 600;
    color: #203038;
}
  
.textbox blockquote {
    margin-top: 2.5rem;
    padding-left: 1rem;
    border-left: 4px solid #0d374c;
    font-style: italic;
    color: #0d374c;
    opacity: 0.85;
}
  
.vita-content {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #222;
    line-height: 1.6;
}
  
.vita-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}
  
.vita-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
  
.vita-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
  
.vita-content li {
    margin-bottom: 0.6rem;
}
  
.vita-content strong {
    color: #444;
    font-weight: 600;
}

/* Navigationsleiste */

#navbar {
    overflow: hidden;
    background-color: #7e8f97;
}

#navbar a {
    float: left;
    color: rgb(212, 221, 228);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

#navbar a:hover {
    background-color: #ddd;
    color: black;
}

* {
    box-sizing: border-box;
}

.responsive {
    width: 100%;
    height: auto;
}

@media screen and (max-width: 1000px) {
    #navbar {
        display: none;
    }
    
}

@media screen and (min-width: 1000px) {
    .burgerposition {
        display: none;
    }
    
}

/* Burgermenu */

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 7;
    top: 0;
    left: 0;
    background-color: rgb(70, 102, 121);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 22px;
    color: rgb(160, 160, 160);
    display: block;
    transition: 0.3s;
    white-space: nowrap;
}

.sidenav a:hover {
    transition: 0.3s;
    text-shadow: rgb(48, 45, 45);
}

#main {
    transition: margin-left .5s;
    padding: 20px;
}

.container {
    display: inline-block;
    cursor: pointer;
}

.burgerposition {
    position: fixed;
    z-index: 50;
}

.bar1,
.bar2,
.bar3 {
    width: 35px;
    height: 5px;
    background-color: rgb(53, 109, 219);
    margin: 6px 0;
    transition: 0.4s;
    border: solid rgb(38, 156, 180) 1px;
}

.change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

                    /* Galerie */

/*Grid Layout*/

.bilderbox {
    background-color: #7e8f97;
    padding: 0 4vw; /* außen 4vw Abstand */
}
  
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* sorgt für gleichmäßige Abstände */
    gap: 4vw; /* konstanter Abstand zwischen den Spalten */
    margin: 0 auto;
}
  
.column {
    margin-top: 6vh;
    margin-bottom: 6vh;
    flex: 1 1 calc(33.333% - 4vw); /* drei Spalten, minus Abstand */
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
.column img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 4vh;
}
  
  /* Optional: sanfter Hover-Effekt */
.column img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
  
/* Tablet: zwei Spalten */
@media screen and (max-width: 900px) {
    .column {
      flex: 1 1 calc(50% - 4vw);
    }
}
  
/* Smartphone: eine Spalte */
@media screen and (max-width: 600px) {
    .column {
      flex: 1 1 100%;
    }
}

/* Style the Image Used to Trigger the Modal */

.myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 2px 2px 10px rgb(41, 38, 38);
}

.myImg:hover {
    opacity: 0.7;
}


/* The Modal (background) */

.modal {
    display: none;
    position: fixed;
    z-index: 6;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}


/* Modal Content (Image) */

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}


/* Caption of Modal Image (Image Text) - Same Width as the Image */

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}


/* Add Animation - Zoom in the Modal */

.modal-content,
#caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}


/* The Close Button */

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* 100% Image Width on Smaller Screens */

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

/* Kontakt */

.kontaktbox {
    border: solid rgb(20, 20, 65) 2px;
    background-color: #467bd7;
    padding: 5vw;
    border-radius: 5px;
}

input[type=text], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}

input[type=email], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}
  
input[type=submit] {
    background-color: #240c8f;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
  
input[type=submit]:hover {
    background-color: #467bd7;
}