
.ht-kopf { position: absolute; z-index: 5; left: 0; right: 0; top: 0; width: min(var(--hf-breite), 100% - 2 * var(--hf-rand)); margin-inline: auto; padding-top: 24px; }
.ht-kopf .hf-marke { text-decoration: none; }
.ht-kopf .hf-marke__bild { height: 44px; }
.ht-kopf .hf-marke__unter { font-size: 20px; }


.ht-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(104px, 11vw, 136px) 0 clamp(48px, 6vw, 80px); }
.ht-hero__bild { position: absolute; z-index: -1; inset: 0; background: var(--bild) center / cover no-repeat; }
.ht-hero__innen {
  width: min(var(--hf-breite), 100% - 2 * var(--hf-rand)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 5vw, 72px); align-items: start;
}
.ht-hero__text { display: grid; justify-items: start; gap: 22px; padding-top: clamp(8px, 3vw, 36px); }
.ht-hero h1 { margin: 0; font-size: clamp(38px, 3.8vw + 8px, 64px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.ht-hero__text > p { margin: 0; max-width: 500px; font-size: clamp(16px, .4vw + 14px, 18.5px); line-height: 1.55; }
.ht-kalender { min-width: 0; overflow: hidden; border-radius: 26px; }
.calendly-inline-widget { min-width: 300px; min-height: 600px; height: 600px; }
.calendly-spinner { display: none; }

.calendly-inline-widget { position: relative; }
.calendly-inline-widget iframe { opacity: 0; transition: opacity .35s ease; }
.calendly-inline-widget.ist-geladen iframe { opacity: 1; }

[data-thema="finanzen"] .calendly-inline-widget iframe { clip-path: inset(0 0 3px 0); }
.calendly-inline-widget:not(.ist-geladen)::before { content: ""; position: absolute; left: 50%; top: 42%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; border: 2px solid rgb(128 134 144 / .3); border-top-color: var(--text-2); animation: ht-laden .9s linear infinite; }
@keyframes ht-laden { to { rotate: 360deg; } }
.ht-kalender__notfall { display: block; padding: 10px 16px 14px; font-size: 12.5px; text-align: center; color: var(--text-2); }


.ht-sektion { position: relative; padding-block: clamp(44px, 6vw, 84px); }
.ht-sektion--zahlen { padding-block: 0; }
.ht-kopfzeile { display: grid; justify-items: center; gap: 14px; text-align: center; }
.ht-kopfzeile h2, .ht-schluss h2 { margin: 0; font-size: clamp(30px, 2.8vw + 12px, 52px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.ht-kopfzeile > p, .ht-schluss p { margin: 0; max-width: 640px; color: var(--text-2); font-size: clamp(16px, .4vw + 14px, 18px); }

.ht-zahlen { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ht-zahlen li { display: grid; gap: 4px; padding: clamp(18px, 2.4vw, 28px); border-radius: 20px; }
.ht-zahlen b { font-size: clamp(28px, 2.6vw + 8px, 46px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.ht-zahlen span { font-size: 14.5px; color: var(--text-2); }

.ht-branchen { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 840px; }
.ht-branchen li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.ht-branchen svg { width: 17px; height: 17px; }


.ht-shorts { position: relative; margin-top: clamp(28px, 4vw, 48px); }
.ht-shorts__spur {
  --rand: max(var(--hf-rand), (100% - var(--hf-breite)) / 2);
  display: flex; gap: 12px; overflow-x: auto; padding-inline: var(--rand); scroll-padding-inline: var(--rand); scroll-snap-type: x proximity; scrollbar-width: none;
}
.ht-shorts__spur::-webkit-scrollbar { display: none; }
.ht-short { flex: 0 0 clamp(196px, 17vw, 236px); scroll-snap-align: start; }

.ht-short.hf-geschichte .hf-ytkarte__medium { aspect-ratio: 9 / 16; }
.ht-shorts .ht-short.hf-geschichte .hf-play { left: auto; top: 12px; right: 12px; bottom: auto; width: 44px; height: 44px; translate: 0 0; }
.ht-shorts .ht-short.hf-geschichte .hf-play svg { width: 17px; height: 17px; }
.ht-shorts .hf-geschichte__zahl b { font-size: 19px; white-space: normal; }
.ht-shorts .hf-geschichte__text { padding-top: 12px; }
.ht-shorts .hf-geschichte__text p { font-size: 13.5px; line-height: 1.4; }
.ht-shorts__pfeile { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.ht-shorts__pfeile button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; color: inherit; cursor: pointer; transition: scale .2s; }
.ht-shorts__pfeile button:hover { scale: 1.06; }
.ht-shorts__pfeile svg { width: 15px; height: 15px; }


.ht-faelle { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2vw, 26px) 14px; margin-top: clamp(28px, 4vw, 48px); }
.ht-fall { grid-column: span 3; text-align: left; }
.ht-fall:nth-child(-n+2) { grid-column: span 6; }

.ht-faelle .ht-fall:nth-child(n+3) .hf-play { right: 10px; bottom: 10px; width: 38px; height: 38px; }
.ht-faelle .ht-fall:nth-child(n+3) .hf-play svg { width: 14px; height: 14px; }
.ht-faelle .ht-fall:nth-child(n+3) .hf-geschichte__zahl { left: 8px; bottom: 8px; padding: 6px 10px; }
.ht-faelle .ht-fall:nth-child(n+3) .hf-geschichte__zahl b { font-size: 15px; }
.ht-faelle .ht-fall:nth-child(n+3) .hf-geschichte__zahl small { font-size: 10.5px; }
.ht-faelle .ht-fall:nth-child(n+3) .hf-geschichte__etikett { left: 8px; top: 8px; padding: 4px 8px; font-size: 10.5px; }
.ht-faelle .ht-fall:nth-child(n+3) h3 { font-size: 15.5px; line-height: 1.25; letter-spacing: -.01em; }
.ht-fall p { font-size: 13.5px; }
.ht-fall.laeuft .hf-ytkarte__medium img { scale: 1; }


@property --ht-winkel { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --ht-glanz { syntax: '<number>'; inherits: true; initial-value: 0; }
.ht-shorts__spur { padding-block: 16px; margin-block: -16px; }
:is(.ht-short, .ht-fall) .hf-ytkarte__medium {
  --ht-glanz: 0;
  transform: perspective(900px) rotateX(var(--kx, 0deg)) rotateY(var(--ky, 0deg));
  transition: transform .3s var(--hf-ease), box-shadow .35s ease, --ht-glanz .35s ease;
}
:is(.ht-short, .ht-fall) .hf-ytkarte__medium::before {
  content: ""; position: absolute; inset: 0; z-index: 3; padding: 1.5px; border-radius: inherit; pointer-events: none; opacity: .65; transition: opacity .35s ease;
  background: conic-gradient(from var(--ht-winkel), var(--ht-a), transparent 26%, var(--ht-b) 50%, transparent 76%, var(--ht-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ht-kreisen 7s linear infinite;
}
:is(.ht-short, .ht-fall) .hf-ytkarte__medium::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(50% 50% at var(--gx, 50%) var(--gy, 20%), rgb(255 255 255 / calc(var(--ht-glanz) * .34)), transparent 72%),
    linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .2) 50%, transparent 58%) 150% 0 / 260% 100% no-repeat;
  animation: ht-streifen 7s ease-in-out infinite;
}
:is(.ht-short, .ht-fall):nth-child(3n + 2) .hf-ytkarte__medium::after { animation-delay: 2.3s; }
:is(.ht-short, .ht-fall):nth-child(3n) .hf-ytkarte__medium::after { animation-delay: 4.6s; }
@keyframes ht-kreisen { to { --ht-winkel: 360deg; } }
@keyframes ht-streifen { 0%, 70% { background-position: 0 0, 150% 0; } 100% { background-position: 0 0, -50% 0; } }
.ht-short .hf-ytkarte__medium img, .ht-fall .hf-ytkarte__medium img { transition: transform .8s var(--hf-ease), filter .45s ease; }
@media (hover: hover) {
  :is(.ht-short, .ht-fall):hover .hf-ytkarte__medium { --ht-glanz: 1; box-shadow: 0 26px 50px -24px var(--ht-schein), 0 0 44px -14px var(--ht-schein); }
  :is(.ht-short, .ht-fall):hover .hf-ytkarte__medium::before { opacity: 1; }
  :is(.ht-short, .ht-fall):hover .hf-ytkarte__medium img { filter: none; }
}
:is(.ht-short, .ht-fall).laeuft .hf-ytkarte__medium { transform: none; }
:is(.ht-short, .ht-fall).laeuft .hf-ytkarte__medium::before, :is(.ht-short, .ht-fall).laeuft .hf-ytkarte__medium::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  :is(.ht-short, .ht-fall) .hf-ytkarte__medium::before, :is(.ht-short, .ht-fall) .hf-ytkarte__medium::after { animation: none; }
}
html[data-thema="finanzen"] { --ht-a: rgb(47 211 154); --ht-b: rgb(255 146 72); --ht-schein: rgb(47 211 154 / .55); }
html[data-thema="immobilien"] { --ht-a: #C9A46A; --ht-b: #FFFFFF; --ht-schein: rgb(140 106 62 / .5); }

.ht-schluss { display: grid; justify-items: center; gap: 16px; text-align: center; }


[data-thema="finanzen"] .ht-hero__bild { inset: -16px; filter: blur(6px); opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent); }
[data-thema="finanzen"] .ht-hero__text > p { color: var(--text-2); }
[data-thema="finanzen"] .ht-kalender { background: #0D0F12; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), 0 0 90px -20px rgb(47 211 154 / .35), 0 40px 80px -40px rgb(0 0 0 / .9); }
[data-thema="finanzen"] :is(.ht-zahlen li, .ht-branchen li, .ht-shorts__pfeile button) { background: var(--glas); box-shadow: var(--glas-kante); }
[data-thema="finanzen"] .ht-branchen svg { color: var(--akzent); }

[data-thema="finanzen"] .ht-shorts .hf-geschichte__decke { background: linear-gradient(180deg, transparent 52%, rgb(4 5 6 / .88)); }
[data-thema="finanzen"] .ht-shorts .hf-geschichte__zahl { left: 14px; right: 14px; bottom: 14px; }
[data-thema="finanzen"] .ht-faelle .ht-fall:nth-child(n+3) .hf-geschichte__zahl { right: 54px; padding: 0; left: 12px; bottom: 12px; }


[data-thema="immobilien"] .ht-hero { margin: 8px 8px 0; border-radius: 28px; color: #FFFFFF; }
[data-thema="immobilien"] .ht-hero__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(14 12 9 / .74), rgb(14 12 9 / .42) 55%, rgb(14 12 9 / .2)); }
[data-thema="immobilien"] .ht-hero__text > p { color: rgb(255 255 255 / .88); }
[data-thema="immobilien"] .ht-hero .hf-haken li { color: #FFFFFF; }
[data-thema="immobilien"] .ht-hero .hf-vertrauen, [data-thema="immobilien"] .ht-hero .hf-vertrauen * { color: #FFFFFF; }
[data-thema="immobilien"] .ht-kalender { background: #FFFFFF; box-shadow: 0 40px 80px -36px rgb(14 12 9 / .7); }
[data-thema="immobilien"] :is(.ht-zahlen li, .ht-branchen li, .ht-shorts__pfeile button) { background: #F3F3F0; box-shadow: inset 0 0 0 1px rgb(17 19 23 / .06); }

[data-thema="immobilien"] :is(.ht-short, .ht-fall) .hf-ytkarte__medium { transform: none; box-shadow: none; }
[data-thema="immobilien"] :is(.ht-short, .ht-fall) .hf-ytkarte__medium::before, [data-thema="immobilien"] :is(.ht-short, .ht-fall) .hf-ytkarte__medium::after { content: none; }
[data-thema="immobilien"] :is(.ht-short, .ht-fall) .hf-ytkarte__medium img { transform: scale(1.02); filter: none; }
[data-thema="immobilien"] :is(.ht-short, .ht-fall) .hf-geschichte__licht { display: none; }
[data-thema="immobilien"] :is(.ht-short, .ht-fall) .hf-geschichte__decke { background: rgb(14 12 9 / .26); }
[data-thema="immobilien"] :is(.ht-short, .ht-fall) .hf-play::before { content: none; }
[data-thema="immobilien"] .ht-sektion--zahlen { padding-top: clamp(24px, 3vw, 36px); }
[data-thema="immobilien"] .ht-kopf .hf-marke__unter { background: none; -webkit-text-stroke: 0; color: #FFFFFF; filter: none; animation: none; }
[data-thema="immobilien"] .ht-kopf .hf-marke__unter::before { background: rgb(255 255 255 / .4); }

@media (max-width: 1024px) {
  .ht-hero__innen { grid-template-columns: minmax(0, 1fr); }
  .ht-kalender { width: min(100%, 620px); margin-inline: auto; }
  .ht-fall, .ht-fall:nth-child(-n+2) { grid-column: span 6; }
}
@media (max-width: 640px) {
  .ht-kopf { padding-top: 16px; }
  .ht-kopf .hf-marke__bild { height: 36px; }
  .ht-kopf .hf-marke__unter { font-size: 16px; }
  .ht-zahlen { grid-template-columns: minmax(0, 1fr); }
  .ht-zahlen li { grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; }
  .ht-fall, .ht-fall:nth-child(-n+2) { grid-column: 1 / -1; }
  .ht-short { flex-basis: 62vw; }
  [data-thema="immobilien"] .ht-hero { margin: 4px 4px 0; border-radius: 22px; }
}

@media (max-width: 767px) {
  [data-thema="immobilien"] .ht-hero__bild { background-image: var(--bild-klein, var(--bild)); background-position: 13% 50%; }
}


[data-thema="immobilien"] .ht-hero { background: #18241E; }
[data-thema="immobilien"] .ht-hero__bild { inset: -12px; filter: blur(3px) saturate(1.1); }

@media (max-width: 767px) {
  [data-thema="immobilien"] .ht-hero__bild { inset: -12px -12px auto; height: 700px; background-position: 16% 62%; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
}
