/* Eigenständige Demo der digitalen Gesprächsräume. */
:root {
  --red: #b61e2a;
  --black: #3F3F3F;
  --ink: #3F3F3F;
  --muted: #5c6166;
  --line-strong: #6a6e72;
  --rose: #f1f0ee;
  --rose-deep: #e3e1de;
  --cream: #f6f5f4;
  --paper: #ffffff;
  --warm: #f0efed;
  --line: #d8d6d3;
  --gray-chip: #eceae8;
  --shadow: 0 12px 32px rgba(26, 26, 26, 0.06);
  --radius: 18px;
  --max: 1080px;
  --focus: 3px solid var(--black);
  --header-offset: 4.75rem;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 0.75rem);
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 10% -10%, #eceae8 0%, transparent 55%),
    var(--cream);
  line-height: 1.55;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--black);
}

a:hover {
  color: var(--black);
}

h1,
h2,
h3,
.team-line,
.team-mark {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

p,
li,
.lead,
.demo-banner,
.room-copy,
.fine,
.moderation-note {
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  z-index: 20;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: none;
  outline: var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 246, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.1rem;
  min-height: var(--header-offset);
  padding-block: 0.45rem;
}

.brand-home {
  display: block;
  line-height: 0;
  min-width: 0;
  flex: 1 1 10rem;
  max-width: min(220px, 62%);
}

.brand-logo {
  width: 100%;
  height: auto;
}

.header-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0.35rem;
  width: 12.6rem;
  min-width: 12.6rem;
}

.header-pill {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 2rem;
  margin: 0;
  padding: 0.2rem 0.7rem;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  background: var(--paper);
  color: var(--black);
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.signup-open {
  cursor: pointer;
}

.signup-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 30;
  width: min(22rem, calc(100vw - 2.5rem));
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: left;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.signup-title {
  margin: 0;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.05rem;
  color: var(--black);
}

.signup-form label {
  margin-top: 0.35rem;
  font-weight: 650;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"],
.signup-form input:not([type="checkbox"]) {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

.signup-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  font-weight: 650;
}

.signup-check input {
  width: 1.15rem;
  height: 1.15rem;
}

.signup-form .btn {
  margin-top: 0.45rem;
}

.signup-status {
  margin: 0.35rem 0 0;
  padding: 0.7rem 0.8rem;
  background: var(--rose);
  border-radius: 12px;
}

.wrap {
  padding-block: clamp(1.4rem, 3vw, 2.6rem) 3rem;
}

.demo-banner,
.leave-notice,
.listen-state,
.moderation-note {
  background: var(--rose);
  color: var(--ink);
  border: 1px solid var(--rose-deep);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.demo-banner {
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
}

.hero {
  max-width: 46rem;
  margin-bottom: 1.8rem;
}

.welcome {
  margin: 0;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.eyebrow,
.team-line {
  margin: 0;
}

.eyebrow {
  color: var(--black);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 650;
}

.team-line {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 1.05rem;
}

h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 18em;
}

#room-title {
  font-size: clamp(1.4rem, 2vw, 1.65rem);
}

#page-title,
#rooms-title,
.next-lead {
  color: var(--red);
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 40rem;
}

.intro-line {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.flow {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 0 0 1.8rem;
  padding: 0;
}

.flow li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 4.2rem;
  position: relative;
  box-shadow: var(--shadow);
}

.flow h2 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--black);
}

.flow p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.flow-index {
  position: absolute;
  left: 0.9rem;
  top: 0.95rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rose);
  color: var(--black);
  font-weight: 700;
}

.scenes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.scene {
  margin: 0;
}

.scene img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  background: var(--warm);
}

.scene figcaption,
.fine {
  color: var(--muted);
  font-size: 0.88rem;
}

.scene figcaption {
  margin-top: 0.45rem;
}

.scene-fallback {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  border: 1px dashed #c9b8b3;
  border-radius: var(--radius);
  background: var(--rose);
}

.section-heading h2,
.panel-title,
.presence h2,
.care-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--black);
}

