@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap");

:root {
  --raum: #215273;
  --begriff: #855FC0;
  --erleben: #F56476;
  --forderung: #FCCD0A;
  --frei: #A1D17D;
  --charta: #FC7E2A;
  --cyan: #5CE1E6;
  --ink: #101014;
  --muted: rgba(16, 16, 20, 0.68);
  --paper: #fff8e8;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(16, 16, 20, 0.12);
  --shadow: 0 20px 60px rgba(30, 20, 10, 0.12);
  --active: var(--raum);
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Open Sans", "Clear Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(33, 82, 115, 0.18), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(252, 205, 10, 0.24), transparent 28%),
    radial-gradient(circle at 72% 92%, rgba(133, 95, 192, 0.20), transparent 32%),
    radial-gradient(circle at 18% 86%, rgba(252, 126, 42, 0.12), transparent 30%),
    linear-gradient(135deg, #fff8e8 0%, #f6fff2 48%, #f5efff 100%);
  min-height: 100vh;
}

body.dashboard-body {
  --active-bg-1: rgba(33, 82, 115, 0.22);
  --active-bg-2: rgba(33, 82, 115, 0.10);
  transition: background 900ms ease;
  background:
    radial-gradient(circle at 9% 12%, rgba(8, 119, 255, 0.25), transparent 25%),
    radial-gradient(circle at 86% 8%, rgba(246, 198, 0, 0.34), transparent 24%),
    radial-gradient(circle at 78% 58%, rgba(255, 75, 100, 0.24), transparent 28%),
    radial-gradient(circle at 22% 92%, rgba(0, 168, 107, 0.22), transparent 28%),
    linear-gradient(135deg, #fff8e8 0%, #f6fff2 42%, #f5efff 100%);
}

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

a {
  color: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.wide-shell {
  width: min(1500px, calc(100% - 32px));
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
}

.topbar p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

.dashboard-brand,
.form-brand,
.focus-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: 0 10px 28px rgba(30,20,10,0.08);
  color: var(--raum);
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dashboard-brand img,
.form-brand img,
.focus-brand img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.dashboard-brand {
  margin: 0 0 14px;
  padding: 8px 14px 8px 8px;
  font-size: 15px;
}

.form-brand {
  padding: 8px 14px 8px 8px;
  font-size: 13px;
  color: var(--active);
}

.focus-brand {
  flex: none;
  position: relative;
  z-index: 3;
  padding: 7px 12px 7px 7px;
  color: var(--active);
  font-size: 12px;
  max-width: 240px;
}

.focus-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-logo {
  display: block;
  width: min(220px, 78%);
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 16px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pill,
.primary,
.ghost,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(30, 20, 10, 0.08);
}

.primary {
  background: var(--active);
  color: #fff;
}

.danger {
  background: #111;
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
}

.panel,
.card {
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.72);
}

.panel {
  padding: 24px;
}

.card {
  padding: 18px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.1;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

.station-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.station-card {
  min-height: 180px;
  display: grid;
  align-content: space-between;
  border-left: 12px solid var(--active);
}

.station-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.station-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.phone-flow {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.flow-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.progress-text {
  font-weight: 900;
  color: var(--muted);
}

.flow-progress {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(16,16,20,0.10);
}

.flow-progress span {
  display: block;
  height: 100%;
  width: var(--step-progress, 10%);
  border-radius: 999px;
  background: var(--active);
  transition: width 300ms ease;
}

.flow-step {
  display: none;
}

.flow-step.active {
  display: block;
}

.branch-detail,
.free-option-detail {
  display: none;
  gap: 10px;
  margin-top: 14px;
}

.branch-detail.active,
.free-option-detail.active {
  display: grid;
}

.branch-options .option span {
  min-width: 120px;
  justify-content: center;
  text-transform: lowercase;
}

.flow-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.flow-actions .primary,
.flow-actions .ghost {
  width: 100%;
}

.question {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
}

.flow-step .question {
  min-height: 320px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.flow-step .question > label {
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.12;
}

.flow-step .option span {
  font-size: clamp(18px, 2.6vw, 28px);
  line-height: 1.1;
  white-space: normal;
}

.question label,
.admin-field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option {
  position: relative;
}

.option input {
  position: absolute;
  opacity: 0;
}

.option span {
  display: inline-flex;
  border-radius: 999px;
  padding: 11px 14px;
  background: rgba(16,16,20,0.08);
  font-weight: 900;
  cursor: pointer;
}

.option input:checked + span {
  background: var(--active);
  color: #fff;
}

textarea,
input[type="text"],
input[type="number"],
input[type="url"],
select {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  outline: none;
  font-weight: 800;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

textarea:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
select:focus {
  border-color: var(--active);
}

.status {
  min-height: 28px;
  font-weight: 900;
}

.admin-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding-right: 4px;
}

.tab-button {
  justify-content: flex-start;
  width: 100%;
}

.tab-button.active {
  background: var(--active);
  color: #fff;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
}

.admin-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.admin-row-head,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-row-head h3 {
  margin: 0;
  font-size: 22px;
}

.admin-row-head p {
  margin: 4px 0 0;
}

.dashboard-term-editor {
  border-left: 12px solid var(--active);
}

.charta-editor-row {
  border-left: 12px solid var(--active);
}

.qr-status {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  font-weight: 800;
}

.qr-status span {
  color: var(--muted);
  font-size: 14px;
}

.qr-status.ready {
  background: rgba(161, 209, 125, 0.22);
  border: 1px solid rgba(36, 132, 71, 0.22);
}

.qr-status.warning {
  background: rgba(245, 100, 118, 0.14);
  border: 1px solid rgba(245, 100, 118, 0.24);
}

.term-list {
  display: grid;
  gap: 8px;
}

.term-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 92px 150px 150px auto;
  gap: 8px;
  align-items: center;
}

.podium-count-editor {
  display: grid;
  gap: 8px;
}

.podium-count-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.62);
}

.podium-count-row span {
  font-weight: 900;
}

.compact-button {
  min-height: 44px;
  padding: 10px 12px;
  white-space: nowrap;
}

.response-list {
  max-height: 68vh;
  overflow: auto;
  padding-right: 6px;
}

.response-row {
  border-left: 10px solid var(--active);
}

.charta-overview {
  display: grid;
  gap: 18px;
}

.charta-intro,
.charta-section {
  border-radius: 24px;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
}

.charta-section {
  border-left: 12px solid var(--active);
}

.charta-count {
  font-weight: 900;
  color: var(--active);
}

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

.charta-point {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--active) 8%, rgba(255,255,255,0.94));
  border: 1px solid color-mix(in srgb, var(--active) 18%, transparent);
}

