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

body {
  background: #f4f4f4;
  color: #111;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Hintergrund Muster + Verlauf über komplette Seite (lokal aus img/circuit.png) */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image:
    linear-gradient(to bottom, rgba(244,244,244,0.85), rgba(0,0,0,0.55)),
    url("img/circuit.png");

  background-repeat: repeat;
  background-size: 600px;
  opacity: 0.25;

  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 92%;
  max-width: 1150px;
  margin: 0 auto;
}

/* Topbar */
.topbar {
  background: #111;
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-right a {
  margin-left: 15px;
  font-weight: bold;
}

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: 0.2s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  position: relative;
  transition: 0.2s ease;
}

.logo {
  height: 140px;
  width: auto;
  transition: 0.2s ease;
}

/* Shrink beim Scrollen */
.header.shrink .logo {
  height: 90px;
}

.header.shrink .header-content {
  padding: 2px 0;
}

/* Desktop Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 20px;
  font-weight: bold;
  color: #111;
}

.nav-btn {
  background: #111;
  color: #fff !important;
  padding: 10px 14px;
  border-radius: 8px;
}

/* Burger Menü Button */
.menu-toggle {
  display: none;
  font-size: 32px;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #111, #2b2b2b);
  color: white;
  padding: 90px 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("img/circuit.png");
  opacity: 0.12;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 18px;
  max-width: 750px;
  margin: 0 auto 25px auto;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.2s ease-in-out;
}

.btn.primary {
  background: #fff;
  color: #111;
}

.btn.secondary {
  border: 2px solid #fff;
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

/* Sections */
.section {
  padding: 70px 0;
}

.section-title {
  font-size: 34px;
  margin-bottom: 10px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 45px auto;
  color: #444;
}

.section.dark {
  background: #111;
  color: #fff;
}

.section.dark .section-subtitle {
  color: rgba(255,255,255,0.75);
}

.section-title.light {
  color: #fff;
}

.section-subtitle.light {
  color: rgba(255,255,255,0.75);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid #ddd;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.card p {
  color: #444;
}

.card.highlight {
  background: #111;
  color: #fff;
  border: 1px solid #444;
}

.card.highlight p {
  color: rgba(255,255,255,0.8);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.feature {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 22px;
}

.feature h3 {
  margin-bottom: 8px;
}

/* Area box */
.area-box {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  border: 1px solid #ddd;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Contact */
.contact {
  background: #f0f0f0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.contact-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid #ddd;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card a {
  font-weight: bold;
}

/* CTA */
.cta-box {
  background: #111;
  color: #fff;
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.cta-box p {
  opacity: 0.85;
  margin-top: 10px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Footer */
.footer {
  background: #111;
  color: #fff;
  padding-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-logo {
  height: 55px;
  margin-bottom: 10px;
}

.footer-left p {
  opacity: 0.85;
  max-width: 400px;
}

.footer-right p {
  margin-bottom: 6px;
  opacity: 0.9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
  font-size: 14px;
  opacity: 0.85;
}

.footer-bottom a {
  text-decoration: underline;
}

/* Mobile */
@media(max-width: 800px) {

  .hero h1 {
    font-size: 38px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Burger anzeigen */
  .menu-toggle {
    display: block;
  }

  /* Navigation als Dropdown */
  .nav {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 15px;
    border-top: 1px solid #ddd;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    margin: 12px 0;
    font-size: 18px;
  }

  .logo {
    height: 130px;
  }

  .header.shrink .logo {
    height: 110px;
  }
}

