/* ---------- Grundlayout ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.6;
}

/* ---------- Navigation ---------- */
nav {
  background: #0f172a; /* dunkler Header */
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-inner a {
  color: #f8fafc;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.nav-inner a:hover {
  color: #ffffff;
}

.nav-inner a.active {
  font-weight: 600;
  border-bottom: 2px solid #ffffff;
}

/* ---------- Klassisches Banner ---------- */
.banner {
  max-width: 1050px;       /* mittig ausgerichtet */
  margin: 2rem auto;       /* Abstand oben / unten */
  height: 400px;           /* Höhe passend zu deinem kleinen Bild */
  background-position: center;
  background-size: cover;  /* füllt den Bereich vollständig, Bild wird ggf. zugeschnitten */
  background-repeat: no-repeat;
  background-color: #ffffff; /* freistehend, hell */
  border-radius: 12px;      /* leicht abgerundet */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* optional für Tiefe */
}

/* ---------- Inhalt ---------- */
section {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
}

section h1 {
  margin-bottom: 1rem;
}

section h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

section p {
  color: #475569;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
footer {
  background: #0f172a;
  color: #f8fafc;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .nav-inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  .banner {
    height: 160px;
    border-radius: 8px;
  }
}

/* ---------- Maschinen-Boxen ---------- */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.machine-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.machine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.machine-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.machine-card h3 {
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.machine-card p {
  color: #475569;
  font-size: 0.95rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.project-image {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  margin-bottom: 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.placeholder-3d {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.placeholder-laser {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.placeholder-mechanik {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.placeholder-elektronik {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.placeholder-workshop {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

