.demo-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.demo-brand { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.demo-brand s { text-decoration-thickness: 2px; opacity: 0.7; }
.demo-brand b { color: var(--accent-2); font-weight: 600; }
.demo-back { font-family: var(--body); font-size: 0.9rem; color: var(--ink-2); text-decoration: none; }
.demo-back:hover { color: var(--accent-2); }

.demo-hero { padding: 52px 0 12px; max-width: 40rem; }
.demo-eyebrow { font-family: var(--body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.demo-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); margin: 14px 0; }
.demo-hero p { font-family: var(--body); font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 0 64px; align-items: start; }
.demo-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.demo-card--input { transition-delay: .08s; }
.demo-card--result { transition-delay: .18s; }
.demo-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin: 0 0 4px; letter-spacing: -0.01em; }
.demo-card .hint { font-family: var(--body); font-size: 0.86rem; color: var(--ink-3); margin: 0 0 16px; }
.demo-privacy { border-left: 3px solid var(--sea); padding-left: 11px; color: var(--ink-2); font-size: 0.8rem; line-height: 1.5; margin: 0 0 16px; }
[dir="rtl"] .demo-privacy { border-left: 0; border-right: 3px solid var(--sea); padding-left: 0; padding-right: 11px; }
.demo-privacy a { color: var(--accent-2); }

.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.demo-chip { font-family: var(--body); font-size: 0.82rem; font-weight: 500; cursor: pointer; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 7px 13px; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.demo-chip:hover { border-color: var(--accent); color: var(--accent-2); }

.demo-field { margin-bottom: 12px; }
.demo-field label { display: block; font-family: var(--body); font-size: 0.78rem; font-weight: 600; color: var(--ink-3); margin-bottom: 5px; letter-spacing: 0.02em; }
.demo-field input, .demo-field textarea { width: 100%; font-family: var(--body); font-size: 0.95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; box-sizing: border-box; resize: vertical; }
.demo-field textarea { min-height: 140px; line-height: 1.5; }
.demo-field input:focus, .demo-field textarea:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228, 87, 46, .1); }

.demo-btn { font-family: var(--body); font-size: 0.96rem; font-weight: 600; cursor: pointer; background: var(--ink); color: var(--paper); border: none; border-radius: 999px; padding: 13px 26px; margin-top: 6px; transition: background .18s ease; }
.demo-btn:hover { background: var(--accent-2); }
.demo-btn:disabled { opacity: .55; cursor: default; }

.demo-result { min-height: 240px; }
.demo-placeholder { font-family: var(--body); color: var(--ink-3); font-size: .92rem; line-height: 1.6; padding: 18px 0; }
.demo-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.demo-badge { font-family: var(--body); font-size: .8rem; font-weight: 600; border-radius: 999px; padding: 5px 12px; letter-spacing: .01em; }
.demo-badge.kat { color: #fff; background: var(--sea); }
.demo-badge.kat-rechnung { background: var(--accent-2); }
.demo-badge.kat-termin { background: #2f5fae; }
.demo-badge.kat-spam { background: var(--ink-3); }
.demo-badge.kat-eskalation { background: #9f231a; }
.demo-badge.urg { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.demo-block { margin-bottom: 16px; }
.demo-block .lbl { font-family: var(--body); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 5px; }
.demo-block .val { font-family: var(--body); font-size: .96rem; line-height: 1.55; color: var(--ink); }
.demo-draft { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--sea); border-radius: var(--radius-sm); padding: 14px 16px; font-family: var(--body); font-size: .94rem; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
[dir="rtl"] .demo-draft { border-left: 1px solid var(--line); border-right: 3px solid var(--sea); }
.demo-none { font-family: var(--body); font-size: .92rem; color: var(--ink-2); font-style: italic; }

.demo-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: demospin .7s linear infinite; vertical-align: -3px; margin-right: 9px; }
@keyframes demospin { to { transform: rotate(360deg); } }
.demo-loading { font-family: var(--body); color: var(--ink-2); font-size: .94rem; padding: 18px 0; }
.demo-err { font-family: var(--body); color: var(--accent-2); font-size: .92rem; padding: 14px 0; }
.demo-foot { border-top: 1px solid var(--line); padding: 26px 0 60px; font-family: var(--body); color: var(--ink-2); font-size: .92rem; line-height: 1.65; }
.demo-foot strong { color: var(--ink); }
.demo-foot a { color: var(--accent-2); font-weight: 600; text-decoration: none; }

@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .demo-wrap { padding: 0 18px; }
  .demo-top { flex-wrap: wrap; padding: 16px 0; }
  .demo-back { flex-basis: 100%; }
  .demo-hero { padding-top: 38px; }
  .demo-chips { gap: 10px; }
  .demo-chip { font-size: .9rem; padding: 12px 16px; }
  .demo-field input, .demo-field textarea { font-size: 1rem; }
  .demo-btn { width: 100%; padding: 15px 26px; font-size: 1.05rem; }
}
