/* ===========================
   CSF – Globales Stylesheet
   Kein Tailwind, nur Flexbox/Grid
   =========================== */

/* --- Reset & Basis --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: #111827;
  background: #f9fafb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* --- Layout --- */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site > main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin-inline: auto;
  padding: 0.75rem 1rem;
  gap: 1rem;
}

.navbar__logo img {
  height: 4rem;
  width: auto;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar__links a {
  font-weight: 500;
  color: #111827;
  padding: 0.25rem 0;
  transition: color 0.15s;
}

.navbar__links a:hover {
  color: #b91c1c;
}

.navbar__cta {
  display: inline-block;
  background: #b91c1c;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
}

.navbar__cta:hover {
  background: #991b1b;
}

/* Hamburger (mobile) */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #6b7280;
  border-radius: 0.5rem;
}

.navbar__toggle:hover {
  background: #f3f4f6;
}

.navbar__mobile-menu {
  display: none;
  flex-direction: column;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 0.5rem 1rem 1rem;
}

.navbar__mobile-menu.open {
  display: flex;
}

.navbar__mobile-menu a {
  padding: 0.625rem 0.75rem;
  color: #111827;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: background 0.15s;
}

.navbar__mobile-menu a:hover {
  background: #f3f4f6;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: #b91c1c;
  color: #fff;
}

.btn-primary:hover {
  background: #991b1b;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f3f4f6;
}

/* --- Hero --- */
.hero {
  padding: 3rem 1rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin-inline: auto;
  align-items: center;
}

.hero__heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__image img {
  width: 100%;
  border-radius: 0.5rem;
}

/* --- Section: Dienstleistungen --- */
.section {
  padding: 4rem 1rem;
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section__header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #111827;
}

.section__header p {
  color: #6b7280;
  font-size: 1.1rem;
}

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1280px;
  margin-inline: auto;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  text-align: center;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card__desc {
  color: #6b7280;
  font-size: 1rem;
  margin: 1.5rem 0;
}

.card__list {
  text-align: left;
  margin-bottom: 1.5rem;
}

.card__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: #374151;
}

.card__list li svg {
  flex-shrink: 0;
  color: #16a34a;
  width: 1.25rem;
  height: 1.25rem;
}

.card__link {
  display: block;
  background: #b91c1c;
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.15s;
}

.card__link:hover {
  background: #991b1b;
}

/* --- Inhaltsbereich (CAD-Mgmt, Prozess, Konstruktion, 3D) --- */
.content-section {
  padding: 4rem 1rem;
  max-width: 1280px;
  margin-inline: auto;
}

.section-heading {
  position: relative;
  display: inline-block;
}

.section-heading .dot-decoration {
  position: absolute;
  top: -2rem;
  left: -4rem;
  width: 7rem;
  height: auto;
  color: #e5e7eb;
  display: none;
}

.content-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.content-section p {
  color: #374151;
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.content-section .intro {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* --- Feature-Listen (Zwei Spalten) --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
}

.feature-col h6 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  border-radius: 9999px;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-item span {
  font-size: 1.1rem;
  color: #111827;
}

/* --- Beispiel-Bilder (3D-Erfassung) --- */
.scan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin-inline: auto;
}

.scan-col {
  text-align: center;
}

.scan-col h6 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.scan-col img {
  width: 100%;
  border-radius: 0.5rem;
}

/* --- Prose (AGB, Impressum, Datenschutz) --- */
.prose-content {
  max-width: 680px;
  margin-inline: auto;
  padding: 2rem 0 4rem;
  line-height: 1.75;
  color: #374151;
}

.prose-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-content p {
  margin-bottom: 1rem;
}

.prose-content ul {
  margin-bottom: 1rem;
}

.prose-content li {
  margin-bottom: 0.75rem;
}

.prose-content .highlight {
  font-weight: 700;
}

.prose-content .underline {
  text-decoration: underline;
}

/* --- Footer --- */
.footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer__copy {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 600;
}

.footer__copy a:hover {
  text-decoration: underline;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.15s;
}

.footer__links a:hover {
  text-decoration: underline;
  color: #111827;
}

/* --- sr-only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .section-heading .dot-decoration {
    display: block;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e5e7eb;
    divide-x: 1px solid #e5e7eb;
  }

  .feature-col:not(:first-child) {
    border-left: 1px solid #e5e7eb;
    padding-left: 2rem;
  }

  .feature-col:first-child {
    padding-right: 2rem;
  }

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

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 7fr 5fr;
  }

  .hero__image {
    display: block;
  }

  .navbar__toggle {
    display: none !important;
  }

  .navbar__links {
    display: flex !important;
  }

  .navbar__mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .navbar__links,
  .navbar__cta-desktop {
    display: none;
  }

  .navbar__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero__image {
    display: none;
  }
}
