/* ProzessNetz – Basis-Styles
   Layout und Farben liegen als Inline-Styles direkt im HTML.
   Diese Datei enthält Reset, Fokus, Animationen, Hover-Zustände und Mobile-Anpassungen. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; background: #F3F6FA; color: #082350;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: #0A58D0; text-decoration: none; }
a:hover { color: #002050; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; }
img, svg { max-width: 100%; }
::selection { background: #BC9858; color: #08111f; }
:focus-visible { outline: 3px solid #0A58D0; outline-offset: 3px; border-radius: 4px; }

#pw-mobile-menu[hidden] { display: none !important; }
.pw-tagline { white-space: nowrap; }

#pw-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 10px;
  background: #002050; color: #fff; font-size: 15px; font-weight: 600; transition: top .2s ease; }
#pw-skip:focus { top: 12px; color: #fff; }

/* Scroll-Animationen – dezente Einblendung von unten (ca. 560 ms) */
[data-reveal] { opacity: 0; transform: translateY(26px); }
.pw-in { opacity: 1 !important; transform: none !important;
  transition: opacity .56s cubic-bezier(.22,1,.36,1), transform .56s cubic-bezier(.22,1,.36,1); }
.pw-pop { animation: pwPop .75s cubic-bezier(.22,1,.36,1); }

