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

@font-face {
  font-family: Montserrat;
  src: url(/fonts/Montserrat-VariableFont_wght.ttf);
}

body {
  font-family: Arial, sans-serif;
  background-color: #f8fdf7;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: #b91c1c;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: #65a30d;
}

/* Kopfzeile */
header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1010;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 1200px;
  margin: 0 auto;
  transition: all 0.3s linear;
  background-size: 50px 50px;
  background-repeat: no-repeat;
  background-position: 10px center;
  height: 132px;
}

header img {
  height: 100px;
  grid-column: 1;
  margin-top: 1rem;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  grid-column: 2;
  transition: all 0.3s linear;
}

.navbar .menu-toggle {
  display: none;
}

nav {
  height: 100px;
  display: flex;
  transition: all 0.3s linear;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  box-sizing: border-box;
  align-items: center;
  display: flex;
  border-bottom: 5px solid #fff;
}

nav a.active {
  border-bottom-color: #65a30d;
  color: #65a30d;
}

nav a:hover {
  color: #b91c1c;
  border-bottom-color: #b91c1c;
}

.header_small {
  position: sticky;
  top: 0;
  height: 65px;
  background-image: url(/images/thumbnails/50x-/logo_small.png);
}

.header_small img {
  display: none;
}

.header_small nav {
  height: 30px;
}

/* Hero */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 500px;
}

.hero ul {
  list-style-type: none;
}

.hero li {
  position:absolute;
  height:100%;
  width:100%;
}

.hero li:first-child {
  z-index: 99;
}

.hero li:target,
.hero li.active {
  z-index: 100;
}

.hero img {
  object-fit: cover;
  max-width:100%;
  width:100%;
}

.hero .prev,
.hero .next {
  height: 91px;
  position: absolute;
  top: 50%;
  margin-top: -30px;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 200ms ease-out;
  color: #FFF;
  font-size: 40pt;
  background: #000;
  padding: 0 10px;
}

.hero .prev:hover,
.hero .next:hover {
  opacity: 1;
}

.hero .prev {
  left: 0;
}

.hero .next {
  right: 0;
  text-align: right;
}

.hero-text {
  position: absolute;
  bottom: 40px;
  right: 40px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  opacity: 0.75;
  z-index: 101;
}

.hero-text span {
  display: block;
  color: #b91c1c;
}

/* Inhalt */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  background: #FFF;
}

.section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.section:nth-child(even) div {
  grid-column: 2;
}

.section img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section:nth-child(even) a.lightbox-preview {
  grid-column: 1;
  grid-row: 1;
}

.section h2 {
  font-size: 4rem;
  color: #65a30d;
  font-family: Montserrat;
  position: relative;
}

.section h3 {
  color: #65a30d;
  font-family: Montserrat;
  font-size: 2rem;
}

.section h4 {
  font-family: Montserrat;
  font-size: 1rem;
}

.section h2 span {
  color: #333;
  font-weight: normal;
  font-size: 2rem;
  position: absolute;
  top: 16px;
  padding-left: 1rem;
}

.section p {
  margin: 1rem 0;
  color: #666;
}

.highlight-box {
  background: #991b1b;
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
}

.highlight-box p {
  color: #fff;
}

/* Kontaktformular */
.contact {
  background-color: #343434;
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.contact form {
  max-width: 600px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  row-gap: 0.16rem;
}

.contact input, .contact textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 5px;
}

.contact textarea,
.contact button {
  grid-column: 1 / span 2;
  resize: vertical;
}

.contact button {
  background: #b91c1c;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* Fusszeile */
footer {
  background-color: #343434;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-icons a {
  margin: 0 0.5rem;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}

/* ==== Seiten ==== */
/* Impressum */
.imprint, .imprint-link {
  display: block;
  margin-bottom: 1rem;
}

.imprint-link {
  font-size: 0.7rem;
}


/* Gallerie */
section.gallery {
  ul {
    list-style: none;
    column-count: 4;
    width: 1168px;
    margin: 0 auto;
    gap: 25px;
    padding: 0;
  }

  ul li {
    margin-bottom: 20px;
    display: block;    
  }

  ul li img {
    display: block;
    width: 100%;
    opacity: 0.9;
    filter: saturate(150%);
    border-radius: 8px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    padding: 5px;
    transition: all 500ms ease;
  }

  ul li:hover img {
    transform: scale(1.05);
    transition: all 500ms ease;
    opacity: 1;
    filter: saturate(100%);
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.1);
  }                        
}

