:root {
  --brand-red: #c1121f;
  --brand-red-dark: #9f0f1a;
  --brand-white: #ffffff;
  --text-dark: #1e1e1e;
  --text-muted: #555555;
  --border-soft: #ececec;
  --surface-light: #fff6f7;
  color-scheme: light;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.6;
}

a {
  color: var(--brand-red);
  text-decoration: none;
}

a:hover {
  color: var(--brand-red-dark);
}

.topbar {
  background: var(--brand-red);
  color: var(--brand-white);
  font-size: 0.92rem;
}

.topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-link {
  color: var(--brand-white);
  font-weight: 700;
}

.main-nav {
  background: var(--brand-white);
  border-bottom: 1px solid var(--border-soft);
}

.brand img {
  height: auto;
  width: 170px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark) !important;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-red) !important;
}

.btn-accent {
  background-color: var(--brand-red);
  border: 1px solid var(--brand-red);
  color: var(--brand-white);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: var(--brand-white);
}

.page-main {
  min-height: 70vh;
}

.section {
  padding: 4rem 0;
}

.section-light {
  background: var(--surface-light);
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.38rem, 1.9vw, 1.9rem);
  font-weight: 780;
  letter-spacing: -0.015em;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.55rem;
  max-width: 62ch;
  font-size: 0.98rem;
}

.hero {
  background: linear-gradient(120deg, #fff 10%, #ffe6e8 100%);
  padding: 4.5rem 0 3.5rem;
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-copy {
  color: var(--text-muted);
  max-width: 64ch;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.25rem 0 1.8rem;
  list-style: none;
}

.pill-list li {
  background: #fff;
  border: 1px solid #f3c8cc;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 600;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-outline-accent {
  border: 1px solid var(--brand-red);
  color: var(--brand-red);
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
  border-color: var(--brand-red-dark);
  color: var(--brand-red-dark);
}

.stat-grid,
.card-grid,
.feature-grid,
.region-grid,
.blog-grid {
  display: grid;
  gap: 0.85rem;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 1.6rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.feature-grid,
.region-grid,
.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.info-card,
.service-card,
.feature-card,
.region-card,
.blog-card,
.reference-card,
.contact-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff9fa 100%);
  border: 1px solid #f4d7db;
  border-radius: 0.82rem;
  padding: 1rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.info-card::after,
.service-card::after,
.feature-card::after,
.region-card::after,
.blog-card::after,
.reference-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(193, 18, 31, 0.18), rgba(193, 18, 31, 0.82), rgba(193, 18, 31, 0.18));
}