@keyframes pwDrift { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-80px,-40px,0); } }
@keyframes pwDash { to { stroke-dashoffset: -400; } }
@keyframes pwPulse { 0%,100% { opacity: .25; transform: scale(1); } 50% { opacity: .9; transform: scale(1.25); } }
@keyframes pwGlow { 0%,100% { opacity: .45; } 50% { opacity: .85; } }
@keyframes pwMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pwGearOnce { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pwPop { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* Hero: Showcase echter App-Ansichten */
#pw-showcase { will-change: transform; }
#pw-showcase:hover, #pw-showcase:focus-within { animation-play-state: paused; }
#pw-showcase figure img { transition: transform .7s cubic-bezier(.22,1,.36,1); }
#pw-showcase figure:hover img { transform: scale(1.03); }

/* Einblicke: laufendes Bildband, haelt beim Darueberfahren an, wischbar */
.pw-showcase { -ms-overflow-style: none; scrollbar-width: none; cursor: grab; }
.pw-showcase::-webkit-scrollbar { display: none; }
.pw-showcase.is-dragging { cursor: grabbing; }
.pw-showcase.is-dragging img { pointer-events: none; }
.pw-slide img { transition: transform .6s cubic-bezier(.22,1,.36,1); }
.pw-slide:hover img { transform: scale(1.03); }

/* Prozessnetz */
#pw-net .pw-line { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .95s cubic-bezier(.4,0,.2,1), stroke-opacity .35s ease, stroke-width .35s ease; }
#pw-net .pw-pulse.is-run { animation: pwNetPulse 1.05s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes pwNetPulse {
  0% { stroke-dashoffset: 100; opacity: 0; }
  18% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
#pw-net .pw-node.is-hit .pw-node-badge,
#pw-net .pw-node:hover .pw-node-badge,
#pw-net .pw-node:focus-visible .pw-node-badge { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 32px rgba(7,43,79,.3); }
#pw-net .pw-node.is-hit .pw-node-title,
#pw-net .pw-node:hover .pw-node-title { color: #0A58D0; }
#pw-net .pw-node:hover .pw-node-text { color: #33415A; }
#pw-net g.is-lit .pw-line { stroke-opacity: .78 !important; stroke-width: 2.4 !important; }
.pw-cover:hover img { transform: rotate(0deg) translateY(-6px) !important; box-shadow: 0 32px 64px rgba(7,43,79,.3) !important; }
.pw-katalog-btn:hover, .pw-katalog-btn:focus-visible {
  background: #0A58D0 !important; color: #fff !important; box-shadow: 0 12px 28px rgba(10,88,208,.28) !important; }

/* Lösungskarten: Anheben, stärkerer Schatten, leichter Bildzoom, Pfeil wandert */
.pw-card-img { transition: transform .7s cubic-bezier(.22,1,.36,1); will-change: transform; }
.pw-card:hover .pw-card-img, .pw-card:focus-within .pw-card-img { transform: scale(1.06); }
.pw-card-cta { transition: color .35s ease; }
.pw-card-arrow { transition: transform .45s cubic-bezier(.22,1,.36,1); }
.pw-card:hover .pw-card-arrow, .pw-card:focus-within .pw-card-arrow { transform: translateX(6px); }
.pw-card:hover .pw-card-cta, .pw-card:focus-within .pw-card-cta { color: #002050 !important; }

/* Navigation: wird beim Scrollen kompakter */
.pw-header > div { transition: padding .35s ease; }
.pw-header.is-scrolled > div { padding-top: 9px !important; padding-bottom: 9px !important; }
.pw-header.is-scrolled a[href="#top"] > span:first-child { width: 46px !important; height: 46px !important; }
.pw-header.is-scrolled a[href="#top"] img { width: 36px !important; height: 36px !important; }
.pw-header.is-scrolled a[href="#top"] > span:first-child,
.pw-header.is-scrolled a[href="#top"] img { transition: width .35s ease, height .35s ease; }

/* Hover- und Fokus-Zustände (überschreiben die Inline-Styles) */
.hv1:hover, .hv1:focus-visible { color:#0A58D0 !important }
.hv2:hover, .hv2:focus-visible { background:#0A58D0 !important; color:#fff !important; box-shadow:0 10px 26px rgba(10,88,208,.28) !important }
.hv3:hover, .hv3:focus-visible { transform:translateY(-2px) !important; box-shadow:0 22px 52px rgba(188,152,88,.42) !important }
.hv4:hover, .hv4:focus-visible { background:rgba(255,255,255,.11) !important; border-color:rgba(255,255,255,.4) !important }
.hv5:hover, .hv5:focus-visible { transform:translateY(-6px) !important; box-shadow:0 22px 44px rgba(8,35,80,.1) !important }
.hv6:hover, .hv6:focus-visible { transform:translateY(-8px) !important; box-shadow:0 26px 54px rgba(8,35,80,.12) !important }
.hv7:hover, .hv7:focus-visible { background:#0A58D0 !important; color:#fff !important; box-shadow:0 12px 28px rgba(10,88,208,.28) !important }
.hv8:hover, .hv8:focus-visible { transform:translateY(-8px) !important; box-shadow:0 30px 60px rgba(8,35,80,.14) !important }
.hv9:hover, .hv9:focus-visible { transform:translateY(-6px) !important; box-shadow:0 22px 44px rgba(8,35,80,.1) !important; border-color:#C7D5EC !important }
.hv10:hover, .hv10:focus-visible { transform:translateY(-6px) !important; box-shadow:0 22px 44px rgba(8,35,80,.1) !important; border-color:#D6A84F !important }
.hv11:hover, .hv11:focus-visible { background:#0A58D0 !important; color:#fff !important; box-shadow:0 12px 28px rgba(10,88,208,.26) !important }
.hv12:hover, .hv12:focus-visible { transform:translateY(-2px) !important; box-shadow:0 24px 56px rgba(188,152,88,.45) !important }
.hv13:hover, .hv13:focus-visible { background:rgba(255,255,255,.12) !important }
.hv14:hover, .hv14:focus-visible { color:#fff !important }
.hv15:hover, .hv15:focus-visible { background:rgba(255,255,255,.14) !important }
.hv16:hover, .hv16:focus-visible { filter:brightness(1.06) !important }

/* Mobile */
@media (max-width: 999px) {
  #pw-nav { display: none !important; }
  #pw-burger { display: flex !important; }
}
@media (max-width: 899px) {
  #pw-progress { display: none; }
  #pw-about { grid-template-columns: 1fr !important; }
  #pw-about figure { position: static !important; max-width: 340px; }
  #pw-katalog { grid-template-columns: 1fr !important; }
}
@media (max-width: 979px) { #pw-more { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 639px) { #pw-more { grid-template-columns: 1fr !important; } }
@media (max-width: 999px) { #pw-privacy { grid-template-columns: 1fr !important; } }
@media (max-width: 519px) { #pw-privacy ul { grid-template-columns: 1fr !important; } }
@media (max-width: 900px) {
  #pw-net { grid-template-columns: 1fr !important; gap: 0 !important; }
  #pw-net-lines { display: none !important; }
  #pw-net-hub { grid-column: 1 !important; grid-row: auto !important; order: -1; margin-bottom: 32px; }
  #pw-net .pw-node { position: relative; align-items: flex-start !important; text-align: left !important;
    margin-left: 20px; padding: 0 0 32px 30px; border-left: 2px solid #0F4C81; }
  #pw-net .pw-node:last-child { border-left-color: transparent; padding-bottom: 0; }
  #pw-net .pw-node > span { flex-direction: row-reverse !important; }
  #pw-net .pw-node::before {
    content: ""; position: absolute; left: -6px; top: 16px;
    width: 10px; height: 10px; border-radius: 50%; background: #D6A84F;
    box-shadow: 0 0 0 3px #FFFFFF; }
  #pw-katalog { grid-template-columns: 1fr !important; }
}
@media (max-width: 400px) {
  .pw-tagline { display: none; }
}
@media (max-width: 420px) {
  #pw-header a[href="#top"] > span:first-child { width: 46px; height: 46px; }
  #pw-header a[href="#top"] img { width: 34px; height: 34px; }
  #pw-header a[href="#top"] span span:first-child { font-size: 18px; }
}

/* Über ProzessNetz: kompakte Erfahrungsnachweise – nur Smartphone */
.pw-about-exp { display: none; }

@media (max-width: 767px) {
  /* Mobile Reihenfolge: Label, Überschrift, Einleitung, Erfahrung, Porträt, Name, Resttext */
  #pw-about { display: flex !important; flex-direction: column; gap: 0 !important; }
  #pw-about > div { display: contents; }
  #pw-about > div > span { order: 1; }
  #pw-about > div > h2 { order: 2; }
  #pw-about > div > p:nth-of-type(1) { order: 3; }
  #pw-about .pw-about-exp { order: 4; }
  #pw-about > figure { order: 5; }
  #pw-about > div > p:nth-of-type(n+2) { order: 6; }
  #pw-about > div > div { order: 7; }

  #pw-about > figure { margin: 26px 0 4px !important; max-width: none !important; }
  #pw-about > figure > div {
    max-width: 420px; width: 88%; margin: 0 auto;
    box-shadow: 0 14px 34px rgba(8,35,80,.16) !important;
  }
  #pw-about > figure img {
    aspect-ratio: 4 / 5; height: 100%;
    object-fit: cover; object-position: center top;
  }
  #pw-about > figure figcaption {
    max-width: 420px; width: 88%; margin: 12px auto 0 !important;
  }

  .pw-about-exp {
    display: flex; flex-direction: column; gap: 9px;
    margin: 20px 0 0; padding: 0; list-style: none;
  }
  .pw-about-exp li {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 14px; border-radius: 12px;
    background: #F3F6FA; border: 1px solid #E4E9F2;
    font-size: 14px; line-height: 1.4; color: #5A6273;
  }
  .pw-about-exp li svg { flex: none; color: #0F4C81; }
  .pw-about-exp li b { font-weight: 700; color: #082350; }
}

@media (max-width: 767px) {
  #pw-kat-covers { grid-template-columns: 1fr 1fr !important; gap: 12px !important; align-items: start; }
  #pw-kat-covers .pw-cover { width: 100%; }
  #pw-kat-covers .pw-cover img { max-width: none !important; width: 100%; transform: none !important; }
  #pw-kat-covers .pw-cover > span { margin-top: 11px !important; font-size: 10px; letter-spacing: .1em; line-height: 1.35; }
}
@media (max-width: 400px) {
  #pw-kat-covers { gap: 9px !important; }
  #pw-kat-covers .pw-cover > span { font-size: 9.5px; letter-spacing: .06em; gap: 5px !important; }
}

/* Footer-Kontakt: die beiden Buttons stehen auf dem Smartphone in einer Reihe */
@media (max-width: 767px) {
  .pw-foot-contact {
    flex-direction: row !important; flex-wrap: wrap;
    gap: 12px !important; align-items: stretch !important;
    justify-content: space-between;
  }
  .pw-foot-contact > a:first-child { flex: 1 0 100%; }
  /* Kontaktspalte über die volle Footer-Breite, damit der WhatsApp-Button links beginnt */
  .pw-foot-col-kontakt { grid-column: 1 / -1; }
  .pw-foot-contact > a:not(:first-child) {
    flex: 1 1 0; min-width: 0; justify-content: center; text-align: center;
    padding: 13px 14px !important; font-size: 13.5px !important; line-height: 1.35; gap: 8px !important;
  }
  .pw-foot-contact > a:not(:first-child) svg { width: 14px; height: 14px; flex: none; }
}
@media (max-width: 380px) {
  .pw-foot-contact { gap: 10px !important; }
  .pw-foot-contact > a:not(:first-child) {
    padding: 12px 10px !important; font-size: 12.5px !important; gap: 6px !important;
  }
  .pw-foot-contact > a:not(:first-child) svg { width: 13px; height: 13px; }
}

/* Smartphone: Qualitätsversprechen zuerst, Datenschutz danach */
@media (max-width: 767px) {
  #pw-privacy.pw-privacy-mobile-detached {
    width: calc(100% - 32px); max-width: none !important;
    margin: 0 16px !important; padding: 26px 20px !important;
    border-color: rgba(214,168,79,.28) !important;
    background: linear-gradient(150deg,#0B2447,#050C1A) !important;
    box-shadow: 0 18px 42px rgba(8,35,80,.18);
  }
}

/* Smartphone-Optimierung – greift nur bis 767 px */
@media (max-width: 767px) {
  /* Header beim Scrollen ca. 75 px */
  .pw-header.is-scrolled > div { padding-top: 13px !important; padding-bottom: 13px !important; }
  .pw-header.is-scrolled a[href="#top"] > span:first-child { width: 48px !important; height: 48px !important; }
  .pw-header.is-scrolled a[href="#top"] img { width: 38px !important; height: 38px !important; }

  /* Einheitliche Abschnittsabstände */
  body > div > section:not(#top):not(#katalog) { padding-top: 60px !important; padding-bottom: 60px !important; }
  #katalog { padding-bottom: 60px !important; }

  /* Einblicke: antippbare Ansichten */
  .pw-slide { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .pw-slide > div { transition: transform .45s cubic-bezier(.22,1,.36,1), border-color .45s ease, box-shadow .45s ease; }
  .pw-slide.is-active > div {
    transform: scale(1.025);
    border-color: rgba(214,168,79,.6) !important;
    box-shadow: 0 16px 40px rgba(0,8,24,.55), 0 8px 30px rgba(10,88,208,.28), 0 0 22px rgba(214,168,79,.2) !important;
  }
  .pw-slide:focus { outline: none; }
  .pw-slide:focus-visible > div { outline: 3px solid #E3C285; outline-offset: 2px; }

  /* Vier Schritte: kompakte Zeitleiste */
  #pw-steps { margin-top: 28px !important; }
  #pw-steps > div + div { grid-template-columns: 1fr !important; gap: 16px !important; }
  #pw-steps > div + div > div {
    position: relative; display: grid; grid-template-columns: 46px minmax(0,1fr);
    column-gap: 14px; row-gap: 4px; align-items: start;
    padding: 16px !important; border-radius: 16px; background: #fff;
    border: 1px solid #E4E9F2; box-shadow: 0 1px 2px rgba(8,35,80,.04);
  }
  #pw-steps > div + div > div > div {
    grid-column: 1; grid-row: 1 / span 2;
    width: 46px !important; height: 46px !important; border-radius: 14px !important;
    font-size: 17px !important; box-shadow: 0 6px 16px rgba(8,35,80,.08) !important;
  }
  #pw-steps > div + div > div > h3 { grid-column: 2; grid-row: 1; margin-top: 2px !important; font-size: 16.5px !important; line-height: 1.3; }
  #pw-steps > div + div > div > p { grid-column: 2; grid-row: 2; margin-top: 0 !important; font-size: 14.5px !important; line-height: 1.5 !important; }
  #pw-steps > div + div > div:not(:last-child)::after,
  #pw-steps > div + div > div:not(:first-child)::before {
    content: ""; position: absolute; left: 38px; width: 2px; background: #C9D6EA;
  }
  #pw-steps > div + div > div:not(:last-child)::after { top: 62px; bottom: -1px; }
  #pw-steps > div + div > div:not(:first-child)::before { top: -17px; height: 33px; }
  #pw-steps > div + div > div:last-child { border-color: rgba(214,168,79,.45); background: linear-gradient(160deg, rgba(214,168,79,.09), #fff); }
  #pw-steps > div + div > div:last-child::before { background: linear-gradient(#C9D6EA, #D6A84F); }
  #pw-steps > div + div > div:last-child > div { box-shadow: 0 8px 18px rgba(188,152,88,.28) !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  #pw-net .pw-line { stroke-dashoffset: 0 !important; }
  #pw-net .pw-pulse { display: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