.charta-point strong {
  font-size: 20px;
}

.charta-point p {
  margin: 5px 0 0;
  color: var(--muted);
}

.charta-document {
  border: 2px solid color-mix(in srgb, var(--charta) 28%, white);
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--cyan) 30%, transparent), transparent 24%),
    radial-gradient(circle at 8% 88%, color-mix(in srgb, var(--charta) 18%, transparent), transparent 26%),
    rgba(255,255,255,0.9);
}

.charta-document h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
}

.charta-final-text {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  max-width: 1050px;
  font-size: clamp(21px, 2.2vw, 34px);
  line-height: 1.22;
  font-weight: 850;
}

.charta-final-text p {
  margin: 0;
}

.charta-final-text mark {
  display: inline;
  padding: 0 0.28em 0.08em;
  border-radius: 999px;
  color: #fff;
  background: var(--charta);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.charta-slot {
  position: relative;
  overflow: hidden;
}

.charta-slot::after {
  content: "";
  position: absolute;
  width: 160px;
  aspect-ratio: 1;
  right: -54px;
  top: -58px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--active) 18%, transparent);
  pointer-events: none;
}

.charta-sentence {
  margin: 18px 0 16px;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.18;
  font-weight: 900;
}

.charta-blank {
  display: inline-grid;
  min-width: min(280px, 48vw);
  padding: 4px 18px;
  border-radius: 999px;
  place-items: center;
  color: var(--active);
  background: color-mix(in srgb, var(--active) 12%, white);
  border: 2px dashed color-mix(in srgb, var(--active) 55%, white);
}

.charta-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-top: 6px;
}

.charta-option {
  width: var(--bubble-size);
  min-width: var(--bubble-size);
  height: var(--bubble-size);
  min-height: var(--bubble-size);
  flex: 0 0 var(--bubble-size);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.36), transparent 24%),
    var(--active);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--active) 28%, rgba(16,16,20,0.16));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  animation: bubbleFloat 6s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.charta-option:nth-child(2n) { animation-delay: -1.8s; }
