:root {
  --ma-offset: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--ma-offset);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* Hintergrund-Akzente */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(13, 110, 253, 0.08), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(32, 201, 151, 0.06), transparent 60%);
}

/* Navbar */
#mainNav .navbar-brand img {
  border-radius: .5rem;
}

#mainNav .nav-link {
  font-weight: 500;
  font-size: .95rem;
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(13, 110, 253, .16), transparent 60%),
    radial-gradient(800px 400px at -5% 20%, rgba(32, 201, 151, .12), transparent 60%);
}

[data-bs-theme="dark"] .hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(13, 110, 253, .28), transparent 60%),
    radial-gradient(800px 400px at -5% 20%, rgba(32, 201, 151, .22), transparent 60%);
}

.gradient-text {
  background: linear-gradient(90deg, #0d6efd, #20c997 60%, #6f42c1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-card {
  border-radius: 1.25rem;
}

/* Sektionstitel */
.section-title {
  letter-spacing: .03em;
}

/* Icon-Kreis */
.icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Cards & Hover-Effekte */
.product-card,
.service-card,
.ad-card,
.reference-card,
.job-card,
.map-card {
  border-radius: 1rem;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease;
}

.product-card:hover,
.service-card:hover,
.ad-card:hover,
.reference-card:hover,
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, .12);
}

/* Produktbilder */
.product-card .card-img-top {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

/* Logos im Hero */
.logo-strip img {
  filter: grayscale(100%);
  opacity: .7;
  transition: opacity .15s ease, filter .15s ease, transform .15s ease;
}

.logo-strip img:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
}

/* Kontaktbereich */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: auto -20%;
  bottom: -40%;
  height: 60%;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(255, 255, 255, .25), transparent 60%);
  opacity: .35;
  pointer-events: none;
}

.contact-section .card {
  border-radius: 1.25rem;
}

.contact-section .form-control {
  background-color: rgba(15, 23, 42, .24);
  border-color: rgba(148, 163, 184, .6);
  color: #f9fafb;
}

[data-bs-theme="light"] .contact-section .form-control {
  background-color: rgba(15, 23, 42, .08);
  color: #0f172a;
}

.contact-section .form-control:focus {
  box-shadow: 0 0 0 .15rem rgba(255, 255, 255, .25);
}

.contact-section .form-label,
.contact-section .form-check-label {
  color: inherit;
}

/* Map */
.map-card .ratio > iframe {
  border: 0;
}

/* Job-Karten klickbar */
.job-link,
.reference-link,
.job-link:hover,
.reference-link:hover {
  color: inherit;
}

/* Helferklassen */
.py-6 {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

/* Kleine Fade-in-Animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp .6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* reCaptcha responsive etwas kleiner auf sehr kleinen Screens */
@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(.9);
    transform-origin: 0 0;
  }
}