.section-heading p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.room-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.05rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.room-card h3 {
  margin: 0;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.room-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

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

.demo-flag {
  align-self: flex-start;
  background: var(--rose);
  color: var(--black);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.occupancy {
  font-weight: 650;
}

.names {
  color: var(--muted);
  font-size: 0.92rem;
}

.status {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.status-offen {
  background: #fff;
  color: var(--black);
  border: 1px solid var(--line-strong);
}

.status-wenige {
  background: var(--rose-deep);
  color: var(--black);
}

.status-voll {
  background: var(--gray-chip);
  color: var(--ink);
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  text-align: center;
}

.btn:disabled {
  cursor: not-allowed;
  background: var(--gray-chip);
  color: var(--ink);
  border-color: #d5d0cd;
}

.btn-primary {
  background: var(--paper);
  color: var(--black);
  border-color: var(--red);
  border-width: 2px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--rose);
  color: var(--black);
}

.btn-secondary {
  background: var(--paper);
  color: var(--black);
  border-color: var(--red);
  border-width: 2px;
}

.btn-secondary[aria-pressed="true"] {
  background: var(--rose);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--red);
  border-width: 2px;
}

.room-card .btn {
  margin-top: auto;
  width: 100%;
}

.care-card {
  margin-top: 2rem;
}

.care-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.care-card p {
  margin: 0.4rem 0;
}

.care-card-crisis {
  background: var(--warm);
}

.next-step {
  margin-top: 2.4rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.next-lead {
  margin: 0 0 0.35rem;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.35;
  color: var(--red);
}

.next-step > p {
  max-width: 40rem;
}

.next-soft,
.next-quiet {
  color: var(--muted);
}

.next-step .team-line {
  margin-top: 1.3rem;
}

.next-step h2 {
  margin: 0.2rem 0 0.55rem;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--ink);
}

.offer-actions,
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.offer-actions {
  margin: 1.1rem 0 0.8rem;
}

.offer-actions .btn {
  width: 100%;
  text-decoration: none;
  background: var(--paper);
}

.offer-status {
  margin: 0 0 0.8rem;
  padding: 0.75rem 0.9rem;
  background: var(--rose);
  border-radius: 12px;
}

.offer-card {
  padding: 1rem;
  background: var(--cream);
  border-radius: 14px;
}

.offer-card h3 {
  margin: 0 0 0.3rem;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--black);
}

.offer-card p {
  margin: 0;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}

.contact-phone {
  color: var(--ink);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.contact-phone:hover {
  text-decoration: underline;
}

.btn-small {
  width: auto;
  min-height: 2.1rem;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  text-decoration: none;
}

.leave-notice {
  margin-bottom: 1rem;
}

.room-toolbar,
.composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.room-toolbar {
  margin-bottom: 1rem;
}

.room-toolbar .btn {
  flex: 1 1 12rem;
}

.room-head {
  margin-bottom: 1.2rem;
  max-width: 42rem;
}

.room-note {
  margin: 0.7rem 0 0;
  padding: 0.75rem 0.9rem;
  background: var(--warm);
  border-radius: 12px;
}

.room-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.thread-panel,
.presence {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  min-width: 0;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0.8rem 0 1rem;
}

.message {
  max-width: 38rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
}

.message p {
  margin: 0.25rem 0 0;
}

.message-local {
  background: #fff;
  border-color: var(--rose-deep);
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.85rem;
}

.message-meta strong {
  color: var(--ink);
  font-size: 1rem;
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.composer label {
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 6.2rem;
  resize: vertical;
  border: 1px solid #cfc4bf;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.composer-actions .btn {
  flex: 1 1 10rem;
}

.form-error {
  margin: 0;
  color: var(--black);
  font-weight: 650;
}

.listen-state {
  margin: 0.2rem 0 0;
}

.presence-count {
  margin: 0.2rem 0;
  font-weight: 700;
}

.presence-list {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.presence-list li + li {
  margin-top: 0.2rem;
}

.scene-side {
  margin-top: 1rem;
}

.scene-side img {
  max-height: 180px;
}

.moderation-note {
  margin: 1rem 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 0 0 2rem;
  text-align: left;
  color: var(--muted);
}

.footer-inner {
  padding-top: 1rem;
}

.copyright {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 0.35rem;
}

.footer-links a {
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 700px) {
  .flow,
  .scenes {
    grid-template-columns: 1fr 1fr;
  }

  .flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .room-grid,
  .offer-actions,
  .offer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-home {
    max-width: 220px;
  }
}

@media (min-width: 980px) {
  .room-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .room-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.8fr);
    align-items: start;
  }

}

@media (max-width: 680px) {
  .header-inner {
    align-items: flex-start;
  }

  .brand-home {
    flex: 1 1 100%;
    max-width: 200px;
  }

  .header-aside {
    flex: 0 0 12.6rem;
    width: 12.6rem;
    min-width: 12.6rem;
    max-width: 100%;
  }

  .signup-panel {
    right: auto;
    left: 0;
  }
}

@media (max-width: 420px) {
  .scene img {
    max-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
