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

:root {
  --accent: #83242C;
}

body {
  font-family: Bahnschrift, "DIN Alternate", "DIN Condensed", "DIN 1451", "DIN Next", "DIN Pro", "DINPro",
    "Roboto Condensed", "Arial Narrow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #ffffff;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.section {
  padding: 80px 0;
}

.light {
  background: #f6f7f9;
}

/* Header */
header {
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  gap: 16px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 46px;
  width: auto;
  display: block;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #eee;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: #fff;
}

.nav-toggle-label span {
  display: block;
  width: 5px;
  height: 5px;
  background: #333;
  border-radius: 50%;
  transition: all 0.25s ease;
}

/* turn dots into X when menu is open */
.nav-toggle:checked + .nav-toggle-label span {
  width: 18px;
  height: 2px;
  border-radius: 1px;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  text-align: center;
  padding: 120px 20px;
}

.hero-logo {
  height: 240px; /* intentionally large; logo file can be replaced later */
  width: auto;
  max-width: 100%;
  margin-bottom: 20px;
}

.hero p {
  color: #666;
}

/* Muted text */
.muted {
  color: #666;
}

/* Grid */
.grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* Cards */
.card {
  padding: 30px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border-color: var(--accent);
}

/* Service lists */
.service-group h3 {
  margin-bottom: 15px;
}

.service-list {
  list-style: none;
  padding-left: 0;
  line-height: 1.9;
}

.service-list li {
  position: relative;
  padding-left: 22px;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Zertifikate checklist */
.checklist {
  list-style: none;
  margin-top: 25px;
  line-height: 2;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 28px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
}

.ecm-scope-global {
  margin-top: 12px;
  color: #666;
  font-size: 0.95rem;
}

.download-link {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  transition: all 0.2s ease;
}

.download-link:hover {
  background: rgba(131, 36, 44, 0.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* Standort image */
.location-image {
  margin: 28px 0;
  height: 480px;
  border-radius: 14px;
  background: #e6e7ea;
  border: 1px solid #dedfe3;
  overflow: hidden;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Baureihen cards */
.series-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.series-card {
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border-color: var(--accent);
}

.series-img {
  height: 90px;
  border-radius: 8px;
  background: #e6e7ea;
  border: 1px solid #dedfe3;
  overflow: hidden;
}

.series-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.series-title {
  margin-top: 12px;
  font-weight: 600;
}

/* Address formatting */
.address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.address .label {
  min-width: 90px;
  font-weight: 600;
}

.address .value {
  line-height: 1.25;
}

/* Footer */
footer {
  border-top: 1px solid #eee;
  padding: 30px 0;
}

/* ---------------------------
   Mobilansicht (Responsive)
----------------------------*/
@media (max-width: 820px) {
  nav {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: inline-flex;
    margin-left: auto;
    border-color: rgba(131, 36, 44, 0.25);
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 6px;
    border-top: 1px solid #eee;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .hero {
    padding: 70px 14px;
  }

  .hero-logo {
    width: 100%;
    height: auto;
    max-height: 170px;
  }

  .section {
    padding: 56px 0;
  }

  .location-image {
    height: 300px;
    border-radius: 12px;
  }

  .grid {
    gap: 16px;
  }

  .card {
    padding: 22px;
  }

  .series-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
  }

  .series-img {
    height: 80px;
  }

  .address {
    flex-direction: column;
    gap: 6px;
  }

  .address .label {
    min-width: 0;
  }
}