/* TalentBot widget · IHK design system, option A "Question first" (Nia's package, 29.10.2026).
   Layout, sizes, radii and breakpoints are copied 1:1 from the package's chatbot.css (shared shell +
   option A + the conversation view; its @container(max-width:760px/360px) rules become @media here,
   because the widget fills its frame). Mapped onto the widget's DOM:
     package                         widget
     .screen                         body (flex column, full height)
     .product-header/.identity/…     header.product-header (same classes)
     .bot-language / .restart        #botLanguage / #restart
     .main                           main.main
     .entry  (welcome)               main > .stage while not chatting
     .conversation (chat)            main > .stage while body.chatting
     .messages                       #conversation.messages
     .compose-wrap/.composer/.send   section.compose-wrap / .composer / #send
     .note                           #compliance.note (the contract's AI notice, word for word)
     .suggestion-block/.suggestion   .welcome .suggestion-block / button.suggestion[data-q]
     .demo-label                     .chat-toolbar (IHK-Kontakt · Fall-Akte · Export)
     .product-footer/.footer-links   footer.product-footer (same classes)
   Rendered answers come from /assets/ihk/ihk-answer.css (aligned to the package's .answer).
   Panels (case file, export, feedback, contact) keep their component styles in review.css. */

/* The package names the body font "Source"; map it to the self-hosted Source Sans Pro. */
@font-face{font-family:Source;src:url(../assets/ihk/fonts/source-sans-400.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Source;src:url(../assets/ihk/fonts/source-sans-600.woff) format("woff");font-weight:600;font-display:swap}
@font-face{font-family:Source;src:url(../assets/ihk/fonts/source-sans-700.woff) format("woff");font-weight:700;font-display:swap}

/* ── base (chatbot.css line 1) ─────────────────────────────────────────────────────────────── */
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--ihk-white);color:var(--ihk-navy);font:17px/1.5 Source,Arial,sans-serif}
button,textarea,select{font:inherit}
button,select,summary{cursor:pointer}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--ihk-blue);outline-offset:3px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
a{color:var(--ihk-hover)}
h1,h2,p{margin:0}
h1,h2,h3{text-wrap:balance}
h1{font:44px/1.16 Korb,Arial,sans-serif;letter-spacing:0}
h2{font:26px/1.2 Korb,Arial,sans-serif}

/* ── screen ────────────────────────────────────────────────────────────────────────────────── */
body{width:100%;height:var(--viewport-height,100dvh);display:flex;flex-direction:column;overflow:hidden;background:white}
body>.preview{flex:none}

/* ── header ────────────────────────────────────────────────────────────────────────────────── */
.product-header{flex:none;height:82px;padding:0 clamp(24px,4vw,62px);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--ihk-border);position:relative;background:white}
.product-header:after{content:'';height:3px;position:absolute;left:0;right:0;bottom:-1px;background:var(--ihk-rule)}
.identity{display:flex;gap:24px;align-items:center;min-width:0}
.identity a{display:flex}
.identity img{width:132px;height:auto;display:block}
.identity span{border-left:1px solid var(--ihk-border);padding-left:24px;font:27px/1 Korb,Arial,sans-serif;white-space:nowrap}
.product-actions{display:flex;gap:18px;align-items:center}
/* DE | EN as two buttons in the page (owner 17.11.2026: the native <select> menu appeared outside the browser — macOS draws
   it as a system menu, outside the page and the IHK's iframe); the same control as the host bar's .tb-entry-language */
.bot-language{display:inline-flex;gap:2px;flex-shrink:0;padding:2px;border:1px solid var(--ihk-border);border-radius:5px;background:white}
.bot-language button{min-width:36px;min-height:32px;margin:0;padding:4px 7px;border:0;border-radius:3px;background:white;color:var(--ihk-muted);font:14px/1 Source,Arial,sans-serif;cursor:pointer}
.bot-language button[aria-pressed=true]{background:var(--ihk-navy);color:white}
.bot-language button:focus-visible{outline:3px solid var(--ihk-blue);outline-offset:2px}
.restart{min-height:44px;border:0;background:transparent;color:var(--ihk-navy);font-size:14px;white-space:nowrap;padding:1px 6px}
.restart:hover{text-decoration:underline}
.restart span{margin-left:5px}
/* the IHK page's dialog keeps its own close button over the frame; the widget's copy stays hidden */
.embedded-identity,.modal-close{display:none!important}
body.modal-view .product-header{padding-right:150px}

