/* ==========================================================================
   TAIFUN Angebots-Rechner — fully scoped under #taifun-rechner.
   Nothing here may leak into the global theme.
   ========================================================================== */
#taifun-rechner{
	--tar-navy:#0f172a;--tar-navy2:#162238;--tar-blue:#005bab;--tar-blue-dk:#004482;
	--tar-amber:#ff6a00;--tar-amber-hov:#ea580c;--tar-amber-fix:#ffdbc8;--tar-amber-dim:#ffb68b;
	--tar-green:#006847;--tar-green-lt:#ecfdf5;--tar-green-fix:#85f8c4;--tar-green-dim:#68dba9;
	--tar-bg:#f8f9fd;--tar-card:#ffffff;--tar-border:#e2e8f0;--tar-soft:#eaf3fc;
	--tar-track:#e1e2e6;--tar-text:#191c1f;--tar-muted:#424751;--tar-outline:#c2c6d3;
	--tar-red:#ba1a1a;
	--tar-font-h:'Plus Jakarta Sans',Inter,-apple-system,'Segoe UI',Roboto,sans-serif;
	--tar-font-b:Inter,-apple-system,'Segoe UI',Roboto,sans-serif;
	font-family:var(--tar-font-b);color:var(--tar-text);background:var(--tar-bg);
	font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;
}
#taifun-rechner *,#taifun-rechner *::before,#taifun-rechner *::after{box-sizing:border-box;margin:0;padding:0}
#taifun-rechner button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
#taifun-rechner input{font:inherit}
#taifun-rechner svg{display:block;flex:none}
#taifun-rechner :focus-visible{outline:3px solid var(--tar-blue);outline-offset:2px;border-radius:4px}
#taifun-rechner .tar-wrap{max-width:1104px;margin:0 auto;padding:0 24px}
#taifun-rechner [hidden]{display:none!important}
#taifun-rechner .tar-ic{width:20px;height:20px}

/* ---- hero ---- */
#taifun-rechner .tar-hero{text-align:center;padding:40px 24px 24px;max-width:860px;margin:0 auto}
#taifun-rechner .tar-kicker{display:inline-flex;align-items:center;gap:8px;background:var(--tar-track);
	color:var(--tar-navy);font-size:12px;font-weight:600;padding:4px 12px;border-radius:999px}
#taifun-rechner .tar-kicker .tar-dot{width:8px;height:8px;border-radius:50%;background:var(--tar-amber);animation:tar-pulse 1.8s infinite}
#taifun-rechner .tar-kicker .tar-k2{display:inline-flex;align-items:center;gap:4px;color:var(--tar-green);font-weight:600;border-left:1px solid var(--tar-outline);padding-left:8px}
#taifun-rechner .tar-kicker .tar-k2 svg{width:14px;height:14px}
@keyframes tar-pulse{0%,100%{opacity:1}50%{opacity:.35}}
#taifun-rechner h1{font-family:var(--tar-font-h);font-weight:800;color:var(--tar-navy);
	font-size:clamp(30px,4.6vw,52px);line-height:1.12;letter-spacing:-.025em;margin:14px 0 10px;text-wrap:balance}
#taifun-rechner .tar-sub{color:var(--tar-muted);font-size:clamp(15px,1.6vw,18px);max-width:620px;margin:0 auto;text-wrap:balance}

/* ---- trade chips ---- */
#taifun-rechner .tar-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:18px}
#taifun-rechner .tar-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:999px;
	border:1px solid var(--tar-border);background:#fff;color:var(--tar-muted);font-size:12px;font-weight:600;transition:all .15s}
#taifun-rechner .tar-chip svg{width:15px;height:15px}
#taifun-rechner .tar-chip:hover{color:var(--tar-navy);background:#f2f3f7}
#taifun-rechner .tar-chip[aria-pressed="true"]{background:var(--tar-blue);border-color:var(--tar-blue);color:#fff}

/* ---- stage label ---- */
#taifun-rechner .tar-stage{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 4px 10px}
#taifun-rechner .tar-stage-label{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:700;
	letter-spacing:.06em;text-transform:uppercase}
#taifun-rechner .tar-stage-label .tar-num{width:20px;height:20px;border-radius:50%;display:inline-flex;
	align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff}
