/* Farbwelt Foliensatz (KONZ §5). Keine externen Fonts/Assets. */
:root {
  --blau: #1F4E78;
  --petrol: #009999;
  --grau: #F5F7FB;
  --weiss: #FFFFFF;
  --live-bg: #16283C;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--weiss);
  color: var(--blau);
  -webkit-text-size-adjust: 100%;
}

/* ---------------------------------------------------- Teilnehmer-Seite */
.participant {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
}
.participant main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 30rem;
  width: 100%;
  margin: 0 auto;
}
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 1.25rem; }
.lead { font-size: 1.15rem; line-height: 1.4; margin: 0 0 1.5rem; }

.smileys { display: flex; gap: 0.9rem; justify-content: center; }
.smiley {
  flex: 1;
  font-size: 3.2rem;
  padding: 1.4rem 0;
  border: 2px solid var(--blau);
  border-radius: 1rem;
  background: var(--grau);
  cursor: pointer;
}
.smiley:active { background: #E2E8F0; }

.topics { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.topic {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.7rem;
  border: 2px solid var(--blau);
  border-radius: 0.75rem;
  background: var(--grau);
  font-size: 1.1rem;
  cursor: pointer;
}
.topic.selected { background: var(--petrol); color: var(--weiss); border-color: var(--petrol); }
.topic input { width: 1.4rem; height: 1.4rem; accent-color: var(--petrol); pointer-events: none; }
.hint { font-size: 0.95rem; opacity: 0.8; margin: 0 0 1rem; }

textarea, input[type="email"] {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.85rem;
  border: 2px solid var(--blau);
  border-radius: 0.75rem;
  background: var(--weiss);
  font-family: inherit;
  margin-bottom: 0.9rem;
}
textarea { min-height: 8rem; resize: vertical; }
label.opt { display: block; font-size: 0.95rem; margin-bottom: 0.35rem; opacity: 0.85; }

button.primary {
  width: 100%;
  font-size: 1.2rem;
  padding: 1rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--petrol);
  color: var(--weiss);
  cursor: pointer;
}
button.primary:disabled { opacity: 0.5; }

.confirm { text-align: center; font-size: 1.25rem; padding: 2rem 0; }
.confirm .big { font-size: 3rem; display: block; margin-bottom: 0.75rem; }

.foot {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  padding-top: 1.5rem;
}

/* ------------------------------------------------------------ QR-Seite */
.qr-page { background: var(--weiss); }
.qr-wrap { max-width: 32rem; margin: 2rem auto; text-align: center; padding: 0 1rem; }
.qr-svg svg { width: 100%; max-width: 22rem; height: auto; }
.qr-url { font-size: 1.1rem; word-break: break-all; color: var(--petrol); }

/* --------------------------------------------------------- Live-Ansicht */
body.live {
  background: var(--live-bg);
  color: var(--weiss);
}
.live-wrap { max-width: 60rem; margin: 0 auto; padding: 1.5rem; }
.live-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.live-head h1 { font-size: 1.5rem; margin: 0; }
.phase-tag { font-size: 1rem; opacity: 0.75; }

.mood-row { display: flex; gap: 1rem; margin: 1.5rem 0 2rem; }
.mood-cell {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.2rem 0.5rem;
}
.mood-cell .emoji { font-size: 3.5rem; display: block; }
.mood-cell .count { font-size: 3rem; font-weight: 700; }

.bar-row { margin-bottom: 1rem; }
.bar-label { font-size: 1.15rem; margin-bottom: 0.3rem; display: flex; justify-content: space-between; }
.bar-track { background: rgba(255, 255, 255, 0.1); border-radius: 0.5rem; overflow: hidden; }
.bar-fill {
  background: var(--petrol);
  color: var(--weiss);
  padding: 0.5rem 0.7rem;
  font-weight: 700;
  min-width: 2ch;
  border-radius: 0.5rem;
  transition: width 0.4s ease;
  white-space: nowrap;
}

.fb-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.fb-item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}
.fb-item .contact { display: block; font-size: 0.85rem; color: var(--petrol); margin-top: 0.3rem; }

h2 { font-size: 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding-bottom: 0.3rem; }

.admin {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.admin-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin button {
  font-size: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--petrol);
  border-radius: 0.6rem;
  background: transparent;
  color: var(--weiss);
  cursor: pointer;
}
.admin button.active { background: var(--petrol); }
.admin button.danger { border-color: #c0504d; }
.admin .group { margin-bottom: 0.8rem; }
.admin .group-label { font-size: 0.85rem; opacity: 0.7; margin-bottom: 0.3rem; }
.hidden { display: none !important; }

/* Mood-Intro-Animation (einmaliger Abspann beim Phasenstart) */
.mood-intro {
  display: block;
  width: min(60vw, 240px);
  margin: 0 auto 8px;
  border-radius: 12px;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  max-height: 240px;
  opacity: 1;
}
.mood-intro.done {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
}

/* vCard-Button auf der Abschluss-Seite */
a.vcard {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--petrol);
  color: var(--weiss);
  text-decoration: none;
  margin-top: 1rem;
}
