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

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  line-height: 1.5;
  margin: 0;
}

/* === Container === */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === Header / Nav === */
header.nav {
  position: sticky;
  top: 0;
  background: #333;
  color: #fff;
  border-bottom: 1px solid #eee;
  z-index: 10;
  padding: 0.5rem 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo img {
  height: 40px; /* Höhe vom Logo */
  width: auto;
  display: block;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

/* Hamburger button (hidden by default, only visible on mobile) */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

/* === Hero === */
.hero {
  background: #f5f5f5;
  padding: 3rem 1rem;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 1rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  background: #0073e6;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #005bb5;
}

/* === Sections === */
.section {
  padding: 3rem 0;
}

/* === Grid (services, form, etc.) === */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;   /* gleiche Proportionen */
  object-fit: cover;     /* Zuschneiden statt verzerren */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* === Form === */
form.grid {
  grid-template-columns: 1fr 1fr;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

form input,
form textarea {
  margin-top: 0.5rem;
  padding: 0.5rem;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* === Footer === */
.footer {
  background: #333;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  margin-top: 48px;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.hint {
  color: #555;
  font-size: 14px;
}

#formStatus {
  margin-top: 12px;
  font-weight: 600;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-toggle {
    display: block; /* nur auf Handy sichtbar */
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #333;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    max-height: 0;          /* eingeklappt */
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links a {
    color: #fff;
    padding: 0.5rem 0;
    font-size: 1.2rem;
  }

  .nav-links.active {
    max-height: 300px; /* klappt aus */
  }

  form.grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
