/* Stadtseiten-Header (Mannheim, Heidelberg, Ludwigshafen, Worms) – gemeinsames Bauteil, Stand 20.10.2026 (Dennis).
   Eingebunden in inhalte/baufinanzierung-<stadt>/01_Header.html. Markenfarben: Navy #002947, Orange #db5b00 (Akzent auf Navy #ff8a3d). */
.sh-band {
  --sh-navy: #002947;
  --sh-tief: #001a2e;
  --sh-orange: #db5b00;
  --sh-orange-hell: #ff8a3d;
  --sh-text: rgba(226, 234, 242, .78);
  --sh-ease: cubic-bezier(.22, 1, .36, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  font-family: 'Varela', 'Helvetica Neue', Arial, sans-serif;
  background:
    radial-gradient(ellipse 70% 55% at 50% -8%, rgba(31, 92, 140, .55), rgba(0, 41, 71, 0) 70%),
    radial-gradient(ellipse 45% 40% at 22% 78%, rgba(219, 91, 0, .10), rgba(219, 91, 0, 0) 70%),
    linear-gradient(180deg, #002947 0%, #00213a 45%, #001a2e 100%);
}
:where(.sh-band, .sh-band *) { box-sizing: border-box; }
:where(.sh-band) :where(h1, p, ul, li, figure) { margin: 0; padding: 0; }
/* Feines Sternen-/Partikel-Muster: drei Kachelgrößen, damit es nicht nach Raster aussieht */
.sh-band::before,
.sh-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.sh-band::before {
  opacity: .55;
  background-image:
    radial-gradient(1px 1px at 23px 41px, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 131px 17px, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.4px 1.4px at 87px 139px, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 163px 97px, rgba(255,255,255,.30), transparent 60%),
    radial-gradient(1px 1px at 59px 181px, rgba(255,255,255,.40), transparent 60%),
    radial-gradient(1px 1px at 41px 9px, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(1.2px 1.2px at 211px 233px, rgba(255,255,255,.38), transparent 60%),
    radial-gradient(1px 1px at 277px 61px, rgba(255,255,255,.32), transparent 60%),
    radial-gradient(1.6px 1.6px at 301px 271px, rgba(255,170,110,.35), transparent 60%);
  background-size: 197px 211px, 197px 211px, 197px 211px, 197px 211px, 197px 211px, 263px 251px, 263px 251px, 331px 307px, 331px 307px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,.35) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,.35) 100%);
}
.sh-band::after {
  opacity: .5;
  background-image:
    radial-gradient(1px 1px at 71px 23px, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.3px 1.3px at 191px 151px, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 311px 89px, rgba(255,255,255,.45), transparent 60%);
  background-size: 389px 373px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000, transparent 85%);
}
@media (prefers-reduced-motion: no-preference) {
  .sh-band::after { animation: sh-funkeln 6s ease-in-out infinite alternate; }
  @keyframes sh-funkeln { from { opacity: .18; } to { opacity: .6; } }
}

