/* ============================================================
   AI-Suche am Desktop (28.09.2026)
   1) "AI"-Erweiterung rechts an der Lupe im Kopf-Suchfeld
   2) schwebender AI-Punkt unten rechts (fixed) mit Fächer-Menü
   3) Erklär-Banner (Hover auf der Erweiterung)
   Optik = AI-Knopf der Handy-Tab-Leiste (mobile_v2.css S17):
   Orange-Verlauf, Puls-Ring, wandernder Glanz.
   Nur >= 768px – auf Handys gibt es den AI-Knopf in der Tab-Leiste.
   ============================================================ */
@keyframes evo-ai-puls-d { 0% { box-shadow: 0 8px 24px rgba(219,78,57,.45), 0 0 0 0 rgba(219,78,57,.55); } 70% { box-shadow: 0 8px 24px rgba(219,78,57,.45), 0 0 0 18px rgba(219,78,57,0); } 100% { box-shadow: 0 8px 24px rgba(219,78,57,.45), 0 0 0 0 rgba(219,78,57,0); } }
@keyframes evo-ai-glanz-d { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }

/* ---------- 1) Erweiterung im Suchfeld ---------- */
.search-bar-main.has-evo-ai .search-btn, .search-bar-main:has(.evo-ai-btn) .search-btn { border-radius: 0; }
.evo-ai-btn { position: relative; overflow: hidden; flex: none; width: 64px; border: 0; margin: 0; padding: 0 12px 0 10px; cursor: pointer;
    border-radius: 0 25px 25px 0; display: flex; align-items: center; justify-content: center; gap: 4px;
    color: #fff; font: inherit; font-weight: 800; font-size: 13px; letter-spacing: .05em; text-shadow: 0 1px 2px rgba(0,0,0,.25);
    background: linear-gradient(135deg, #ff7a5c 0%, var(--primary-color, #DB4E39) 55%, #b8341f 100%);
    box-shadow: inset 1px 0 0 rgba(255,255,255,.35); }
.evo-ai-btn i { font-size: 15px; line-height: 1; position: relative; z-index: 1; }
.evo-ai-btn .evo-ai-txt { position: relative; z-index: 1; }
.evo-ai-btn::after { content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; transform: skewX(-20deg); pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 100%); animation: evo-ai-glanz-d 3.2s ease-in-out infinite; }
.evo-ai-btn:hover { filter: brightness(1.06); }
.evo-ai-btn:focus-visible { outline: 2px solid #1E1F22; outline-offset: 2px; }
.evo-ai-new { position: absolute; top: -8px; right: 8px; background: #1E1F22; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .3px;
    padding: 1px 5px; border-radius: 8px; border: 2px solid #fff; z-index: 3; pointer-events: none; line-height: 1.3; }

/* ---------- 3) Erklär-Banner unter dem Suchfeld (per JS positioniert) ---------- */
.evo-ai-banner { position: fixed; width: 620px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid #e3e5e9; border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,.16); padding: 16px 18px 14px; z-index: 100035; text-align: left; font-size: 14px; color: #333;
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.evo-ai-banner.is-open { opacity: 1; transform: none; pointer-events: auto; }
.evo-ai-banner::before { content: ""; position: absolute; top: -9px; right: 24px; border: 9px solid transparent; border-top: 0; border-bottom-color: #fff; filter: drop-shadow(0 -1px 0 #e3e5e9); }
.evo-ai-banner h4 { margin: 0 0 3px; font-size: 16px; color: #1E1F22; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.evo-ai-banner h4 i { color: var(--primary-color, #DB4E39); font-size: 18px; }
.evo-ai-banner h4 em { font-style: normal; color: var(--primary-color, #DB4E39); }
.evo-ai-banner .evo-ai-lead { margin: 0 0 12px; color: #555; font-size: 13px; line-height: 1.45; }
.evo-ai-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.evo-ai-grid a, .evo-ai-grid .evo-ai-ask { display: flex; gap: 9px; align-items: flex-start; border: 1px solid #eee; border-radius: 10px; padding: 9px 10px; background: #fafbfc; text-decoration: none; color: inherit; }
.evo-ai-grid a:hover { border-color: var(--primary-color, #DB4E39); background: #FBEDEB; }
.evo-ai-grid a i, .evo-ai-grid .evo-ai-ask i { font-size: 20px; line-height: 1; color: var(--primary-color, #DB4E39); flex: none; margin-top: 1px; }
.evo-ai-grid a b, .evo-ai-grid .evo-ai-ask b { display: block; font-size: 13px; color: #1E1F22; margin-bottom: 1px; }
.evo-ai-grid a span, .evo-ai-grid .evo-ai-ask span { font-size: 11.5px; color: #666; line-height: 1.3; display: block; }
.evo-ai-grid .evo-ai-ask { background: #fffaf0; border-color: #f1e3bd; cursor: default; }
.evo-ai-grid .evo-ai-ask i { color: #b7791f; }
.evo-ai-foot { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.evo-ai-trust { display: flex; gap: 8px; align-items: flex-start; background: #f3f8f4; border: 1px solid #d5e8d9; border-radius: 8px; padding: 7px 10px; font-size: 12px; color: #2f5e3a; flex: 1; line-height: 1.35; }
.evo-ai-trust i { color: #2f8f4e; flex: none; font-size: 16px; margin-top: 1px; }
.evo-ai-cta { background: var(--primary-color, #DB4E39); color: #fff !important; border-radius: 22px; padding: 10px 18px; font-size: 14px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 7px; text-decoration: none; }
.evo-ai-cta:hover { background: #c8442f; }

/* ---------- 2) schwebender AI-Punkt ---------- */
/* Abdunkelung der Seite, solange der Fächer offen ist (Klick darauf schließt) */
.evo-ai-backdrop { position: fixed; inset: 0; z-index: 100029; background: rgba(30,31,34,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.evo-ai-backdrop.is-open { opacity: 1; pointer-events: auto; }
.evo-ai-fab { position: fixed; right: 44px; bottom: 44px; z-index: 100030; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.evo-ai-fab.is-open, .evo-ai-fab .evo-ai-dot, .evo-ai-fab .evo-ai-hint { pointer-events: auto; }
.evo-ai-fab .evo-ai-dot { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; overflow: hidden;
    display: flex; align-items: center; justify-content: center; color: #fff; font: inherit; font-weight: 800; font-size: 19px; letter-spacing: .06em; text-shadow: 0 1px 2px rgba(0,0,0,.25);
    background: linear-gradient(135deg, #ff7a5c 0%, var(--primary-color, #DB4E39) 55%, #b8341f 100%);
    box-shadow: 0 8px 24px rgba(219,78,57,.45), 0 0 0 5px #fff; animation: evo-ai-puls-d 2.4s ease-out infinite;
    transition: transform .28s cubic-bezier(.22,1,.36,1), background .2s; }
.evo-ai-fab .evo-ai-dot span { position: relative; z-index: 1; }
.evo-ai-fab .evo-ai-dot i { display: none; font-size: 26px; line-height: 1; position: relative; z-index: 1; }
.evo-ai-fab .evo-ai-dot::after { content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; transform: skewX(-20deg); pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 100%); animation: evo-ai-glanz-d 3.2s ease-in-out infinite; }
.evo-ai-fab .evo-ai-dot:hover { transform: scale(1.06); }
.evo-ai-fab .evo-ai-dot:focus-visible { outline: 2px solid #1E1F22; outline-offset: 3px; }
/* Sprechblase (nur erster Besuch) */
.evo-ai-hint { background: #1E1F22; color: #fff; font-size: 12.5px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.18); position: relative; margin-right: 2px; }
.evo-ai-hint::after { content: ""; position: absolute; right: 22px; bottom: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #1E1F22; }
.evo-ai-hint b { color: #ffd166; }
.evo-ai-hint[hidden] { display: none; }
/* Fächer */
.evo-ai-fan { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-bottom: 4px; pointer-events: none; }
.evo-ai-fan a { display: flex; align-items: center; gap: 10px; text-decoration: none; transform: translateY(10px); opacity: 0; transition: all .28s cubic-bezier(.22,1,.36,1); }
.evo-ai-fab.is-open .evo-ai-fan { pointer-events: auto; }
.evo-ai-fab.is-open .evo-ai-fan a { transform: none; opacity: 1; }
.evo-ai-fan a:nth-child(1) { transition-delay: .02s; } .evo-ai-fan a:nth-child(2) { transition-delay: .05s; } .evo-ai-fan a:nth-child(3) { transition-delay: .08s; }
.evo-ai-fan a:nth-child(4) { transition-delay: .11s; } .evo-ai-fan a:nth-child(5) { transition-delay: .14s; }
.evo-ai-fan .evo-ai-lbl { background: #fff; color: #1E1F22; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.14); white-space: nowrap; }
.evo-ai-fan .evo-ai-lbl small { display: block; font-weight: 400; color: #666; font-size: 11.5px; }
.evo-ai-fan .evo-ai-b { width: 50px; height: 50px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center; margin-right: 7px; }
.evo-ai-fan .evo-ai-b i { font-size: 22px; line-height: 1; color: var(--primary-color, #DB4E39); }
.evo-ai-fan a:hover .evo-ai-b { background: #FBEDEB; }
.evo-ai-fan a:hover .evo-ai-lbl { color: var(--primary-color, #DB4E39); }
.evo-ai-cap { display: none; background: #fff; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #444; box-shadow: 0 4px 14px rgba(0,0,0,.14); max-width: 300px; line-height: 1.4; margin-bottom: 2px; }
.evo-ai-cap b { color: #1E1F22; }
.evo-ai-fab.is-open .evo-ai-cap { display: block; }
.evo-ai-fab.is-open .evo-ai-dot { background: #1E1F22; animation: none; box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 5px #fff; transform: rotate(90deg); }
.evo-ai-fab.is-open .evo-ai-dot::after { display: none; }
.evo-ai-fab.is-open .evo-ai-dot span { display: none; }
.evo-ai-fab.is-open .evo-ai-dot i { display: block; width: 24px; height: 24px; font-size: 0; line-height: 0; }
.evo-ai-fab.is-open .evo-ai-dot i::before, .evo-ai-fab.is-open .evo-ai-dot i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 3px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%) rotate(45deg); }
.evo-ai-fab.is-open .evo-ai-dot i::after { transform: translate(-50%, -50%) rotate(-45deg); }
.evo-ai-fab.is-open .evo-ai-hint { display: none; }

/* ---------- 4) Werbekarte KI-Suche in der rechten Spalte der Produktseite (alle Geraete) ---------- */
.evo-ai-card { position: relative; overflow: hidden; margin-top: 16px; border: 1px solid #f4d6cf; border-radius: 10px; padding: 14px 14px 12px;
    background: linear-gradient(160deg, #fff8f6 0%, #fff 60%); box-shadow: 0 4px 14px rgba(219,78,57,.08); font-size: 13px; color: #333; }
.evo-ai-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #ff7a5c, var(--primary-color, #DB4E39)); }
.evo-ai-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.evo-ai-card-dot { position: relative; overflow: hidden; flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    color: #fff; font-weight: 800; font-size: 10.5px; letter-spacing: .06em; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.25);
    background: linear-gradient(135deg, #ff7a5c 0%, var(--primary-color, #DB4E39) 55%, #b8341f 100%); box-shadow: 0 4px 14px rgba(219,78,57,.4), 0 0 0 3px #fff; }
.evo-ai-card-dot i { font-size: 15px; line-height: 1; position: relative; z-index: 1; }
.evo-ai-card-dot span { position: relative; z-index: 1; }
.evo-ai-card-dot::after { content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; transform: skewX(-20deg); pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 100%); animation: evo-ai-glanz-d 3.2s ease-in-out infinite; }
.evo-ai-card-head b { display: block; font-size: 14.5px; color: #1E1F22; line-height: 1.25; }
.evo-ai-card-head small { display: block; color: #666; font-size: 12px; margin-top: 2px; }
.evo-ai-card ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.evo-ai-card li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; color: #444; }
.evo-ai-card li i { color: var(--primary-color, #DB4E39); font-size: 16px; line-height: 1.2; flex: none; }
.evo-ai-card li em { font-style: normal; color: #777; }
.evo-ai-card-cta { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 10px 14px; border-radius: 22px;
    background: var(--primary-color, #DB4E39); color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none !important; }
.evo-ai-card-cta:hover { background: #c8442f; }
.evo-ai-card-alt { display: block; text-align: center; margin-top: 8px; font-size: 12.5px; color: #1E1F22 !important; text-decoration: none !important; }
.evo-ai-card-alt:hover { color: var(--primary-color, #DB4E39) !important; }
.evo-ai-card-trust { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed #f0d5cd; font-size: 11.5px; color: #2f5e3a; display: flex; gap: 6px; align-items: center; }
.evo-ai-card-trust i { color: #2f8f4e; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
    .evo-ai-fab .evo-ai-dot, .evo-ai-btn::after, .evo-ai-fab .evo-ai-dot::after, .evo-ai-card-dot::after { animation: none; }
}
/* Handy: Tab-Leiste hat den AI-Knopf bereits */
@media (max-width: 767.98px) {
    .evo-ai-fab, .evo-ai-banner, .evo-ai-btn, .evo-ai-new, .evo-ai-backdrop { display: none !important; }
}
