/* MOVE behaviour styles. The imported design styles remain the visual source. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #afd686;
  outline-offset: 4px;
}

[data-move-header] { color: white; z-index: 1000; }
[data-move-header] .move-nav-bar {
  color: inherit;
  background: transparent;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
[data-move-header] [data-move-nav-link] { color: inherit; }
[data-move-header] .move-logo svg { color: inherit; }
[data-move-header][data-scrolled="true"] .move-nav-bar,
[data-move-header][data-menu-open="true"] .move-nav-bar {
  color: #2c2e33;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 1px 0 rgba(44, 46, 51, .12);
}
[data-move-mega] {
  color: #2c2e33;
  background: white;
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  box-shadow: 0 18px 24px rgba(0, 0, 0, .12);
}
[data-move-menu-toggle] { color: inherit; }
[data-move-mobile-menu] {
  color: #2c2e33;
  background: white;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.move-mobile-open { overflow: hidden; }

[data-move-accordion-panel] { transition: none; }
.move-accordion-open > div > svg { transform: rotate(180deg); }
.deck-tabs button { cursor: pointer; }
.deck-cards > div > .absolute.rounded-lg {
  transition: transform .25s ease, opacity .25s ease;
}
video { max-width: 100%; }
.plyr__controls, .plyr__control--overlaid, .plyr__captions { display: none !important; }
.plyr video { opacity: 1; }
.move-filter-empty {
  padding: 2rem;
  text-align: center;
  color: inherit;
}
.move-form-notice {
  margin-top: .65rem;
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: .85;
}
.move-form-notice a { text-decoration: underline; text-underline-offset: .2em; }

/* Only remove the old application's temporary boot curtain, not content layers. */
.pointer-events-none.fixed.inset-0.z-top { display: none !important; }

@media (min-width: 1024px) {
  [data-move-mobile-menu], [data-move-menu-toggle] { display: none !important; }
}
@media (max-width: 1023px) {
  [data-move-mega] { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-move-header] .move-nav-bar, .deck-cards > div > .absolute.rounded-lg { transition: none; }
}

/* Shared navigation keeps the source's desktop proportions and adds mobile access. */
.move-header-actions { display: flex; gap: 1.25rem; align-items: center; }
.move-header-actions button { font-size: 1.8rem; padding: .2rem; }
.move-nav-tree { list-style: none; padding: 0; margin: 0; }
.move-nav-tree a, .move-nav-tree strong, .move-nav-simple { display: block; padding: .6rem 1rem; }
.move-nav-tree ul { padding-left: 1rem; font-size: .9em; }
.move-meta-links { display: flex; gap: 1.5rem; }
.move-accordion-body { padding: 1.5rem 0 2rem; }
.move-accordion-body a { text-decoration: underline; }
.move-skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 1001; background: white; color: #25272b; padding: 1rem; }
.move-skip-link:focus { top: 1rem; }
@media (max-width: 1023px) {
  .move-desktop-links { display: none; }
  [data-move-mobile-menu] { padding: 1rem; }
  .move-logo svg { max-width: 120px; }
}

/* Category results flow densely; the unfiltered source masonry is retained. */
[data-move-filter-active="true"] .card-parallax {
  grid-row: auto !important;
  grid-column: auto / span 12 !important;
  transform: none !important;
  margin-top: 0 !important;
}
[data-move-filter-active="true"] .grid:has(> .card-parallax) { row-gap: 2rem; }
@media (min-width: 768px) {
  [data-move-filter-active="true"] .card-parallax { grid-column: auto / span 6 !important; }
}
@media (min-width: 1024px) {
  [data-move-filter-active="true"] .card-parallax { grid-column: auto / span 4 !important; }
}

/* Animierte Icons der drei Schwerpunkte (src/partials/icons/). Alle drei bleiben sichtbar;
   nur der ausgewählte oder berührte Schwerpunkt bewegt sich. */
