:root {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #17212b;
  background: #f5f7f8;
  --green: #18864b;
  --green-dark: #116a3a;
  --blue: #183f5c;
  --violet: #6f42c1;
  --violet-dark: #56328f;
  --gold: #b67b00;
  --line: #d8e0e5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f5f7f8 url('../img/background.png') center/cover fixed no-repeat; }
.app { max-width: 820px; min-height: 100vh; margin: auto; padding: 28px 28px 110px; background: rgba(255,255,255,.94); box-shadow: 0 0 30px rgba(23,33,43,.08); }
.screen { display: none; }
.screen.active { display: block; }
h1 { font-size: clamp(2rem,7vw,3.4rem); line-height: 1.05; margin: .25em 0; }
h2 { font-size: clamp(1.45rem,5vw,2.2rem); line-height: 1.15; }
h3 { margin-top: 30px; }
p { line-height: 1.55; }
.lead { font-size: 1.15rem; }
.large-text { font-size: 1.2rem; }
.small-heading, .status { font-weight: 750; color: #5b6972; }
.phase-tag { display: inline-block; padding: 7px 11px; border-radius: 999px; background: #eef3f6; font-weight: 800; font-size: .88rem; }
.optional { font-weight: 500; color: #6b7880; }
label { display: block; font-weight: 750; margin: 18px 0 7px; }
input, textarea, select { width: 100%; padding: 14px; border: 2px solid #cbd3da; border-radius: 12px; background: #fff; font: inherit; color: inherit; }
textarea { resize: vertical; min-height: 100px; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(24,134,75,.16); border-color: var(--green); }
button { border: 0; border-radius: 13px; padding: 14px 18px; font: inherit; font-weight: 800; cursor: pointer; margin-top: 14px; transition: .15s transform,.15s box-shadow; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary-button { background: var(--green); color: #fff; box-shadow: 0 5px 14px rgba(24,134,75,.18); }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { background: #e9eef1; color: #17212b; }
.violet-button { background: var(--violet); color: #fff; width: 100%; }
.violet-button:hover { background: var(--violet-dark); }
.test-button { background: #fff4dc; color: #73520a; border: 1px dashed #c9a44f; }
.player-input-row { margin: 14px 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.player-input-row label { margin-top: 8px; }
.rule-card { margin: 20px 0; padding: 18px 20px; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 16px; background: #fbfcfd; }
.rule-card p:first-child { margin-top: 0; }
.rule-card p:last-child { margin-bottom: 0; }
.rule-formula { margin: 24px 0; padding: 14px; border-radius: 14px; background: #eef9f2; text-align: center; font-size: 1.08rem; font-weight: 850; }
.listen-reminder { margin: 18px 0; padding: 13px 15px; border-radius: 12px; background: #fff7df; border-left: 4px solid var(--gold); }
.question-options, .person-options { display: grid; gap: 12px; margin: 18px 0; }
.question-button, .person-button { width: 100%; text-align: left; background: #f1f5f7; color: #17212b; border: 2px solid transparent; margin: 0; padding: 18px; }
.question-button:hover, .person-button:hover { border-color: var(--green); background: #fff; }
.question-button.selected { border-color: var(--green); background: #eef9f2; }
.person-button small { display: block; margin-top: 5px; color: #66747c; font-weight: 600; }
.person-button.already-explored { opacity: .55; }
.question-kind { display: inline-block; margin-bottom: 8px; padding: 4px 8px; border-radius: 999px; font-size: .78rem; font-weight: 850; background: #fff2c8; color: #775200; }
.feedback-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 22px; }
.feedback-button { background: #f1f5f7; color: #17212b; border: 2px solid transparent; margin: 0; font-size: 1.5rem; }
.feedback-button span { display: block; font-size: .92rem; margin-top: 7px; }
.feedback-button.is-selected { background: #eef9f2; border-color: var(--green); }
.feedback-next { margin-top: 30px; }
.feedback-next .primary-button { width: 100%; }
.bottom-actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.field-hint { padding: 12px 14px; border-left: 4px solid var(--violet); background: #f7f3ff; }
.error-message { color: #a12a2a; font-weight: 700; }
.speech-status { color: #5b6972; }
.summary-card { padding: 18px; margin: 14px 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.summary-actions { display: grid; gap: 10px; margin-top: 25px; }
.summary-actions button, #player-downloads button { width: 100%; }
#player-downloads { display: grid; gap: 8px; }
.brand-logos { position: fixed; right: max(12px,env(safe-area-inset-right)); bottom: max(10px,env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.88); box-shadow: 0 3px 12px rgba(0,0,0,.08); z-index: 10; pointer-events: none; }
.brand-logos img { display: block; max-width: 74px; max-height: 34px; width: auto; height: auto; }
.brand-logos .dss-logo { max-height: 38px; }
.violet-phase .phase-tag { background: #f0e8ff; color: #56328f; }
.gold-phase .phase-tag { background: #fff2c8; color: #775200; }
@media (max-width: 620px) {
  .app { padding: 20px 18px 105px; }
  .feedback-buttons { grid-template-columns: 1fr; }
  .bottom-actions button { flex: 1; }
  .brand-logos img { max-width: 58px; max-height: 29px; }
}
.gold-rules { margin: 20px 0; padding: 18px; border: 1px solid #e2c36f; border-radius: 16px; background: #fffaf0; }
.gold-rule-item { margin-bottom: 14px; }
.gold-rule-item strong { font-size: 1.05rem; }
.gold-rule-item p { margin: 5px 0 0; }
.legal-footer { position: fixed; left: 12px; bottom: 10px; z-index: 11; padding: 6px 9px; border-radius: 10px; background: rgba(255,255,255,.9); color: #59666e; font-size: .76rem; }
.legal-footer a { color: inherit; }
@media (max-width: 620px) { .legal-footer { max-width: 58%; font-size: .68rem; } }
/* V20: Projekt-Icon, PWA und Wirksamkeitsmessung */
.partner-intro{display:flex;align-items:center;gap:12px;margin-bottom:18px}.partner-intro img{max-width:120px;max-height:54px;object-fit:contain}.partner-intro span{font-weight:900;color:#78858d}.app-hero-icon{width:92px;height:92px;border-radius:22px;display:block;margin:8px 0 18px}.brand-icon{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));z-index:10;padding:5px;border-radius:14px;background:rgba(255,255,255,.9);box-shadow:0 3px 12px rgba(0,0,0,.08)}.brand-icon img{display:block;width:44px;height:44px;border-radius:10px}.survey-item{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:15px;background:#fff}.survey-item p{font-weight:750;margin-top:0}.scale-buttons{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.scale-button{margin:0;padding:12px 5px;background:#eef2f4;border:2px solid transparent}.scale-button.is-selected{background:#eef9f2;border-color:var(--green)}.scale-anchors{display:flex;justify-content:space-between;font-size:.78rem;color:#66747c;margin-top:6px}@media(max-width:620px){.partner-intro img{max-width:95px;max-height:45px}.brand-icon img{width:38px;height:38px}.scale-button{padding:11px 2px}}


/* V21: kompakte Markenformel auf der Startseite */
#screen-start {
  min-height: calc(100vh - 138px);
  padding-bottom: 96px;
  position: relative;
}
#screen-start .primary-button {
  min-width: 170px;
}
.start-brand-formula {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(23,33,43,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 4px 16px rgba(23,33,43,.08);
}
.formula-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 54px;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}
.formula-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.formula-logo-evokator img { width: 46px; }
.formula-logo-dss { background: #17212b; padding: 4px; }
.formula-logo-dss img { width: 52px; }
.formula-logo-project { width: 58px; height: 58px; padding: 2px; }
.formula-logo-project img { border-radius: 10px; }
.formula-sign {
  flex: 0 0 auto;
  color: #52616a;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}
@media (max-width: 620px) {
  #screen-start { min-height: calc(100vh - 125px); padding-bottom: 88px; }
  .start-brand-formula { gap: 5px; padding: 6px 7px; border-radius: 13px; }
  .formula-logo { width: 47px; height: 43px; border-radius: 9px; }
  .formula-logo-evokator img { width: 38px; }
  .formula-logo-dss img { width: 42px; }
  .formula-logo-project { width: 47px; height: 47px; }
  .formula-sign { font-size: 1.05rem; }
}
