/* ================================================
   KOBIT – Modern Stylesheet
   ================================================ */

:root {
  --primary:      #3a5a9c;
  --primary-dark: #2c3e6b;
  --accent-light: #e8ecf7;
  --text-dark:    #1a1a2e;
  --text-muted:   #5a6078;
  --dark-bg:      #1a2340;
  --dark-text:    #e0e6f0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  line-height: 1.75;
}

/* ---- Navbar ---- */
#mainNav {
  background: var(--primary-dark);
  padding: 0.75rem 0;
  transition: box-shadow 0.3s;
}
#mainNav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.navbar-brand {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #adc4ff !important;
}
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
}

/* ---- Hero Badge ---- */
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #e0e8ff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

/* ---- Hero ---- */
.hero-section {
  padding: 5rem 0 5rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
}
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}
.hero-text {
  opacity: 0.9;
  margin-bottom: 0.85rem;
}
.hero-text a { color: #adc4ff; }
.logo-hero {
  max-width: 300px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

/* ---- Section Wrappers ---- */
.section-light   { padding: 0.7rem 0; background: #fff; }
.section-dark    { padding: 0.7rem 0; background: var(--dark-bg); color: var(--dark-text); }
.section-accent  { padding: 0.7rem 0; background: var(--accent-light); }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.0rem;
  padding-bottom: .4rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}
.section-dark .section-title   { color: #adc4ff; border-color: #adc4ff; }
.section-accent .section-title { color: var(--primary-dark); }

.subsection-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

/* ---- Service Cards ---- */
.service-card {
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--accent-light);
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(58, 90, 156, 0.15);
}
.service-card h4 {
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 0.5rem;
}

/* ---- Detail Cards ---- */
.detail-card {
  padding: 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid #dde5f0;
  height: 100%;
  transition: box-shadow 0.2s;
}
.detail-card:hover {
  box-shadow: 0 4px 16px rgba(58, 90, 156, 0.1);
}
.detail-card h4 {
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0.75rem 0 0.5rem;
}
.detail-icon { height: 38px; width: auto; }

/* ---- Tech Cards ---- */
.tech-card {
  padding: 1.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}
.tech-card h4 {
  font-weight: 600;
  color: #adc4ff;
  margin-bottom: 0.85rem;
}
.tech-list {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.8rem;
}
.tech-list li { margin-bottom: 0.25rem; }

/* ---- Referenzen ---- */
.ref-list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.ref-list li {
  margin-bottom: 0.6rem;
}
.ref-list li::marker { color: var(--primary); }

/* ---- Kontakt ---- */
.contact-address {
  font-style: normal;
  line-height: 2;
}

/* ---- Impressum ---- */
#impressum address { font-style: normal; line-height: 1.9; }
#impressum p       { line-height: 1.9; }

/* ---- Scroll-to-top button ---- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 1050;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---- Datenschutz / ds.html ---- */
.ds-content .blogpost {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8ecf7;
}
.ds-content .blogpost:last-child { border-bottom: none; }
.ds-content h4 {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero-title  { font-size: 1.6rem; }
  .hero-section { padding: 8rem 0 4rem; }
}
@media (max-width: 767px) {
  .hero-title  { font-size: 1.4rem; }
  .hero-section { padding: 7rem 0 3.5rem; }
  .section-light,
  .section-dark,
  .section-accent { padding: 3.5rem 0; }
  .logo-hero { max-width: 220px; }
}