/* Basis-Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #d3d4cc;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: #2c73a4;
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.logo-nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s;
}

/* Sprachumschalter */
.language-switcher {
  display: flex;
  gap: 0.5rem;
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
}

.language-switcher a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.language-switcher a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hauptnavigation */
.main-nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: #ecf0f1;
  padding: 0.8rem 1.5rem;
  border-radius: 15px;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
}

.nav-link:hover {
  background: #3498db;
  color: white;
}

/* Hauptinhalt */
main {
  margin-top: 100px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  scroll-margin-top: 5rem;
}

#home {
  padding: 4rem 0;
  scroll-margin-top: 30px;
}

h1, h2, h3 {
  font-size: 40px;
  margin-top: 0;
  padding-left: 0.5rem;
  color: #2c3e50;
  font-weight: 700;
}

p {
  font-size: 25px;
  margin-top: 0;
  padding-left: 0.5rem;
  max-width: 1000px;
  font-weight: 400;
}

/* Produktliste */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  row-gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.product-item {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.product-image {
  flex: 0 0 300px;
  overflow: hidden;
  border-radius: 10px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-item:hover .product-image img {
  transform: scale(1.05);
}

.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0 0;
}

.product-details h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 0;
  font-size: 32px;
}

.product-details p {
  margin: 0.5rem 0;
  flex-grow: 1;
  font-size: 22px;
  padding-left: 0;
}

.price {
  margin-top: 1.5rem;
  font-weight: bold;
  font-size: 28px;
  color: #3498db;
}

/* Kontaktformular */
form {
  max-width: 1200px;
  margin: 2rem auto;
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

input, textarea {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 20px;
  font-family: 'Montserrat', sans-serif;
}

input::placeholder,
textarea::placeholder {
  font-size: 20px;
  color: #999;
  font-family: 'Montserrat', sans-serif;
}

button {
  background: #3498db;
  color: white;
  padding: 1.5rem 3rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  width: auto;
  font-size: 24px;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
}

button:hover {
  background: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 1rem;
  font-family: 'Montserrat', sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: center;
}

.footer-logo img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-info, .footer-contact, .footer-legal {
  padding: 1rem;
}

.footer-info p, .footer-contact p {
  font-size: 18px;
  margin: 0.8rem 0;
  padding-left: 0;
}

.footer-legal {
  text-align: center;
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin-top: 1rem;
}

.footer-legal p {
  font-size: 16px;
  margin: 0.5rem 0;
}

.footer-legal a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: #1abc9c;
  text-decoration: underline;
}

/* Home-Bild */
.home-image-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.home-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

/* Hamburger Menü (mobil) */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s;
}

/* Legal Pages */
.legal-page section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.legal-page h1 {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #3498db;
}

.legal-content h2 {
  font-size: 24px;
  color: #2c73a4;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.legal-content strong {
  color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .product-list {
    gap: 6rem;
  }
  
  .product-image {
    flex: 0 0 250px;
  }
  
  .home-image {
    height: 350px;
  }
}

@media (max-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 4rem;
  }
  
  h1, h2, h3 {
    font-size: 36px;
  }
  
  p {
    font-size: 22px;
  }
  
  .product-details p {
    font-size: 20px;
  }
  
  .price {
    font-size: 24px;
  }
  
  .home-image {
    height: 300px;
  }
}

@media (max-width: 900px) {
  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
  }
  
  .home-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  /* Header */
  .hamburger {
    display: flex;
  }
  
  .language-switcher {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 1rem;
    order: 3;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 10px;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2c73a4;
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .menu-toggle:checked ~ .main-nav {
    display: flex;
  }
  
  .nav-link {
    border-radius: 0;
    padding: 1.2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    white-space: normal;
    font-size: 20px;
  }
  
  /* Hauptinhalt */
  main {
    margin-top: 80px;
    padding: 0 1rem;
  }
  
  section {
    padding: 3rem 0;
    scroll-margin-top: 80px;
  }
  
  #about {
    padding-top: 5rem;
  }
  
  /* Produktliste */
  .product-list {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 0;
  }
  
  .product-item {
    flex-direction: column;
    padding: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .product-image {
    flex: 0 0 auto;
    margin-bottom: 1rem;
    max-height: 300px;
  }
  
  /* Schriftgrößen */
  h1, h2, h3 {
    font-size: 32px;
    padding-left: 1rem;
  }
  
  p {
    font-size: 20px;
    padding-left: 1rem;
  }
  
  .product-details h3 {
    font-size: 28px;
  }
  
  .product-details p {
    font-size: 18px;
  }
  
  .price {
    font-size: 22px;
  }
  
  /* Kontaktformular */
  form {
    padding: 2rem;
  }
  
  input, textarea {
    padding: 1rem;
    font-size: 18px;
  }
  
  input::placeholder,
  textarea::placeholder {
    font-size: 18px;
  }
  
  button {
    padding: 1.2rem 2.5rem;
    font-size: 20px;
  }
  
  .home-image {
    height: 200px;
  }
  
  /* Legal Pages */
  .legal-page section {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .legal-page h1 {
    font-size: 28px;
  }
  
  .legal-content h2 {
    font-size: 22px;
  }
  
  .legal-content p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 40px;
  }
  
  section {
    padding: 2rem 0;
  }
  
  h1, h2 {
    font-size: 28px;
  }
  
  p {
    font-size: 18px;
  }
  
  .logo-nav-container {
    gap: 1rem;
  }
  
  .product-list {
    gap: 3rem;
  }
  
  .product-item {
    padding: 1.2rem;
    margin-bottom: 2.5rem;
  }
  
  .product-details h3 {
    font-size: 24px;
  }
  
  .product-details p {
    font-size: 16px;
  }
  
  .price {
    font-size: 20px;
  }
  
  form {
    padding: 1.5rem;
  }
  
  footer {
    padding: 2rem;
    font-size: 18px;
  }
  
  .home-image {
    height: 150px;
  }
  
  .legal-page section {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .legal-page h1 {
    font-size: 24px;
  }
}