
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #1e1e1e;
  color: #f0f0f0;
  overflow-x: hidden;
}
header {
  background-color: rgba(42, 42, 42, 0.9);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
header img {
  height: 60px;
  max-width: 80vw;
}
nav {
  display: flex;
  gap: 20px;
}
nav a {
  color: #ff6f00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
nav a:hover {
  color: #ffa040;
}
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: #ff6f00;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #2a2a2a;
  position: absolute;
  top: 70px;
  right: 20px;
  border-radius: 8px;
  overflow: hidden;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}
.mobile-nav a {
  padding: 12px 20px;
  border-bottom: 1px solid #444;
  color: #ff6f00;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  background-color: #3a3a3a;
  color: #ffa040;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
section {
  padding: 80px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
section:nth-child(even) {
  background-color: #292929;
}
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(255, 255, 255);
  text-shadow: 2px 2px 5px rgb(233, 105, 0);
  overflow: hidden;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}
.hero * {
  position: relative;
  z-index: 1;
}
.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Schwarz mit 50% Transparenz */
  z-index: 0;
}
.btn {
  margin-top: 30px;
  background: linear-gradient(135deg, #ff6f00, #ff8f00);
  color: #1e1e1e;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-shadow: none;
}
.btn:hover {
  background: linear-gradient(135deg, #ffa040, #ffb74d);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  flex-direction: row;
  justify-content: center;
}

.news-teaser {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  color: #f0f0f0;
  position: relative;
  width: 100%;
  min-width: 250px;
  max-width: 300px;
}

.news-teaser:hover {
  transform: scale(1.03);
}

.news-teaser * {
  text-decoration: none;
}

.news-teaser img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.news-teaser video {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.news-teaser h3 {
  margin: 15px 15px 0;
  color: #ff6f00;
  font-size: 1.2rem;
}

.news-teaser p {
  margin: 10px 15px 40px;
  font-size: 0.95rem;
  color: #ccc;
}

.news-teaser .date {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.8rem;
  color: #999;
}

@media screen and (max-width: 768px) {
  .news-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 10px;
    justify-content: flex-start;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;    
  }

  .news-teaser {
    flex: 0 0 85%;
    scroll-snap-align: center;
    max-width: 300px;
    box-sizing: border-box;
  }
  .news-teaser:hover {
    transform: unset;
  }
  .news-grid::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
  }  
}
.news-detail {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  color: #f0f0f0;
}

.news-detail h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ff6f00;
  text-align: center;
}

.news-detail p {
  font-size: 1.1rem;
  line-height: 1.6;
  white-space: pre-line;
}

.news-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.news-images img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.news-images video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
/* .gallery-row {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-row img {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 300px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.gallery-row img:hover {
  transform: scale(1.05);
}
.gallery-row::-webkit-scrollbar {
  height: 8px;
}
.gallery-row::-webkit-scrollbar-thumb {
  background-color: #ff6f00;
  border-radius: 4px;
} */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}
.gallery-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}
.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}
body.lightbox-open {
  overflow: hidden;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  z-index: 10001;
  opacity: 0.8;
}
.lightbox-arrow.left {
  left: 20px;
}
.lightbox-arrow.right {
  right: 20px;
}
.lightbox-arrow:hover {
  opacity: 1;
}
.leistung {
  background-color: #333;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s, background-color 0.3s;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.service-teaser {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  cursor: default;
}

.service-teaser:hover {
  transform: scale(1.03);
}

.service-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}
.service-teaser::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.9));
  z-index: 1;
}
.service-teaser * {
  text-decoration: none;
}
.service-teaser .text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 20px;
  padding: 10px 20px;
}

.service-teaser h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #ff6f00;
}
.service-teaser p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #ccc;
}
.service-teaser .mehr-link {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #ffa040;
  font-weight: bold;
  transition: color 0.3s;
}

.service-teaser:hover .mehr-link {
  color: #ffcc80;
}
.button-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.leistung-detail {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
  color: #f0f0f0;
}
.leistung-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.leistung-wrapper .text {
  flex: 1 1 50%;
  text-align: left;
}
.leistung-wrapper .text h1 {
  color: #ff6f00;
  margin-bottom: 10px;
}
.leistung-wrapper .text h2 {
  color: #ffa040;
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.leistung-wrapper .text p {
  line-height: 1.6;
  font-size: 1.05rem;
  white-space: pre-line;
}
.leistung-wrapper .service-images {
  flex: 1 1 40%;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.leistung-wrapper .service-images img,
.leistung-wrapper .service-images video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  object-fit: cover;
  cursor: zoom-in;
}
@media (max-width: 768px) {
  .leistung-wrapper {
    flex-direction: column;
  }
}
.social-icons {
  margin-top: 30px;
  text-align: center;
}
.social-icons a {
  text-decoration: none;
}
.social-icons img {
  width: 40px;
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
}
.social-icons img:hover {
  opacity: 1;
  transform: scale(1.1);
}
.kontakt-formular {
  max-width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}
.kontakt-formular label {
  font-weight: bold;
}
.kontakt-formular input,
.kontakt-formular textarea {
  padding: 10px;
  border: 1px solid #666;
  border-radius: 6px;
  background-color: #2c2c2c;
  color: #f0f0f0;
}
.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
  outline: none;
  border-color: #ff6f00;
}
.kontakt-formular .datenschutz {
  font-size: 0.9rem;
}
.kontakt-formular .datenschutz a {
  color: #ff6f00;
  text-decoration: underline;
}
.popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff6f00;
  color: #1e1e1e;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup.visible {
  opacity: 1;
}
.popup.hidden {
  display: none;
}
footer {
  background-color: #2a2a2a;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}
@media screen and (max-width: 768px) {
  nav { display: none; }
  .burger { display: flex; }
  .hero h1 { font-size: 2rem; padding: 0 10px; }
  .hero p { font-size: 1rem; padding: 0 10px; }
  .hero { height: auto; padding: 100px 10px 60px; }
}

.text-page {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  line-height: 1.8;
  font-size: 1.05rem;
  background-color: #292929;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #f0f0f0;
}

.text-page h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #ff6f00;
}

.text-page h2 {
  color: #ff8c3a;
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.text-page p {
  margin-bottom: 20px;
}

.text-page a {
  color: #ff6f00;
  text-decoration: none;
}

.text-page a:hover {
  text-decoration: underline;
}

.scroll-animate {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 60px 20px;
}

.login-box {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.login-box h2 {
  margin-bottom: 20px;
  color: #ff6f00;
}

.login-box label {
  display: block;
  text-align: left;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #f0f0f0;
}

.login-box input[type="password"],
.login-box input[type="submit"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 6px;
  background-color: #444;
  color: #f0f0f0;
}

.login-box input[type="submit"] {
  background: linear-gradient(135deg, #ff6f00, #ff8f00);
  color: #1e1e1e;
  font-weight: bold;
  cursor: pointer;
}

.login-box input[type="submit"]:hover {
  background: linear-gradient(135deg, #ffa040, #ffb74d);
}

.login-box .error {
  color: #ff4d4d;
  font-size: 0.95rem;
  margin-top: 10px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.admin-form .form-row {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.admin-form label {
  margin-bottom: 6px;
  font-weight: bold;
  color: #f0f0f0;
}

.admin-form input,
.admin-form textarea {
  padding: 10px;
  border: 1px solid #555;
  background-color: #2a2a2a;
  color: #f0f0f0;
  border-radius: 6px;
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: #ff6f00;
}    