* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f8f9fa;
  background-image:
    linear-gradient(#e9ece9 1px, transparent 1px),
    linear-gradient(90deg, #e9ece9 1px, transparent 1px);
  background-size: 28px 28px;
  color: #222;
  line-height: 1.6;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: nowrap;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

nav a {
  text-decoration: none;
  color: #222;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #0F6E56;
}

/* Hamburger toggle button (hidden on wide screens) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #222;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Logo (icon + wordmark, built from real markup rather than an image) */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  display: block;
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.logo-icon .bar {
  fill: #e3f0ec;
  stroke: #0F6E56;
  stroke-width: 6;
}

.logo-word {
  font-size: 1.4rem;
  font-weight: bold;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo-word .accent {
  color: #0F6E56;
}

/* Hero */
.hero {
  min-height: auto;
}

.hero-content {
  text-align: center;
  padding: 70px 20px 40px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #0F6E56;
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #0C5A47;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Cards & Gallery */
.cards,
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card,
.gallery-item {
  background: white;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card {
  padding: 40px;
}

.gallery-item {
  padding: 0;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card:hover,
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Section intros */
.section-intro {
  max-width: 720px;
  margin: 10px auto 0;
  text-align: center;
  color: #555;
}

/* Effekte / Glow showcase */
.glow-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.glow-figure {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glow-figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.glow-figure img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.glow-figure figcaption {
  text-align: center;
  padding: 14px;
  font-size: 0.95rem;
  color: #444;
  font-weight: bold;
}

/* Serienfertigung & Sonderanfertigung */
.fertigung-group {
  margin-top: 50px;
}

.fertigung-group h3 {
  text-align: center;
  font-size: 1.3rem;
  color: #0F6E56;
  margin-bottom: 10px;
}

.gallery-compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery-caption {
  padding: 12px 14px 16px;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

/* Über uns */
.ueber-uns-text {
  max-width: 760px;
  margin: 30px auto 0;
}

.ueber-uns-text p {
  margin-bottom: 18px;
  color: #333;
}

/* Frisch aus dem Drucker - Carousel */
.carousel-section {
  padding: 20px 0 60px;
  max-width: 100%;
}

.carousel-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: carousel-scroll 84s linear infinite;
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-item {
  flex: 0 0 auto;
  width: 260px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.carousel-item img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  cursor: zoom-in;
}

.carousel-item p {
  padding: 12px 14px 16px;
  font-size: 0.88rem;
  color: #555;
  text-align: center;
}

@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .carousel-item { width: 200px; }
  .carousel-item img { height: 150px; }
}

/* Lightbox */
.gallery-item img,
.glow-figure img {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 1000;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

/* Lightbox-Navigation */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

@media (max-width: 600px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* Upload */
.upload {
  text-align: center;
}

.small {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
}

.upload-form {
  max-width: 480px;
  margin: 30px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upload-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  color: #444;
}

.upload-form input,
.upload-form select,
.upload-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  color: #222;
}

.upload-form input:focus,
.upload-form select:focus,
.upload-form textarea:focus {
  outline: none;
  border-color: #0F6E56;
}

.upload-form .btn {
  align-self: center;
}

.upload-msg {
  max-width: 480px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.upload-success {
  background: #e8f7ee;
  color: #1e7e42;
  border: 1px solid #b9e6c8;
}

.upload-error {
  background: #fdecec;
  color: #b3261e;
  border: 1px solid #f3bcb9;
}

/* Impressum */
.impressum {
  max-width: 700px;
  margin: 60px auto;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.impressum h1 {
  margin-bottom: 20px;
}

.impressum h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
  color: #0F6E56;
}

.impressum h2:first-of-type {
  margin-top: 8px;
}

.impressum p {
  margin-bottom: 8px;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background: white;
  margin-top: 40px;
  color: #666;
}

/* Responsive */
@media (max-width: 880px) {
  nav {
    flex-wrap: wrap;
    padding: 16px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    order: 3;
    margin-top: 16px;
    white-space: normal;
  }

  nav ul.open {
    display: flex;
  }

  nav ul li {
    width: 100%;
    border-top: 1px solid #eee;
  }

  nav ul li a {
    display: block;
    padding: 14px 4px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section {
    padding: 50px 20px;
  }
}
