/* --------------------------------------------- */
/* FONT EINBINDUNG (LOKAL)                        */
/* --------------------------------------------- */

@font-face {
  font-family: 'DancingScript';
  src: local('Dancing Script'),
       url('fonts/DancingScript-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* --------------------------------------------- */
/* BASIS                                         */
/* --------------------------------------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, sans-serif;
  color: #111;
  background: url("img/background.jpg") no-repeat fixed center;
  background-size: cover;
  line-height: 1.6;
}

/* --------------------------------------------- */
/* HEADER / NAV                                  */
/* --------------------------------------------- */

.header {
  text-align: center;
  padding: 40px 20px 25px 20px;
}

.header-logo {
  width: 60px;
  margin-bottom: 10px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 12px;
}

.nav a {
  text-decoration: none;
  color: #111;
  font-weight: 600;
}

.nav a:hover {
  color: #00509e;
}

/* --------------------------------------------- */
/* HERO                                          */
/* --------------------------------------------- */

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px 20px 40px 20px;
}

.hero-content {
  max-width: 820px;
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 45px 35px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero-title {
  font-family: 'DancingScript', cursive;
  font-size: 44px;
  font-weight: normal;
  color: #003f7d;
  margin-bottom: 12px;
}

.hero-subtext {
  font-size: 16px;
  color: #1d3b55;
  margin-bottom: 25px;
}

/* Buttons */

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  background: #e9e9e9;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.btn:hover {
  background: #d6d6d6;
}

.btn-primary {
  background: #00509e;
  color: white;
}

.btn-primary:hover {
  background: #003f7d;
}

/* ✅ NEU (nur Ergänzung, ohne bestehendes zu ändern) */
.btn-secondary {
  background: #ffffff;
  border: 1px solid #00509e;
  color: #00509e;
}

.btn-secondary:hover {
  background: #e6f0fa;
}

/* --------------------------------------------- */
/* PAGE TITLES                                   */
/* --------------------------------------------- */

.page-title {
  text-align: center;
  color: #003f7d;
  margin-bottom: 25px;
  font-size: 34px;
}

.btn-block {
  width: 100%;
  margin-top: 15px;
}

/* ✅ NEU (nur Ergänzung) */
.page-intro {
  max-width: 760px;
  margin: 0 auto 28px auto;
  text-align: center;
  color: #333;
  font-size: 16px;
}

/* --------------------------------------------- */
/* GENERISCHE SECTION-KARTE                       */
/* --------------------------------------------- */

.section {
  max-width: 950px;
  margin: 0 auto 40px auto;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.section h2 {
  margin-bottom: 10px;
  color: #003f7d;
}

.section p {
  color: #333;
}

/* --------------------------------------------- */
/* SERVICE GRID (LEISTUNGEN)                     */
/* --------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.service-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
}

.service-card h3 {
  color: #003f7d;
  margin-bottom: 8px;
}

/* ✅ NEU (nur Ergänzung) */
.service-small {
  font-size: 14px;
  color: #555;
  margin-top: 6px;
}

/* ✅ NEU (CTA-Box unter Leistungen, nur Ergänzung) */
.cta-box {
  margin-top: 40px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.cta-title {
  color: #003f7d;
  margin-bottom: 10px;
}

.cta-text {
  color: #333;
  margin-bottom: 18px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------- */
/* JOBS (NUR JOBS.HTML)                           */
/* Fix: 1 Job darf nicht nur 1/3 Breite nehmen    */
/* + Einheitlich: Karte bleibt zentriert          */
/* + Blocksatz nur für den langen Textblock       */
/* --------------------------------------------- */

#jobsDynamic.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Einheitlich lassen: KEIN left-align auf der ganzen Karte */
#jobsDynamic.service-grid .service-card {
  text-align: center;
}

/* Nur der lange Fließtext (preview) im Blocksatz.
   In jobs.html ist das der div mit style "white-space: pre-wrap;" */
#jobsDynamic.service-grid .service-card div[style*="white-space: pre-wrap"] {
  text-align: justify;
  text-align-last: left;
}

/* --------------------------------------------- */
/* ÜBER UNS                                     */
/* --------------------------------------------- */

.about-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: center;
}

.about-wrap img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* ✅ NEU (About-Listen ohne Inline-Styles) */
.about-list {
  padding-left: 18px;
  color: #333;
}

.about-list li {
  margin-bottom: 6px;
}

/* --------------------------------------------- */
/* KONTAKT                                      */
/* --------------------------------------------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.contact-form input[type="file"] {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #bbb;
  font-size: 16px;
  background: white;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.contact-form input[type="file"]:focus {
  outline: none;
  border-color: #00509e;
}

/* --------------------------------------------- */
/*   FIRMEN-SCHRIFTZUG WIE IN DER RECHNUNG       */
/* --------------------------------------------- */

/* Container */
.brand-header {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 20px;
}

/* Zeile 1 (Dancing Script – wie Rechnung) */
.brand-line1 {
  font-family: 'DancingScript', cursive;
  font-size: 78px;
  color: #1a1a1a;
  line-height: 1.00;
  letter-spacing: 0;
}

/* Zeile 2 */
.brand-line2 {
  font-family: 'DancingScript', cursive;
  font-size: 48px;
  color: #333;
  letter-spacing: 0;
  margin-top: -10px;
}

/* Linie darunter */
.brand-divider {
  width: 160px;
  height: 2px;
  background: #666;
  margin: 8px auto 10px auto;
  opacity: 0.45;
}

/* --------------------------------------------- */
/* FOOTER                                       */
/* --------------------------------------------- */

.footer {
  text-align: center;
  padding: 18px 10px;
  background: rgba(255, 255, 255, 0.55);
  color: #333;
  font-size: 14px;
}

.footer-links {
  margin-top: 6px;
}

.footer a {
  color: #00509e;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

/* --------------------------------------------- */
/* UTILITIES (ohne Inline-Styles)                */
/* --------------------------------------------- */

.text-center { text-align: center; }
.text-muted { color: #444; }
.text-small { font-size: 14px; }
.mt-8 { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-18 { margin-bottom: 18px; }
.card-soft { background: rgba(255,255,255,0.6); }

/* --------------------------------------------- */
/* RESPONSIVE                                   */
/* --------------------------------------------- */

@media (max-width: 950px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 750px) {
  .brand-line1 { font-size: 56px; }
  .brand-line2 { font-size: 36px; }
  .page-title { font-size: 28px; }

  .hero-content {
    padding: 30px 20px;
  }

  .hero-title {
    font-size: 36px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}
