/* ============================================================
   Shalabi Services – Custom Stylesheet
   Bootstrap 5 Ergänzungen & Überschreibungen
   ============================================================ */

/* --- CSS-Variablen ----------------------------------------- */
:root {
  --primary:       #1e3a5f;   /* Navy Blau */
  --primary-dark:  #122540;
  --accent:        #e8621a;   /* Orange */
  --accent-dark:   #c4511a;
  --light:         #f5f6f8;
  --dark:          #2d3748;
  --gray:          #6c757d;
  --white:         #ffffff;
  --shadow:        0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover:  0 8px 32px rgba(0,0,0,0.18);
  --radius:        10px;
  --transition:    0.3s ease;
}

/* --- Basis -------------------------------------------------- */
html {
  overflow-x: hidden;
}
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  padding-top: 70px; /* Höhe des fixed Headers */
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-dark); }

/* --- Header / Navigation ----------------------------------- */
.navbar {
  background: var(--primary) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  padding: 0.6rem 0;
  min-height: 70px;
}

.navbar-brand {
  color: var(--white) !important;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  transition: opacity var(--transition);
}
.navbar-brand:hover { opacity: 0.85; }
.navbar-brand .brand-dot {
  color: var(--accent);
}

.nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.2px;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.12);
  color: var(--white) !important;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.82);
  padding: 3rem 0 1.5rem;
}

.site-footer .footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
.site-footer .footer-brand .brand-dot { color: var(--accent); }

.site-footer a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--white); }

.site-footer .footer-divider {
  border-color: rgba(255,255,255,0.12);
  margin: 1.5rem 0 1rem;
}

.site-footer .copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
  margin: 0 4px;
}
.social-icon:hover {
  background: var(--accent);
  color: var(--white) !important;
  transform: translateY(-2px);
}

/* --- Buttons ----------------------------------------------- */
.btn-primary-custom {
  background: var(--accent);
  border: none;
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-block;
}
.btn-primary-custom:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,98,26,0.4);
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* --- Abschnitts-Überschriften ------------------------------ */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.accent-line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.5rem 0 1rem;
}
.accent-line.center { margin: 0.5rem auto 1rem; }

/* --- Placeholder Bilder ------------------------------------ */
.img-placeholder {
  background: linear-gradient(135deg, #dde3ec 0%, #c8d3e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #7a8fad;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  gap: 8px;
}
.img-placeholder i {
  font-size: 2.5rem;
  opacity: 0.5;
}
.img-placeholder.hero-placeholder {
  background: linear-gradient(135deg, #1e3a5f 0%, #2a5298 100%);
  color: rgba(255,255,255,0.4);
  border-radius: 0;
}

/* --- Hero-Section ------------------------------------------ */
.hero-section {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--primary-dark);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(232,98,26,0.18) 0%, transparent 70%),
    url('../img/hero.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.hero-section .hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.4rem;
}
.hero-name {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 0.1em;
  letter-spacing: -1px;
}
.hero-name-main { color: var(--white); }
.hero-name-dot  { color: var(--accent); }
.hero-name-sub  {
  color: var(--accent);
  font-size: 1em;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 900;
}
.hero-claim {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  margin: 1.6rem auto 2.4rem;
  max-width: 480px;
  letter-spacing: 0.3px;
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Leistungskarten (Startseite: Scroll auf Mobil) -------- */
@media (max-width: 575px) {
  .services-scroll-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  .services-scroll-row > div {
    flex: 0 0 78%;
    scroll-snap-align: start;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  /* Galerie-Fotos etwas breiter zeigen */
  .services-scroll-row > .col-sm-6:not(.col-lg-3) {
    flex: 0 0 85%;
  }
  /* Scrollbar verstecken */
  .services-scroll-row::-webkit-scrollbar { display: none; }
  .services-scroll-row { -ms-overflow-style: none; scrollbar-width: none; }
}

/* --- Leistungskarten --------------------------------------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  border: 1px solid #edf0f5;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.service-card .service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.7rem;
  color: var(--white);
}
.service-card h5 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}
.service-card p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* Leistungen Detailseite */
.service-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #edf0f5;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.service-detail-card .card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #dde3ec, #c8d3e5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #7a8fad;
  gap: 8px;
  font-size: 0.85rem;
}
.service-detail-card .card-img-placeholder i { font-size: 2.5rem; }
.service-detail-card .card-body {
  padding: 1.5rem;
}
.service-detail-card .card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), #2a5298);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.service-detail-card h4 {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}
.service-detail-card p {
  color: var(--gray);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* --- Über-uns -------------------------------------------- */
.gallery-placeholder {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, #dde3ec, #c8d3e5);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #7a8fad;
  gap: 8px;
  font-size: 0.85rem;
  border: 2px dashed #b0bdd1;
}
.gallery-placeholder i { font-size: 2.5rem; }

.usp-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.usp-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.usp-item h6 { font-weight: 700; color: var(--primary); margin-bottom: 0.2rem; }
.usp-item p { color: var(--gray); font-size: 0.92rem; margin: 0; line-height: 1.5; }

/* --- Kontakt -------------------------------------------- */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  border: 1px solid #edf0f5;
}
.form-control, .form-select {
  border: 1.5px solid #dde3ec;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,98,26,0.12);
  outline: none;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), #2a5298);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h6 { font-weight: 700; color: var(--primary); margin: 0 0 0.2rem; }
.contact-info-item p, .contact-info-item a { color: var(--gray); font-size: 0.95rem; margin: 0; }

/* --- CTA-Sektion ----------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232,98,26,0.15) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: var(--white); font-weight: 800; font-size: 2.2rem; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }

/* --- Über-uns Intro-Sektion ------------------------------ */
.about-intro {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%);
  padding: 5rem 0 3rem;
  color: white;
}
.about-intro h1 { font-weight: 900; font-size: 2.5rem; }

/* --- Allgemeine Sektionen -------------------------------- */
.section-padding { padding: 5rem 0; }
.section-padding-sm { padding: 3.5rem 0; }
.bg-light-custom { background: var(--light); }

/* --- Google Maps ---------------------------------------- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* --- Seiten-Header (innere Seiten) ---------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%);
  padding: 4rem 0;
  color: white;
}
.page-hero h1 { font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; }

/* --- Stats-Reihe ---------------------------------------- */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}
.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-item .stat-label {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* --- Impressum / Datenschutz ---------------------------- */
.legal-content h2 { color: var(--primary); font-size: 1.5rem; font-weight: 700; margin-top: 2rem; }
.legal-content h3 { color: var(--primary); font-size: 1.2rem; font-weight: 600; margin-top: 1.5rem; }
.legal-content p, .legal-content li { color: var(--dark); line-height: 1.8; font-size: 0.95rem; }

/* --- Scroll-Animation ----------------------------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive ----------------------------------------- */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--primary);
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    margin-top: 0.5rem;
  }
}

@media (max-width: 576px) {
  .section-title { font-size: 1.65rem; }
  .hero-section  { min-height: 45vh; }
  .hero-name     { letter-spacing: -1px; }
  .contact-form-card { padding: 1.5rem; }
  .cta-section h2 { font-size: 1.6rem; }
}