.service-card h3,
.feature-card h3,
.region-card h3,
.blog-card h3,
.reference-card h3,
.contact-card h3 {
  font-size: 1.03rem;
  margin-bottom: 0.48rem;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.service-card p,
.feature-card p,
.region-card p,
.blog-card p,
.reference-card p,
.contact-card p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.kpi {
  border-left: 3px solid var(--brand-red);
  background: linear-gradient(180deg, #fff 0%, #fff9fa 100%);
  border-radius: 0.72rem;
  padding: 0.82rem 0.9rem;
}

.kpi strong {
  display: block;
  font-size: 1.14rem;
  color: var(--brand-red);
  letter-spacing: -0.01em;
}

.cta-band {
  background: var(--brand-red);
  color: var(--brand-white);
  border-radius: 1rem;
  padding: 2rem;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band .btn-outline-accent {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.cta-band .btn-outline-accent:hover {
  background: #fff;
  color: var(--brand-red);
}

.check-list {
  padding-left: 1.1rem;
}

.check-list li {
  margin-bottom: 0.5rem;
}

.breadcrumb-like {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.table-simple {
  width: 100%;
  border-collapse: collapse;
}

.table-simple th,
.table-simple td {
  border: 1px solid var(--border-soft);
  padding: 0.7rem;
  vertical-align: top;
}

.table-simple th {
  background: #fff2f3;
  width: 38%;
}

.chatbot-messages {
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #eed2d6;
  border-radius: 0.75rem;
  padding: 0.85rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.7rem;
}

.chatbot-message {
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
}

.chatbot-message p {
  margin: 0;
  white-space: pre-wrap;
}

.chatbot-message-user {
  background: #fff1f3;
  border: 1px solid #f4c8cd;
}

.chatbot-message-assistant {
  background: #f7f7f8;
  border: 1px solid #e8e8ea;
}

.chatbot-sources {
  margin-top: 0.55rem;
  font-size: 0.88rem;
}

.chatbot-sources ul {
  margin: 0.3rem 0 0;
  padding-left: 1.05rem;
}

.chatbot-status {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.chatbot-widget-page {
  max-width: 920px;
}

.chatbot-widget-floating {
  position: fixed !important;
  right: 1rem !important;
  bottom: 1rem !important;
  z-index: 5000 !important;
  width: min(92vw, 360px);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}

.chatbot-fab {
  border-radius: 999px;
  width: 100%;
  box-shadow: 0 12px 28px rgba(120, 10, 20, 0.28);
}

.chatbot-panel {
  margin-top: 0.65rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #edc9cf;
  border-radius: 0.85rem;
  padding: 0.85rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(6px);
}
    .chatbot-panel[hidden] {
        display: none!important;
    }
.chatbot-panel-title {
  font-size: 1.05rem;
  margin: 0;
}

.chatbot-panel-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.8rem;
}

.chatbot-widget-floating .chatbot-messages {
  max-height: 240px;
}

.chatbot-widget-floating.is-open .chatbot-fab {
  background-color: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}

.site-footer {
  margin-top: 4rem;
  background: #121212;
  color: #f2f2f2;
}

.footer-grid {
  padding: 2.3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-title {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: #f2f2f2;
}

.footer-links a:hover {
  color: #ffccd1;
}

.footer-logo {
  width: 140px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-text {
  margin-top: 1rem;
  color: #d6d6d6;
}

.footer-bottom {
  border-top: 1px solid #2b2b2b;
}

.footer-bottom-inner {
  min-height: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-legal-links a {
  color: #f2f2f2;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.24) 0%, rgba(193, 18, 31, 0) 72%);
  top: -110px;
  right: -80px;
  animation: orbitSlow 13s ease-in-out infinite;
}

.hero::after {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(159, 15, 26, 0.18) 0%, rgba(159, 15, 26, 0) 72%);
  bottom: -70px;
  left: -60px;
  animation: orbitSlow 16s ease-in-out infinite reverse;
}

.main-nav {
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.main-nav.is-scrolled {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  border-bottom-color: #f2c5ca;
}

.brand img {
  transition: transform 0.35s ease;
}

.brand:hover img {
  transform: scale(1.04);
}

.nav-link {
  position: relative;
  transition: color 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-red-dark), var(--brand-red));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.26s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1);
}

.btn-accent,
.btn-outline-accent {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-outline-accent:hover,
.btn-outline-accent:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(193, 18, 31, 0.22);
}

.info-card,
.service-card,
.feature-card,
.region-card,
.blog-card,
.reference-card,
.contact-card,
.kpi,
.cta-band {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.info-card:hover,
.service-card:hover,
.feature-card:hover,
.region-card:hover,
.blog-card:hover,
.reference-card:hover,
.contact-card:hover,
.kpi:hover {
  transform: translateY(-7px);
  border-color: #f1aeb5;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

.cta-band {
  background: linear-gradient(140deg, var(--brand-red-dark), var(--brand-red));
}

.cta-band:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(120, 10, 20, 0.3);
}

.nav-shell {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(237, 201, 207, 0.88);
  border-radius: 2rem;
  padding: 0.7rem 1rem 0.9rem;
  backdrop-filter: blur(16px);
}

.nav-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-topline-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-right: 0;
}

.brand-caption {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-panel {
  justify-content: center;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(237, 201, 207, 0.88);
}

.nav-links-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 auto;
  padding: 0;
  max-width: 100%;
}

.nav-cta-slot {
  display: flex;
  justify-content: flex-end;
}

.nav-cta-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.nav-mini-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.text-light-emphasis {
  color: rgba(255, 255, 255, 0.78);
}

.hero-cinematic {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.hero-cinematic-grid,
.split-scene {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.split-scene-reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.hero-copy-panel,
.scene-copy {
  position: relative;
  z-index: 1;
}

.hero-copy-panel {
  max-width: 640px;
}

.hero-visual-stack,
.scene-visual-columns {
  position: relative;
  display: grid;
  gap: 1rem;
}

.hero-visual-stack {
  padding: 1.2rem 0 1.2rem 2rem;
}

.scene-visual-columns {
  grid-template-columns: 1fr;
}

.visual-card {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,246,247,0.84));
  border: 1px solid rgba(237, 201, 207, 0.9);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.1);
}

.visual-card img {
  display: block;
  width: 100%;
  height: auto;
}

.visual-card-large {
  transform: translateY(0) rotate(-5deg);
}

.visual-card-small {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  width: min(48%, 245px);
  transform: rotate(8deg);
}

.visual-card-dark {
  background: linear-gradient(180deg, #161d29 0%, #0f172a 100%);
}

.hero-metrics-strip {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.section-story,
.section-tech-showcase {
  position: relative;
}

.section-story::before,
.section-tech-showcase::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto auto;
  width: 28vw;
  height: 28vw;
  min-width: 220px;
  min-height: 220px;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.08) 0%, rgba(193, 18, 31, 0) 72%);
  pointer-events: none;
}

.service-card-grid-premium {
  gap: 1rem;
}

.service-card-compact {
  min-height: 100%;
}

.service-index,
.service-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(193, 18, 31, 0.1);
  color: var(--brand-red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-grid-stretched {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cta-band-spotlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  overflow: hidden;
}

.cta-band-spotlight::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
}

.service-category-grid {
  display: grid;
  gap: 1.1rem;
}

.service-category-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f8 100%);
  border: 1px solid #f0d0d5;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.service-category-visual {
  position: relative;
  min-height: 260px;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,246,247,0.9));
}

