:root {
  --brand: #46acc8;
  --brand-dark: #256e84;
  --brand-soft: #e6f6fa;
  --accent: #f27935;
  --accent-soft: #fff1e8;
  --paper: #fffdf4;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --line: #d8e0e3;
  --text: #273239;
  --muted: #65747c;
  --success: #2f9b62;
  --danger: #a60000;
  --shadow: 0 18px 48px rgba(37, 110, 132, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface-2);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(230, 246, 250, 0.92), rgba(255, 253, 244, 0.92) 46%, #fff 100%),
    var(--surface-2);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 224, 227, 0.85);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  object-fit: contain;
  padding: 3px;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1.1;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-action {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}

.progress-shell {
  height: 7px;
  width: 100%;
  background: rgba(70, 172, 200, 0.16);
}

.progress-meta {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 820;
}

.progress-percent {
  font-size: 1.08rem;
  line-height: 1;
}

.progress-bar {
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 180ms ease;
}

.main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px calc(92px + env(safe-area-inset-bottom));
  flex: 1;
}

.main.admin-main {
  width: min(1180px, 100%);
}

.survey-panel,
.admin-panel,
.login-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 224, 227, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.survey-panel {
  padding: 22px;
}

.intro-media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(70, 172, 200, 0.36);
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 760;
  font-size: 0.78rem;
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.language-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 9px;
  font-size: 0.86rem;
  font-weight: 780;
}

.language-button.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.language-flag {
  font-size: 1rem;
  line-height: 1;
}

.hero-visual {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(70, 172, 200, 0.95), rgba(37, 110, 132, 0.95)),
    var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  font-weight: 820;
  line-height: 1.05;
  box-shadow: 0 14px 28px rgba(37, 110, 132, 0.22);
}

.kicker {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 9.6vw, 3.1rem);
  line-height: 0.96;
  color: var(--text);
  overflow-wrap: break-word;
}

h2 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.16;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.lead strong {
  color: var(--text);
  font-weight: 850;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 720;
}

.question-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.option-list {
  display: grid;
  gap: 9px;
}

.field-group {
  display: grid;
  gap: 10px;
}

.option-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 13px 14px;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.option-button:hover,
.option-button:focus-visible {
  border-color: var(--brand);
  outline: none;
}

.option-button.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 760;
}

.has-error .option-button,
.matrix-row.has-error,
.field-grid.has-error .field {
  border-color: rgba(166, 0, 0, 0.72);
  background: #fff8f7;
}

.has-error .option-button:hover,
.has-error .option-button:focus-visible {
  border-color: var(--danger);
}

.option-button.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.option-dot {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 999px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.option-button.selected .option-dot {
  border-color: var(--brand);
}

.option-button.selected .option-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.other-field,
.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 13px 14px;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.35;
}

.other-field {
  margin-top: 10px;
}

.textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.5;
}

.starter {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-weight: 760;
}

.section-divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.count-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.matrix {
  display: grid;
  gap: 12px;
}

.matrix-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.matrix-row.has-error {
  box-shadow: 0 0 0 2px rgba(166, 0, 0, 0.08);
}

.matrix-label {
  margin: 0 0 10px;
  font-weight: 720;
  line-height: 1.35;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.scale-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1.1;
  padding: 7px 4px;
}

.scale-button.selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.contact-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.field-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.footer-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  border-top: 1px solid rgba(216, 224, 227, 0.95);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

.footer-nav-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
}

.button {
  min-height: 48px;
  border: 1px solid var(--brand-dark);
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  line-height: 1.15;
}

.button.primary {
  background: var(--brand-dark);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #1f5d70;
}

.button.secondary {
  background: #fff;
  color: var(--brand-dark);
}

.button.danger {
  border-color: rgba(166, 0, 0, 0.42);
  background: #fff8f7;
  color: var(--danger);
}

.button.danger:hover,
.button.danger:focus-visible {
  border-color: var(--danger);
  background: #fff1ee;
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--brand-dark);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Diktat-Button an Freitextfeldern (Spracherkennung) ── */
.dictation-wrap {
  display: flex;
  flex-direction: column;
}
.dictation-btn {
  align-self: flex-end;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dictation-btn svg {
  color: var(--brand);
  flex-shrink: 0;
}
.dictation-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.dictation-btn.is-recording {
  background: #e5484d;
  border-color: #e5484d;
  color: #fff;
  animation: dictation-pulse 1.3s ease-in-out infinite;
}
.dictation-btn.is-recording svg {
  color: #fff;
}
@keyframes dictation-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); }
}

