*{ border-collapse: collapse; box-sizing: border-box; margin: 0px; padding: 0px; transition: all .1s ease-in-out; }
a{ color:#f7f7cc; text-decoration: none;  }
img{ display: block; max-width:100%; color: #e7bd86; }
img:hover{ transform: scale(0.985); }

body{ padding: 25px; background-color: #181818; color:#d0d0d0; font-size:23px; height: 100%; margin-top: 100px; }
nav{ background-color: #111111; left: 0px; padding: 5px 1% 5px; position: fixed; top:0px; width: 100%; z-index: 99; border-bottom: 3px solid black; box-shadow: 0px 10px 20px -5px rgba(0,0,0,0.75), inset -60px 0px 30px -40px rgba(0,0,0,0.75), inset 60px 0px 30px -40px rgba(0,0,0,0.75); }
nav a{ background-color: #3d3d3d; height: 2.6vw; display: block; float:left; font-size: 1.2vw; margin: 4px 0.5%; text-align: center; border: 2px solid #474747; border-radius: 15%; box-shadow: inset 0px 0px 30px -10px rgba(0,0,0,0.75); padding-top: 0.5vw; letter-spacing: 0.2vw; }
nav a.hauptseite{ width: 16%;  }
nav a.nebenseite{ width: 7%; color:#9b9b92; }
nav a.wichtiges{ color:#71bf31; }
nav a:nth-child(2){ width: 4%; color: #abcbe8; padding-top: 0px; background-color: transparent; border: none; box-shadow: none; opacity: 0.7;}
nav a:nth-child(2):hover{ background-color: transparent; opacity: 1; }
nav a:first-child { display: none; width: 99%; height: 40px; font-size: 1em; padding-top: 4px; }
nav a:last-child{ width: 2%; color: #eb8181; }
nav a:hover{ background-color: #4e4e4e; }
nav .aktiv { background-color: #586774; }
nav a.deaktiviert { text-decoration: line-through; color: #271717; }

@media (max-width:1000px){
  nav a{ display: none; height: 7vw; font-size: 4vw; padding-top: 1vw; margin: 10px 0px; }
  nav a:first-child { display: block; }
  nav a:nth-child(2){ width: 30%; float: left; margin-left: 2%; height: 19vw; }
  nav a.hauptseite{ width: 60%;  float: right; margin-right: 2%; }
  nav a.nebenseite{ width: 25.2%;  float: left; margin: 10px 2%; }
  nav a:nth-child(6){ margin-left: 10%; }
  nav a:last-child{ width: 8%; margin-left: 2.4%; }
}

main{ text-align: center; }
main span{ width: 100%; display:block; margin-bottom: 50px; }
main h1{ font-size: 1.5em; margin-bottom: 20px; }
main h2{ width: 100%; text-align: center; font-size: 1.2em; }
main h3{ font-size: 1em; font-variant: small-caps; padding: 3px; user-select: none; cursor: pointer; }
main h3::selection { background: transparent; }
main p{ font-size: 1em; overflow-wrap: break-word; }
main b{ color: #f7f7cc; font-size: 0.9em; }
main i{ font-size: 0.9em; color: #afadad;}
@media (max-width:600px){
  main h1{ font-size: 1.1em; }
  main h2{ font-size: 0.9em; }
  main p{ font-size: 0.7em; }

}

main.hauptseite img{ display:inline-block; width: 100%; margin: 0px auto; transition: transform 0.5s ease; }
main.hauptseite a{ display: block; margin: 0px auto; max-width: 1200px; padding: 0px;}
main.hauptseite p{ max-width: 1200px; margin: 0px auto; padding: 0px 10px 20px; text-align: center; }
main.hauptseite img.klein{ width: 31.3333333333%; float:left; margin: 20px auto; }
main.hauptseite img.klein2{ width: 48%; float:left; margin: 20px auto; }
main.hauptseite img.rechts{ float: right; }
main.hauptseite img.mitte{ margin: 20px 3%; }
main.hauptseite img.desktop{ display:block; }
main.hauptseite img.smart{ display:none; width: 100%; margin: 20px auto; }
main.nebenseite img.banner{ max-width: 1200px; margin: 0px auto; background-color: inherit; }
main.nebenseite img.banner:hover{ transform: scale(1); }
main.nebenseite.partner{ display:inline-block; margin: 50px auto; width: 50%; height: 50px;}
main.nebenseite.partner img{ width: 50%;}
@media (max-width:600px){
  main h1{ font-size: 1.1em; }
  main h2{ font-size: 0.9em; }
  main p{ font-size: 0.7em; }
  main.hauptseite img.desktop{ display:none; }
  main.hauptseite img.smart{ display:block; }
}

footer{ width: 100%; display:inline-block; text-align: center; font-size: 0.5em; color: #757575; margin: 50px 0px; cursor: default; }


/*#######################*/
/*# Galerie #*/
/*#######################*/
.allgalerie div{ display: inline-block; height: 14vw; width: 14vw; margin: 0px auto; background-position: center; background-size: auto 15vw; border: 10px solid black; box-shadow: 10px 10px 20px 0px rgba(0,0,0,0.75); margin:5px; }
.allgalerie div a{ height: 100%; display:block; opacity: 1; position: relative; }
.allgalerie div a i{ position: absolute; left: 0; top: 45%; width: 100%; opacity: 0; }
.allgalerie div a:hover i{ opacity: 1; }
@media (max-width:1300px){
  .allgalerie div{ height: 20vw; width: 20vw; background-size: auto 21vw; }
}
@media (max-width:900px){
  .allgalerie div{ height: 30vw; width: 30vw; background-size: auto 31vw; }
}
@media (max-width:500px){
  .allgalerie div{ height: 70vw; width: 70vw; background-size: auto 71vw; }
}

/*###########################################*/
/*# Globale Einstellungen für die Galerien #*/
/*###########################################*/
.karte{ background-color: transparent; perspective: 1000px; display: inline-block; margin:15px; text-align: center; }
.karte-innen{ position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s; transform-style: preserve-3d; box-shadow: 10px 10px 20px 0px rgba(0,0,0,0.75);}
.karte a.lupe{ position: absolute;  z-index: 30;  transition: opacity 1s; opacity: 0; background-color: rgba(0, 0, 0, 0.4); }
.karte a.lupe i{  display:block; color: #ffffff ; }
.karte a.lup_1 { top: 8%; left: 5%; height: 75%; width: 90%; border-radius: 50%; }
.karte a.lup_1 i { margin-top: 50%; }
.karte a.lup_2 { top: 6%; left: 9%; height: 76%; width: 80%; border-radius: 0px; }
.karte a.lup_2 i{ margin-top: 60%; }
.karte a.lup_3 { top: 9%; left: 8.5%; height: 74%; width: 81.7%; border-radius: 0px; }
.karte a.lup_3 i{ margin-top: 42%; }
.karte a.lup_4 { top: 5.5%; left: 8.5%; height: 85%; width: 81.7%; border-radius: 0px; }
.karte a.lup_4 i{ margin-top: 68%; }
.karte-innen img{ position: absolute; padding: 0px; background-color: rgba(0, 0, 0, 0); }
.karte-innen img:hover{ transform: scale(1); }
.karte-vorne img.switchknopf{ bottom:0px; right:0px; z-index:30; opacity: 0; transition: opacity 1s; cursor: pointer; }
.karte-hinten img.switchknopf{ bottom:0px; left:0px; z-index:30; opacity: 0; transition: opacity 1s; cursor: pointer; }
.karte-innen h2, .karte-innen p{ position: absolute; overflow: auto; }
.karte-innen h2{ padding-top: 5px; background-color: rgba(0, 0, 0, 0.2); z-index: 10; color: #abcbe8; }
.karte-innen p{ width: 100%; height: 100%; padding: 80px 10px 20px; z-index: 10; }
.karte-vorne, .karte-hinten { position: absolute; width: 100%; height: 100%;  }
.karte-vorne{ background-color: #586774; color: #d0d0d0; }
.karte-hinten{ background-color: #586774; color: #d0d0d0; transform: rotateY(180deg); backface-visibility: hidden; }
/*.karte .aktiv{  }*/
.karte .aktiv > .karte-hinten { backface-visibility: visible; }
.karte .aktiv a.lupe{ display:none; }
.karte .aktiv .karte-vorne img.switchknopf{ opacity: 0; }
.karte .aktiv .karte-hinten img.switchknopf{ opacity: 1; }
.karte-vorne:hover a.lupe{ opacity: 1; }
.karte-vorne:hover img.switchknopf{ opacity: 1; }

@media (max-width:600px){
  .karte-innen p{ padding: 60px 10px 20px; }
}
/*####################################################################################################*/
/*# Galerie Sondereinstellungen für die verschiedenen Formate (320x445) und (445x320) und (400x400) #*/
/*####################################################################################################*/
span.Galerie-Hochkant .karte { width: 320px; height: 445px; }
span.Galerie-Quer .karte { width: 445px; height: 320px; }
span.Galerie-Eck .karte { width: 320px; height: 320px; }
@media (max-width:600px){
  span.Galerie-Hochkant .karte{ margin: 15px 5px; width: 200px; height: 278px; }
  span.Galerie-Quer .karte{ margin: 15px 5px; width: 278px; height: 200px; }
  span.Galerie-Eck .karte{ margin: 15px 5px; width: 250px; height: 250px; }
}
@media (max-width:400px){
  span.Galerie-Hochkant .karte{ margin: 15px 5px; width: 260px; height: 362px; }
  span.Galerie-Quer .karte{ margin: 15px 5px; width: 260px; height: 187px; }
  span.Galerie-Eck .karte{ margin: 15px 5px; width: 260px; height: 260px; }
}
/*######################*/
/*# Animationeseffekte #*/
/*######################*/
@keyframes anim_flip_back {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(-180deg); }
}
@keyframes anim_flip_back_view {
  0%   { backface-visibility: hidden; }
  100% { backface-visibility: visible; }
}
@keyframes anim_flip_front {
  0%   { transform: rotateY(-180deg); }
  100% { transform: rotateY(0deg); }
}
@keyframes anim_einblenden {
  0%   { opacity: 0; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

/*######################*/
/*# Animationeseffekte #*/
/*######################*/

main .ladeeffekt:nth-child(1){ animation: anim_einblenden 100ms; }
main .ladeeffekt:nth-child(2){ animation: anim_einblenden 200ms; }
main .ladeeffekt:nth-child(3){ animation: anim_einblenden 400ms; }
main .ladeeffekt:nth-child(4){ animation: anim_einblenden 600ms; }
main .ladeeffekt:nth-child(5){ animation: anim_einblenden 800ms; }
main .ladeeffekt:nth-child(6){ animation: anim_einblenden 1000ms; }
main .ladeeffekt:nth-child(7){ animation: anim_einblenden 1200ms; }
main .ladeeffekt:nth-child(8){ animation: anim_einblenden 1400ms; }
main .ladeeffekt:nth-child(9){ animation: anim_einblenden 1600ms; }
main .ladeeffekt:nth-child(10){ animation: anim_einblenden 1800ms; }
main .ladeeffekt:nth-child(11){ animation: anim_einblenden 2000ms; }
main .ladeeffekt:nth-child(12){ animation: anim_einblenden 2200ms; }
main .ladeeffekt:nth-child(13){ animation: anim_einblenden 2400ms; }
main .ladeeffekt:nth-child(14){ animation: anim_einblenden 2600ms; }
main .ladeeffekt:nth-child(15){ animation: anim_einblenden 2800ms; }
main .ladeeffekt:nth-child(16){ animation: anim_einblenden 3000ms; }
main .ladeeffekt:nth-child(17){ animation: anim_einblenden 3200ms; }
main .ladeeffekt:nth-child(18){ animation: anim_einblenden 3400ms; }
main .ladeeffekt:nth-child(19){ animation: anim_einblenden 3600ms; }
main .ladeeffekt:nth-child(20){ animation: anim_einblenden 3800ms; }
main .ladeeffekt:nth-child(21){ animation: anim_einblenden 4000ms; }
main .ladeeffekt:nth-child(22){ animation: anim_einblenden 4200ms; }
main .ladeeffekt:nth-child(23){ animation: anim_einblenden 4400ms; }
main .ladeeffekt:nth-child(24){ animation: anim_einblenden 4600ms; }
main .ladeeffekt:nth-child(25){ animation: anim_einblenden 4800ms; }
main .ladeeffekt:nth-child(26){ animation: anim_einblenden 5000ms; }
main .ladeeffekt:nth-child(27){ animation: anim_einblenden 5200ms; }
main .ladeeffekt:nth-child(28){ animation: anim_einblenden 5400ms; }
main .ladeeffekt:nth-child(29){ animation: anim_einblenden 5600ms; }
main .ladeeffekt:nth-child(30){ animation: anim_einblenden 5800ms; }
main .ladeeffekt:nth-child(31){ animation: anim_einblenden 6000ms; }
main .ladeeffekt:nth-child(32){ animation: anim_einblenden 6200ms; }
main .ladeeffekt:nth-child(33){ animation: anim_einblenden 6400ms; }
main .ladeeffekt:nth-child(34){ animation: anim_einblenden 6600ms; }
main .ladeeffekt:nth-child(35){ animation: anim_einblenden 6800ms; }
main .ladeeffekt:nth-child(36){ animation: anim_einblenden 7000ms; }
main .ladeeffekt:nth-child(37){ animation: anim_einblenden 7200ms; }
main .ladeeffekt:nth-child(38){ animation: anim_einblenden 7400ms; }
main .ladeeffekt:nth-child(39){ animation: anim_einblenden 7600ms; }
main .ladeeffekt:nth-child(39){ animation: anim_einblenden 8000ms; }