.charta-option:nth-child(3n) { animation-delay: -3.1s; }

.charta-option:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 22px 44px color-mix(in srgb, var(--active) 36%, rgba(16,16,20,0.22));
}

.charta-option span {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: auto;
  font-size: clamp(13px, calc(var(--bubble-size) / 7.3), 22px);
  line-height: 1.05;
  font-weight: 950;
}

.charta-option small {
  max-width: 100%;
  color: rgba(255,255,255,0.82);
  font-size: clamp(9px, calc(var(--bubble-size) / 17), 12px);
  line-height: 1.05;
  font-weight: 800;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-0.6deg); }
}

.charta-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.response-row pre {
  overflow: auto;
  max-height: 260px;
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(16,16,20,0.06);
  font-size: 13px;
  white-space: pre-wrap;
}

.qr-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.final-qr-grid {
  margin: 0 0 18px;
}

.final-qr-card {
  border: 2px solid color-mix(in srgb, var(--active) 28%, white);
  background:
    radial-gradient(circle at 84% 14%, color-mix(in srgb, var(--active) 20%, transparent), transparent 28%),
    rgba(255,255,255,0.78);
}

.qr-card img {
  width: 180px;
  height: 180px;
  display: block;
  margin: 12px auto;
  border-radius: 12px;
  background: white;
  padding: 10px;
}

.small-link {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.dashboard-body {
  overflow: hidden;
}

.dashboard {
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 24px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.motion-ribbons {
  position: absolute;
  inset: -12vh -8vw;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.motion-ribbons span {
  position: absolute;
  width: 12vw;
  height: 92vh;
  left: calc(var(--i) * 18vw - 4vw);
  top: -14vh;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--ribbon) 34%, transparent), transparent);
  clip-path: polygon(24% 0, 100% 0, 76% 100%, 0 100%);
  opacity: 0.34;
  transform: rotate(18deg);
  animation: ribbonRush 18s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -2.5s);
}

@keyframes ribbonRush {
  0% { transform: translate3d(-4vw, -2vh, 0) rotate(14deg) scaleY(0.94); opacity: 0.18; }
  45% { opacity: 0.40; }
  100% { transform: translate3d(9vw, 8vh, 0) rotate(24deg) scaleY(1.12); opacity: 0.32; }
}

.dashboard::before {
  box-shadow:
    -36vw 32vh 0 -8vw rgba(246, 198, 0, 0.20),
    -14vw 68vh 0 -12vw rgba(0, 168, 107, 0.18);
}

.dashboard::before,
.dashboard::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
  mix-blend-mode: multiply;
}

.dashboard::before {
  width: 42vw;
  height: 42vw;
  right: -8vw;
  top: 4vh;
  background: var(--active-bg-1);
  animation: slowOrbit 28s ease-in-out infinite alternate;
}

.dashboard::after {
  width: 34vw;
  height: 34vw;
  left: -8vw;
  bottom: 2vh;
  background: var(--active-bg-2);
  animation: slowOrbit 22s ease-in-out infinite alternate-reverse;
}

@keyframes slowOrbit {
  from { transform: translate3d(-2vw, -2vh, 0) scale(1); }
  to { transform: translate3d(4vw, 5vh, 0) scale(1.12); }
}

.dashboard-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.dashboard-header h1 {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 82px);
  line-height: 0.95;
  text-shadow: 0 8px 32px rgba(255,255,255,0.45);
  animation: titleFloat 8s ease-in-out infinite, titleFlash 16s ease-in-out infinite;
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes titleFlash {
  0%, 100% { text-shadow: 0 8px 32px rgba(255,255,255,0.45); }
  50% { text-shadow: 0 8px 32px rgba(255,255,255,0.75), 0 0 34px color-mix(in srgb, var(--active) 22%, transparent); }
}

.big-stats {
  display: flex;
  gap: 14px;
}

.stat-circle {
  width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 30% 24%, white, rgba(255,255,255,0.84) 58%),
    color-mix(in srgb, var(--active) 18%, white);
  box-shadow: var(--shadow);
  font-weight: 900;
  border: 2px solid rgba(255,255,255,0.92);
  animation: statBreathe 8s ease-in-out infinite;
}

.stat-circle:nth-child(2) {
  animation-delay: -3s;
}