.error-box {
  margin-top: 14px;
  border: 1px solid rgba(166, 0, 0, 0.28);
  background: #fff3f1;
  color: var(--danger);
  border-radius: 8px;
  padding: 12px;
  font-weight: 720;
}

.success-box {
  border: 1px solid rgba(47, 155, 98, 0.24);
  background: #f0fff6;
  color: #226a45;
  border-radius: 8px;
  padding: 14px;
  margin-top: 16px;
}

.login-panel {
  width: min(460px, 100%);
  margin: 48px auto 0;
  padding: 22px;
}

.admin-grid {
  display: grid;
  gap: 16px;
}

.admin-panel {
  padding: 18px;
}

.admin-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.filter-field {
  display: grid;
  gap: 5px;
}

.filter-field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  min-height: 112px;
}

.kpi-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.kpi-value {
  margin: 8px 0 0;
  color: var(--brand-dark);
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1;
}

.kpi-detail {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.35;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  min-width: 0;
}

.chart-title {
  margin: 0 0 12px;
  font-size: 0.98rem;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  gap: 5px;
}

.bar-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
}

.bar-label {
  font-weight: 720;
  min-width: 0;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}

.bar-fill {
  height: 100%;
  width: var(--bar-width);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.heatmap {
  display: grid;
  gap: 10px;
}

.heat-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 82px;
  gap: 10px;
  align-items: center;
}

.heat-label {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.35;
}

.heat-score {
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) calc(var(--score) * 20%), #fff);
  border: 1px solid rgba(70, 172, 200, 0.35);
  color: var(--brand-dark);
  font-weight: 840;
  text-align: center;
  padding: 8px;
}

.analysis-list,
.theme-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analysis-list li,
.theme-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  line-height: 1.42;
}

.notice {
  border: 1px solid rgba(242, 121, 53, 0.32);
  background: var(--accent-soft);
  color: #71401d;
  border-radius: 8px;
  padding: 11px 12px;
  font-weight: 720;
}

.compact-panel {
  box-shadow: none;
}

.danger-panel {
  border-color: rgba(166, 0, 0, 0.18);
}

.compact-title-row {
  align-items: center;
  margin-bottom: 0;
}

