/* Ergänzungen zur Original-CSS (ersetzt, was vorher die OnePage-Runtime per JS erledigt hat) */

/* "Weitere"-Button im Menü wird ohne Runtime nicht gebraucht */
.con-kit-component-menu-v2-more { display: none !important; }
.con-kit-atom-menu-v2-item > a { text-decoration: none; color: inherit; }
html { scroll-behavior: smooth; }
.fm-no-scroll, .fm-no-scroll body { overflow: hidden; }

/* ---------- Burger-Menü (mobil) ---------- */
.fm-burger-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; margin-left: auto; }
.fm-burger-btn span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; }
.fm-burger { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.fm-burger__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; }
.fm-burger__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: #fff; color: rgb(29,32,38); padding: 72px 28px 28px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; box-shadow: -8px 0 32px rgba(0,0,0,.15); }
.fm-burger--open { pointer-events: auto; }
.fm-burger--open .fm-burger__backdrop { opacity: 1; }
.fm-burger--open .fm-burger__panel { transform: none; }
.fm-burger__close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; background: none; font-size: 34px; line-height: 1; cursor: pointer; color: inherit; }
.fm-burger ul { list-style: none; margin: 0; padding: 0; }
.fm-burger li { border-bottom: 1px solid rgba(29,32,38,.1); }
.fm-burger a { display: block; padding: 16px 0; font-size: 18px; font-weight: 500; color: inherit; text-decoration: none; font-family: var(--font-kit-header-font, inherit); }

@media (max-width: 991px) {
  .fm-desktop-menu { display: none !important; }
  .fm-burger-host { display: flex; justify-content: flex-end; }
  .fm-burger-btn { display: flex; }
}

/* ---------- Calendly-Einwilligung ---------- */
.fm-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 320px; padding: 32px; border: 1px dashed rgba(29,32,38,.25); border-radius: 8px; font-family: var(--font-kit-text-font, inherit); }
.fm-consent p { margin: 0; max-width: 520px; }
.fm-consent button { margin-top: 12px; padding: 14px 28px; border: 0; border-radius: 6px; background: rgb(32,153,237); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Funnel ---------- */
.fm-funnel { --fm-a: rgb(var(--fm-accent)); width: 100%; min-height: 70vh; margin: 0; padding: 64px 24px 96px; box-sizing: border-box; font-family: var(--font-kit-text-font, inherit); }
.fm-step { animation: fmIn .35s ease; max-width: 1250px; margin: 0 auto; }
@keyframes fmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fm-progress { height: 6px; border-radius: 6px; background: rgba(127,127,127,.2); overflow: hidden; margin: 0 auto 40px; max-width: 720px; }
.fm-progress span { display: block; height: 100%; background: var(--fm-a); transition: width .4s ease; }
.fm-grid { display: grid; gap: 48px; max-width: 720px; margin: 0 auto; }
.fm-grid--media { max-width: none; grid-template-columns: 1fr 1fr; align-items: center; }
.fm-media img { width: 100%; height: auto; border-radius: 8px; display: block; }
.fm-body { text-align: left; }
.fm-step:not(:has(.fm-grid--media)) .fm-body { text-align: center; }
.fm-label { display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 4px; background: rgba(var(--fm-accent), .12); color: var(--fm-a); margin-bottom: 16px; font-weight: 600; }
.fm-h { margin: 0 0 16px; font-family: var(--font-kit-header-font, inherit); font-size: clamp(26px, 4vw, 40px); line-height: 1.15; font-weight: 700; }
.fm-h .con-kit-quark { font-size: inherit; }
.fm-p { margin: 0 0 12px; font-size: 18px; line-height: 1.5; opacity: .8; }
.fm-form { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.fm-field__label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.fm-field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fm-input { width: 100%; box-sizing: border-box; height: 56px; padding: 0 16px; border-radius: 6px; border: 1px solid rgba(127,127,127,.35); background: rgba(255,255,255,.08); color: inherit; font: inherit; font-size: 17px; }
.fm-input:focus { outline: 2px solid var(--fm-a); outline-offset: 1px; }
.fm-options { display: grid; gap: 12px; }
.fm-option { text-align: left; width: 100%; min-height: 60px; padding: 16px 20px 16px 52px; position: relative; border-radius: 8px; border: 2px solid rgba(127,127,127,.3); background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.fm-option::before { content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid rgba(127,127,127,.5); box-sizing: border-box; }
.fm-option:hover { border-color: var(--fm-a); }
.fm-option:active { transform: scale(.99); }
.fm-option--active { border-color: var(--fm-a); background: rgba(var(--fm-accent), .1); }
.fm-option--active::before { border-color: var(--fm-a); background: radial-gradient(circle, var(--fm-a) 45%, transparent 50%); }
.fm-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.fm-check input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; accent-color: var(--fm-a); }
.fm-check a { color: inherit; text-decoration: underline; }
.fm-submit { display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 14px 28px; border: 0; border-radius: 8px; background: var(--fm-a); color: #fff; font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; text-decoration: none; box-shadow: inset 0 -8px 16px rgba(0,0,0,.12), 0 6px 18px rgba(var(--fm-accent), .35); }
.fm-submit:disabled { opacity: .6; cursor: wait; }
.fm-back { margin-top: 20px; background: none; border: 0; color: inherit; opacity: .65; font: inherit; cursor: pointer; padding: 6px 0; }
.fm-error { color: #d93025; background: rgba(217,48,37,.08); border-radius: 6px; padding: 10px 14px; margin: 0; font-size: 15px; }
.fm-first-error { margin: 0 0 12px; }
.fm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fm-loader { display: flex; gap: 10px; justify-content: center; padding: 24px 0; }
.fm-loader span { width: 14px; height: 14px; border-radius: 50%; background: var(--fm-a); animation: fmDot 1s infinite ease-in-out; }
.fm-loader span:nth-child(2) { animation-delay: .15s; }
.fm-loader span:nth-child(3) { animation-delay: .3s; }
@keyframes fmDot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.fm-step--finish .fm-body { text-align: center; }
.fm-step--finish .fm-body::before { content: "✓"; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: rgba(var(--fm-accent), .15); color: var(--fm-a); font-size: 36px; font-weight: 700; }

@media (max-width: 767px) {
  .fm-funnel { padding: 40px 16px 64px; }
  .fm-grid--media { grid-template-columns: 1fr; gap: 24px; }
  .fm-grid--media .fm-media { order: -1; }
  .fm-field--row { grid-template-columns: 1fr; }
  .fm-p { font-size: 16px; }
}
