/* ================== Schrift & Variablen ================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Inter', 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-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.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
section { padding: 4rem 0; }

/* ================== Header ================== */
.site-header {
  background: var(--color-bg);
  padding: 1.25rem 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); }

/* Header-Logo größer & responsiv */
.logo img { max-height: 120px; height: auto; width: auto; }
@media (max-width: 992px) { .logo img { max-height: 100px; } }
@media (max-width: 640px) { .logo img { max-height: 72px; } }

/* ================== Hero ================== */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(40vh, 60vh, 70vh);
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-position: center 55%; /* höherer Bildausschnitt */
  background-size: cover;

  display: flex;
  align-items: flex-start;   /* Text oben */
  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: #FFF;
  max-width: 700px;
  padding: 0 1rem;
  margin-top: clamp(2rem, 4vh, 8vh); /* Abstand von oben */
}

.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);
}

.hero-content h1,
.hero-content p {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ================== Über uns & Zertifikate ================== */
.about-cert {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) { .about-cert { grid-template-columns: 1fr; gap: 1.5rem; } }

.cert-grid.slim {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1.25rem 1.75rem;
  align-items: center;
  justify-items: center;
  max-width: 680px;
  margin-inline: auto;
}
.cert-grid.slim img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 70px;
  height: auto;
}
.cert-grid.slim img.logo-eh,
.cert-grid.slim img.logo-em {
  max-height: 90px !important;
}

/* ================== Services-Vorschau (Index) ================== */
.services-preview h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.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-top: 2rem; }
.services-cta .btn { display: inline-flex; }

/* ================== Dienstleistungen-Seite ================== */
.hero + .dienstleistungen-content { margin-top: 2.5rem; }
.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.service-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  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; }
.service-item ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 1.25rem;
  margin: 0.6rem 0 0.8rem 0;
  line-height: 1.55;
  text-align: left;
  color: var(--text-color);
}

/* ================== Downloads ================== */
.page-downloads { margin-top: 2.5rem; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: stretch;
}
.download-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-decoration: none;
  color: var(--text-color);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.12);
  border-color: #d1d5db;
}
.download-card h3 {
  margin: 0 0 .35rem 0;
  font-size: 1.05rem;
  color: var(--color-primary);
}
.download-card p { margin: 0; line-height: 1.5; font-size: .95rem; }
.download-card .meta { display: block; margin-top: .5rem; font-size: .85rem; color: #6b7280; }
/* Browser-Auto-Icons entfernen */
.download-card::before, .page-downloads a::before { content: none !important; }

/* ================== Formulare (Karriere) ================== */
.apply-form {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.apply-form .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; }
.apply-form .field { display: flex; flex-direction: column; gap: 0.35rem; }
.apply-form .field.full { grid-column: 1 / -1; }
.apply-form label { font-weight: 600; }
.apply-form input:not([type="checkbox"]), .apply-form select, .apply-form textarea {
  appearance: none; width: 100%; padding: 0.7rem 0.8rem;
  border-radius: 10px; border: 1px solid #CBD5E1;
  background: #FFF; font: inherit; font-size: 1rem; line-height: 1.4;
}
.apply-form input[type="checkbox"] {
  -webkit-appearance: checkbox; appearance: checkbox;
  width: 18px; height: 18px; accent-color: var(--color-primary);
}
.apply-form textarea { resize: vertical; min-height: 120px; }
.apply-form .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.25rem; }
.apply-form .consent { background: #f9fafb; padding: 0.8rem; border-radius: 8px; border: 1px solid #e2e8f0; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 500; line-height: 1.5; }
.checkbox-label a { color: var(--color-primary); text-decoration: underline; }

/* ================== Buttons ================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem;
  background: var(--color-primary); color: #FFF;
  border-radius: 30px; font-weight: 600; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: opacity .3s, transform .03s, background .2s;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: rgba(0,0,0,0.03); }

/* ================== 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; }

/* ================== Responsive ================== */
@media (max-width: 900px) { .apply-form .grid { grid-template-columns: 1fr; } }
