@font-face{font-family:"GR Cormorant";font-weight:600;font-style:normal;font-display:swap;src:url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"GR Jost";font-weight:400;font-style:normal;font-display:swap;src:url("fonts/jost-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"GR Jost";font-weight:500;font-style:normal;font-display:swap;src:url("fonts/jost-latin-500-normal.woff2") format("woff2")}

.gr-chat{
  --gr-ink:#22203A;--gr-paper:#F5F1E8;--gr-paper-2:#ECE5D7;--gr-line:#DDD5C6;--gr-grey:#5A566B;
  --gr-cu:#C2622D;--gr-cu-text:#A04E20;--gr-err:#9B2C2C;
  box-sizing:border-box;max-width:760px;margin:2em auto;padding:24px;
  background:var(--gr-paper);color:var(--gr-ink);border-radius:20px;
  font-family:"GR Jost",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:17px;line-height:1.6;
}
.gr-chat *,.gr-chat *::before,.gr-chat *::after{box-sizing:border-box}
.gr-chat--off{text-align:center;color:var(--gr-grey)}

.gr-head{display:flex;align-items:center;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--gr-line);margin-bottom:18px}
.gr-avatar{flex:0 0 64px;width:64px;height:64px;border-radius:50%;overflow:hidden;background:var(--gr-cu);color:var(--gr-paper);display:flex;align-items:center;justify-content:center;font-family:"GR Cormorant",Georgia,serif;font-size:32px}
.gr-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.gr-who{flex:1;min-width:0}
.gr-name{font-family:"GR Cormorant",Georgia,serif;font-weight:600;font-size:26px;line-height:1.15}
.gr-meta{font-size:14px;color:var(--gr-grey);margin-top:2px}
.gr-reset{font:inherit;font-size:14px;color:var(--gr-cu-text);background:transparent;border:0;padding:10px 4px;min-height:44px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.gr-reset:hover{color:var(--gr-ink)}
.gr-reset:focus-visible{outline:2px solid var(--gr-cu);outline-offset:2px}
.gr-badge{font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--gr-cu-text);border:1.5px solid var(--gr-cu);border-radius:999px;padding:3px 10px}

.gr-log{display:flex;flex-direction:column;gap:14px}
.gr-msg{max-width:88%;padding:14px 18px;border-radius:18px;overflow-wrap:anywhere}
.gr-msg p{margin:0 0 .75em}
.gr-msg p:last-child{margin-bottom:0}
.gr-msg--geist{align-self:flex-start;background:#FFFDF8;border:1px solid var(--gr-line);border-bottom-left-radius:6px;font-family:"GR Cormorant",Georgia,serif;font-weight:600;font-size:20px;line-height:1.45}
.gr-msg--user{align-self:flex-end;background:var(--gr-ink);color:var(--gr-paper);border-bottom-right-radius:6px}
.gr-msg--error{align-self:center;background:transparent;color:var(--gr-err);font-size:15px;text-align:center;padding:4px 8px}
.gr-msg--pending{font-family:"GR Jost",system-ui,sans-serif;font-weight:400;font-size:15px;color:var(--gr-grey)}

.gr-thinking{display:flex;align-items:center;gap:8px}
.gr-dots{display:inline-flex;gap:4px}
.gr-dots i{width:6px;height:6px;border-radius:50%;background:var(--gr-cu);animation:gr-float 1.4s ease-in-out infinite}
.gr-dots i:nth-child(2){animation-delay:.18s}
.gr-dots i:nth-child(3){animation-delay:.36s}
@keyframes gr-float{0%,100%{transform:translateY(0);opacity:.35}50%{transform:translateY(-4px);opacity:1}}
@media (prefers-reduced-motion:reduce){.gr-dots i{animation:none;opacity:.7}}

.gr-sources{margin-top:12px;padding-top:10px;border-top:1px solid var(--gr-line);font-family:"GR Jost",system-ui,sans-serif;font-weight:400;font-size:13px;line-height:1.5;color:var(--gr-grey)}
.gr-sources a{color:var(--gr-cu-text)}

.gr-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.gr-chip{font:inherit;font-size:15px;line-height:1.3;color:var(--gr-ink);background:transparent;border:1.5px solid var(--gr-line);border-radius:999px;padding:9px 14px;cursor:pointer;text-align:left;min-height:44px}
.gr-chip:hover{border-color:var(--gr-cu);color:var(--gr-cu-text)}
.gr-chip:focus-visible,.gr-send:focus-visible,.gr-input:focus-visible{outline:2px solid var(--gr-cu);outline-offset:2px}

.gr-form{display:flex;gap:10px;align-items:flex-end;margin-top:20px}
.gr-input{flex:1;min-width:0;font:inherit;font-size:17px;color:var(--gr-ink);background:#FFFDF8;border:1.5px solid var(--gr-line);border-radius:14px;padding:11px 14px;resize:none;min-height:48px;max-height:180px}
.gr-input::placeholder{color:#8A8597}
.gr-input:disabled{opacity:.6}
.gr-send{font:inherit;font-weight:500;font-size:16px;color:#fff;background:var(--gr-cu-text);border:0;border-radius:14px;padding:0 22px;min-height:48px;cursor:pointer}
.gr-send:hover{background:var(--gr-ink)}
.gr-send:disabled{opacity:.5;cursor:default}

.gr-note{margin:12px 2px 0;font-size:13px;line-height:1.5;color:var(--gr-grey)}
.gr-note a{color:var(--gr-cu-text)}
.gr-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.gr-steckbrief{font-size:1.05em;color:#5A566B}
.gr-quellen{max-width:760px;margin:1.5em auto;font-size:15px;color:#5A566B}
.gr-quellen summary{cursor:pointer;color:#A04E20}

@media (max-width:540px){
  .gr-chat{padding:16px;border-radius:14px;margin:1em 0}
  .gr-msg{max-width:94%}
  .gr-msg--geist{font-size:19px}
  .gr-form{flex-direction:column;align-items:stretch}
  .gr-send{width:100%}
}

.gr-featured{max-width:760px;margin:-1em auto 2em;padding:0 4px;font-family:"GR Jost",system-ui,sans-serif;color:#22203A}
.gr-featured-title{font-family:"GR Cormorant",Georgia,serif;font-weight:600;font-size:24px;margin:0 0 12px}
.gr-featured-item{border-top:1px solid #DDD5C6}
.gr-featured-item:last-of-type{border-bottom:1px solid #DDD5C6}
.gr-featured-item summary{cursor:pointer;padding:14px 4px;font-size:17px;line-height:1.4;list-style-position:outside;min-height:44px}
.gr-featured-item summary:focus-visible{outline:2px solid #C2622D;outline-offset:2px}
.gr-featured-answer{padding:0 4px 16px;font-family:"GR Cormorant",Georgia,serif;font-weight:600;font-size:19px;line-height:1.5}
.gr-featured-answer p{margin:0 0 .75em}
.gr-featured-note{font-size:13px;color:#5A566B;margin:10px 4px 0}
/* Fortsetzung eines veröffentlichten Gesprächs („Weiterfragen“) */
.gr-msg--ctx{opacity:.72}
.gr-msg--hint{align-self:center;max-width:92%;background:transparent;border:1px dashed #C2622D;color:#A04E20;font-family:"GR Jost",system-ui,sans-serif;font-weight:400;font-size:15px;text-align:center;border-radius:14px}