.service-category-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.service-category-card:hover .service-category-visual img {
  transform: scale(1.045);
}

.service-image-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-category-copy h2 {
  margin: 0.6rem 0 0.9rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.service-category-copy > p:not(.service-kicker) {
  max-width: 42rem;
  margin-bottom: 1.1rem;
  color: var(--text-muted);
}

.service-bullet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.service-mini-tile {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #f1dde0;
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.service-mini-tile:hover {
  transform: translateY(-3px);
  color: var(--brand-red-dark);
}

.premium-note-strip {
  margin-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,246,247,0.92));
  border: 1px solid #f0d0d5;
}

.service-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.35rem 0 1.5rem;
}

.service-detail-meta span {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(184, 35, 43, 0.18);
  border-radius: 999px;
  color: var(--brand-red-dark);
  background: rgba(184, 35, 43, 0.05);
  font-size: 0.78rem;
  font-weight: 700;
}

.service-detail-image img {
  object-fit: cover;
  width: 100%;
  min-height: 520px;
}

.feature-card-premium,
.reference-card-showcase,
.blog-card-featured,
.blog-card-compact {
  border-radius: 1.2rem;
  padding: 1.2rem;
}

.reference-showcase-grid,
.blog-magazine-grid,
.region-grid-premium {
  display: grid;
  gap: 1rem;
}

.reference-showcase-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.reference-showcase-grid-visual {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.reference-card-showcase {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, #ffffff 0%, #fff4f6 100%);
}

.reference-card-visual {
  padding: 1rem;
  gap: 1rem;
}

.reference-image-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.reference-image-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 280px;
}

.reference-image-wrap-large {
  min-height: 420px;
}

.reference-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.reference-image-wrap-large img {
  min-height: 420px;
}

.reference-image-badge {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(8, 26, 45, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-card-visual h2 {
  margin: 0.2rem 0 0;
  font-size: 1.12rem;
}

.reference-card-visual p {
  margin-bottom: 0.2rem;
}

.reference-card-dark {
  background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
  color: #f5f5f5;
}

.reference-card-dark h2,
.reference-card-dark p {
  color: inherit;
}

.reference-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 14, 24, 0.86);
  backdrop-filter: blur(6px);
  z-index: 1100;
}

.reference-lightbox[hidden] {
  display: none;
}

.reference-lightbox-image {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.reference-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.reviews-spotlight {
  margin-top: 3rem;
}

.reviews-summary-card {
  padding: 1.4rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f8 100%);
  border: 1px solid #f0d0d5;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.reviews-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}

.reviews-portal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.reviews-portal-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(193, 18, 31, 0.08);
  border: 1px solid rgba(193, 18, 31, 0.14);
  color: var(--brand-red-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .roof-pair-grid {
    grid-template-columns: 1fr;
  }
}

.blog-magazine-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr) minmax(0, 0.75fr);
}