@keyframes statBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.stat-circle strong {
  display: block;
  font-size: 36px;
}

.category-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-nav button {
  transition: background 220ms ease, box-shadow 220ms ease;
}

.category-nav button:hover {
  transform: none;
}

.category-nav button.active {
  background: var(--active);
  color: #fff;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--active) 36%, transparent);
}

.slide-stage {
  position: relative;
  min-height: clamp(620px, calc(100vh - 255px), 780px);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--accent-a) 32%, transparent), transparent 32%),
    radial-gradient(circle at 16% 86%, color-mix(in srgb, var(--accent-b) 28%, transparent), transparent 34%),
    radial-gradient(circle at 48% 46%, color-mix(in srgb, var(--accent-c) 18%, transparent), transparent 32%),
    rgba(255,255,255,0.54);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.42),
    0 26px 80px color-mix(in srgb, var(--accent-a) 16%, rgba(20,20,20,0.14));
}

.slide-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  border: 2px solid rgba(255,255,255,0.42);
  pointer-events: none;
  opacity: 0.7;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  padding: 26px;
  visibility: hidden;
  min-height: 0;
  opacity: 0;
}

.slide.active {
  visibility: visible;
  opacity: 1;
}

.energy-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: min(460px, 56%);
  margin: 18px 0 4px;
}

.energy-bars span {
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--active), color-mix(in srgb, var(--active) 32%, #f6c600));
  transform-origin: left center;
  animation: energyBeat 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -170ms);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--active) 20%, transparent);
}

@keyframes energyBeat {
  0%, 100% { transform: scaleX(0.32); opacity: 0.52; }
  38% { transform: scaleX(1); opacity: 1; }
  70% { transform: scaleX(0.62); opacity: 0.78; }
}

.visual-panel {
  border-radius: 30px;
  padding: 28px;
  background:
    radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--active) 24%, transparent), transparent 28%),
    radial-gradient(circle at 18% 24%, rgba(246, 198, 0, 0.18), transparent 26%),
    radial-gradient(circle at 76% 82%, rgba(134, 87, 255, 0.16), transparent 30%),
    rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.visual-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -90px;
  top: -120px;
  border-radius: 46% 54% 55% 45% / 44% 48% 52% 56%;
  background: color-mix(in srgb, var(--active) 22%, white);
  opacity: 0.42;
  animation: shapeBreath 18s ease-in-out infinite alternate;
}

.visual-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: 42%;
  bottom: 12%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--active) 16%, transparent);
  opacity: 0.5;
  animation: floatShape 22s ease-in-out infinite alternate;
}

.visual-panel > * {
  position: relative;
  z-index: 1;
}

@keyframes shapeBreath {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); border-radius: 46% 54% 55% 45% / 44% 48% 52% 56%; }
  50% { transform: translate3d(-30px, 26px, 0) rotate(8deg) scale(1.08); border-radius: 58% 42% 47% 53% / 52% 42% 58% 48%; }
  100% { transform: translate3d(-12px, 48px, 0) rotate(-5deg) scale(0.98); border-radius: 42% 58% 61% 39% / 57% 47% 53% 43%; }
}

@keyframes floatShape {
  from { transform: translate3d(-20px, 20px, 0) scale(0.9); }
  to { transform: translate3d(48px, -36px, 0) scale(1.18); }
}

.visual-panel h2 {
  margin: 0 0 8px;
  font-size: 58px;
  line-height: 0.95;
  animation: headlineKick 6s ease-in-out infinite;
}

.focus-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 8px;
}

.focus-title-row h2 {
  min-width: 0;
  margin: 0;
}

@keyframes headlineKick {
  0%, 100% { transform: translateX(0); }
  44% { transform: translateX(0); }
  50% { transform: translateX(8px) skewX(-2deg); }
  58% { transform: translateX(0); }
}

.word-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 8px 20px;
  min-height: 118px;
  max-width: 100%;
  padding: 8px 18px 12px 22px;
  box-sizing: border-box;
  overflow: hidden;
  filter: saturate(1.08);
}

.word-cloud span {
  font-weight: 900;
  line-height: 0.95;
  display: inline-block;
  position: relative;
  max-width: 100%;
  animation: termBeam 520ms ease both;
  text-shadow: 0 10px 28px rgba(20,20,20,0.08);
  white-space: normal;
  text-wrap: balance;
  transition: font-size 520ms ease, color 520ms ease, opacity 320ms ease;
}