#taifun-rechner .tar-stage--blue .tar-stage-label{color:var(--tar-blue-dk)}
#taifun-rechner .tar-stage--blue .tar-num{background:var(--tar-blue)}
#taifun-rechner .tar-stage--amber .tar-stage-label{color:#994700}
#taifun-rechner .tar-stage--amber .tar-num{background:var(--tar-amber);color:var(--tar-navy)}
#taifun-rechner .tar-stage--green .tar-stage-label{color:var(--tar-green)}
#taifun-rechner .tar-stage--green .tar-num{background:var(--tar-green)}
#taifun-rechner .tar-stage-hint{font-size:12px;color:var(--tar-muted)}
#taifun-rechner .tar-stage-hint--live{display:inline-flex;align-items:center;gap:5px;color:var(--tar-green);font-weight:600}
#taifun-rechner .tar-stage-hint--live svg{width:14px;height:14px}

/* ---- input cards ---- */
#taifun-rechner .tar-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
#taifun-rechner .tar-card{background:var(--tar-card);border:1px solid var(--tar-border);border-radius:16px;
	padding:20px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;
	box-shadow:0 1px 3px rgba(13,32,64,.05),0 6px 12px -2px rgba(13,32,64,.04);transition:border-color .15s}
#taifun-rechner .tar-card:hover{border-color:rgba(0,91,171,.5)}
#taifun-rechner .tar-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
#taifun-rechner .tar-card-title{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:var(--tar-navy)}
#taifun-rechner .tar-card-title svg{width:20px;height:20px;color:var(--tar-blue)}
#taifun-rechner .tar-steppers{display:flex;gap:4px}
#taifun-rechner .tar-step{width:44px;height:44px;flex:none;border-radius:8px;background:#f2f3f7;color:var(--tar-navy);
	font-size:16px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;line-height:1}
#taifun-rechner .tar-step:hover{background:#e7e8ec}
#taifun-rechner .tar-big{display:flex;flex-direction:column;align-items:center;padding:8px 0}
#taifun-rechner .tar-big-row{display:flex;align-items:baseline;gap:5px}
#taifun-rechner .tar-big-num{font-family:var(--tar-font-h);font-weight:800;font-size:clamp(40px,4vw,52px);
	line-height:1;color:var(--tar-navy);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
#taifun-rechner input.tar-big-num{width:3ch;min-width:3ch;max-width:100%;border:0;background:transparent;text-align:center;
	height:64px;padding:0;box-shadow:none;appearance:textfield}
#taifun-rechner input.tar-big-num::-webkit-inner-spin-button,
#taifun-rechner input.tar-big-num::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#taifun-rechner .tar-quick button{min-height:44px}
#taifun-rechner .tar-big-unit{font-size:12px;font-weight:600;color:var(--tar-muted)}
#taifun-rechner .tar-big-sub{font-size:12px;color:var(--tar-muted);margin-top:4px;min-height:16px}
#taifun-rechner .tar-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}
#taifun-rechner .tar-quick button{padding:6px 4px;border-radius:6px;background:#f2f3f7;color:var(--tar-navy);
	font-size:11px;font-weight:600;text-align:center;border:1px solid transparent;transition:all .15s}
#taifun-rechner .tar-quick button:hover{background:#e7e8ec}
#taifun-rechner .tar-quick button[aria-pressed="true"]{background:var(--tar-soft);color:var(--tar-blue);
	font-weight:700;border-color:rgba(0,91,171,.25)}

/* ---- range ---- */
#taifun-rechner input[type="range"]{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:3px;
	background:linear-gradient(to right,var(--tar-blue) 0%,var(--tar-blue) var(--tar-fill,50%),var(--tar-track) var(--tar-fill,50%),var(--tar-track) 100%);cursor:pointer}
#taifun-rechner input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;
	border-radius:50%;background:var(--tar-blue);border:3px solid #fff;box-shadow:0 2px 6px rgba(0,68,130,.3);cursor:pointer}
#taifun-rechner input[type="range"]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--tar-blue);
	border:3px solid #fff;box-shadow:0 2px 6px rgba(0,68,130,.3);cursor:pointer}
#taifun-rechner input[type="range"]::-moz-range-track{height:6px;border-radius:3px;background:var(--tar-track)}

/* ---- levers ---- */
#taifun-rechner .tar-levers{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
#taifun-rechner .tar-lever{display:flex;align-items:center;justify-content:space-between;gap:12px;
	background:#fff;border:1px solid var(--tar-border);border-radius:12px;padding:14px;cursor:pointer;transition:all .15s}