/* Referenzen */
.references dl {
  margin-top: 20px;
}

.references dt {
  font-weight: bold;
  float: left;
  clear: left;
  width: 100px;
  text-align: right;
}

.references dd {
  margin: 0 0 0 110px;
  padding: 0 0 0.5em 0;
}

.references ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  grid-gap: 20px;
  margin-top: 30px;
}

.references .section:nth-child(even) ul {
  grid-column: 1;
  grid-row: 1;
}

.references li:first-child {
  width: 300px;
  grid-column: 1;
  grid-row: 1 / 3;
}

.references li:not(:first-child) {
  width: 100px;
}

.references .section:nth-child(even) li:first-child {
  width: 300px;
  grid-column: 3;
  grid-row: 1 / 3;
}

.references .section:nth-child(even) li:not(:first-child) {
  width: 100px;
}

/* Lightbox */
a.lightbox-preview {
  position: relative;
  display: inline-block;
}

a.lightbox-preview:hover::before {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #333;
  opacity: 0.75;
  background-image: url(/images/lupe.svg);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  cursor: zoom-in;
  content: "";
  z-index: 1000;
}

img.lightbox-preview {
  cursor: zoom-in;
}

.lightbox {
  display: none;
}

.lightbox-show {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox a {
  transition: all 0.3s linear;
  color: #333;
  background: #DDD;
  width: 48px;
  height: 48px;
  opacity: 0.75;
  padding: 10px;
  border-radius: 8px 0 0 8px;
/*  display: none;*/
  background-image: url(/images/pfeil.svg);
  background-size: 40px;
  background-repeat: no-repeat;
  background-position: 4px;
}

.lightbox a:hover {
  opacity: 1;
}

.lightbox .prev {
}

.lightbox .next {
  rotate: 180deg;
}

.lightbox .close {
  display: inline;
  border-radius: 8px;
  opacity: 0.75;
  position: absolute;
  top: 20px;
  right: 20px;
  background-image: url(/images/x.svg);

}



 /* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  header {
    display: block;
    width: 100%;
    height: 132px;
    background: #FFF;
  }
  .header_small {
    background-image: none;
    height: 132px;
    position: initial;
  }

  header img {
    width: 300px;
    height: auto;
    margin-top: 2rem;
    float: left;
  }

  .navbar {
    height: 100%;
    position: relative;
  }

  .navbar .menu-toggle {
    border: 0;
    background: #FFF;
    position: absolute;
    right: 10px;
    padding: 10px;
    top: 40px;
    font-size: 19pt;
    display: block;
  }

  .navbar #nav-menu {
    opacity: 0;
    display: none;
    position: absolute;
    top: 100px;
    right: 0;
    width: 200px;
    background: #FFF;
    z-index: 1000;
    height: fit-content;
    padding: 0 20px;
    transition: opacity 1.5s ease;
  }

  .navbar #nav-menu.show {
    opacity: 1;
    display: block;
  }

  nav a {
    padding: 10px 0;
    margin: 20px 0;
  }

  .hero {
    max-width: 100%;
    height: 190px;
  }

  .hero-text {
    font-size: 0.8rem;
    bottom: 10px;
  }

  .section {
    display: block;
  }

  .section h2 {
    font-size: 2rem;    
  }

  .section h2 span {
    position: initial;
    padding: 0;
  }

  .references ul,
  .references .section:nth-child(2n) ul {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .references ul a,
  .references ul a img {
    width: 100%;
  }

  .references li:first-child,
  .references .section:nth-child(2n) li:first-child {
    width: 100%;
    grid-column: 1 / 4;
    grid-row: 0;
  }

  .references li:nth-child(5) {
    display: none;
  }

  section.gallery ul {
    column-count: 1;
  }

  section.gallery ul li img {
    width: 380px;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
}





/*
@media (max-width: 768px) {
  .section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    font-size: 1.5rem;
    left: 20px;
    bottom: 20px;
  }

  nav a {
    margin: 0 10px;
  }
}

/* Mobile Nav Toggle */
/*.menu-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    margin-top: 1rem;
  }

  #nav-menu.show {
    display: flex;
  }

  nav a {
    margin: 10px 0;
  }
}