.word-cloud span.stable {
  animation: none;
}

.word-cloud span[data-status="accepted"] {
  color: color-mix(in srgb, #248447 72%, var(--ink));
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-decoration-color: color-mix(in srgb, #248447 42%, transparent);
}

.word-cloud span[data-status="rejected"] {
  opacity: 0.48;
  text-decoration: line-through;
  text-decoration-thickness: 4px;
}

.word-cloud .term-choice {
  color: var(--active);
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.12em;
}

.word-cloud .term-topic {
  color: color-mix(in srgb, var(--active) 68%, var(--ink));
}

.word-cloud span:nth-child(2n) {
  animation-delay: 0s;
}

.word-cloud span:nth-child(3n) {
  animation-delay: 0s;
}

@keyframes wordPulse {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  35% { transform: translateY(-12px) rotate(-1.5deg) scale(1.055); }
  70% { transform: translateY(5px) rotate(1deg) scale(0.985); }
}

@keyframes termBeam {
  from { opacity: 0; filter: brightness(1.4) saturate(1.4); text-shadow: 0 0 36px color-mix(in srgb, var(--active) 46%, white); }
  to { opacity: 1; filter: brightness(1) saturate(1); text-shadow: 0 10px 28px rgba(20,20,20,0.08); }
}

.kinetic-field {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  min-height: clamp(318px, 36vh, 370px);
  margin-top: 8px;
  overflow: hidden;
  border-radius: 26px;
  padding: 10px;
  background:
    repeating-linear-gradient(120deg, rgba(255,255,255,0.24) 0 2px, transparent 2px 18px);
}

.kinetic-bubble {
  position: relative;
  left: auto !important;
  top: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: clamp(10px, 12%, 22px);
  text-align: center;
  font-weight: 900;
  line-height: 1.02;
  background: var(--active);
  color: #fff;
  box-shadow: 0 18px 46px rgba(20, 20, 20, 0.14);
  animation:
    bubbleBeam 420ms ease both,
    gentleBubbleDrift 14s ease-in-out infinite alternate;
  animation-delay: 0ms, calc(var(--i, 0) * -900ms);
  transition:
    width 520ms ease,
    height 520ms ease,
    left 520ms ease,
    top 520ms ease,
    font-size 520ms ease,
    background-color 520ms ease,
    border-color 520ms ease;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  max-width: 210px;
  max-height: 210px;
  white-space: normal;
  overflow: hidden;
  text-wrap: balance;
  flex-direction: column;
  gap: 4px;
}

.kinetic-bubble.stable {
  animation: gentleBubbleDrift 14s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -900ms);
}

.kinetic-bubble > span {
  max-width: 82%;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: auto;
  text-wrap: balance;
  flex: none;
}

.kinetic-bubble small {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 0 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(16,16,20,0.12);
}

.kinetic-bubble em {
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: var(--ink);
}

.kinetic-bubble.status-accepted {
  outline: 8px solid rgba(36, 132, 71, 0.22);
}

.kinetic-bubble.status-rejected {
  opacity: 0.58;
  filter: grayscale(0.35);
}

.kinetic-bubble.light {
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border: 6px solid var(--active);
}

.kinetic-bubble.choice {
  box-shadow:
    0 18px 46px rgba(20, 20, 20, 0.14),
    0 0 0 8px color-mix(in srgb, var(--active) 18%, transparent);
  border-radius: 42% 58% 50% 50% / 52% 44% 56% 48%;
}

.kinetic-bubble:nth-child(2n) {
  animation-duration: 420ms, 16s;
}

.kinetic-bubble:nth-child(3n) {
  animation-duration: 420ms, 18s;
  animation-direction: normal, alternate-reverse;
}

.kinetic-bubble.stable:nth-child(2n) {
  animation-duration: 16s;
}

.kinetic-bubble.stable:nth-child(3n) {
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

@keyframes bubbleBeam {
  from { opacity: 0; filter: brightness(1.3) saturate(1.4); box-shadow: 0 0 0 12px color-mix(in srgb, var(--active) 18%, transparent), 0 0 36px color-mix(in srgb, var(--active) 42%, transparent); }
  to { opacity: 1; filter: brightness(1) saturate(1); }
}

@keyframes driftBubble {
  from { transform: translate3d(-8px, 7px, 0) scale(1); }
  to { transform: translate3d(12px, -10px, 0) scale(1.03); }
}

@keyframes gentleBubbleDrift {
  0% { transform: translate3d(-2px, 2px, 0) scale(1); }
  50% { transform: translate3d(3px, -3px, 0) scale(1.008); }
  100% { transform: translate3d(-1px, 1px, 0) scale(1); }
}

@keyframes colorPop {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.28) brightness(1.04); }
}