/* ── main / entry (welcome) ───────────────────────────────────────────────────────────────── */
.main{flex:1;min-height:0;overflow:auto;background:white}
.stage{max-width:880px;margin:auto;padding:48px 28px 32px;display:flex;flex-direction:column}
/* entry order of the package: h1, sub, composer + note, suggestions */
.welcome{display:contents}
.welcome h1{order:1}
.welcome .sub{order:2}
.welcome .suggestion-block{order:3}
.stage>.compose-wrap{order:4}
.sub{font-size:19px;color:var(--ihk-muted);margin-top:14px;max-width:65ch}
.section-label{font-size:15px;color:var(--ihk-navy);margin-bottom:14px}
.compose-wrap{margin-top:28px}
/* Nia, 24.11.2026: the text box stays reachable on the start screen — when the cards are taller than the space (a phone), the
   box and its notice stay at the bottom while the cards scroll behind; when they fit (the IHK's 1,200 px frame) it stays
   right under the cards. The conversation already keeps it at the bottom (body.chatting). */
body:not(.chatting) .stage>.compose-wrap{position:sticky;bottom:0;z-index:2;background:white;padding-top:10px;padding-bottom:6px}
.composer{background:white;border:1px solid var(--ihk-muted);border-radius:12px;padding:16px;display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px}
.composer:focus-within{outline:2px solid var(--ihk-blue);outline-offset:3px}
.composer label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.composer textarea{flex:1;width:100%;min-width:0;height:55px;min-height:55px;max-height:140px;resize:vertical;border:0;outline:0;background:white;color:var(--ihk-navy);font-size:18px;line-height:1.5;padding:0}
.composer textarea:focus-visible{outline:0}
.composer textarea::placeholder{color:var(--ihk-muted);opacity:1}
.compose-bottom{display:flex;align-items:center;gap:10px;flex:none}
.compose-bottom small{display:none}
.send{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:var(--ihk-action-radius);background:var(--ihk-blue);color:white;font-size:25px;line-height:1}
.send:hover{background:var(--ihk-hover)}
.send:disabled{opacity:.5;cursor:default}
.stop{min-height:44px;padding:8px 14px;border:1px solid var(--ihk-navy);border-radius:var(--ihk-action-radius);background:white;color:var(--ihk-navy);font-size:14px}
.pii{order:3;flex-basis:100%;margin:0;padding:8px 12px;border:1px solid var(--ihk-danger);border-radius:8px;background:white;color:var(--ihk-danger);font-size:14px}
.note{color:var(--ihk-muted);font-size:12px;line-height:1.5;margin-top:10px}
.note p{margin:0}
.note .required{color:var(--ihk-navy)}
.note a{color:inherit;text-underline-offset:3px;font-weight:600}
#state:empty{display:none}
.demo-state{margin:0 0 12px}
.suggestion-block{margin-top:30px}
.suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;column-gap:28px}
.suggestion{min-width:0;position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;
  color:var(--ihk-navy);background:white;border:0;border-bottom:1px solid var(--ihk-border);border-radius:0;padding:16px 0;font:17px/1.3 Source,Arial,sans-serif;min-height:64px}
.suggestion:hover{border-color:var(--ihk-blue)}
.suggestion .arrow{color:var(--ihk-blue);flex:none}
.suggestion:active{transform:translateY(1px)}