#taifun-rechner .tar-lever:hover{border-color:var(--tar-blue)}
#taifun-rechner .tar-lever-left{display:flex;align-items:center;gap:10px;min-width:0}
#taifun-rechner .tar-lever-ic{width:36px;height:36px;border-radius:8px;background:var(--tar-soft);color:var(--tar-blue);
	display:flex;align-items:center;justify-content:center;flex:none;transition:all .15s}
#taifun-rechner .tar-lever-ic svg{width:19px;height:19px}
#taifun-rechner .tar-lever-txt{display:flex;flex-direction:column;min-width:0}
#taifun-rechner .tar-lever-txt b{font-size:12px;font-weight:700;color:var(--tar-navy);line-height:1.3}
#taifun-rechner .tar-lever-txt span{font-size:11px;font-weight:600;color:var(--tar-green)}
#taifun-rechner .tar-lever-txt span.tar-bonus{color:#994700}
#taifun-rechner .tar-switch{position:relative;flex:none;width:44px;height:24px}
#taifun-rechner .tar-switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;z-index:1}
#taifun-rechner .tar-switch-ui{display:flex;align-items:center;width:44px;height:24px;border-radius:999px;
	background:var(--tar-track);padding:2px;transition:background .15s}
#taifun-rechner .tar-switch-ui i{width:20px;height:20px;border-radius:50%;background:#fff;
	box-shadow:0 1px 3px rgba(0,0,0,.25);transform:translateX(0);transition:transform .15s}
#taifun-rechner .tar-switch input:checked + .tar-switch-ui{background:var(--tar-blue)}
#taifun-rechner .tar-switch input:checked + .tar-switch-ui i{transform:translateX(20px)}
#taifun-rechner .tar-switch input:focus-visible + .tar-switch-ui{outline:3px solid var(--tar-blue);outline-offset:2px}
#taifun-rechner .tar-lever:has(.tar-switch input:checked){border-color:rgba(0,91,171,.35)}
#taifun-rechner .tar-lever:not(:has(.tar-switch input:checked)) .tar-lever-ic{background:#eceef2;color:var(--tar-muted)}

/* ---- impact bar ---- */
#taifun-rechner .tar-impact{background:var(--tar-navy);color:#f8f9fd;border-radius:16px;padding:26px 28px;
	border:1px solid var(--tar-navy2);box-shadow:0 12px 28px rgba(13,32,64,.22);position:relative;overflow:hidden;
	display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,340px);align-items:center;gap:24px}
#taifun-rechner .tar-impact::before{content:"";position:absolute;left:-80px;bottom:-80px;width:240px;height:240px;
	border-radius:50%;background:rgba(0,91,171,.25);filter:blur(48px);pointer-events:none}
#taifun-rechner .tar-impact::after{content:"";position:absolute;right:0;top:0;width:240px;height:240px;
	border-radius:50%;background:rgba(236,253,245,.08);filter:blur(48px);pointer-events:none}
#taifun-rechner .tar-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;position:relative;z-index:1;min-width:0}
#taifun-rechner .tar-metric{display:flex;flex-direction:column}
#taifun-rechner .tar-metric-label{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#e1e2e6}
#taifun-rechner .tar-metric-label .tar-live-dot{width:8px;height:8px;border-radius:50%;background:var(--tar-green-fix);animation:tar-pulse 1.8s infinite}
#taifun-rechner .tar-metric-num{font-family:var(--tar-font-h);font-weight:800;font-size:clamp(30px,3.4vw,44px);
	line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
#taifun-rechner .tar-metric-num--green{color:var(--tar-green-fix)}
#taifun-rechner .tar-metric-num--amber{color:var(--tar-amber-fix)}
#taifun-rechner .tar-metric-unit{font-size:13px;font-weight:700;color:var(--tar-green-dim)}
#taifun-rechner .tar-metric-unit--amber{color:var(--tar-amber-dim)}
#taifun-rechner .tar-metric-sub{font-size:11px;color:#e1e2e6;margin-top:4px}
#taifun-rechner .tar-metric-eff{display:inline-flex;align-items:center;gap:4px;color:var(--tar-green-fix);font-size:11px;font-weight:700;margin-left:10px}
#taifun-rechner .tar-metric-eff svg{width:14px;height:14px}
#taifun-rechner .tar-vrule{display:none}
#taifun-rechner .tar-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;position:relative;z-index:1;min-width:0}
#taifun-rechner .tar-btn-pdf{display:inline-flex;align-items:center;gap:8px;background:var(--tar-amber);color:var(--tar-navy);
	font-family:var(--tar-font-h);font-weight:700;font-size:15px;padding:14px 20px;border-radius:12px;
	box-shadow:0 2px 0 var(--tar-amber-hov);transition:all .15s;justify-content:center;text-align:center;white-space:normal;min-height:48px}
