/* ================== Variablen & Baseline ================== */
:root {
  --font-sans: Arial, Helvetica, sans-serif;

  --color-primary: #0055AA;
  --color-accent: #FFD700;
  --color-bg: #FFFFFF;
  --color-muted-start: #F4F7FA;
  --color-muted-end: #E2E8F0;
  --text-color: #1F2937;

  /* Hero-Bild zentral verwalten (Pfad: Bild liegt neben index.html) */
  --hero-image: url("../firma.jpg");
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  background: linear-gradient(135deg, var(--color-muted-start) 0%, var(--color-muted-end) 100%);
  line-height: 1.6;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Globale Abschnittsabstände */
section { padding: 4rem 0; }

/* ================== Header / Navigation ================== */
.site-header {
  background: var(--color-bg);
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.site-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}
.site-nav a.active, .site-nav a:hover { color: var(--color-primary); }

.logo img { max-height: 50px; width: auto; }

/* ================== Hero ================== */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(40vh, 60vh, 70vh);
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-position: center 70%; /* mehr vom unteren Bildbereich */
  background-size: cover;
  display: flex; align-items: center; justify-content: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.65) 100%
  );
}
.hero-content {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  max-width: 700px;
  padding: 0 1rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-content p { font-size: clamp(1rem, 2.2vw, 1.25rem); }
/* Lesbarkeit auf Bildstellen verbessern */
.hero-content h1, .hero-content p { text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

/* ================== Über uns & Zertifikate (2 Überschriften, einheitlich) ================== */
.about-cert {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Einheitliche h2 in beiden Spalten */
.about-col h2,
.cert-col h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--color-primary);
}

.about-col p + p { margin-top: 0.75rem; }

/* Zertifikats-Grid: Desktop 3/2-Anordnung (symmetrisch) */
.cert-grid.slim {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
  place-items: center;
  max-width: 420px;
  margin-inline: auto;
}
.cert-grid.slim img {
  width: 100%;
  max-width: 110px;
  height: auto;
  opacity: 0.85;
  filter: grayscale(15%);
  transition: transform 0.25s, opacity 0.25s, filter 0.25s;
}
.cert-grid.slim img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}

/* ================== Services (Startseite – Vorschau) ================== */
.services-preview h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2rem;
}
.service-card {
  background: var(--color-bg);
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.services-cta { text-align: center; margin: 3rem 0; }
.services-cta .btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.services-cta .btn:hover { opacity: 0.8; }

/* ================== Footer ================== */
.site-footer {
  background: #1F2937;
  color: #E5E7EB;
  padding: 3rem 0 1rem;
}
.footer-grid {
  display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-col { text-align: center; }
.footer-col a { color: #E5E7EB; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { text-align: center; font-size: 0.875rem; color: #9CA3AF; }

/* ================== Dienstleistungen-Seite (Karten) ================== */
.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  margin-bottom: 4rem;
}
.service-item {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}
.service-item h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  line-height: 1.3;
}
.service-item ul {
  list-style: disc inside;
  text-align: left;
  color: var(--text-color);
  line-height: 1.55;
  margin-top: 0.5rem;
}
/* Optionaler Seiten-Wrapper */
.page-services { padding-top: 2rem; }

/* ================== Responsives Tuning ================== */
@media (max-width: 1100px) {
  .about-cert { grid-template-columns: 1fr; gap: 2rem; }
  .cert-grid.slim {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 360px;
  }
}
@media (max-width: 600px) {
  .cert-grid.slim img { max-width: 95px; }
}

/* ================== Barrierearme Motion-Reduktion ================== */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .cert-grid.slim img,
  .service-item {
    transition: none;
  }
}
