/* AKN-Dienstleistungen – eigenes Theme auf Basis von Bootstrap 5.3 */

:root {
  --akn-red: #d71a28;
  --akn-red-dark: #b3121f;
  --akn-dark: #1f2024;
  --akn-dark-2: #2e2f34;
  --akn-light: #f5f5f7;
  --bs-primary: var(--akn-red);
  --bs-primary-rgb: 215, 26, 40;
  --bs-link-color: var(--akn-red);
  --bs-link-hover-color: var(--akn-red-dark);
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: #2b2c30;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

.btn-primary {
  --bs-btn-bg: var(--akn-red);
  --bs-btn-border-color: var(--akn-red);
  --bs-btn-hover-bg: var(--akn-red-dark);
  --bs-btn-hover-border-color: var(--akn-red-dark);
  --bs-btn-active-bg: var(--akn-red-dark);
  --bs-btn-active-border-color: var(--akn-red-dark);
}
.text-primary { color: var(--akn-red) !important; }
.bg-dark-akn { background: var(--akn-dark); }
.bg-light-akn { background: var(--akn-light); }

/* Navigation */
.navbar-akn {
  background: rgba(31, 32, 36, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.navbar-akn .navbar-brand img { height: 52px; width: auto; }
.navbar-akn .nav-link { color: rgba(255,255,255,.8); font-weight: 500; }
.navbar-akn .nav-link:hover,
.navbar-akn .nav-link:focus { color: #fff; }

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(rgba(20,20,24,.72), rgba(20,20,24,.55)), url("../img/hero.jpg") center / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}
.hero h1 { font-weight: 800; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.1; }
.hero .rotator { color: var(--akn-red); display: inline-block; min-width: 1ch; }
.hero .rotator::after { content: "|"; color: #fff; opacity: .7; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { color: rgba(255,255,255,.85); max-width: 640px; }

/* Abschnitte */
.section { padding: 90px 0; }
.section-eyebrow { color: var(--akn-red); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.section-title { font-weight: 800; }

/* Service-Karten */
.service-card {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.service-card .card-img-top { height: 190px; object-fit: cover; }
.service-card .icon-badge {
  width: 64px; height: 64px;
  margin: -32px auto 0;
  border-radius: 50%;
  background: var(--akn-red);
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 6px 16px rgba(215,26,40,.35);
}
.service-card .icon-badge img { width: 36px; height: 36px; object-fit: contain; }

/* Leistungsliste */
.check-list { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
.check-list li { padding: .35rem 0 .35rem 1.8rem; position: relative; break-inside: avoid; }
.check-list li::before {
  content: "\F26E"; /* bi-check-circle-fill */
  font-family: "bootstrap-icons";
  position: absolute; left: 0; top: .35rem;
  color: var(--akn-red);
}
@media (max-width: 575.98px) { .check-list { columns: 1; } }

/* Detail-Bereiche */
.detail-img { border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.12); width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.nav-pills .nav-link { color: var(--akn-dark-2); font-weight: 600; border-radius: 2rem; }
.nav-pills .nav-link.active { background: var(--akn-red); }

/* Zahlen */
.stats { background: linear-gradient(135deg, var(--akn-dark), var(--akn-dark-2)); color: #fff; }
.stat-number { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 800; color: var(--akn-red); line-height: 1; }
.stat-label { color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }

/* Kontakt */
.contact-box { border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item i {
  flex: 0 0 48px; height: 48px; border-radius: 50%;
  background: rgba(215,26,40,.1); color: var(--akn-red);
  display: grid; place-items: center; font-size: 1.25rem;
}
.contact-item a { color: inherit; text-decoration: none; }
.contact-item a:hover { color: var(--akn-red); }

/* Footer */
.footer { background: var(--akn-dark); color: rgba(255,255,255,.7); }
.footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .08em; }

/* Rechtstexte */
.legal-header { background: var(--akn-dark); color: #fff; padding: 140px 0 60px; }
.legal { max-width: 860px; }
.legal h2 { font-size: 1.4rem; font-weight: 700; margin-top: 2.5rem; }
.legal h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1.5rem; }
.legal { overflow-wrap: anywhere; }

/* Nach-oben-Button */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1030;
  width: 46px; height: 46px; border-radius: 50%;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* Einblend-Animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .rotator::after { animation: none; }
}