#taifun-rechner .tar-btn-pdf:hover{background:var(--tar-amber-hov)}
#taifun-rechner .tar-btn-pdf svg{width:18px;height:18px}
#taifun-rechner .tar-btn-demo{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:#f8f9fd;
	border:1.5px solid rgba(255,255,255,.32);font-weight:600;font-size:14px;padding:13px 18px;border-radius:12px;
	text-decoration:none;transition:all .15s;white-space:nowrap;min-height:48px}
#taifun-rechner .tar-btn-demo:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.65);color:#fff}
#taifun-rechner .tar-btn-demo svg{width:17px;height:17px;color:var(--tar-amber-dim)}
#taifun-rechner .tar-model-note{font-size:11px;color:var(--tar-muted);margin-top:10px;padding:0 4px;max-width:760px}

/* ---- trust bar ---- */
#taifun-rechner .tar-trust{margin-top:20px;background:#fff;border:1px solid var(--tar-border);border-radius:16px;
	padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
#taifun-rechner .tar-trust-rating{display:flex;align-items:center;gap:10px}
#taifun-rechner .tar-stars{color:var(--tar-amber);display:flex;gap:1px}
#taifun-rechner .tar-stars svg{width:16px;height:16px}
#taifun-rechner .tar-trust-rating b{font-family:var(--tar-font-h);font-size:15px;font-weight:700;color:var(--tar-navy)}
#taifun-rechner .tar-trust-rating span{font-size:12px;color:var(--tar-muted)}
#taifun-rechner .tar-trust-sep{color:var(--tar-outline)}
#taifun-rechner .tar-trust-partners{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#taifun-rechner .tar-trust-partners em{font-style:normal;font-size:11px;font-weight:700;letter-spacing:.06em;
	text-transform:uppercase;color:#727783}
#taifun-rechner .tar-partner{padding:4px 10px;border-radius:6px;background:#f2f3f7;border:1px solid var(--tar-border);
	font-size:12px;font-weight:600;color:var(--tar-navy)}
#taifun-rechner .tar-trust-mig{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--tar-green)}
#taifun-rechner .tar-trust-mig svg{width:16px;height:16px}

/* ---- mobile sticky bar ---- */
#taifun-rechner .tar-sticky{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;
	background:rgba(13,32,64,.97);backdrop-filter:blur(8px);padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));
	align-items:center;justify-content:space-between;gap:12px;box-shadow:0 -2px 12px rgba(13,32,64,.25)}
#taifun-rechner .tar-sticky-txt{display:flex;flex-direction:column;color:#fff;line-height:1.2}
#taifun-rechner .tar-sticky-txt b{font-family:var(--tar-font-h);font-size:16px;font-weight:800;color:var(--tar-green-fix);font-variant-numeric:tabular-nums}
#taifun-rechner .tar-sticky-txt span{font-size:11px;color:#e1e2e6}
#taifun-rechner .tar-sticky-btn{background:var(--tar-amber);color:var(--tar-navy);font-weight:700;font-size:14px;
	padding:11px 16px;border-radius:10px;box-shadow:0 2px 0 var(--tar-amber-hov);white-space:nowrap}

/* ---- modal ---- */
#taifun-rechner .tar-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px}
#taifun-rechner .tar-modal[hidden]{display:none}
#taifun-rechner .tar-modal-back{position:absolute;inset:0;background:rgba(13,32,64,.6);backdrop-filter:blur(2px)}
#taifun-rechner .tar-modal-panel{position:relative;background:#fff;border-radius:16px;border:1px solid var(--tar-border);
	box-shadow:0 25px 50px -12px rgba(13,32,64,.25);width:100%;max-width:440px;padding:26px 24px;
	max-height:calc(100dvh - 32px);overflow:auto}
#taifun-rechner .tar-modal-close{position:absolute;top:8px;right:8px;width:44px;height:44px;border-radius:8px;
	display:flex;align-items:center;justify-content:center;color:var(--tar-muted)}