.blog-card-featured {
  grid-column: 1 / span 2;
  min-height: 320px;
  background: linear-gradient(145deg, #111827 0%, #2a1116 100%);
  color: #fff;
}

.blog-card-featured h2,
.blog-card-featured p,
.blog-card-featured a {
  color: inherit;
}

.blog-card-compact {
  min-height: 100%;
}

@media (max-width: 767.98px) {
  .service-detail-image img {
    min-height: 320px;
  }
}

@media (max-width: 1199.98px) {
  .nav-shell {
    border-radius: 1.4rem;
  }

  .nav-topline {
    flex-wrap: wrap;
  }

  .nav-topline-actions {
    margin-left: auto;
  }

  .nav-panel {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .nav-links-center {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }

  .nav-cta-stack {
    justify-content: space-between;
  }

  .brand-caption,
  .nav-mini-note {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .hero-cinematic-grid,
  .split-scene,
  .split-scene-reverse,
  .service-category-card,
  .cta-band-spotlight,
  .premium-note-strip {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-visual-stack {
    padding-left: 0;
  }

  .visual-card-small {
    position: relative;
    width: 100%;
    right: auto;
    bottom: auto;
    transform: none;
  }

  .hero-metrics-strip,
  .blog-magazine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-category-card {
    padding: 1rem;
  }

  .blog-card-featured {
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .hero-metrics-strip,
  .service-bullet-grid,
  .blog-magazine-grid,
  .reference-showcase-grid,
  .region-grid-premium {
    grid-template-columns: 1fr;
  }
}

[data-animate="reveal"] {
    --parallax-y: 0px;

    opacity: 0;
    filter: blur(6px);
    transform: 
        translateY(calc(28px + var(--parallax-y))) 
        scale(0.982);

    transition: 
        opacity 0.85s ease, 
        filter 0.85s ease, 
        transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);

    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, filter, transform;
}

 [data-animate="reveal"].is-visible {
        opacity: 1;
        filter: blur(0);
        transform: 
            translateY(var(--parallax-y)) 
            scale(1);
    }

@keyframes orbitSlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-15px, 12px, 0) scale(1.04);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-animate="reveal"],
  .js [data-animate="reveal"] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

@media (max-width: 575.98px) {
  .topbar-inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.4rem 0;
  }

  .hero {
    padding-top: 3.2rem;
  }
}

/* ========================================================
   SPEZIFISCHE BAU- & DACHDECKEREI-ANIMATIONEN & EFFEKTE
   ======================================================== */

/* 1. Bau-Laser Richtschnur & Laser-Nivellierer */
.bau-laser-guide {
  position: fixed;
  left: 0;
  top: 50%;
  width: 100vw;
  height: 2px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}

.bau-laser-guide.is-active {
  opacity: 0.85;
}

.bau-laser-beam {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(227, 27, 35, 0.4) 15%, 
    rgba(255, 60, 60, 0.95) 50%, 
    rgba(227, 27, 35, 0.4) 85%, 
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(227, 27, 35, 0.8), 0 0 20px rgba(255, 60, 60, 0.5);
  animation: laserPulse 1.8s infinite alternate ease-in-out;
}

.bau-laser-tag {
  position: absolute;
  right: 2rem;
  top: -18px;
  font-size: 0.65rem;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #c1121f;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(193, 18, 31, 0.4);
  border-radius: 4px;
}

@keyframes laserPulse {
  0% { filter: brightness(0.9); }
  100% { filter: brightness(1.3); }
}

/* 2. Bau-Badges auf Bildern */
.bau-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.bau-badge-sub {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, rgba(193, 18, 31, 0.92) 0%, rgba(140, 10, 20, 0.95) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(193, 18, 31, 0.35);
  z-index: 3;
}

.bau-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: dotGlow 1.8s infinite;
}

@keyframes dotGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* 3. 3D-Tilt & Baustellen-Präzision (Karten-Lichtkegel) */
.bau-tilt-active {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  transform: rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg));
  position: relative;
}

.bau-tilt-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.35) 0%,
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.bau-tilt-active:hover::after {
  opacity: 1;
}

/* 4. Vorher-Nachher Slider (Referenzen) */
.bau-comparison-section {
  max-width: 980px;
  margin: 0 auto;
}

.bau-comparison-card {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-soft);
}

.bau-compare-visual {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.bau-img-after,
.bau-img-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.bau-compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #ffffff;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.bau-compare-overlay .bau-img-before {
  width: 100%;
  min-width: 980px;
}

.bau-compare-visual .bau-img-after {
  min-width: 980px;
}