/* Abstand: erster Bereich, Hero füllt am Desktop den Bildschirm unter dem Menü */
main > .wh-band.sh-band:first-child {
  padding-top: clamp(22px, 4.2svh, 52px);
  padding-bottom: clamp(26px, 5svh, 64px);
}
@media (min-width: 1025px) {
  main > .wh-band.sh-band:first-child {
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.sh-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

/* Überschrift */
.sh-band .sh-h1 {
  font-size: clamp(34px, min(4.5vw, 6.9svh), 68px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-wrap: balance;
  margin: 0 auto;
  max-width: 1180px;
}
.sh-band .sh-h1 em {
  font-style: normal;
  color: var(--sh-orange-hell);
  background: linear-gradient(100deg, #ff9b52 0%, #ff8a3d 45%, #f0731f 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sh-band .sh-sub {
  max-width: 760px;
  margin: clamp(10px, 1.9svh, 20px) auto 0;
  text-align: center;
  font-size: clamp(16px, min(1.35vw, 2.45svh), 20px);
  line-height: 1.5;
  color: var(--sh-text);
  text-wrap: balance;
}

/* Zwei Spalten: Foto-Karte links, Häkchen, Button und Vertrauens-Box rechts */
.sh-grid {
  margin-top: clamp(18px, 4svh, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas: "media ." "media checks" "media cta" "media trust" "media .";
  column-gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.sh-media { grid-area: media; align-self: center; }
.sh-checks { grid-area: checks; }
.sh-cta { grid-area: cta; }
.sh-trust { grid-area: trust; }

/* Video-Karte: eigenes Video (/assets/video/, seit 21.10.2026 statt Wistia), startet stumm, Ton per Klick */
.sh-media {
  --sh-media-max-h: calc(100svh - 76px - clamp(34px, min(4.5vw, 6.9svh), 68px) * 2.1 - clamp(16px, min(1.35vw, 2.45svh), 20px) * 3 - 150px);
  position: relative;
  width: min(100%, calc(max(var(--sh-media-max-h), 290px) * 16 / 9));
  justify-self: center;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #00213a;
  border: 1px solid rgba(255, 138, 61, .55);
  box-shadow:
    0 0 0 1px rgba(255, 138, 61, .10),
    0 0 26px rgba(255, 138, 61, .22),
    0 0 70px rgba(219, 91, 0, .14),
    0 28px 70px rgba(0, 8, 16, .55);
  transition: box-shadow .5s var(--sh-ease), transform .5s var(--sh-ease), border-color .5s var(--sh-ease);
}
.sh-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #00213a;
}
.sh-media--stumm .sh-video { cursor: pointer; }
/* Leichter Schleier oben, damit das Orts-Schild lesbar bleibt (nur solange das Video stumm läuft) */
.sh-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 26, 46, .45) 0%, rgba(0, 26, 46, 0) 30%);
  transition: opacity .4s var(--sh-ease);
}
.sh-media:not(.sh-media--stumm)::after { opacity: 0; }
.sh-video:focus-visible { outline: 3px solid var(--sh-orange-hell); outline-offset: -6px; }
.sh-label {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  background: rgba(0, 26, 46, .62);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  pointer-events: none;
}
.sh-label svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--sh-orange-hell); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Häkchen */
.sh-checks { list-style: none; display: grid; gap: clamp(10px, 1.9svh, 18px); }
.sh-checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 14px;
  align-items: start;
  font-size: clamp(15px, min(1.25vw, 2.25svh), 18px);
  line-height: 1.45;
  color: var(--sh-text);
  transition: transform .45s var(--sh-ease);
}
.sh-checks li b { color: #fff; font-weight: 700; }
.sh-haken {
  width: 28px;
  height: 28px;
  margin-top: -1px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sh-orange);
  box-shadow: 0 0 0 4px rgba(219, 91, 0, .16), 0 6px 16px rgba(219, 91, 0, .35);
  transition: transform .45s var(--sh-ease), box-shadow .45s var(--sh-ease);
}
.sh-haken svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Button: weiße Pille, oranger Kreis mit Pfeil */
.sh-cta { margin-top: clamp(16px, 3svh, 30px); }
.sh-band a.sh-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: clamp(54px, 7.4svh, 66px);
  padding: 8px 8px 8px clamp(20px, 2vw, 30px);
  border-radius: 999px;
  background: #fff;
  color: var(--sh-navy);
  font-size: clamp(16px, min(1.3vw, 2.3svh), 18.5px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 8, 16, .35), 0 0 0 1px rgba(255, 255, 255, .6);
  transition: transform .45s var(--sh-ease), box-shadow .45s var(--sh-ease);
}
/* Lichtstreifen (wh.css) auf Weiß in zartem Orange, damit er sichtbar bleibt */
.sh-band a.sh-btn::after {
  background: linear-gradient(120deg, rgba(219, 91, 0, 0) 30%, rgba(219, 91, 0, .16) 50%, rgba(219, 91, 0, 0) 70%);
}
.sh-btn__kreis {
  flex: none;
  width: clamp(40px, 5.6svh, 50px);
  height: clamp(40px, 5.6svh, 50px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sh-orange);
  position: relative;
  z-index: 2;
  transition: transform .45s var(--sh-ease), background .3s;
}
.sh-btn__kreis svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--sh-ease); }
.sh-band a.sh-btn:focus-visible { outline: 3px solid var(--sh-orange-hell); outline-offset: 3px; }