@keyframes bubbleTwist {
  0%, 100% { border-radius: 50%; }
  50% { border-radius: 42% 58% 54% 46% / 54% 44% 56% 46%; }
}

.w-xl { font-size: 64px; color: var(--active); }
.w-lg { font-size: 44px; }
.w-md { font-size: 30px; }
.w-sm { font-size: 22px; color: var(--muted); }

.side-stack {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  min-height: 0;
}

.podium-card {
  max-height: 300px;
  overflow: hidden;
}

.podium-card .scale {
  gap: 7px;
}

.podium-card .scale-row {
  grid-template-columns: 170px 1fr 34px;
  gap: 8px;
  font-size: 14px;
}

.podium-card .track {
  height: 14px;
}

.summary-card {
  border-left: 12px solid var(--active);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--active) 12%, white), rgba(255,255,255,0.92));
  animation: sideCardSlide 780ms ease both;
}

.side-stack .card:nth-child(2) {
  animation: sideCardSlide 880ms ease both;
}

.side-stack .card:nth-child(3) {
  animation: sideCardSlide 980ms ease both;
}

@keyframes sideCardSlide {
  from { opacity: 0; transform: translateX(22px) rotateY(8deg); }
  to { opacity: 1; transform: translateX(0) rotateY(0); }
}

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

.scale-row {
  display: grid;
  grid-template-columns: 110px 1fr 44px;
  gap: 10px;
  align-items: center;
  font-weight: 900;
}

.track {
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(16,16,20,0.12);
}

.bar {
  height: 100%;
  width: var(--value);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--active), color-mix(in srgb, var(--active) 40%, #f6c600));
  transition: width 700ms ease;
}

.gender-scale {
  display: grid;
  grid-template-columns: var(--m) var(--w) var(--d);
  height: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16,16,20,0.12);
}

.gender-scale span:nth-child(1) { background: #2f80ed; }
.gender-scale span:nth-child(2) { background: #eb5757; }
.gender-scale span:nth-child(3) { background: #8657ff; }

.live-feed {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 26px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
  border: 2px solid color-mix(in srgb, var(--active) 20%, white);
  animation: feedRise 900ms ease both, feedGlow 4.8s ease-in-out infinite;
}

@keyframes feedRise {
  from { transform: translateY(12px); opacity: 0.85; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes feedGlow {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 20px 60px color-mix(in srgb, var(--active) 20%, rgba(30,20,10,0.10)); }
}

.feed-label {
  display: grid;
  place-items: center;
  width: 104px;
  height: 66px;
  border-radius: 22px;
  background: var(--active);
  color: white;
  text-align: center;
  font-weight: 900;
  animation: labelPulse 5s ease-in-out infinite;
}

@keyframes labelPulse {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.05) rotate(-1deg); }
}

.answer-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-width: 0;
}

.answer {
  min-height: 66px;
  border-radius: 22px;
  padding: 13px 15px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--active) 12%, white), rgba(255,255,255,0.96));
  border: 2px solid color-mix(in srgb, var(--active) 22%, white);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: break-word;
  word-break: normal;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 10px 28px rgba(30,20,10,0.08);
  animation: answerPop 650ms ease both, answerWiggle 7s ease-in-out infinite;
  overflow: visible;
}

.answer-strip .answer {
  align-items: center;
  font-size: clamp(13px, 0.95vw, 16px);
}

.answer-strip .answer:nth-child(2) { animation-delay: 90ms, -2s; }
.answer-strip .answer:nth-child(3) { animation-delay: 180ms, -4s; }

@keyframes answerPop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes answerWiggle {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-3px) rotate(-0.35deg); }
  56% { transform: translateY(0) rotate(0.25deg); }
  62% { transform: translateY(0) rotate(0); }
}

.answer-card {
  overflow: auto;
}

