/* Erzeugt von scripts/build-funnel-css.mjs aus assets/css/main.css – nicht von Hand bearbeiten.
   Styles für den Angebots-Funnel (assets/js/funnel.js) auf Seiten ohne main.css.
   Braucht die Farb- und Schrift-Variablen der Seite (--ink, --line, --blue, --f-head …) und die Knopf-Klassen (.btn, .btn-go, .btn-ic). */
/* ==========================================================================
   v15 Angebots-Funnel (Pop-up)
   ========================================================================== */
.fn { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.fn[hidden] { display: none; }
.fn-shade { position: absolute; inset: 0; background: rgba(7, 11, 20, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.fn-box { position: relative; width: min(760px, 100%); max-height: min(90vh, 860px); display: flex; flex-direction: column; background: #fff; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .3s, transform .4s cubic-bezier(.2, .9, .3, 1.1); }
.fn.is-open .fn-shade { opacity: 1; }
.fn.is-open .fn-box { opacity: 1; transform: none; }
html.fn-open { overflow: hidden; }
.fn-top { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.fn-back, .fn-x { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; }
.fn-back:hover, .fn-x:hover { background: var(--bg-soft); }
.fn-head small { display: block; text-align: center; font: 700 11px var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.fn-bar { display: block; height: 4px; background: var(--bg-soft); border-radius: 2px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; width: 0; background: var(--grad-glow, #0086ff); transition: width .45s var(--ease); }
.fn-body { overflow-y: auto; overscroll-behavior: contain; padding: 26px clamp(18px, 4vw, 40px) 28px; }
.fn-step { animation: fnIn .38s var(--ease); }
.fn-step.from-left { animation-name: fnInL; }
@keyframes fnIn { from { opacity: 0; transform: translateX(22px); } }
@keyframes fnInL { from { opacity: 0; transform: translateX(-22px); } }
.fn-step h3, .fn-done h3 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.2; text-align: center; margin: 0 0 6px; }
.fn-sub { text-align: center; color: var(--ink-soft); font-size: 14.5px; margin: 0 auto 22px; max-width: 34em; }
.fn-grid { display: grid; gap: 10px; }
.fn-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fn-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fn-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 112px; padding: 16px 12px; text-align: center; font: 600 14px/1.3 var(--f-body); color: var(--ink); background: linear-gradient(180deg, #fff, #f6f8fb); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .25s, background .2s; }
.fn-opt:hover { border-color: #9fd0ff; box-shadow: 0 14px 28px -18px rgba(0, 70, 160, .55); }
.fn-opt.is-on { border-color: var(--blue); background: linear-gradient(180deg, #f2f8ff, #e6f2ff); box-shadow: 0 0 0 3px rgba(0, 134, 255, .15); }
.fn-grid.g2 .fn-opt { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 0; padding: 14px; }
.fn-l { display: grid; gap: 3px; }
.fn-l small { font-weight: 500; font-size: 12.5px; color: var(--ink-soft); }
/* 3D-Icon: glänzende Kachel mit Tiefe, kippt nur beim Darüberfahren leicht */
.fn-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #7fd4ff 0%, #0086ff 45%, #0049b0 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(0, 30, 90, .35), 0 8px 14px -6px rgba(0, 70, 170, .6), 0 2px 0 #003b8f; transition: transform .25s ease; transform-style: preserve-3d; position: relative; }
.fn-ic::after { content: ''; position: absolute; left: 5px; right: 5px; top: 3px; height: 45%; border-radius: 10px 10px 50% 50%; background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none; }
.fn-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0, 30, 90, .45)); }
.fn-opt:hover .fn-ic { transform: perspective(300px) translateZ(6px) rotateX(8deg); }
.fn-opt.is-on .fn-ic { background: linear-gradient(145deg, #a7f3d0 0%, #10b981 50%, #047857 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(0, 60, 40, .35), 0 8px 14px -6px rgba(4, 120, 87, .6), 0 2px 0 #036046; }
.fn-tick { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #cfd6e2; background: #fff; transition: background .2s, border-color .2s; }
.fn-tick svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.is-on > .fn-tick { background: var(--grad-green); border-color: transparent; }
.fn-lab { display: block; margin: 20px 0 8px; font: 700 12px var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fn-lab em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
.fn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fn-chip { padding: 10px 16px; font: 600 14px var(--f-body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; transition: all .2s; }
.fn-chip:hover { border-color: #9fd0ff; }
.fn-chip.is-on { color: #fff; background: var(--blue); border-color: var(--blue); }
.fn-text, .fn-input { width: 100%; padding: 13px 14px; font: 16px/1.45 var(--f-body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; resize: vertical; }
.fn-text:focus, .fn-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 134, 255, .15); }
.fn-input { margin-bottom: 12px; }
.fn-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.fn-next { height: 50px; }
.fn-skip { font: 600 14px var(--f-body); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.fn-ai { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -10px 0 16px; font-size: 13px; font-weight: 600; color: var(--blue); }
.fn-ai-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--blue-light); }
.fn-ai-ic svg { width: 14px; height: 14px; fill: none; stroke: var(--blue); stroke-width: 2; }
.fn-pages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fn-page { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 10px; font: 600 14px var(--f-body); color: var(--ink-soft); background: #eef1f5; border: 1.5px solid transparent; border-radius: 12px; cursor: pointer; transition: all .2s; }
.fn-page .fn-tick { position: static; width: 18px; height: 18px; }
.fn-page small { font-weight: 600; font-size: 12px; color: var(--muted); }
.fn-page.is-on { color: var(--ink); background: #fff; border-color: var(--blue); box-shadow: 0 6px 14px -10px rgba(0, 70, 160, .6); }
.fn-page.is-on small { color: var(--blue); }
.fn-count { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin: 14px 0 0; }
/* Abschluss */
.fn-done { position: relative; min-height: 360px; display: grid; }
.fn-phase { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .45s, transform .45s var(--ease), visibility 0s .45s; }
.fn-phase.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fn-check { width: 64px; height: 64px; margin-bottom: 14px; }
.fn-check.big { width: 76px; height: 76px; }
.fn-check svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fn-check circle { stroke: #10b981; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.fn-check path { stroke: #10b981; stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; }
.fn-phase.is-on .fn-check circle { animation: fnDraw .6s ease-out forwards; }
.fn-phase.is-on .fn-check path { animation: fnDraw .4s .45s ease-out forwards; }
@keyframes fnDraw { to { stroke-dashoffset: 0; } }
.fn-calc { font: 700 18px var(--f-head); margin: 0 0 18px; }
.fn-dots b { display: inline-block; animation: fnDot 1.2s infinite; }
.fn-dots b:nth-child(2) { animation-delay: .2s; } .fn-dots b:nth-child(3) { animation-delay: .4s; }
@keyframes fnDot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
/* Mini-Ladeanimation wie beim Startbildschirm */
.fn-mini { position: relative; display: flex; gap: 2px; padding: 18px 26px; font: 800 44px/1 var(--f-logo); letter-spacing: -.04em; transform: skewX(-10deg); }
.fn-mini b { background: linear-gradient(115deg, #0086ff, #5cc8ff 50%, #0049b0); -webkit-background-clip: text; background-clip: text; color: transparent; animation: fnPop 1.5s infinite cubic-bezier(.2, 1.4, .4, 1); }
.fn-mini b:nth-child(3) { animation-delay: .2s; } .fn-mini b:nth-child(4) { animation-delay: .4s; }
@keyframes fnPop { 0%, 60%, 100% { opacity: .2; transform: translateY(8px); } 25%, 45% { opacity: 1; transform: none; } }
.fn-orbit { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(0, 134, 255, .15); border-top-color: #0086ff; animation: fnSpin 1s linear infinite; transform: skewX(10deg); }
@keyframes fnSpin { to { transform: skewX(10deg) rotate(360deg); } }
.fn-person { display: flex; align-items: center; gap: 14px; margin: 18px 0 18px; padding: 12px 18px 12px 12px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px -22px rgba(7, 11, 20, .45); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .6s, transform .6s cubic-bezier(.2, 1.2, .4, 1); }
.fn-person.is-on { opacity: 1; transform: none; }
.fn-av { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: visible; }
.fn-av img, .fn-ini { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font: 800 22px var(--f-head); color: #fff; background: linear-gradient(145deg, #3d4452, #11151d); box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0, 134, 255, .35); }
.fn-online { position: absolute; right: 1px; bottom: 3px; width: 14px; height: 14px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px #fff; }
.fn-person small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.fn-person b { display: block; font: 700 17px var(--f-head); }
.fn-person em { font-style: normal; font-size: 13px; color: var(--ink-soft); }
.fn-prog { display: block; width: min(320px, 80%); height: 5px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; }
.fn-prog i { display: block; height: 100%; width: 0; background: var(--grad-green); transition: width 5s linear; }
.fn-form { width: min(420px, 100%); margin-top: 6px; text-align: left; }
.fn-send { height: 54px; }
.fn-err { color: #e5484d; font-size: 13.5px; font-weight: 600; margin: -4px 0 10px; min-height: 0; }
.fn-err:empty { display: none; }
.fn-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }
.fn-note a { color: inherit; }
@media (max-width: 640px) {
  .fn { padding: 0; place-items: end stretch; }
  .fn-box { width: 100%; max-height: 94vh; clip-path: none; border-radius: 18px 18px 0 0; }
  .fn-grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fn-grid.g2 { grid-template-columns: 1fr; }
  .fn-opt { min-height: 96px; font-size: 13.5px; }
  .fn-ic { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .fn-box, .fn-shade, .fn-step, .fn-phase, .fn-person { transition: none; animation: none; } .fn-mini b, .fn-orbit, .fn-dots b { animation: none; } .fn-check circle, .fn-check path { stroke-dashoffset: 0; animation: none !important; } }

/* v16 Funnel: eigene Unterseiten, Sprachen, eigener Vorschlag */
.fn-own { display: grid; gap: 8px; max-width: 440px; margin: 16px auto 0; }
.fn-own-row { position: relative; display: block; }
.fn-own-row .fn-input { margin: 0; padding-right: 40px; height: 44px; }
.fn-own-x { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; font-size: 20px; color: var(--muted); border-radius: 8px; }
.fn-own-x:hover { background: var(--bg-soft); }
.fn-add { justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font: 700 14px var(--f-body); color: var(--blue); background: #fff; border: 1.5px dashed #9fd0ff; border-radius: 12px; cursor: pointer; }
.fn-add span { display: grid; place-items: center; width: 22px; height: 22px; font-size: 16px; color: #fff; background: var(--blue); border-radius: 50%; }
.fn-add:hover { border-style: solid; }
.fn-price { display: block; margin-top: 3px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--blue); }
.fn-lang, .js-own-idea { margin-top: 6px; }
.fn-lang[hidden], .js-own-idea[hidden] { display: none; }
.fn-lang-in { position: relative; margin-top: 10px; }
.fn-lang-in .fn-input { margin: 0; }
.fn-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 2; display: grid; background: #fff; border-radius: 12px; box-shadow: 0 16px 34px -14px rgba(7, 11, 20, .45); overflow: hidden; }
.fn-sugg:empty { display: none; }
.fn-sugg-i { padding: 10px 14px; text-align: left; font: 500 14.5px var(--f-body); color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.fn-sugg-i b { color: var(--ink); }
.fn-sugg-i:hover { background: #f2f8ff; }

.fn-opt:hover .fn-ic { transform: translateX(2px); }
