/* Cross-browser release safeguards shared by every page. */
:root {
  --app-height: 100vh;
  color-scheme: light;
}

@supports (height: 100dvh) {
  :root {
    --app-height: 100dvh;
  }
}

html {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  max-width: 100%;
  min-width: 320px;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

/* Persistent, accessible disclosure for photorealistic AI imagery. */
.ai-disclosure-host {
  position: relative;
}

.ai-disclosure-media {
  display: block;
  overflow: hidden;
}

.ai-disclosure-media > img {
  display: block;
}

.ai-disclosure {
  position: absolute;
  z-index: 30;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  min-height: 0;
  align-items: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.72);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.035em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.factor-section > .ai-disclosure {
  top: 22px;
  bottom: auto;
}

.nav-visual > .ai-disclosure {
  right: 20px;
  bottom: 20px;
}

button,
input,
select,
textarea {
  font: inherit;
}

a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: rgba(0, 200, 104, 0.16);
}

button,
summary,
[role="button"] {
  touch-action: manipulation;
}

.nav-panel {
  height: var(--app-height);
  max-height: var(--app-height);
}

.nav-panel-body,
.project-dialog,
.solution-carousel {
  -webkit-overflow-scrolling: touch;
}

.hero-services li,
.factor-grid article,
.project-index,
.modal-close,
.service-map-badge,
.service-map-info,
.content-card,
.step-card,
.faq-card,
.proof-card,
.cta-panel,
.glass-card-premium,
.faq-item {
  -webkit-backdrop-filter: blur(10px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-backdrop {
    background: rgba(8, 14, 22, 0.78);
  }
}

@media (max-width: 780px) {
  .site-header .header-cta {
    display: none !important;
  }

  .site-header .menu-toggle > span:first-child {
    display: inline !important;
  }

  .site-header .menu-toggle {
    min-width: 86px;
    gap: 7px;
    padding: 0 13px !important;
    white-space: nowrap;
  }

  .ai-disclosure {
    right: 8px;
    bottom: 8px;
    min-height: 0;
    padding: 0;
    background: transparent;
    font-size: 9px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .factor-section > .ai-disclosure {
    top: 14px;
    bottom: auto;
  }

  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }

  .site-header {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 10px;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: 10px;
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .nav-menu-content > .nav-panel-body {
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .site-footer.universal-site-footer {
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(36px, env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
  }

  .nav-panel,
  .project-dialog {
    height: var(--app-height);
    max-height: var(--app-height);
  }

  .shell,
  .narrow-shell,
  main,
  section,
  article,
  [class*="grid"] > *,
  [class*="flex"] > * {
    min-width: 0;
  }

  h1,
  h2,
  h3,
  p,
  a,
  li {
    overflow-wrap: break-word;
  }

  .primary-cta,
  .tool-cta,
  .header-cta,
  .menu-toggle,
  .nav-menu-cta {
    min-height: 44px;
  }

  .hero-services li,
  .factor-grid article,
  .project-index,
  .modal-close,
  .service-map-badge,
  .service-map-info,
  .content-card,
  .step-card,
  .faq-card,
  .proof-card,
  .cta-panel,
  .glass-card-premium,
  .faq-item {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  #horizontal-section .horizontal-scroll-wrapper {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
  }

  #horizontal-section .horizontal-scroll-content {
    display: flex !important;
    width: max-content !important;
    height: auto !important;
    padding: 0 16px 28px !important;
    gap: 14px !important;
    transform: none !important;
    will-change: auto !important;
  }

  #horizontal-section .horizontal-scroll-content > * {
    width: min(86vw, 390px) !important;
    min-height: 430px !important;
    padding: 56px 26px !important;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    scroll-snap-align: center;
  }
}

@media (hover: none) {
  .project-card:hover .project-card-media img,
  .solution-card:hover,
  .value-grid article:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Transparenter Leistungsumfang im bestehenden Kartendesign */
.scope-note {
  max-width: 980px;
  margin: 32px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(19, 57, 48, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #36544c;
  font-size: 0.88rem;
  line-height: 1.65;
}

.scope-note strong {
  color: #153b32;
}
