/* === Grundlayout & Reset === */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #222;
  font-family: 'Courier New', Courier, monospace;
  font-size: large;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* === Navbar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  font-weight: bold;
  z-index: 1000;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.hide { top: -80px; }
.logo { height: 60px; margin-right: 1rem; }
.burger {
  margin-right: 1rem;
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.burger div {
  width: 25px;
  height: 3px;
  background: #e8e8e8;
  border-radius: 2px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0 2rem 0 0;
}
.nav-links li a {
  color: #e8e8e8;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.nav-links li a:hover { color: #bc44ed; }

/* === Responsive Navbar === */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    top: 60px;
    background: #222;
    flex-direction: column;
    width: 200px;
    border-radius: 0 0 0 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
    gap: 0;
    display: flex;
  }
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links li { padding: 1rem; }
  .burger { display: flex; }
}

/* === Parallax & Layout === */
.parallax, .parallax1, .parallax2 {
  min-height: 43rem;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax1, .parallax2 {
  background-image: url("../images/background.jpg");
}
.full-logo {
  max-width: 80vw;
  max-height: 60vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === Services === */
.services-container {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}
.service-box {
  background: #222;
  color: #e8e8e8;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 600px;
  padding: 2rem;
  margin: 1rem 0;
  box-sizing: border-box;
  transition: box-shadow 0.3s, transform 0.3s;
}
.service-box:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: scale(1.03);
}
@media (max-width: 900px) {
  .services-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
  }
  .service-box {
    width: calc(100vw - 2rem);
    margin: 2rem 0;
    border-radius: 0;
    box-sizing: border-box;
    transition: box-shadow 0.3s, border-radius 0.3s, transform 0.3s;
  }
  .service-box:nth-child(odd) {
    align-self: flex-start;
    border-top-right-radius: 2rem;
    border-bottom-right-radius: 2rem;
    margin-right: 3rem;
  }
  .service-box:nth-child(even) {
    align-self: flex-end;
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    margin-left: 3rem;
  }
}

/* === Spaltenbereich (purple-fields) === */
.purple-fields {
  display: flex;
  align-items: center;
  background: none;
  padding: 0;
}
.purple-field {
  flex: 1;
  background: none;
  padding: 2rem;
  box-sizing: border-box;
}
.purple-field.left img {
  max-width: 100%;
  height: auto;
  display: block;
  max-width: 350px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s, transform 0.3s;
}
.purple-field.left img:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: scale(1.03);
}
.divider {
  width: 2px;
  background: #ccc;
  height: 80%;
  min-height: 100px;
  margin: 0 1rem;
  align-self: center;
}
@media (max-width: 768px) {
  .purple-fields { flex-direction: column; align-items: stretch; }
  .divider {
    width: 80%;
    height: 2px;
    min-height: 0;
    margin: 1rem auto;
    align-self: stretch;
  }
  .purple-field.left img { max-width: 200px; }
}

/* === Parallax Grid === */
.parallax-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
}
.parallax-item {
  padding: 3rem 2rem;
  min-width: 300px;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: transparent;
  transition: box-shadow 0.3s, transform 0.3s;
}
.parallax-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transform: scale(1.03);
}
@media (max-width: 900px) {
  .parallax-section { padding: 0; margin: 0; }
  .parallax-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
  }
  .parallax-item {
    width: calc(100vw - 2rem);
    margin: 2rem 0;
    border-radius: 0;
    box-sizing: border-box;
    transition: box-shadow 0.3s, border-radius 0.3s, transform 0.3s;
  }
  .parallax-item:nth-child(odd) {
    align-self: flex-start;
    border-top-right-radius: 2rem;
    border-bottom-right-radius: 2rem;
    margin-right: 3rem;
  }
  .parallax-item:nth-child(even) {
    align-self: flex-end;
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    margin-left: 3rem;
  }
}

/* === Allgemeine Sektionen & Farben === */
.section {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.purple, .purple-bg {
  background: #45103a;
  color: #e8e8e8;
  padding: 2rem;
}
.beige, .beige-bg {
  background: #d3c4b1;
  color: #222;
  padding: 2rem;
}

/* === Impressum === */
.impressum-section {
  margin: 3rem;
  margin-top: 6rem;
  padding: 2rem 3rem;
  width: 70%;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}
@media (max-width: 900px) {
  .impressum-section { padding-left: 3rem; padding-right: 3rem; }
}
@media (max-width: 600px) {
  .impressum-section {
    width: 100vw;              /* Volle Bildschirmbreite */
    margin: 0;
    margin-top: 6rem;  
    margin-bottom: 4rem;
    padding: 1rem 0.7rem;      /* Innenabstand, links/rechts etwas Platz */
    border-radius: 0;          /* Keine abgerundeten Ecken */
    box-sizing: border-box;
  }
}

/* === Kontaktformular === */
.contact-container {
  background: none;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
}
#contactForm input,
#contactForm textarea {
  background: #e8e8e8;
  color: #222;
  border: 3px solid #45103a;
  border-radius: 1rem;
  font-size: 1rem;
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  transition: border 0.2s;
  font-family: 'Courier New', Courier, monospace;
}
#contactForm label { font-weight: bold; }
#contactForm textarea { resize: none; min-height: 140px; }
#contactForm input:focus,
#contactForm textarea:focus {
  border: 3px solid #bc44ed;
  outline: none;
}
#contactForm button {
  background: #45103a;
  color: #e8e8e8;
  border: none;
  border-radius: 1rem;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
#contactForm button:hover {
  background: #45103a;
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.contact-error {
  color: #d32f2f;
  margin-bottom: 1rem;
  display: none;
  font-weight: 600;
  text-align: center;
  background: #e8e8e8;
  border-radius: 0.7rem;
  padding: 0.5rem 0;
}
@media (max-width: 600px) {
  .contact-container {
    padding: 1.2rem 0.5rem;
    border-radius: 1rem;
    max-width: 95vw;
    margin: 0 auto;
  }
  #contactForm input,
  #contactForm textarea {
    font-size: 0.95rem;
    padding: 0.7rem 0.7rem;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* === Footer === */
.site-footer, .impressum-footer {
  padding: 1.5rem 0 1rem 0;
  background: #d3c4b1;
  color: #222;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.impressum-footer {
  background: #222;
  color: #e8e8e8;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}
.footer-content {
  border-top: 1px solid #222;
  margin: auto 2rem;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 1rem;
  flex-wrap: wrap;
  text-align: center;
}
@media (max-width: 600px) {
  .footer-content, .impressum-footer .footer-content {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}
.footer-link, .impressum-footer .footer-link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}
.footer-link:hover, .impressum-footer .footer-link:hover { opacity: 0.3; }
.footer-icon, .impressum-footer .footer-icon {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  color: inherit;
  transition: opacity 0.3s;
}
.footer-icon:hover, .impressum-footer .footer-icon:hover { opacity: 0.3; }
.impressum-footer .footer-icon svg rect,
.impressum-footer .footer-icon svg circle { stroke: #e8e8e8; }
.impressum-footer .footer-icon svg circle:last-child { fill: #e8e8e8; }

/* === Wellen-Trenner === */
.wave-divider {
  line-height: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 100px;
}