#taifun-rechner .tar-modal-close:hover{background:#f2f3f7;color:var(--tar-navy)}
#taifun-rechner .tar-modal-close svg{width:16px;height:16px}
#taifun-rechner .tar-modal-ic{width:42px;height:42px;border-radius:12px;background:var(--tar-green-lt);color:var(--tar-green);
	display:flex;align-items:center;justify-content:center;margin-bottom:12px}
#taifun-rechner .tar-modal-ic svg{width:22px;height:22px}
#taifun-rechner .tar-modal-panel h2{font-family:var(--tar-font-h);font-size:18px;font-weight:700;color:var(--tar-navy);line-height:1.3;padding-right:30px}
#taifun-rechner .tar-modal-sub{font-size:13px;color:var(--tar-muted);margin-top:6px}
#taifun-rechner .tar-modal-sub b{color:var(--tar-navy)}
#taifun-rechner .tar-privacy{font-size:11px;color:var(--tar-muted);margin-top:12px}
#taifun-rechner .tar-privacy a{color:var(--tar-blue)}

/* ---- responsive ---- */
@media (max-width:1023px){
	#taifun-rechner .tar-levers{grid-template-columns:repeat(2,1fr)}
	#taifun-rechner .tar-impact{grid-template-columns:minmax(0,1fr)}
	#taifun-rechner .tar-actions{flex-direction:row;flex-wrap:wrap}
}
@media (max-width:767px){
	#taifun-rechner .tar-wrap{padding:0 16px}
	#taifun-rechner .tar-grid3{grid-template-columns:1fr}
	#taifun-rechner .tar-levers{grid-template-columns:1fr}
	#taifun-rechner .tar-metrics{grid-template-columns:minmax(0,1fr);gap:18px}
	#taifun-rechner .tar-vrule{display:none}
	#taifun-rechner .tar-actions{flex-direction:column;align-items:stretch}
	#taifun-rechner .tar-btn-pdf,#taifun-rechner .tar-btn-demo{justify-content:center}
	#taifun-rechner .tar-sticky{display:flex}
	#taifun-rechner .tar-page{padding-bottom:76px}
	#taifun-rechner .tar-stage-hint{display:none}
	#taifun-rechner .tar-hero{padding:24px 16px 10px;text-align:left}
	#taifun-rechner .tar-kicker{font-size:10px;padding:4px 8px;gap:5px}
	#taifun-rechner .tar-kicker .tar-k2{padding-left:5px;gap:3px}
	#taifun-rechner .tar-chips{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:2px 2px 8px}
	#taifun-rechner .tar-chip{flex:none;min-height:44px;border-radius:8px;padding:8px 12px}
	#taifun-rechner .tar-card{padding:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
	#taifun-rechner .tar-card-head{display:contents}
	#taifun-rechner .tar-card-title{grid-column:1;grid-row:1;font-size:14px;max-width:150px}
	#taifun-rechner .tar-card-title{min-width:0;overflow-wrap:anywhere}
	#taifun-rechner .tar-steppers{grid-column:2;grid-row:1;gap:70px;align-self:start}
	#taifun-rechner .tar-big{grid-column:2;grid-row:1;pointer-events:none;padding:0}
	#taifun-rechner .tar-big-row{pointer-events:none;justify-content:center}
	#taifun-rechner input.tar-big-num{font-size:28px;height:44px;width:3ch;pointer-events:auto}
	#taifun-rechner .tar-big-unit{display:none}
	#taifun-rechner .tar-big-sub{grid-row:2;max-width:150px;font-size:11px;text-align:center}
	#taifun-rechner .tar-card>div:last-child{grid-column:1/-1;grid-row:2}
	#taifun-rechner .tar-lever-txt b{font-size:14px}
	#taifun-rechner .tar-impact{padding:20px}
	#taifun-rechner .tar-metric{padding:14px;background:var(--tar-navy2);border-radius:12px;width:100%}
	#taifun-rechner .tar-metric-num{font-size:32px}
	#taifun-rechner .tar-trust{flex-direction:column;align-items:center;text-align:center;padding:20px 12px}
	#taifun-rechner .tar-trust-rating{flex-wrap:wrap;justify-content:center}
	#taifun-rechner .tar-trust-partners{justify-content:center}
	#taifun-rechner .tar-trust-sep{display:none}
}
@media (prefers-reduced-motion:reduce){
	#taifun-rechner *,#taifun-rechner *::before,#taifun-rechner *::after{animation:none!important;transition:none!important}
}