.answer-card .answer {
  min-height: 86px;
  margin-top: 10px;
  font-size: clamp(13px, 0.9vw, 16px);
}

.feed-stats {
  min-width: 150px;
  font-weight: 900;
  text-align: right;
  line-height: 1.18;
}

.podium-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
  margin: 28px 0 10px;
}

.vote-option {
  min-height: 92px;
  border-radius: 26px;
  padding: 18px;
  border: 2px solid color-mix(in srgb, var(--active) 28%, white);
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--active) 24%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.98), color-mix(in srgb, var(--active) 18%, white));
  color: var(--ink);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(30,20,10,0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: voteEnter 700ms ease both;
  animation-delay: calc(var(--i) * 90ms);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  position: relative;
  z-index: 1;
}

.vote-option span {
  width: 46px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--active);
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--active) 26%, transparent);
}

.vote-option:hover {
  background: color-mix(in srgb, var(--active) 16%, white);
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 20px 44px color-mix(in srgb, var(--active) 18%, rgba(30,20,10,0.12));
}

@keyframes voteEnter {
  from { opacity: 0; transform: translateY(18px) rotateX(-18deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.podium-body {
  background:
    radial-gradient(circle at 10% 15%, rgba(0,168,107,0.26), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(246,198,0,0.32), transparent 26%),
    radial-gradient(circle at 70% 86%, rgba(134,87,255,0.24), transparent 30%),
    linear-gradient(135deg, #fffaf0 0%, #effff8 48%, #f4efff 100%);
}

.podium-panel {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.82);
  background:
    radial-gradient(circle at 80% 18%, rgba(246,198,0,0.20), transparent 30%),
    radial-gradient(circle at 12% 86%, rgba(255,75,100,0.16), transparent 32%),
    rgba(255,255,255,0.82);
}

.podium-intro {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--active);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.podium-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.podium-orbit span {
  position: absolute;
  width: 210px;
  aspect-ratio: 1;
  border-radius: 42% 58% 55% 45% / 45% 42% 58% 55%;
  opacity: 0.24;
  background: var(--active);
  animation: podiumFloat 18s ease-in-out infinite alternate;
}

.podium-orbit span:nth-child(1) { right: 8%; top: -70px; }
.podium-orbit span:nth-child(2) { left: -60px; bottom: 8%; background: var(--frei); animation-delay: -6s; }
.podium-orbit span:nth-child(3) { right: 24%; bottom: -90px; background: var(--begriff); animation-delay: -11s; }

@keyframes podiumFloat {
  from { transform: translate3d(-12px, 8px, 0) rotate(0deg) scale(0.96); }
  to { transform: translate3d(24px, -22px, 0) rotate(16deg) scale(1.12); }
}

.podium-result-card {
  margin-top: 18px;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), color-mix(in srgb, var(--active) 10%, white));
  border: 2px solid color-mix(in srgb, var(--active) 16%, white);
}

@media (max-width: 1050px) {
  body,
  body.dashboard-body {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .layout,
  .admin-grid,
  .slide,
  .dashboard-header,
  .live-feed,
  .charta-point {
    grid-template-columns: 1fr;
  }
  .topbar {
    display: grid;
  }
  .nav-links {
    justify-content: flex-start;
  }
  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .dashboard {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .focus-brand {
    max-width: 100%;
  }
  .focus-title-row {
    display: grid;
    justify-items: start;
  }
  .side-logo {
    width: min(180px, 66%);
  }
  .slide-stage {
    min-height: 0;
    overflow: visible;
  }

  .slide {
    position: static;
    display: none;
    padding: 18px;
    gap: 16px;
  }

  .slide.active {
    display: grid;
  }

  .visual-panel {
    overflow: hidden;
  }

  .side-stack {
    grid-template-rows: none;
  }

  .podium-card {
    max-height: none;
    overflow: visible;
  }
  .answer-strip,
  .admin-two,
  .admin-three,
  .podium-count-row,
  .term-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 18px, 720px);
    padding: 12px 0 28px;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .topbar h1 {
    font-size: clamp(30px, 11vw, 44px);
    line-height: 1;
  }

  .dashboard {
    gap: 10px;
    padding: 12px;
  }

  .dashboard-header {
    gap: 12px;
  }

  .dashboard-header h1 {
    font-size: clamp(34px, 12vw, 48px);
    line-height: 0.98;
  }

  .dashboard-brand {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .big-stats {
    justify-content: flex-start;
    gap: 8px;
  }

  .stat-circle {
    width: 92px;
    font-size: 12px;
  }

  .stat-circle strong {
    font-size: 28px;
  }

  .category-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .category-nav .pill {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .slide-stage {
    border-radius: 24px;
  }

  .slide-stage::before {
    display: none;
  }

  .slide {
    padding: 12px;
  }

  .visual-panel {
    border-radius: 22px;
    padding: 16px;
  }

  .visual-panel h2 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .focus-title-row {
    gap: 10px;
  }

  .energy-bars {
    width: 100%;
    margin: 12px 0 2px;
  }

  .word-cloud {
    min-height: auto;
    max-height: none;
    gap: 6px 12px;
    padding: 8px 0 10px;
  }

  .word-cloud span {
    font-size: clamp(18px, 8vw, 38px) !important;
  }

  .kinetic-field {
    min-height: 360px;
    align-content: center;
    padding: 8px;
  }

  .kinetic-bubble {
    max-width: 168px;
    max-height: 168px;
  }

  .side-stack {
    gap: 10px;
  }

  .side-stack .card {
    padding: 14px;
  }

  .scale-row,
  .podium-card .scale-row {
    grid-template-columns: 86px minmax(0, 1fr) 38px;
    gap: 8px;
    font-size: 13px;
  }

  .live-feed {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 22px;
  }

  .feed-label {
    width: 100%;
    height: auto;
    min-height: 44px;
    border-radius: 16px;
  }

  .answer-strip {
    grid-template-columns: 1fr;
  }

  .feed-stats {
    text-align: left;
  }

  .podium-panel {
    padding: 16px;
  }

  .podium-options {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .vote-option {
    min-height: 76px;
    border-radius: 22px;
  }

  .charta-document h2 {
    font-size: clamp(32px, 12vw, 48px);
  }

  .charta-final-text {
    font-size: clamp(19px, 6vw, 26px);
  }

  .charta-section {
    padding: 16px;
  }

  .charta-sentence {
    font-size: clamp(19px, 6vw, 26px);
  }

  .charta-option {
    width: min(var(--bubble-size), 132px);
    min-width: min(var(--bubble-size), 132px);
    height: min(var(--bubble-size), 132px);
    min-height: min(var(--bubble-size), 132px);
    flex-basis: min(var(--bubble-size), 132px);
  }

  .topbar p {
    font-size: 15px;
  }

  .nav-links {
    gap: 8px;
  }

  .pill,
  .primary,
  .ghost,
  .danger {
    min-height: 46px;
    padding: 11px 14px;
  }

  .panel,
  .card {
    border-radius: 22px;
  }

  .panel {
    padding: 16px;
  }

  .phone-flow {
    gap: 14px;
  }

  .phone-flow + .card {
    order: -1;
  }

  .phone-flow + .card .section-title,
  .phone-flow + .card .muted,
  .phone-flow + .card .pill {
    display: none;
  }

  .side-logo {
    width: min(150px, 56vw);
    max-height: 58px;
    margin-bottom: 0;
  }

  .form-brand {
    font-size: 12px;
  }

  .section-title {
    font-size: 24px;
  }

  .flow-step .question {
    min-height: auto;
    gap: 14px;
    padding: 16px;
  }

  .flow-step .question > label {
    font-size: clamp(22px, 7.2vw, 30px);
  }

  .flow-step .option {
    width: 100%;
  }

  .flow-step .option span {
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    font-size: clamp(17px, 5.2vw, 22px);
    text-align: center;
  }

  .options {
    display: grid;
    grid-template-columns: 1fr;
  }

  textarea,
  input[type="text"],
  input[type="number"],
  input[type="url"],
  select {
    font-size: 16px;
    border-radius: 16px;
  }

  textarea {
    min-height: 132px;
  }

  .flow-actions {
    position: sticky;
    bottom: 8px;
    z-index: 5;
    grid-template-columns: 1fr 1.25fr;
    padding: 8px;
    margin: 8px -8px -8px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--paper) 84%, rgba(255,255,255,0.92));
    box-shadow: 0 -10px 30px rgba(30,20,10,0.08);
  }

  .flow-progress {
    height: 10px;
  }

  .question label,
  .admin-field label {
    font-size: 16px;
  }
}