.compact-summary {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.compact-toggle {
  min-width: 116px;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.segment-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.86rem;
  font-weight: 780;
}

.segment-button.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.response-count {
  min-width: 38px;
  border: 1px solid rgba(70, 172, 200, 0.35);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 8px 10px;
  text-align: center;
  font-weight: 850;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.6fr) minmax(0, 1.2fr) minmax(140px, 0.5fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.contact-card.is-done {
  background: #f7f9f9;
  color: var(--muted);
}

.contact-card.is-done .contact-lines {
  opacity: 0.76;
}

.contact-name {
  margin: 0;
  font-weight: 820;
}

.contact-date {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.contact-lines a,
.contact-lines span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 7px 9px;
  text-decoration: none;
  line-height: 1.25;
}

.status-chip {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 820;
  line-height: 1;
}

.status-chip.open {
  border-color: rgba(242, 121, 53, 0.34);
  background: var(--accent-soft);
  color: #71401d;
  margin-top: 8px;
}

.status-chip.done {
  border-color: rgba(47, 155, 98, 0.24);
  background: #f0fff6;
  color: #226a45;
  margin-top: 8px;
}

.contact-done-button {
  min-height: 40px;
  width: 100%;
}

.free-text-list {
  display: grid;
  gap: 10px;
}

.free-text-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.free-text-group {
  display: grid;
  align-content: start;
  gap: 10px;
}

.free-text-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.free-text-group-head h3 {
  margin: 0;
}

.free-text-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.free-text-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.free-text-card p {
  margin: 0;
  line-height: 1.5;
}

.response-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.response-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.response-title {
  margin: 0;
  font-weight: 820;
}

.response-detail {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.response-delete-button {
  min-height: 40px;
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .survey-panel {
    padding: 18px;
  }

  .hero-visual {
    display: none;
  }

  h1 {
    font-size: clamp(2rem, 10.2vw, 2.5rem);
  }

  .footer-nav-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .scale {
    grid-template-columns: repeat(5, 1fr);
  }

  .scale-button {
    font-size: 0.68rem;
  }

  .filter-grid,
  .kpi-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .admin-title-row {
    display: grid;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .free-text-columns {
    grid-template-columns: 1fr;
  }

  .response-row {
    grid-template-columns: 1fr;
  }

  .compact-title-row {
    grid-template-columns: 1fr;
  }

  .compact-toggle {
    width: 100%;
  }
}

@media (min-width: 860px) {
  .main {
    padding-top: 32px;
  }

  .survey-panel {
    padding: 30px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Marken-Themes (nur Präsentation — Fragen/Logik unverändert).
   Aktiv über body[data-brand], gesetzt aus ?brand= in app.js.
   Überschrieben werden ausschließlich die Design-Tokens, sodass
   Buttons, Fortschritt, Auswahl-Zustände etc. automatisch mitziehen.
   ───────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════════
   Alois Krä GmbH — eigener Stil nach krae-eistechnik.de:
   Türkis + Orange, warm & freundlich (NICHT Navy). Klar anders als
   Cooltura (Teal→Violett, Outfit): Türkis-Header, Orange-CTA, runde Formen.
   ══════════════════════════════════════════════════════════════════════ */
body[data-brand="krae"] {
  --brand: #46acc8;            /* Krä-Blau – Signaturfarbe der Website */
  --brand-dark: #256e84;       /* Dunkelblau – Text / CTA */
  --brand-light: #62bfd8;      /* Hellblau */
  --brand-soft: #e3f2f7;
  --accent: #ffaf63;           /* Orange – Akzent / CTA */
  --accent-soft: #fff1e0;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f8fb;
  --line: #d6e8ee;
  --text: #1c2b31;
  --muted: #5a7883;
  --shadow: 0 16px 42px rgba(37, 110, 132, 0.14);
  font-family: "Mulish", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
/* Kräftiger, „zum großen Teil blau" wirkender Hintergrund: Hellblau → Creme */
body[data-brand="krae"] {
  background: linear-gradient(180deg, #dcf0f6 0%, #eef7fa 30%, #fffdf4 100%);
}
/* Verspielte, runde Display-Schrift für Überschriften – klar anders als Cooltura */
body[data-brand="krae"] h1,
body[data-brand="krae"] h2,
body[data-brand="krae"] .kpi-value {
  font-family: "Fredoka", "Mulish", sans-serif;
  letter-spacing: -0.01em;
}
/* Runde, freundliche Formen (wie die Website) */
body[data-brand="krae"] .survey-panel,
body[data-brand="krae"] .admin-panel,
body[data-brand="krae"] .chart-card,
body[data-brand="krae"] .option-button,
body[data-brand="krae"] .kpi,
body[data-brand="krae"] .language-button {
  border-radius: 18px;
}
/* ── Header: kräftig blau, weißes Krä-Logo, kein redundanter Titeltext ── */
body[data-brand="krae"] .topbar {
  background: #46acc8;
  border-bottom: none;
  box-shadow: 0 8px 24px rgba(37, 110, 132, 0.18);
}
body[data-brand="krae"] .brand-mark {
  height: 42px;
  width: auto;
  border-radius: 0;
  background: transparent; /* weißes SVG-Logo direkt auf dem blauen Header */
  padding: 0;
  box-shadow: none;
}
body[data-brand="krae"] .brand-title { display: none; } /* das Logo trägt den Namen */
body[data-brand="krae"] .brand-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
body[data-brand="krae"] .topbar-action {
  color: #ffffff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 700;
}
body[data-brand="krae"] .topbar-action:hover,
body[data-brand="krae"] .topbar-action:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}
/* ── Fortschritt: Blau-Verlauf ── */
body[data-brand="krae"] .progress-bar {
  background: linear-gradient(90deg, #256e84, #46acc8 55%, #62bfd8);
}
body[data-brand="krae"] .progress-percent { color: var(--brand-dark); }
/* ── Buttons: Orange-CTA (wie „Jetzt anfragen"), Pille ── */
body[data-brand="krae"] .button {
  border-radius: 999px;
  font-weight: 700;
}
body[data-brand="krae"] .button.primary {
  background: #ffaf63;
  color: #3a2410;
  border-color: #ffaf63;
}
body[data-brand="krae"] .button.primary:hover,
body[data-brand="krae"] .button.primary:focus-visible {
  background: #ff9f45;
  border-color: #ff9f45;
}
body[data-brand="krae"] .button.secondary {
  color: var(--brand-dark);
  border-color: var(--brand);
}
/* ── Blau-/Orange-Akzente ── */
body[data-brand="krae"] .hero-badge,
body[data-brand="krae"] .meta-pill {
  border-radius: 999px;
  border-color: rgba(70, 172, 200, 0.35);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
body[data-brand="krae"] .kicker {
  color: #ef8f39;             /* Orange Kicker */
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
}
body[data-brand="krae"] h1 {
  color: var(--brand-dark);
  line-height: 1.04;
}
body[data-brand="krae"] .option-button:hover,
body[data-brand="krae"] .option-button:focus-visible {
  border-color: var(--brand);
}
body[data-brand="krae"] .option-button.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* ══════════════════════════════════════════════════════════════════════
   Krä – Feinschliff: kompletter blauer Hintergrund, dünne Headline,
   dezenter weißer Fortschritt, Navigation direkt unter der Umfrage.
   ══════════════════════════════════════════════════════════════════════ */
/* Voll blauer Hintergrund (wie die Website) */
body[data-brand="krae"] {
  background: linear-gradient(180deg, #4cb1cc 0%, #3f9fbb 100%);
}
/* Header verschmilzt mit dem Blau – kein Glas-Kasten, kein Schatten */
body[data-brand="krae"] .topbar {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Fortschritt: dünn & weiß statt Dunkelblau-Balken */
body[data-brand="krae"] .progress-shell {
  height: 4px;
  background: rgba(255, 255, 255, 0.24);
}
body[data-brand="krae"] .progress-bar {
  background: #ffffff;
}
/* „Fortschritt / 63 %"-Text raus – nur der dünne weiße Balken bleibt */
body[data-brand="krae"] .progress-meta {
  display: none;
}
/* Header aufgeräumt: nur das weiße Krä-Logo – kein „Kundenumfrage", kein „Intern" */
body[data-brand="krae"] .brand-subtitle,
body[data-brand="krae"] .topbar-action {
  display: none;
}
/* Weiße Karte auf Blau: weicher, luftiger */
body[data-brand="krae"] .survey-panel {
  border: none;
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: 0 26px 60px -26px rgba(15, 55, 70, 0.55);
}
/* Headline dünn & fein (Mulish Light statt runder Fredoka) */
body[data-brand="krae"] h1 {
  font-family: "Mulish", sans-serif;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.06;
}
body[data-brand="krae"] h2 {
  font-family: "Mulish", sans-serif;
  font-weight: 600;
}
body[data-brand="krae"] .kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
/* Option-Buttons feiner */
body[data-brand="krae"] .option-button {
  border-width: 1px;
  font-weight: 500;
}
/* ── Navigation direkt unter der Umfrage, im Fluss & fein ── */
body[data-brand="krae"] .main {
  flex: 0 0 auto;
  padding-bottom: 10px;
}
body[data-brand="krae"] .footer-nav {
  position: static;
  background: transparent;
  border-top: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 22px 16px 48px; /* Luft über UND unter den Buttons – kein Kleben am Rand */
}
/* Matrix-Frage: keine „Box in Box in Box" – Zeilen liegen flach auf dem weißen
   Panel und werden nur durch eine dezente Trennlinie geteilt. */
body[data-brand="krae"] .matrix {
  gap: 0;
}
body[data-brand="krae"] .matrix-row {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
body[data-brand="krae"] .matrix-row:first-child {
  padding-top: 0;
}
body[data-brand="krae"] .matrix-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
body[data-brand="krae"] .matrix-label {
  font-weight: 600;
}
/* Skala-Buttons: feiner, weniger „kastig" */
body[data-brand="krae"] .scale-button {
  border-radius: 999px;
  font-weight: 600;
  background: var(--surface-2);
  border-color: transparent;
}
body[data-brand="krae"] .scale-button.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
body[data-brand="krae"] .footer-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* Feine Pillen-Buttons */
body[data-brand="krae"] .button {
  min-height: 0;
  padding: 11px 24px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
}
body[data-brand="krae"] .footer-nav .button.secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
}
body[data-brand="krae"] .footer-nav .button.secondary:hover,
body[data-brand="krae"] .footer-nav .button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}
body[data-brand="krae"] .footer-nav .button.primary {
  background: #ffaf63;
  color: #3a2410;
  border-color: #ffaf63;
  padding: 11px 32px;
}
body[data-brand="krae"] .footer-nav .button.primary:hover,
body[data-brand="krae"] .footer-nav .button.primary:focus-visible {
  background: #ff9f45;
  border-color: #ff9f45;
}

/* Cultura Gastro Concepts GmbH — an Cultura-Design angelehnt
   (Font Outfit, Signatur-Verlauf Teal→Violett, große Radien) */
body[data-brand="cultura"] {
  --brand: oklch(0.66 0.12 205);
  --brand-dark: oklch(0.39 0.097 249);
  --brand-soft: oklch(0.95 0.024 200);
  --accent: oklch(0.68 0.093 309);
  --accent-soft: oklch(0.95 0.03 309);
  --paper: oklch(0.99 0.004 150);
  --surface: #ffffff;
  --surface-2: oklch(0.962 0.005 150);
  --line: oklch(0.9 0.012 220);
  --text: oklch(0.33 0.07 249);
  --muted: oklch(0.52 0.035 249);
  --shadow: 0 18px 48px oklch(0.39 0.097 249 / 0.16);
  font-family: "Outfit", "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}
body[data-brand="cultura"] h1,
body[data-brand="cultura"] h2,
body[data-brand="cultura"] .brand-title,
body[data-brand="cultura"] .kpi-value {
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.015em;
}
body[data-brand="cultura"] {
  background:
    linear-gradient(180deg, oklch(0.95 0.024 200 / 0.9), oklch(0.99 0.004 150 / 0.92) 46%, #fff 100%),
    var(--surface-2);
}
/* Cultura-Signatur-Verlauf für die primären Flächen */
body[data-brand="cultura"] .button.primary,
body[data-brand="cultura"] .progress-bar,
body[data-brand="cultura"] .hero-visual {
  background: linear-gradient(135deg, oklch(0.74 0.096 193), oklch(0.68 0.093 309));
  color: #fff;
}
body[data-brand="cultura"] .survey-panel,
body[data-brand="cultura"] .admin-panel,
body[data-brand="cultura"] .chart-card {
  border-radius: 24px;
}
body[data-brand="cultura"] .button {
  border-radius: 999px;
}

/* In die Storefront eingebettet (?embed=1): eigener Header/Footer der Umfrage
   entfällt — die Website liefert Header und Footer. */
body[data-embed="1"] {
  background: transparent;
}
/* Natürliche Höhe (nicht 100vh), damit der iframe exakt auf den Inhalt passt. */
html[data-embed="1"],
body[data-embed="1"],
body[data-embed="1"] .app {
  min-height: 0;
}
body[data-embed="1"] .topbar,
body[data-embed="1"] .language-switch {
  display: none;
}
/* Navigation (Weiter/Absenden) bleibt sichtbar, aber im Fluss statt fixiert,
   damit sie mit der Inhaltshöhe des iframes mitwächst. */
body[data-embed="1"] .footer-nav {
  position: static;
  background: transparent;
  border-top: none;
  backdrop-filter: none;
  padding: 16px 0 0;
}
body[data-embed="1"] .main {
  padding-top: 20px;
  padding-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════════════════
   Cooltura — Feinschliff: verspielte Rundungen, Marken-Akzente (Teal/Violett),
   passend zur Storefront (Outfit-Font ist bereits oben gesetzt).
   ══════════════════════════════════════════════════════════════════════ */
body[data-brand="cultura"] .option-button {
  border-radius: 16px;
  min-height: 56px;
}
body[data-brand="cultura"] .option-button.selected {
  border-color: oklch(0.66 0.12 205);
  background: oklch(0.96 0.02 200);
}
body[data-brand="cultura"] .language-button {
  border-radius: 14px;
}
body[data-brand="cultura"] .kicker {
  color: oklch(0.55 0.13 205);
  letter-spacing: 0.05em;
}
body[data-brand="cultura"] h1 {
  line-height: 1.02;
}
body[data-brand="cultura"] .hero-badge {
  border-color: oklch(0.66 0.12 205 / 0.35);
}
body[data-brand="cultura"] .hero-visual {
  width: 116px;
  height: 116px;
  border-radius: 20px;
  font-size: 0.74rem;
  letter-spacing: -0.01em;
  padding: 14px;
}

/* ══════════════════════════════════════════════════════════════════════
   Cooltura — Premium-Redesign, konsequent an die Storefront angeglichen
   (Werte aus src/styles.css): Outfit überall, Glasmorphismus-Cards,
   großzügige Radien, weicher Navy-Schatten, Teal→Violett-Signatur.
   ══════════════════════════════════════════════════════════════════════ */
body[data-brand="cultura"] {
  --brand: oklch(0.62 0.13 205);
  --brand-dark: oklch(0.39 0.097 249);
  --brand-soft: oklch(0.74 0.096 193 / 0.12);
  --accent: oklch(0.68 0.093 309);
  --surface: oklch(1 0 0 / 62%);
  --line: oklch(1 0 0 / 72%);
  --text: oklch(0.39 0.097 249);
  --muted: oklch(0.49 0.05 238);
  --shadow: 0 30px 90px -35px oklch(0.39 0.097 249 / 0.32);
  font-family: "Outfit", "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}
body[data-brand="cultura"] * { font-family: inherit; }

/* Glas-Panels mit weichem Schatten */
body[data-brand="cultura"] .survey-panel,
body[data-brand="cultura"] .admin-panel,
body[data-brand="cultura"] .chart-card,
body[data-brand="cultura"] .kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}
body[data-brand="cultura"] .survey-panel { padding: 34px 32px; }

/* Options — weiche Rundung, Teal-Hover mit sanftem Lift */
body[data-brand="cultura"] .option-button {
  border-radius: 18px;
  min-height: 60px;
  border: 1px solid oklch(0.39 0.097 249 / 0.10);
  background: oklch(1 0 0 / 55%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 15px 18px;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
body[data-brand="cultura"] .option-button:hover,
body[data-brand="cultura"] .option-button:focus-visible {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -18px oklch(0.39 0.097 249 / 0.42);
}
body[data-brand="cultura"] .option-button.selected {
  border-color: var(--brand);
  background: oklch(0.74 0.096 193 / 0.12);
}

/* Buttons — Signatur-Gradient, Pille, mit Glow */
body[data-brand="cultura"] .button {
  border-radius: 999px;
  font-weight: 700;
  min-height: 52px;
}
body[data-brand="cultura"] .button.primary {
  background: linear-gradient(135deg, oklch(0.74 0.096 193), oklch(0.68 0.093 309));
  color: #fff;
  border: none;
  box-shadow: 0 10px 26px -8px oklch(0.71 0.1 250 / 0.55);
}
body[data-brand="cultura"] .button.primary:hover,
body[data-brand="cultura"] .button.primary:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
body[data-brand="cultura"] .button.secondary {
  background: oklch(1 0 0 / 60%);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Badges / Pills — Glas */
body[data-brand="cultura"] .hero-badge,
body[data-brand="cultura"] .meta-pill {
  border-radius: 999px;
  background: oklch(1 0 0 / 55%);
  border: 1px solid oklch(0.74 0.096 193 / 0.32);
  color: var(--brand-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Hero-Tile — Signatur-Gradient mit Glow */
body[data-brand="cultura"] .hero-visual {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: linear-gradient(135deg, oklch(0.74 0.096 193), oklch(0.68 0.093 309));
  color: #fff;
  font-size: 0.78rem;
  box-shadow: 0 18px 44px -16px oklch(0.68 0.093 309 / 0.5);
}

/* Typografie */
body[data-brand="cultura"] .kicker {
  color: oklch(0.55 0.13 205);
  letter-spacing: 0.09em;
  font-weight: 700;
}
body[data-brand="cultura"] h1 {
  line-height: 1.0;
  letter-spacing: -0.02em;
}
body[data-brand="cultura"] .lead { color: var(--muted); }
body[data-brand="cultura"] .progress-bar {
  background: linear-gradient(90deg, oklch(0.74 0.096 193), oklch(0.68 0.093 309));
}

/* Deko-Kachel oben rechts („Softeis, das begeistert." / „Eisgenuss …")
   entfernen — ergibt in der Umfrage keinen Sinn (beide Marken). */
body[data-brand] .hero-visual {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════════
   Cooltura — Schriftkonzept exakt wie die Storefront ("Über Cooltura"):
   Gradient-Heading (Teal→Violett, background-clip:text), Outfit semibold,
   tracking-tight; Kicker weit gesperrt/uppercase; Lead größer & luftig.
   ══════════════════════════════════════════════════════════════════════ */
body[data-brand="cultura"] .kicker {
  color: oklch(0.55 0.07 220);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
body[data-brand="cultura"] h1 {
  background: linear-gradient(135deg, oklch(0.74 0.096 193), oklch(0.68 0.093 309));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  padding-bottom: 0.08em;
  font-size: clamp(2.1rem, 5.6vw, 3.3rem);
}
body[data-brand="cultura"] .question-head h2 {
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--brand-dark);
}
body[data-brand="cultura"] .lead {
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--muted);
}
