body {
    top: 0;
    lefT: 0;
    margin: 0;
    background: url(/images/backgroundnew.png),#a9e0e7;
    font-family: 'Yanone Kaffeesatz', sans-serif;
}

#container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
header{
    flex: 2.5;
    margin: auto;
    position: relative;
    width: 100%;
}
.navwrapper{
    bottom: 0;
    width: 100%;
    position: absolute;
    text-align: center;
}
#nav {
    margin: auto;
    position: relative;
}
#nav,
#nav ul,
#nav li{
    list-style: none;
    display: inline-block;
}
#nav li{
    float: left;
    margin-left: 4vw;
    font-weight: bold;
    font-size: 30px;
    text-transform: uppercase;
    color: #560016;
}
#wrapper {
    background: white;
    flex: 5;
    position: relative;
    max-height: 468px;
    border-bottom:1px solid rgba(2,118,109,0.2);
    border-top:1px solid rgba(2,118,109,0.2);
}
#pages {
    margin: 0 auto;
    overflow: visible;
}
#content {
    width: 70%;
    height: 468px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}
footer {
    flex: 2.5;
    margin: 25px auto;
    position: relative;
    text-align: center;
}
footer p{
    line-height: 20px;
    color: #560016;
    font-size: 20px;
    float: left;
    margin-left: 2vw;
}
p {
    display: block;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    font-weight: lighter;
    font-size: 100%;
}
.title {
    color: #560016;
    font-weight: bold;
    font-size: 58px;
    text-transform: uppercase;
    line-height: normal;
    margin-top: 116px;
}
.title strong {
    color: #c7343c;
    font-size: 138px;
}
.title .sstrong {
    color: #9f7469;
    display: block;
    font-size: 34px;
    font-weight: 100;
    text-transform: none;
    text-indent: 2px;
    margin: -15px auto;
}
.left {
    overflow: visible;
    float: left;
    max-width: 45%;
}
.right {
    overflow: visible;
    float: left;
    margin-left: 5%;
    max-width: 45%;
}
.center {
    text-align: center;
}
.center .thumbnail {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.thumbnail {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
}
.thumbnail img {
    position: absolute;
    left: 50%;
    top: 50%;
    height:100%;
    width: auto;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}
.thumbnail img.portrait {
    width: 100%;
    height: auto;
}
#nav li.active,
#nav li:hover {
    color: #c7343c;
}
p[name=impressum].active,
p[name=impressum]:hover {
    color: #c7343c;
}
p[name=datenschutz].active,
p[name=datenschutz]:hover {
    color: #c7343c;
}
footer a img {
    width: 32px;
    float: left;
    margin-top: -8px;
}
h2 {
    color: #c7343c;
    font-size: 45px;
    text-transform: uppercase;
}
h2 span {
    color: #560016;
    font-size: 34px;
    text-transform: uppercase;
}

.block {
    margin: auto;
    max-width: 900px;
    display: inline-block;
}
div p {
    margin: 0;
}
div.left {
    margin: 5px;
    text-align: left;
}
div.left ul {
    -webkit-padding-start: 0px;
    margin-top: 0;
}
div.left ul li {
    list-style: none;
    text-align: left;
}

table.left {
    padding-top: 10px;
}

#alert {
    z-index: 100;
    position: fixed;
    width: 100%;
    padding: 5px;
    background-color: #c7343c;
    color: white;
    font-size: xx-large;
    text-align: center;
    align-content: center;
    vertical-align: middle;
}
#alert > button {
    padding-left: 10px;
    padding-right: 10px;
    -webkit-border-radius:5px;
    -moz-border-radius:5px;
    border-radius:5px;
    font-size: x-large;
    text-align: center;
    border: 0;
    background-color: white;
    color: black;
}

.gallery-container,
.gallery-image {
    margin: 0;
    padding: 0;
}

/* CSS for the gallery */
.gallery-container {
    position: relative;
    width: 100%;
    max-height: 200px; /* Set a maximum height for the gallery */
    margin-bottom: 20px;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%; /* Ensure the image maintains aspect ratio within the container */
    margin: 0 auto;
    display: inline-block;
}
.gallery-image img {
    object-fit: contain;
}

/* Style for the preview bar */
.preview-bar {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    background-color: #f1f1f1;
}

/* Style for the preview images */
.preview-image {
    width: 100px; /* Adjust the width of preview images according to your preference */
    height: 60px; /* Adjust the height of preview images according to your preference */
    margin: 0 10px;
    cursor: pointer;
    display: inline-block;
    border: 2px solid #ccc;
    opacity: 1;
    transition: opacity 0.3s ease; /* Add a transition for smooth fading effect */
}

/* Style for the rightmost image (appearing from the right) */
.preview-image:last-child {
    opacity: 0;
}


/* Style for the enlarged image modal (you can implement this part based on your requirements) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
}

/* Close button for the modal */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

/* Gallery container */
.gallery-container {
    position: relative;
    max-width: 100%;
    text-align: center;
}

.gallery-image {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Navigation container for dots and arrows */
.navigation-container {
    text-align: center;
    margin-top: 10px;
}

/* Navigation dots */
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #333;
}

/* Navigation arrows */
.arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
    color: #fff;
    text-align: center;
    line-height: 20px;
}

.arrow:hover {
    background-color: #555;
}

/* CSS for the gallery */
.gallery-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.gallery-image {
    max-width: 100%;
    max-height: 400px; /* Set a maximum height for the images */
    margin: 0 auto;
    display: block;
}

.navigation-container {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.pipe {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #333;
    color: white;
    text-align: center;
    line-height: 30px;
    font-size: 18px;
    cursor: pointer;
}

/* Left arrow */
.arrow.left {
    left: 10px;
}

/* Right arrow */
.arrow.right {
    right: 10px;
}