.bau-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-top: auto;
  margin-bottom: auto;
  transform: translateX(-50%);
  background: var(--brand-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 0 0 4px #ffffff, 0 6px 20px rgba(0, 0, 0, 0.35);
  z-index: 5;
  pointer-events: none;
  font-size: 0.75rem;
  cursor: ew-resize;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.bau-compare-visual:hover .bau-compare-handle {
  transform: translateX(-50%) scale(1.12);
  background: var(--brand-red-dark);
}

.bau-handle-arrow {
  font-size: 0.65rem;
  line-height: 1;
}

.bau-handle-line {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.bau-compare-tag {
  position: absolute;
  top: 1.2rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 4;
  pointer-events: none;
}

.bau-compare-tag.before {
  left: 1.2rem;
  background: rgba(24, 24, 24, 0.75);
  color: #ffffff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bau-compare-tag.after {
  right: 1.2rem;
  background: rgba(193, 18, 31, 0.9);
  color: #ffffff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bau-compare-caption {
  padding: 1.8rem 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #fffbfb 100%);
}

.bau-compare-caption h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

/* ----------------------------- */
/* Über-uns: neu gestaltete Premium-Komposition */
.about-hero {
  background: linear-gradient(180deg, #081a2d 0%, #0c2236 100%);
  color: #fff;
  padding: 2.8rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.45;
  pointer-events: none;
}

.about-hero-premium .about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.about-hero-title {
  font-size: clamp(3rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
  color: #ffffff;
}

.about-hero-subtitle {
  margin: 1rem auto 0;
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.06rem;
}

.about-profile {
  max-width: 1240px;
}

.about-profile-shell {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
  border: 1px solid rgba(235, 211, 215, 0.92);
  border-radius: 2rem;
  box-shadow: 0 28px 70px rgba(10, 22, 34, 0.08);
  padding: clamp(1.4rem, 2vw, 2rem);
  position: relative;
  overflow: hidden;
}

.about-profile-shell::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.12) 0%, rgba(193, 18, 31, 0) 72%);
  pointer-events: none;
}

.about-profile-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 3rem;
  align-items: center;
}

.about-image {
  margin: 0;
  position: relative;
}

.about-image img {
  width: 100%;
  min-height: 540px;
  object-fit: cover;
  border-radius: 1.35rem;
  box-shadow: 0 18px 46px rgba(3, 10, 18, 0.1);
  border: 6px solid #fff;
  transform-origin: center center;
}

.about-image-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 26, 45, 0.9);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* 3D-Tilt: transform variables and subtle hover */
.bau-tilt-active {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(.2,.9,.2,1), box-shadow 0.22s ease;
  transform-style: preserve-3d;
  will-change: transform;
  perspective: 1000px;
}
.bau-tilt-active::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 200px at var(--mouse-x,50%) var(--mouse-y,50%), rgba(255,255,255,0.06), transparent 20%);
  mix-blend-mode: overlay;
  transform: translateZ(30px) scale(1.02);
}
.bau-tilt-active {
  transform: rotateX(var(--tilt-rx, 0)) rotateY(var(--tilt-ry, 0));
}

.about-copy {
  position: relative;
  z-index: 1;
}

.about-copy .about-heading {
  font-size: clamp(2.3rem, 3.5vw, 3.2rem);
  line-height: 1.06;
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  max-width: 14ch;
}

.about-copy .about-lead {
  color: var(--text-muted);
  max-width: 48rem;
  font-size: 1.04rem;
}

.about-highlight-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.about-highlight-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(236, 220, 223, 0.94);
}

.about-highlight-item strong {
  color: var(--text-dark);
  font-size: 0.98rem;
}

.about-highlight-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1.7rem;
}

.stat-box {
  background: linear-gradient(180deg, #081a2d 0%, #0d2238 100%);
  color: #fff;
  padding: 1rem 0.9rem;
  border-radius: 0.9rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(3, 10, 18, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-box strong {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1;
  font-weight: 300;
  color: #fff;
}

.stat-box span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
}

.about-signature {
  margin-top: 1.7rem;
}

.about-signature-image {
  display: block;
  width: min(260px, 100%);
  height: auto;
  filter: brightness(0.1);
}

.about-signature .sig-role {
  color: var(--brand-red);
  font-weight: 700;
  margin-top: 0.6rem;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .about-profile-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    text-align: center;
  }

  .about-copy .about-heading,
  .about-copy .about-lead {
    max-width: none;
  }

  .about-image img {
    min-height: 420px;
    max-width: 520px;
    margin: 0 auto;
  }

  .about-image-badge,
  .about-signature-image {
    margin-left: auto;
    margin-right: auto;
  }

  .about-highlight-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .about-stats,
  .about-values-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------- */
/* Symmetrie: obere Seitenauswahl */
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav .navbar-nav .nav-link {
  padding: 0.5rem 0.72rem;
  transition: color 160ms ease, transform 160ms ease;
  text-align: center;
  white-space: nowrap;
  font-size: 0.96rem;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link:focus {
  transform: translateY(-2px);
  color: var(--brand-red-dark) !important;
}

.nav-cta-stack .nav-mini-note {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-cta-stack .btn {
  margin-left: 0.45rem;
}


@media (max-width: 767.98px) {
  .bau-compare-visual {
    height: 320px;
  }
  .bau-compare-overlay .bau-img-before,
  .bau-compare-visual .bau-img-after {
    min-width: 100vw;
  }
}

/* 5. Dachdecker-Gitter / Blueprint Akzent im Hintergrund des Helden */
.hero-cinematic::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(193, 18, 31, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(193, 18, 31, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