/* ── conversation (chatting) ───────────────────────────────────────────────────────────────── */
body.chatting .product-header{height:72px}
body.chatting .main{overflow:hidden}
body.chatting .stage{width:calc(100% - 64px);max-width:1200px;height:100%;display:flex;flex-direction:column;margin:auto;padding:0}
/* the package's .demo-label bar holds the widget's tools */
.chat-toolbar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:35px;padding:0 24px;border-bottom:1px solid var(--ihk-border);font-size:12px;color:var(--ihk-muted)}
.chat-toolbar h1{font:12px/1.5 Source,Arial,sans-serif;color:var(--ihk-muted);margin:0}
/* back to the four fields, the conversation kept (widget feedback 12.11.2026) */
.chat-toolbar .toolbar-start{align-items:center;gap:8px}
.chat-toolbar .to-fields{padding-left:0;font-weight:600}
.welcome .back-to-chat{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--ihk-navy);font-size:14px;font-weight:600;padding:4px 0;margin:0 0 12px;cursor:pointer}
.welcome .back-to-chat:hover{text-decoration:underline;text-underline-offset:3px}
.chat-toolbar>div{display:flex;gap:4px;flex-wrap:wrap}
.chat-toolbar button{min-height:34px;border:0;background:transparent;color:var(--ihk-navy);font-size:13px;padding:2px 8px;white-space:nowrap}
.chat-toolbar button:hover{text-decoration:underline;text-underline-offset:3px}
.messages{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:18px 24px;font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.messages:focus-visible{outline:3px solid var(--ihk-blue);outline-offset:-3px}
.turn{margin:0}
body.chatting .stage>.compose-wrap{margin:0;padding:10px 24px 8px;border-top:1px solid var(--ihk-border);flex:none;background:white}
body.chatting .composer{padding:12px 14px}
body.chatting .composer textarea{height:43px;min-height:43px}
body.chatting .note{margin-top:7px}
.loading{font-size:15px;color:var(--ihk-muted)}

/* ── footer ────────────────────────────────────────────────────────────────────────────────── */
.product-footer{flex:none;background:white;padding:15px clamp(24px,4vw,62px);display:flex;justify-content:space-between;gap:18px;color:var(--ihk-muted);font-size:12px}
.product-footer a{color:inherit;text-decoration:none}
.product-footer a:hover{text-decoration:underline;text-underline-offset:3px}
.footer-links{display:flex;flex-wrap:wrap;gap:6px 20px}  /* five links (Nia's v2 design): they wrap on a phone, never wider than the screen */
.footer-links a{color:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.footer-links button{border:0;background:none;color:inherit;font-size:12px;padding:0;min-height:24px;text-decoration:underline;text-underline-offset:3px}
body.chatting .product-footer{padding-top:7px;padding-bottom:7px}

/* ── panels: the package's dialog, sized for the widget's longer content ───────────────────── */
/* In the chat window, not over it (Nia, 29.10.2026): the panel takes the place of the conversation,
   composer and footer; the header stays. One overlay (the IHK page's), one close control. */
body.panel-open .main,body.panel-open .product-footer{display:none}
dialog#panel{position:static;flex:1;min-height:0;overflow:auto;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;color:var(--ihk-navy);background:white;box-shadow:none}
dialog#panel>*{max-width:880px;margin-left:auto;margin-right:auto}
.dialog-head{position:sticky;top:0;z-index:1;background:white;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:16px 28px 12px;border-bottom:1px solid var(--ihk-border)}
.dialog-head h2{font:26px/1.2 Korb,Arial,sans-serif;color:var(--ihk-navy);margin:0}
.dialog-head h2:focus{outline:none}
.close{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 12px;border:1px solid var(--ihk-border);border-radius:var(--ihk-action-radius);background:white;color:var(--ihk-navy);font:600 15px/1 Korb,Arial,sans-serif}
.close span{font-size:18px}

.close:hover{border-color:var(--ihk-navy)}
.detail{padding:16px 28px 28px;font-size:16px;line-height:1.5;color:var(--ihk-navy)}
.detail p{margin:0 0 12px}
.detail h3{font:20px/1.3 Korb,Arial,sans-serif;color:var(--ihk-navy);margin:20px 0 6px}
.detail dt{font-weight:600}
.detail dd{color:var(--ihk-muted)}
.detail a{color:var(--ihk-hover)}
.detail td,.detail th{border-bottom:1px solid var(--ihk-border)}
.detail textarea{display:block;width:100%;resize:vertical;line-height:1.45}
.detail select,.detail textarea,#feedbackType{border:1px solid var(--ihk-muted);border-radius:8px;background:white;color:var(--ihk-navy);font:16px Source,Arial,sans-serif}
.draft-note{font-size:13px;color:var(--ihk-muted);border-bottom:1px solid var(--ihk-border);padding:12px 0}
.primary{min-height:44px;padding:10px 18px;border:0;border-radius:var(--ihk-action-radius);background:var(--ihk-navy);color:white;font-size:15px}
.primary:hover{background:var(--ihk-hover)}
.secondary{min-height:44px;padding:10px 18px;border:1px solid var(--ihk-navy);border-radius:var(--ihk-action-radius);background:white;color:var(--ihk-navy);font-size:15px}
.secondary:hover{border-color:var(--ihk-blue)}
.policy-links a{color:var(--ihk-hover)}
.feedback-welcome{color:var(--ihk-navy)}
.nps-slider-wrap output{color:var(--ihk-navy)}
.demo-state{border:1px solid var(--ihk-navy);border-left-width:3px;border-radius:var(--ihk-card-radius);background:white}

/* ── review bar (only with ?review) ───────────────────────────────────────────────────────── */
.preview{background:var(--ihk-surface);padding:7px 28px;font-size:13px;color:var(--ihk-muted);display:flex;justify-content:space-between;gap:16px}

/* ── @container(max-width:760px) of the package ──────────────────────────────────────────── */
@media (max-width:760px){
  .product-header{height:72px;padding:0 16px}
  .identity{gap:8px}
  .identity img{width:80px}
  .identity span{font-size:20px;padding-left:8px}
  .product-actions{gap:8px}
  .restart{font-size:12px;padding:5px 0}
  .bot-language button{font-size:13px;min-width:32px;padding:4px 5px}
  h1{font-size:32px}
  .stage{padding:28px 20px 24px}
  .sub{font-size:17px;margin-top:12px}
  .suggestions{grid-template-columns:1fr}
  .suggestion{font-size:16px;padding:16px 0}
  .composer{padding:12px;gap:10px}
  .composer textarea{font-size:17px;min-height:45px;height:45px}
  .compose-wrap{margin-top:24px}
  .suggestion-block{margin-top:24px}
  .product-footer{padding:12px 20px;flex-direction:column;gap:6px}
  .footer-links{gap:4px 16px}
  body.chatting .stage{width:100%}
  body.chatting .product-header{height:68px}
  .chat-toolbar{padding:0 14px}
  .messages{font-size:17px;padding:16px 20px}
  body.chatting .stage>.compose-wrap{padding:10px 20px 8px}
  body.chatting .composer{padding:10px 12px}
  body.chatting .note{font-size:11px}
  body.modal-view .product-header{padding-right:68px}
  .dialog-head{padding:12px 20px 10px}
  .dialog-head h2{font-size:24px}
  .detail{padding:14px 20px 22px}
}
/* Phones: logo, name, language, the restart and the IHK page's close do not fit in one row
   (Nia, 29.10.2026 — the language selector covered the name at 320 px; 375 px too). Up to 380 px
   restart keeps only its icon (390 px shows the label, as in Nia's demo); the label stays for
   screen readers. */
@media (max-width:380px){
  .restart-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .restart{min-width:44px;padding:0;font-size:20px}
  .restart span[aria-hidden]{margin:0}
}
@media (max-width:360px){
  .identity img{width:66px}
  .identity span{font-size:17px}
  .identity{gap:6px}
  .product-actions{gap:5px}
  .product-header{padding:0 12px}
  body.modal-view .product-header{padding-right:62px}
  .stage{padding-left:16px;padding-right:16px}
}
@media (max-height:600px) and (max-width:760px){body.chatting .product-footer{display:none}body.chatting .chat-toolbar .survey-link{display:inline-flex}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.suggestion:active{transform:none}}
@media (forced-colors:active){.send{border:1px solid ButtonText}}

.detail>.draft-note:last-child{border-bottom:0;padding-bottom:0}

/* ── short screens: a phone held sideways (Nia, 29.10.2026: 36 px of conversation at 844 × 390) ──
   The conversation gets the height: compact header and tools, one-line composer, no footer (its
   links stay in the header menu of the IHK page and in „KI-Nutzung & Datenschutz" under the
   composer). The AI notice stays, word for word, in a smaller size. */
@media (max-height:500px){
  body.chatting .product-footer{display:none}
  body.chatting .chat-toolbar .survey-link{display:inline-flex}
  .product-header,body.chatting .product-header{height:52px}
  .identity{gap:14px}
  .identity img{width:92px}
  .identity span{font-size:20px;padding-left:14px}
  .stage{padding-top:18px;padding-bottom:12px}
  .chat-toolbar{min-height:30px}
  .chat-toolbar button{min-height:30px}
  .messages{padding:8px 20px;font-size:16px}
  body.chatting .stage>.compose-wrap{padding:6px 20px 4px}
  body.chatting .composer{padding:6px 10px;gap:8px}
  body.chatting .composer textarea{height:30px;min-height:30px;font-size:16px}
  .send{width:40px;height:40px}
  body.chatting .note{margin-top:4px;font-size:11px;line-height:1.35}
  .dialog-head{padding:8px 20px 6px;gap:6px}
  .dialog-head h2{font-size:20px}
}


/* ── Option B „Four starting points" (IHK's choice, 30.10.2026) ────────────────────────────────
   Copied from Nia's updated demo (chatbot.css `.b …`), scoped to the card group. The bear
   TalentBot wordmark stays a proposal (Nia's brief, 30.10.2026): the header keeps „IHK Berlin |
   TalentBot"; the .talentbot-logo rules below are unused until a logo is selected. */
.talentbot-logo{display:block;flex:none;width:206px;height:53px;background:url("../assets/ihk/talentbot-logo.png") center/contain no-repeat}
.identity .talentbot-logo{border:0;padding:0}
body:not(.chatting) .stage{max-width:940px}
.topic-field{background:var(--ihk-surface);padding:18px;border-radius:16px;margin-top:28px}
.topic-field .section-label{display:none}
.topic-field .suggestions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.topic-field .suggestion{position:relative;background:white;border:0;border-radius:12px;flex-direction:column;text-align:center;justify-content:flex-start;padding:22px 18px 25px;gap:13px;min-height:175px;overflow:hidden}
.topic-field .suggestion:after{content:'';position:absolute;bottom:0;left:0;right:0;height:4px;background:var(--ihk-blue)}
.topic-field .suggestion:hover:after{height:6px}
.topic-field .suggestion .topic-icon{display:block;font-size:42px}
.topic-field .suggestion .arrow{display:none}
.topic-field .suggestion strong{display:block;font:24px/1.2 Korb,Arial,sans-serif;font-weight:400}
.topic-field .suggestion small{display:block;color:var(--ihk-muted);font-size:15px;line-height:1.35;margin-top:7px}
.topic-field .suggestion:focus-visible{outline:3px solid var(--ihk-blue);outline-offset:2px}
body:not(.chatting) .stage>.compose-wrap{margin-top:24px}
/* the situations' sub-options (IHK 16.11.2026, So Young): one column of rows under the situation's title, the way back first */
.topic-field .suggestions.sub-options{grid-template-columns:1fr;gap:8px}
.topic-field .situation-head{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0 0 6px}
.topic-field .situation-back{display:inline-flex;align-items:center;gap:6px;min-height:36px;border:0;background:transparent;color:var(--ihk-navy);font-size:14px;font-weight:600;padding:4px 0;cursor:pointer}
.topic-field .situation-back:hover{text-decoration:underline;text-underline-offset:3px}
.topic-field .situation-back:focus-visible{outline:3px solid var(--ihk-blue);outline-offset:2px}
.topic-field .situation-title{margin:0;font:24px/1.2 Korb,Arial,sans-serif;color:var(--ihk-navy)}
.topic-field .suggestion.sub{min-height:0;flex-direction:row;align-items:center;justify-content:space-between;text-align:left;gap:14px;padding:16px 18px 16px 22px}
.topic-field .suggestion.sub:after{top:0;bottom:0;right:auto;width:4px;height:auto}
.topic-field .suggestion.sub:hover:after{width:6px;height:auto}
.topic-field .suggestion.sub strong{font:19px/1.3 Korb,Arial,sans-serif}
.topic-field .suggestion.sub .arrow{display:inline-block}
@media (max-width:760px){.topic-field .suggestion.sub{min-height:0;padding:14px 12px 14px 18px}.topic-field .suggestion.sub strong{font-size:17px}.topic-field .situation-title{font-size:20px}}
/* the case in one window (IHK 16.11.2026, So Young: „gebündelt in einem Schritt bzw. einem Fenster") */
.case-form{color:var(--ihk-navy);font:16px/1.5 var(--ihk-font-body,Source,Arial,sans-serif)}
.case-form .form-note{margin:0 0 6px;padding:12px 14px;background:var(--ihk-surface);border-radius:10px;font-size:14px;line-height:1.45}
.case-form>label,.case-form>div>label,.case-form legend{display:block;margin:14px 0 6px;font-weight:600;font-size:15px;padding:0}
.case-form input[type=text],.case-form input[type=month],.case-form select{display:block;width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid var(--ihk-muted);border-radius:8px;font:16px/1.4 var(--ihk-font-body,Source,Arial,sans-serif);color:var(--ihk-navy);background:white}
.case-form input:focus-visible,.case-form select:focus-visible{outline:3px solid var(--ihk-blue);outline-offset:1px}
.case-form .form-radio{border:0;margin:0;padding:0}
.case-form .form-radio label{display:inline-flex;align-items:center;gap:6px;margin:2px 18px 0 0;min-height:36px;font-weight:400}
.case-form .form-error{margin:10px 0 0;color:var(--ihk-danger,#b3261e);font-size:14px}
.case-form .dialog-actions{margin-top:20px}
@media (max-width:760px){
  .topic-field{padding:12px;margin-top:24px}
  .topic-field .suggestions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .topic-field .suggestion{min-height:164px;padding:16px 10px 20px;gap:10px}
  .topic-field .suggestion strong{font-size:20px}
  .topic-field .suggestion small{font-size:14px;margin-top:6px}
  .topic-field .suggestion .topic-icon{font-size:32px}
}
@media (max-width:600px){.identity .talentbot-logo{width:168px;height:44px}}
@media (max-width:360px){
  .identity .talentbot-logo{width:132px;height:34px}
  .topic-field{padding:8px}
  .topic-field .suggestion{padding-left:8px;padding-right:8px}
  .topic-field .suggestion strong{font-size:19px}
  .topic-field .suggestion small{font-size:13px}
}
@media (max-height:500px){.identity .talentbot-logo{width:140px;height:36px}}

/* Netigate survey (Nia's brief FE-03, 30.10.2026): a footer link on start and chat views, and the
   call to action at the end of a conversation. External, new tab. */
.footer-links .survey-link{font-size:12px;color:inherit;text-decoration:underline;text-underline-offset:3px;min-height:24px;display:inline-flex;align-items:center}
.survey-cta-wrap{margin:16px 0 4px}
a.survey-cta{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 20px;border-radius:var(--ihk-action-radius);background:var(--ihk-navy);color:white!important;font:600 16px/1 Korb,Arial,sans-serif;text-decoration:none}
a.survey-cta:hover{background:var(--ihk-blue)}
a.survey-cta:focus-visible{outline:3px solid var(--ihk-blue);outline-offset:3px}
/* Where the footer gives way to the conversation (short screens), the survey sits in the chat's
   toolbar instead, so it is reachable in every view. */
.chat-toolbar .survey-link{display:none;align-items:center;min-height:34px;padding:2px 8px;color:var(--ihk-navy);font-size:13px;text-decoration:none;white-space:nowrap}
.chat-toolbar .survey-link:hover{text-decoration:underline;text-underline-offset:3px}

/* Reason chips under „Nicht hilfreich" (Drift, 04.11.2026 — structured feedback). Optional, keyboard
   reachable (real checkboxes), same tokens as the panel's other fields. */
.fb-reasons{border:0;margin:0 0 14px;padding:0}
.fb-reasons legend{font-weight:600;color:var(--ihk-navy);margin-bottom:8px;padding:0}
.fb-reason-list{display:flex;flex-wrap:wrap;gap:8px}
.fb-reason{position:relative;display:inline-flex;align-items:center;cursor:pointer}
.fb-reason input{position:absolute;opacity:0;width:1px;height:1px}
.fb-reason span{display:inline-block;padding:6px 12px;border:1px solid var(--ihk-border);border-radius:999px;background:white;color:var(--ihk-navy);font-size:15px;line-height:1.3}
.fb-reason input:checked+span{background:var(--ihk-navy);border-color:var(--ihk-navy);color:white}
.fb-reason input:focus-visible+span{outline:2px solid var(--ihk-blue);outline-offset:2px}
.fb-reason:hover span{border-color:var(--ihk-navy)}

/* (last in the file: these narrow-widget rules must win over the earlier responsive blocks) */
/* narrow widgets: the header already names TalentBot — the toolbar's label is kept for screen readers only, so the back
   button and the three actions stay on one line (360 px walk, 13.11.2026) */
@media (max-width:520px){.chat-toolbar .toolbar-start h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .chat-toolbar .to-fields{padding-right:4px}.chat-toolbar>div:last-child button{padding:2px 6px}}
/* the narrowest widgets (320 px, the survey link in the toolbar): the back control is its arrow, named for screen readers */
@media (max-width:360px){.chat-toolbar{padding:0 8px;gap:6px}.chat-toolbar>div{gap:0}
  .chat-toolbar button,.chat-toolbar .survey-link{font-size:12px;padding:2px 5px}
  .chat-toolbar .to-fields{padding-left:0;font-size:18px;line-height:1}.chat-toolbar .to-fields-label{display:none}}

/* inside a frame (the IHK page's iframe, the host modal): no header of our own — the page around it has the IHK header and the
   title (owner 17.11.2026); DE | EN at the top of the start screen, „Neuer Chat" and DE | EN in the chat toolbar */
body.framed .frame-tools{display:flex;justify-content:flex-end;margin:0 0 6px}
body.framed .chat-toolbar .restart{min-height:34px;font-size:13px;padding:2px 8px;color:var(--ihk-navy)}
body.framed .chat-toolbar .bot-language{margin-left:6px}
body.framed .chat-toolbar .bot-language button{min-height:28px;min-width:30px;font-size:13px;padding:3px 6px}
@media (max-width:640px){body.framed .chat-toolbar .restart-label{display:none}body.framed .chat-toolbar .restart{padding:2px 6px;font-size:16px}}
/* the narrowest frames: the switch stays on the start screen („← Zur Auswahl"), the toolbar keeps one line */
@media (max-width:420px){body.framed .chat-toolbar .bot-language{display:none}}
/* in the IHK's iframe (fixed 1200 px, scrolling=no) the page around it scrolls: at the top or bottom of the conversation the
   wheel and the finger go on to the IHK page — „contain" kept the reader stuck with the widget's top under the IHK header
   (owner 17.11.2026: „the top part is completely cut off, I can't even scroll up") */
body.framed .messages,body.framed dialog#panel,body.framed .main{overscroll-behavior:auto}
/* the header's DE | EN on the narrowest screens (the host modal at 320 px: the name and the switch must not overlap) */
@media (max-width:360px){.product-header .bot-language button{min-width:26px;min-height:30px;padding:3px 4px;font-size:12px}}
/* in the host modal the title bar above names TalentBot: on narrow screens the header keeps the logo, the switch and „Neuer Chat" */
@media (max-width:760px){body.modal-view .identity span{display:none}}
@media (max-width:360px){body.framed .chat-toolbar .restart{min-width:24px;min-height:30px;padding:2px 3px;font-size:15px;line-height:1}
  body.framed .chat-toolbar .restart>span+span{margin-left:-4px}}


/* IHK member companies (owner 17.11.2026): one quiet, voluntary question under the first answer — never in the way */
.member-ask{margin:14px 0 2px;padding:10px 12px;background:var(--ihk-surface);border-radius:10px;color:var(--ihk-navy)}
.member-ask p{margin:0 0 8px;font-size:15px;line-height:1.4}
.member-ask p small{color:var(--ihk-muted);font-size:13px}
.member-ask .member-opts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.member-ask [data-member]{min-height:36px;padding:4px 14px;border:1px solid var(--ihk-navy);border-radius:var(--ihk-action-radius);background:white;color:var(--ihk-navy);font-size:15px;cursor:pointer}
.member-ask [data-member]:hover{background:var(--ihk-navy);color:white}
.member-ask .member-skip{margin-left:auto;min-width:32px;min-height:32px;border:0;background:transparent;color:var(--ihk-muted);font-size:18px;cursor:pointer}
.member-ask button:focus-visible{outline:3px solid var(--ihk-blue);outline-offset:2px}
.member-thanks{margin:10px 0 2px;font-size:14px;color:var(--ihk-muted)}

/* ── IHK meeting 19.11.2026 ─────────────────────────────────────────────────────────────────────────────────────── */
/* the start screen moves: a greeting that types, the four situations arrive one after another and answer the pointer */
.welcome .greet{display:flex;align-items:center;gap:10px;min-height:28px}
.welcome .greet-dots{display:inline-flex;gap:4px;animation:tbDotsOut .2s ease 1.1s forwards}
.welcome .greet-dots i{width:7px;height:7px;border-radius:50%;background:var(--ihk-blue);opacity:.35;animation:tbDot 1s ease-in-out infinite}
.welcome .greet-dots i:nth-child(2){animation-delay:.15s}.welcome .greet-dots i:nth-child(3){animation-delay:.3s}
.welcome .greet-text{opacity:0;animation:tbFadeUp .4s ease 1.15s forwards}
@keyframes tbDot{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
@keyframes tbDotsOut{to{opacity:0;width:0;margin:0;overflow:hidden}}
@keyframes tbFadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.topic-field .suggestion{animation:tbCardIn .5s cubic-bezier(.2,.8,.2,1) both;transition:transform .18s ease,box-shadow .18s ease}
.topic-field .suggestion{animation-delay:calc(.25s + var(--i,0) * .13s)}
.topic-field .suggestion:hover,.topic-field .suggestion:focus-visible{transform:translateY(-4px);box-shadow:0 10px 24px rgba(0,51,102,.14)}
.topic-field .suggestion:hover .topic-icon{animation:tbNudge .5s ease}
/* a situation's options: each by its place (--i), from the click on — never the later ones first (IHK 19.11.2026 browser check:
   options 4–6 stood while 1–3 were still arriving) */
.topic-field .suggestion.sub{animation-duration:.35s;animation-delay:calc(var(--i,0) * .06s)}
@keyframes tbCardIn{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
@keyframes tbNudge{0%,100%{transform:none}40%{transform:translateY(-3px) rotate(-4deg)}70%{transform:translateY(0) rotate(3deg)}}
/* the progress card's open items are buttons (IHK meeting 19.11.2026: „no indication that … qualification is clickable") */
.step-progress .ck-items li.open{color:inherit}
.step-progress .ck-add{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:3px 12px 3px 6px;border:1px solid var(--ihk-blue);border-radius:999px;background:white;color:var(--ihk-blue);font-weight:600;text-decoration:none;cursor:pointer;transition:background .15s ease,color .15s ease}
.step-progress .ck-add .ck-plus{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ihk-blue);color:white;font-size:15px;line-height:1}
.step-progress .ck-add:hover,.step-progress .ck-add:focus-visible{background:var(--ihk-blue);color:white;text-decoration:none}
.step-progress .ck-add:hover .ck-plus,.step-progress .ck-add:focus-visible .ck-plus{background:white;color:var(--ihk-blue)}
.step-progress .ck-add.ck-pulse{animation:tbPulse 1.2s ease 2}
@keyframes tbPulse{0%{box-shadow:0 0 0 0 rgba(44,98,232,.45)}70%{box-shadow:0 0 0 10px rgba(44,98,232,0)}100%{box-shadow:0 0 0 0 rgba(44,98,232,0)}}
/* entering data pops up (IHK meeting 19.11.2026: „pop up animations to enter data") */
dialog#panel[data-view="case-form"]{background:var(--ihk-surface)}
dialog#panel[data-view="case-form"] .detail{animation:tbPopIn .32s cubic-bezier(.2,.8,.2,1)}
dialog#panel[data-view="case-form"] .case-form{background:white;border-radius:14px;box-shadow:0 14px 34px rgba(0,51,102,.16);padding:18px 20px 20px}
dialog#panel[data-view="callback"] .detail,dialog#panel[data-view="callback-review"] .detail{animation:tbPopIn .32s cubic-bezier(.2,.8,.2,1)}
@keyframes tbPopIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
.case-form .form-company{border:0;margin:16px 0 0;padding:12px 14px;background:var(--ihk-surface);border-radius:10px}
.case-form .form-company legend{font-weight:600;font-size:15px;padding:0;float:left;width:100%;margin-bottom:4px}
.case-form .form-company label{display:block;margin:10px 0 4px;font-weight:600;font-size:14px}
/* the follow-up questions arrive gently; the company question has two selects */
.member-ask{animation:tbFadeUp .35s ease both}
.member-ask select{min-height:36px;padding:4px 8px;border:1px solid var(--ihk-muted);border-radius:8px;background:white;color:var(--ihk-navy);font-size:16px;max-width:100%}   /* 16 px: iPhones zoom into smaller inputs (device check 23.11.2026) */
.member-ask .follow-send{min-height:36px;padding:4px 14px;border:0;border-radius:var(--ihk-action-radius);background:var(--ihk-navy);color:white;font-size:15px;cursor:pointer}
@media (max-width:520px){.follow-company .member-opts select{flex:1 1 100%}}
/* the IHK's follow-up questions pop up where the visitor reads: pinned to the bottom of the visible conversation
   (--tb-hidden-bottom: what the IHK page hides of the frame) — owner 19.11.2026: „ihk prompts are visible" */
#followPop{position:sticky;bottom:calc(var(--tb-hidden-bottom,0px) + 12px);z-index:4;margin:14px 0 0;pointer-events:none}
#followPop[hidden]{display:none}
#followPop.pop-wait{visibility:hidden}
#followPop>*{pointer-events:auto;max-width:min(620px,100%);margin:0;background:white;border:1px solid var(--ihk-line,#d5dbe3);border-left:4px solid var(--ihk-blue);
  border-radius:12px;box-shadow:0 12px 30px rgba(0,51,102,.18);padding:12px 14px;animation:tbPopUp .4s cubic-bezier(.2,.8,.2,1) .7s both}
#followPop .member-thanks{padding:10px 14px;animation-delay:0s}
#followPop .member-ask{position:relative;padding-right:40px}
#followPop .member-skip{position:absolute;top:6px;right:6px}
@keyframes tbPopUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media print{#followPop{display:none}}
@media (prefers-reduced-motion:reduce){
  #followPop>*{animation:none}
  .welcome .greet-dots{display:none}.welcome .greet-text{opacity:1;animation:none}
  .topic-field .suggestion,.member-ask,dialog#panel[data-view] .detail{animation:none!important}
  .topic-field .suggestion:hover,.topic-field .suggestion:focus-visible{transform:none}
  .step-progress .ck-add.ck-pulse{animation:none}}

/* ── Phones on the IHK page (device check 23.11.2026, infra/device-check.mjs) ─────────────────────────────────────────── */
/* the IHK page leaves the widget 280 px on small phones: the start cards' long words („internationale", „Unterstützung")
   break and hyphenate instead of being cut off at the card's edge */
@media (max-width:320px){
  .topic-field .suggestions{gap:8px}
  .topic-field .suggestion{padding-left:6px;padding-right:6px}
  .topic-field .suggestion strong{font-size:17px;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
  .topic-field .suggestion small{font-size:12.5px;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
}
/* touch screens: every control at least 32 px to tap (footer links were 24 px, the icon-only toolbar buttons 22–27 px wide) */
@media (pointer:coarse){
  .footer-links button,.footer-links a,.product-footer a{min-height:32px;display:inline-flex;align-items:center}
  .chat-toolbar .to-fields,body.framed .chat-toolbar .restart{min-width:32px}
}
/* the narrowest frames keep the toolbar on one line: the icon buttons at the 24 px minimum (WCAG 2.5.8) instead of 32 */
@media (pointer:coarse) and (max-width:360px){
  .chat-toolbar .to-fields,body.framed .chat-toolbar .restart{min-width:24px}
  .bot-language button,body.framed .chat-toolbar .bot-language button{min-height:32px;min-width:32px}
}

.top-room{flex:none}
@media print{.top-room{display:none}}
