.question {
  max-width: 820px;
  margin: 34px auto 26px;
  font-size: clamp(26px, 2.5vw, 36px);
}

.voice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 18px 0 8px;
}

.record {
  position: static;
  width: auto;
  height: 48px;
  min-width: 176px;
  border-radius: 4px;
  box-shadow: none;
  padding: 0 20px;
  font: 700 12px/1 Arial, sans-serif;
}

.record {
  border: 1px solid #8f4d46;
  background: #9b5a51;
  color: white;
}

.record:hover { background: #874941; }
.record::after { display: none; }

.record-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
}

.record.recording {
  color: white;
  background: #bd463d;
  border-color: #bd463d;
  animation: button-pulse 1.5s infinite;
}

.record.recording .record-dot { border-radius: 2px; }
.timer { min-width: 74px; margin: 0 0 0 4px; font-size: 24px; }
.story-permission { max-width: 680px; margin: -8px auto 14px !important; padding: 13px 18px; border-left: 3px solid var(--gold); background: #faf4e9; color: var(--ink) !important; text-align: left; }
.record-help { margin: 4px 0 16px !important; font-size: 12px !important; }
.answer-fallback { margin-top: 8px; }
.answer-fallback summary { color: #315c45; font: 700 12px Arial, sans-serif; padding: 10px; cursor: pointer; }
.answer-fallback .button { margin-top: 10px; }

.saved-answers { margin-top: 28px; }
.saved-answers h2 { font-weight: 400; }
.answer-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.answer-card small { font: 700 10px Arial, sans-serif; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.answer-card h3 { font-size: 17px; line-height: 1.45; font-weight: 400; margin: 6px 0; }
.answer-card p { margin: 0; color: var(--ink); }
.answer-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.answer-actions a { text-decoration: none; }
.round-action, .append-record {
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 700 12px/1 Arial, sans-serif;
  box-shadow: 0 7px 18px #24493624;
}
.round-action:hover, .append-record:hover { background: var(--forest-2); }
.round-action.compact { min-height: 42px; padding: 0 16px; background: var(--rose); }
.round-action.compact:hover { background: #874941; }
.round-action .record-dot, .append-record .record-dot { background: currentColor; }
.draft-card { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-color: #cdb48f; background: linear-gradient(110deg,var(--paper),#f5e9d6); }
.draft-card h2 { margin-bottom: 4px; }
.draft-card p { margin: 0; }
.recording-rescue { margin-top: 28px; border-left: 4px solid var(--rose); }
.recording-rescue .button { margin-top: 10px; text-decoration: none; }
.rescue-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.transcript.rescue { border-left: 3px solid var(--rose); }
.transcript.rescue .button { margin-top: 12px; text-decoration: none; }

.edit-dialog { width: min(680px, calc(100% - 32px)); border: 0; border-radius: 5px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px #19271e55; }
.edit-dialog::backdrop { background: #17271dcc; backdrop-filter: blur(3px); }
.edit-dialog form { padding: 34px; }
.edit-dialog h2 { font-size: 30px; font-weight: 400; margin: 8px 0; }
.edit-dialog p { font: 13px/1.6 Arial, sans-serif; color: var(--muted); }
.edit-dialog textarea { width: 100%; min-height: 220px; margin: 16px 0; padding: 16px; border: 1px solid var(--line); resize: vertical; font: 15px/1.6 Arial, sans-serif; }
.append-answer { margin: 4px 0 24px; padding: 20px; border: 1px solid #d9c9b3; border-radius: 18px; background: #faf4e9; }
.append-answer h3 { margin: 3px 0; font-size: 20px; font-weight: 400; }
.append-answer p { margin: 4px 0; }
.append-controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.append-record { background: var(--rose); }
.append-record.recording { background: #bd463d; animation: button-pulse 1.5s infinite; }
.append-record.recording .record-dot { border-radius: 2px; }
.append-timer { min-width: 54px; font: 20px Arial,sans-serif; color: var(--forest); }
.append-status { font-size: 11px !important; margin-top: 10px !important; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.profile-trigger { display:flex; align-items:center; gap:10px; flex:1; min-width:0; border:0; background:transparent; color:inherit; text-align:left; cursor:pointer; padding:8px 10px; border-radius:14px; }
.profile-trigger:hover { background:#ffffff12; }
.sidebar-foot #logout { flex:0 0 38px; margin-left:8px; }
.profile-trigger small { display:block; color:var(--muted); }
.sidebar-foot { display:flex; align-items:center; }
.profile-trigger > div:last-child { min-width:0; }
.profile-trigger strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-trigger .avatar { width:38px; height:38px; flex:0 0 38px; }
.avatar { overflow:hidden; flex-shrink:0; }
.avatar img { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.profile-avatar-preview { width:64px; height:64px; margin:12px 0; border:2px solid var(--line); }
.profile-reminder { margin:18px 0; padding:16px; background:#f2eee5; border-radius:10px; }
.profile-reminder label { margin:10px 0; }
.profile-reminder input[type=time], .profile-reminder select { width:auto; margin:6px 8px 0 0; padding:9px; border:1px solid var(--line); border-radius:7px; }
.profile-reminder small { display:block; color:var(--muted); margin-top:8px; }

/* klare, wiedererkennbare Navigation */
#nav { display:grid; gap:7px; }
#nav button { display:flex; align-items:center; gap:12px; width:100%; min-height:46px; padding:8px 12px; border:1px solid transparent; border-radius:14px; color:#d9e4dc; background:transparent; text-align:left; font:600 13px/1.2 Arial,sans-serif; cursor:pointer; transition:background .16s ease,color .16s ease,transform .16s ease; }
#nav button span { display:grid; place-items:center; width:30px; height:30px; flex:0 0 30px; border-radius:10px; background:#ffffff12; color:#e1bd80; font-size:16px; }
#nav button:hover { background:#ffffff12; color:#fff; transform:translateX(2px); }
#nav button.active { background:#f5ead7; color:#244936; box-shadow:0 6px 16px #16271e22; }
#nav button.active span { background:#d9b777; color:#244936; }
.project-tile, .product-grid article { position:relative; overflow:hidden; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.project-tile:hover, .product-grid article:hover { transform:translateY(-3px); border-color:#d9b777; box-shadow:0 12px 24px #24493616; }
.project-icon { display:grid; place-items:center; width:42px; height:42px; margin-bottom:12px; border-radius:13px; background:#f1dfbd; color:#244936; font-size:21px; }
.project-tile .button { min-height:38px; }
.project-choice-grid button { position:relative; }
.project-choice-grid button::first-letter { font-size:20px; }

.manuscript-paper.with-audio { max-width: 1180px; padding: 44px; }
.audiobook-intro { max-width: 760px; margin-bottom: 34px; }
.audiobook-intro h1 { font-size: 38px; font-weight: 400; margin: 7px 0 12px; }
.audiobook-intro p:last-child { font: 14px/1.65 Arial,sans-serif; color: var(--muted); }
.manuscript-book { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 42px; align-items: start; }
.chapter-toc { position: sticky; top: 120px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #faf5ec; }
.chapter-toc h2 { margin: 0 0 12px; font-size: 22px; font-weight: 400; }
.chapter-toc ol { margin: 0; padding: 0; list-style: none; }
.chapter-toc li + li { border-top: 1px solid var(--line); }
.chapter-toc button { width: 100%; border: 0; background: transparent; padding: 11px 2px; color: var(--forest); text-align: left; font: 12px/1.4 Arial,sans-serif; }
.chapter-toc button:hover { color: var(--rose); }
.book-chapter { scroll-margin-top: 120px; padding: 12px 0 48px; border-bottom: 1px solid var(--line); }
.book-chapter + .book-chapter { padding-top: 48px; }
.chapter-number { margin: 0 !important; color: var(--gold) !important; font: 700 10px Arial,sans-serif !important; letter-spacing: .14em; text-transform: uppercase; }
.book-chapter>h2 { margin: 7px 0 18px; font-size: 34px; font-weight: 400; }
.chapter-audio-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chapter-copy p { color: var(--ink); font: 17px/1.8 Georgia,serif; white-space: normal; }
.chapter-copy h3 { margin-top: 30px; font-size: 22px; font-weight: 400; }
.audio-player { position: sticky; z-index: 4; bottom: 16px; margin-top: 30px; padding: 16px 20px; border-radius: 18px; background: #203e2e; color: white; box-shadow: 0 14px 38px #16271e45; display: grid; grid-template-columns: 1fr minmax(280px,520px); align-items: center; gap: 20px; }
.audio-player p { margin: 0 0 3px; color: #dfb77b; }
.audio-player strong { display: block; font-weight: 400; }
.audio-player small { color: #cbd6ce; font: 10px Arial,sans-serif; }
.audio-player audio { width: 100%; }

.forgot-link { display: block; margin: 12px auto 0; border: 0; background: transparent; color: var(--forest); font: 700 12px Arial,sans-serif; }
.project-choice { margin: 0 0 20px; padding: 0; border: 0; }
.project-choice legend { font: 700 15px Georgia,serif; color: var(--ink); }
.project-choice>p { margin: 5px 0 12px !important; font: 12px Arial,sans-serif !important; color: var(--muted); }
.project-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.project-choice-grid button { min-height: 82px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #faf6ee; color: var(--forest); text-align: left; }
.project-choice-grid button:hover, .project-choice-grid button.selected { border-color: var(--gold); background: #f7ecd9; }
.project-choice-grid strong, .project-choice-grid small { display: block; margin-top: 4px; }
.project-choice-grid strong { font: 700 11px/1.3 Arial,sans-serif; }
.project-choice-grid small { color: var(--muted); font: 10px Arial,sans-serif; }
.password-dialog label, .gift-grid label, .gift-create label, .gift-create-small label { display: block; margin: 14px 0; font: 700 12px Arial,sans-serif; color: var(--ink); }
.password-dialog input, .gift-grid input, .gift-create input, .gift-create-small input, .gift-grid textarea, .gift-grid select { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.reset-result { padding: 14px; margin: 14px 0; border-radius: 12px; background: #edf3ee; }
.reset-result .button { text-decoration: none; }
.invite-banner { margin: 0 0 25px; padding: 18px; border: 1px solid #d4b987; border-radius: 16px; background: #faf1df; }
.invite-banner h3 { margin: 5px 0; font-size: 22px; font-weight: 400; }
.invite-banner p { margin: 7px 0 !important; }
.gift-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.gift-grid>.card { margin: 0; }
.gift-invite, .gift-answer, .gift-manuscript, .gift-create-small { grid-column: 1/-1; }
.gift-grid h2, .gift-create h2 { font-weight: 400; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.inline-form input { margin: 0; }
#gift-link-result { display: flex; align-items: end; gap: 12px; margin-top: 12px; }
#gift-link-result label { flex: 1; margin: 0; }
.proxy-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gift-answer>textarea { min-height: 150px; resize: vertical; font: 15px/1.6 Arial,sans-serif; }
.privacy-note, #gift-status { padding: 10px 13px; border-left: 3px solid var(--gold); background: #faf4e9; font: 12px/1.55 Arial,sans-serif !important; color: var(--muted) !important; }
.gift-audio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.gift-audio-actions .round-action.recording { background: #bd463d; animation: button-pulse 1.5s infinite; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#gift-timer { font: 20px Arial,sans-serif; color: var(--forest); }
.source-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.source-chips span { padding: 10px 13px; border-radius: 12px; background: #f7f0e4; }
.source-chips strong, .source-chips small { display: block; }
.source-chips small { margin-top: 3px; color: var(--muted); font: 10px Arial,sans-serif; }
.gift-contribution { padding: 16px 0; border-top: 1px solid var(--line); }
.gift-contribution small { color: var(--gold); font: 700 10px Arial,sans-serif; text-transform: uppercase; }
.gift-contribution h3 { margin: 6px 0; font-size: 17px; font-weight: 400; }
.gift-contribution p { color: var(--ink); }
.gift-manuscript { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(110deg,var(--paper),#f5e9d6); }
.gift-manuscript>div:last-child { display: flex; flex-wrap: wrap; gap: 10px; }
.gift-create-small form { margin-top: 15px; }
.chapter-copy h3 { padding: 10px 14px; border-left: 3px solid var(--gold); background: #faf4e9; font: 700 12px/1.5 Arial,sans-serif; color: var(--forest); }

@keyframes button-pulse { 50% { box-shadow: 0 0 0 7px #bd463d22; } }

.projects-card { margin-top: 28px; }
.projects-card-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.projects-card h2, .products-card h2 { font-weight: 400; }
.projects-card-head p { margin: 0; }
.project-grid, .product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 22px; }
.project-tile, .product-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #faf6ee; }
.project-icon { display: block; color: var(--gold); font-size: 25px; }
.project-tile small { color: var(--gold); font: 700 9px Arial,sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.project-tile h3 { margin: 8px 0; font-size: 19px; font-weight: 400; }
.project-tile p, .product-grid small, .product-grid span, .product-grid em { display: block; font: 11px/1.5 Arial,sans-serif; color: var(--muted); }
.project-tile .button { margin-top: 12px; padding: 9px 12px; }
.project-status { display: block; margin-top: 12px; color: var(--gold); font: 10px Arial,sans-serif; }
.project-create-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.products-card { margin-top: 18px; }
.product-grid { grid-template-columns: repeat(3,1fr); }
.product-grid article { display: grid; gap: 7px; }
.product-grid strong { font-size: 17px; font-weight: 400; }
.product-grid span { color: var(--forest); font-weight: 700; }
.product-grid em { color: var(--gold); font-style: normal; }

@media (max-width: 600px) {
  .voice-actions { flex-direction: column; }
  .record { min-width: 0; width: min(100%, 290px); padding: 0 12px; }
  .timer { margin: 5px 0 0; }
  .answer-card { grid-template-columns: 1fr; }
  .answer-card .button { width: 100%; }
  .answer-card .round-action { width: 100%; }
  .draft-card { align-items: stretch; flex-direction: column; }
  .draft-card .round-action { width: 100%; }
  .append-controls { align-items: stretch; flex-direction: column; }
  .append-record { width: 100%; }
  .manuscript-paper.with-audio { padding: 25px 20px; }
  .manuscript-book { grid-template-columns: 1fr; gap: 20px; }
  .chapter-toc { position: static; }
  .book-chapter>h2 { font-size: 29px; }
  .chapter-audio-actions { flex-direction: column; }
  .chapter-audio-actions button { width: 100%; }
  .audio-player { grid-template-columns: 1fr; bottom: 8px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .gift-grid { grid-template-columns: 1fr; }
  .gift-invite, .gift-answer, .gift-manuscript, .gift-create-small { grid-column: auto; }
  .inline-form, .proxy-fields { grid-template-columns: 1fr; }
  #gift-link-result, .gift-manuscript { align-items: stretch; flex-direction: column; }
  .gift-audio-actions { flex-direction: column; align-items: stretch; }
  .gift-audio-actions .button, .gift-audio-actions .round-action { width: 100%; }
  .project-choice-grid, .project-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .projects-card-head { align-items: stretch; flex-direction: column; }
  .projects-card-head .button { width: 100%; }
  .project-create-form { grid-template-columns: 1fr; }
}

/* refined visual language */
label { display:block; color:var(--ink); font:700 12px/1.35 Arial,sans-serif; letter-spacing:.01em; }
label + label { margin-top:18px; }
input, select, textarea { box-sizing:border-box; font:15px/1.45 Arial,sans-serif; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline:3px solid #d9b77766; outline-offset:2px; }
.edit-dialog { border-radius:24px; }
.edit-dialog form { padding:38px; }
.edit-dialog h2 { margin:10px 0 14px; letter-spacing:-.02em; }
.password-dialog input, .profile-dialog input:not([type=file]), .profile-dialog select { display:block; width:100%; margin-top:8px; padding:14px 15px; border:1px solid #d8cdbc; border-radius:12px; background:#fffdf9; }
.profile-dialog .profile-reminder { margin-top:24px; padding:20px; border:1px solid #e1d3bf; border-radius:16px; }
.profile-dialog .profile-reminder label { font-weight:400; margin-top:12px; }
.profile-dialog .profile-reminder input[type=time], .profile-dialog .profile-reminder select { display:inline-block; width:auto; }
.button { border-radius:12px; transition:transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover, .round-action:hover { transform:translateY(-1px); box-shadow:0 8px 20px #24493622; }
.project-choice-grid { gap:12px; }
.project-choice-grid button { border-radius:16px; padding:15px; min-height:96px; cursor:pointer; transition:all .16s ease; }
.project-choice-grid button:hover, .project-choice-grid button.selected { transform:translateY(-2px); box-shadow:0 8px 18px #24493618; }
.browser-speech-controls { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.browser-speech-controls span { color: #cbd6ce; font: 11px/1.4 Arial,sans-serif; }
.browser-speech-controls .button { min-height: 42px; }