.sbp-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sbp-icon { overflow: visible; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.sbp-icon * { transform-box: fill-box; transform-origin: center; }
.sbp-icon-slot { display: inline-block; flex-shrink: 0; }
.sbp-icon-s { width: clamp(2rem, 1.7rem + .8vw, 2.75rem); height: clamp(2rem, 1.7rem + .8vw, 2.75rem); }
.sbp-icon-m { width: clamp(2.5rem, 2.1rem + 1.1vw, 3.5rem); height: clamp(2.5rem, 2.1rem + 1.1vw, 3.5rem); }
.sbp-icon-l { width: clamp(4rem, 3.2rem + 2.2vw, 6rem); height: clamp(4rem, 3.2rem + 2.2vw, 6rem); margin-bottom: clamp(1.5rem, 1.2rem + .8vw, 2rem); }
.sbp-icon-slot > .sbp-icon { display: block; width: 100%; height: 100%; }
/* Auf farbigem Grund (ausgewählter Schwerpunkt, Menü, Hover) werden helle Linien dunkel. */
.deck-tabs [aria-selected="true"], .sbp-icon-auf-farbe, .hero-home-pill:hover {
  --sbp-icon-linie: #151515;
  --sbp-icon-gruen: #2e9e50;
  --sbp-icon-violett: #7a55f0;
}
.sbp-icon-auf-farbe .sbp-icon { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
/* In Listen und Karten bewegt sich ein Icon erst beim Darüberfahren. */
.deck-tabs [aria-selected="false"]:not(:hover) .sbp-icon *,
a:not(:hover) .sbp-icon-hover .sbp-icon * { animation-play-state: paused; }

.sbp-beat { animation: sbp-beat 1.4s ease-in-out infinite; }
@keyframes sbp-beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.06); } 28% { transform: scale(.99); } }
.sbp-ripple { animation: sbp-ripple 1.4s ease-out infinite; }
@keyframes sbp-ripple { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
/* Negative Verzögerung: im Ruhezustand ist die Pulslinie ganz gezeichnet. */
.sbp-ecg { stroke-dasharray: 60; animation: sbp-draw 1.4s linear -.8s infinite; }
@keyframes sbp-draw { 0% { stroke-dashoffset: 60; } 50%, 100% { stroke-dashoffset: 0; } }
.sbp-spin { animation: sbp-spin 1.6s linear infinite; }
@keyframes sbp-spin { to { transform: rotate(360deg); } }

.sbp-helm { animation: sbp-helm 1.8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sbp-helm { 0%, 100% { transform: none; } 20% { transform: rotate(-6deg) translateY(-3px); } 40% { transform: rotate(3deg); } 55% { transform: scale(1.04, .96); } 70% { transform: none; } }
.sbp-helm-shadow { animation: sbp-helm-shadow 1.8s ease-in-out infinite; }
@keyframes sbp-helm-shadow { 0%, 100% { transform: scaleX(1); opacity: .35; } 20% { transform: scaleX(.8); opacity: .2; } }
.sbp-shield-wave { opacity: 0; animation: sbp-shield-wave 1.8s ease-out infinite; }
@keyframes sbp-shield-wave { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
.sbp-shine { animation: sbp-shine 2.8s ease-in-out infinite; }
@keyframes sbp-shine { 0%, 55% { transform: translateX(-34px) skewX(-20deg); } 100% { transform: translateX(40px) skewX(-20deg); } }
.sbp-vent { animation: sbp-vent 1.8s ease-in-out infinite; }
@keyframes sbp-vent { 0%, 100% { stroke: #151515; } 30% { stroke: #fff; } }
.sbp-icon .sbp-delay { animation-delay: .4s; }

.sbp-orbit { animation: sbp-spin 6s linear infinite; transform-box: view-box; transform-origin: 25px 26px; }

@media (prefers-reduced-motion: reduce) {
  .sbp-icon * { animation: none !important; }
  .sbp-shield-wave { opacity: 0; }
}

/* Projektübersicht «Warm & rund»: runde Karten mit warmem Foto, Kreisfoto und kurzem Text */
.move-project-cards {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: clamp(16px, 4vw, 48px);
}
@media (min-width: 640px) { .move-project-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .move-project-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.move-project-card { height: 100%; }
.move-project-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #393c44;
  color: white;
  text-decoration: none;
  transition: transform .25s ease, background-color .25s ease;
}
.move-project-card__link:hover { transform: translateY(-4px); background: #51555f; }
.move-project-card__media { position: relative; flex-shrink: 0; aspect-ratio: 4 / 3; }
.move-project-card__image,
.move-project-card__circle {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02) brightness(1.03) sepia(.08);
}
.move-project-card__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.move-project-card__circle {
  position: absolute;
  right: 16px;
  bottom: -36px;
  width: 84px;
  height: 84px;
  border: 5px solid #393c44;
  border-radius: 50%;
  z-index: 1;
  transition: border-color .25s ease;
}
.move-project-card__link:hover .move-project-card__circle { border-color: #51555f; }
.move-project-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 22px 26px; }
.move-project-card__chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 90px); }
.move-project-card__chip {
  padding: 4px 11px;
  border: 1.5px solid #afd886;
  border-radius: 999px;
  color: #afd886;
  font-size: 12px;
  font-weight: 600;
}
.move-project-card__chip:first-child { background: #afd886; color: #2c2e35; }
.move-project-card__title { hyphens: manual; font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.move-project-card__teaser { color: #d7dedd; font-size: 16px; }
.move-project-card__more { margin-top: auto; padding-top: 6px; color: #afd886; font-weight: 600; }
.move-project-card__more::after { content: " →"; }
@media (prefers-reduced-motion: reduce) {
  .move-project-card__link { transition: none; }
  .move-project-card__link:hover { transform: none; }
}