/* Vertrauens-Box */
.sh-trust {
  margin-top: clamp(14px, 2.6svh, 24px);
  padding: clamp(12px, 2svh, 18px) clamp(14px, 1.6vw, 20px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
}
.sh-trust__oben { display: flex; align-items: center; gap: 14px; }
.sh-avatare { display: flex; flex: none; }
.sh-avatare > * {
  width: clamp(36px, 5svh, 44px);
  height: clamp(36px, 5svh, 44px);
  border-radius: 50%;
  border: 2px solid #00213a;
  overflow: hidden;
  background: #0a3a5f;
  transition: transform .45s var(--sh-ease);
}
.sh-avatare > * + * { margin-left: -12px; }
.sh-avatare img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.sh-avatare .sh-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(11px, 1.55svh, 13px);
  letter-spacing: -.02em;
  font-weight: 700;
  color: #fff;
  background: var(--sh-orange);
}
.sh-trust__text { font-size: clamp(14px, min(1.1vw, 2svh), 15.5px); line-height: 1.4; color: var(--sh-text); }
.sh-trust__text b { color: #fff; }
.sh-trust__unten {
  margin-top: clamp(10px, 1.6svh, 14px);
  padding-top: clamp(10px, 1.6svh, 14px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: clamp(14px, min(1.1vw, 2svh), 15.5px);
  color: var(--sh-text);
}
.sh-sterne { display: inline-flex; gap: 3px; }
.sh-sterne svg { width: 17px; height: 17px; fill: #ff8a3d; transition: transform .4s var(--sh-ease); }
.sh-trust__unten b { color: #fff; }
.sh-trenner { color: rgba(255, 255, 255, .3); }

/* Premium-Hover: nur mit Maus und ohne reduzierte Bewegung */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sh-media:hover {
    border-color: rgba(255, 138, 61, .9);
    transform: translateY(-4px);
    box-shadow:
      0 0 0 1px rgba(255, 138, 61, .25),
      0 0 34px rgba(255, 138, 61, .38),
      0 0 110px rgba(219, 91, 0, .26),
      0 36px 80px rgba(0, 8, 16, .6);
  }
  .sh-checks li:hover { transform: translateX(6px); }
  .sh-checks li:hover .sh-haken { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(219, 91, 0, .2), 0 8px 20px rgba(219, 91, 0, .45); }
  .sh-band a.sh-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 8, 16, .45), 0 0 0 1px #fff, 0 0 30px rgba(255, 138, 61, .25); }
  .sh-band a.sh-btn:hover .sh-btn__kreis { transform: scale(1.06); background: #c45100; }
  .sh-band a.sh-btn:hover .sh-btn__kreis svg { transform: rotate(45deg); }
  .sh-trust:hover .sh-avatare > :nth-child(1) { transform: translateX(-6px); }
  .sh-trust:hover .sh-avatare > :nth-child(2) { transform: translateX(-3px); }
  .sh-trust:hover .sh-avatare > :nth-child(4) { transform: translateX(3px); }
  .sh-trust:hover .sh-avatare > :nth-child(5) { transform: translateX(6px); }
  .sh-trust:hover .sh-avatare > :nth-child(6) { transform: translateX(9px); }
  .sh-trust:hover .sh-sterne svg { transform: scale(1.18); }
  .sh-trust:hover .sh-sterne svg:nth-child(2) { transition-delay: .04s; }
  .sh-trust:hover .sh-sterne svg:nth-child(3) { transition-delay: .08s; }
  .sh-trust:hover .sh-sterne svg:nth-child(4) { transition-delay: .12s; }
  .sh-trust:hover .sh-sterne svg:nth-child(5) { transition-delay: .16s; }
}

/* Tablet: Foto oben, darunter Inhalte */
@media (max-width: 1024px) {
  .sh-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "media" "trust" "cta" "checks";
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .sh-media { width: 100%; }
  .sh-trust { margin-top: 20px; }
  .sh-cta { margin-top: 18px; }
  .sh-checks { margin-top: 26px; }
}

/* Handy: Überschrift linksbündig, Unterzeile entfällt, Reihenfolge wie im Vorbild */
@media (max-width: 768px) {
  .sh-wrap { padding: 0 16px; }
  .sh-band .sh-h1 { text-align: left; font-size: clamp(31px, 8.6vw, 40px); line-height: 1.08; }
  .sh-band .sh-sub { display: none; }
  .sh-grid { margin-top: 22px; }
  .sh-media { border-radius: 18px; }
  .sh-label { left: 10px; top: 10px; font-size: 12.5px; padding: 6px 11px 6px 8px; }
  .sh-trust { margin-top: 18px; padding: 14px; }
  .sh-trust__oben { gap: 12px; }
  .sh-avatare > * { width: 38px; height: 38px; }
  .sh-avatare > * + * { margin-left: -13px; }
  .sh-avatare > :nth-child(5) { display: none; }
  .sh-trust__text { font-size: 14.5px; }
  .sh-trust__unten { font-size: 14px; gap: 6px 8px; flex-wrap: nowrap; }
  .sh-sterne { gap: 2px; }
  .sh-sterne svg { width: 15px; height: 15px; }
  .sh-avatare .sh-plus { font-size: 11.5px; letter-spacing: -.02em; }
  .sh-cta { margin-top: 16px; }
  .sh-band a.sh-btn { font-size: 16px; min-height: 58px; padding-left: 22px; }
  .sh-checks { margin-top: 24px; gap: 14px; }
  .sh-checks li { font-size: 16px; }
}
@media (max-width: 370px) {
  .sh-band a.sh-btn { font-size: 15px; padding-left: 18px; }
  .sh-avatare > :nth-child(4) { display: none; }
  .sh-trust__unten { font-size: 13.5px; }
}

/* Ton-Knopf wie Wistias „Click for sound“ (21.10.2026): navy Pille mit orangem Kreis, unten mittig über dem Video */
.sh-ton {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 18px 6px 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  background: rgba(0, 26, 46, .74);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 8, 16, .45);
  cursor: pointer;
  transition: transform .3s var(--sh-ease), box-shadow .3s var(--sh-ease), border-color .3s var(--sh-ease);
}
.sh-ton svg {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 50%;
  background: var(--sh-orange);
  box-shadow: 0 0 0 4px rgba(219, 91, 0, .22);
}
.sh-ton .sh-ton__lsp { fill: #fff; }
.sh-ton .sh-ton__welle { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.sh-ton:hover, .sh-ton:focus-visible { transform: translateX(-50%) translateY(-2px); border-color: rgba(255, 138, 61, .8); box-shadow: 0 14px 34px rgba(0, 8, 16, .55), 0 0 22px rgba(255, 138, 61, .25); }
.sh-ton:focus-visible { outline: 3px solid var(--sh-orange-hell); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .sh-ton svg { animation: sh-ton-puls 2.4s var(--sh-ease) infinite; }
}
@keyframes sh-ton-puls {
  0%, 100% { box-shadow: 0 0 0 4px rgba(219, 91, 0, .22); }
  50% { box-shadow: 0 0 0 9px rgba(219, 91, 0, 0); }
}
@media (max-width: 768px) {
  .sh-ton { bottom: 10px; gap: 8px; padding: 5px 14px 5px 5px; font-size: 13.5px; }
  .sh-ton svg { width: 32px; height: 32px; padding: 7px; }
}

/* Ort-Schild unten rechts, wenn im Rahmen ein Foto statt Video steckt (Dennis 23.10.2026: „Bei allen wo kein Video ist“) */
.sh-media:not(:has(video)) .sh-label { left: auto; top: auto; right: 16px; bottom: 16px; }
@media (max-width: 900px) { .sh-media:not(:has(video)) .sh-label { right: 10px; bottom: 10px; } }
