.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.note {
  font-size: 0.9rem;
  opacity: 0.75;
  font-style: italic;
}

.note--on-dark {
  opacity: 0.85;
}

.fact-footnote {
  font-size: 0.85rem;
  opacity: 0.75;
}

.link-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--inwo-blue-1);
  font-weight: 600;
}

[data-theme='dark'] .link-more {
  color: var(--text-on-dark);
  text-decoration-color: var(--accent);
}

:root[data-color-mode='dark'] [data-theme='light'] .link-more {
  color: var(--text-on-dark);
  text-decoration-color: var(--accent);
}

/* Scenes / stations shared layout */
.scene-list,
.station-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.scene h3,
.station h3 {
  margin-bottom: 0.5rem;
}

/* FAQ accordion */
.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

:root[data-color-mode='dark'] [data-theme='light'] .faq__item {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
}

/* Cards: theory, path, call, testimonial, tile */
.theory-cards,
.path-cards,
.call-cards,
.testimonial-cards,
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.theory-card,
.path-card,
.call-card,
.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
}

[data-theme='light'] .theory-card,
[data-theme='light'] .path-card,
[data-theme='light'] .call-card,
[data-theme='light'] .testimonial-card {
  background: var(--surface-alt);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

:root[data-color-mode='dark'] [data-theme='light'] .theory-card,
:root[data-color-mode='dark'] [data-theme='light'] .path-card,
:root[data-color-mode='dark'] [data-theme='light'] .call-card,
:root[data-color-mode='dark'] [data-theme='light'] .testimonial-card {
  background: var(--surface-dark-alt);
  box-shadow: none;
}

.tile {
  display: block;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
}

/* Forms */
.mitmachen-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.newsletter-form input {
  flex: 1 1 200px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-on-light);
}

/* Aktuell grid */
.aktuell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.aktuell-list {
  list-style: none;
  padding: 0;
}

.aktuell-list li {
  margin-bottom: 1rem;
}

.aktuell-list__meta {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Chat widget, spec section 8.1 */
.chat-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1300;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--inwo-blue-1);
  color: var(--text-on-dark);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 0;
}

.chat-fab__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  font-weight: 700;
}

.chat-dialog {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 1300;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(600px, calc(100vh - 7rem));
}

.chat-dialog[hidden] {
  display: none;
}

.chat-dialog__panel {
  background: var(--panel-alt);
  color: var(--panel-text);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.chat-dialog__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--inwo-blue-1);
  color: var(--text-on-dark);
}

.chat-dialog__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--inwo-blue-3);
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.chat-dialog__header h2 {
  margin: 0;
  font-size: 1rem;
}

.chat-dialog__disclaimer {
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 0.25rem 0 0;
}

.chat-dialog__close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-on-dark);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
}

.chat-dialog__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-message {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  max-width: 85%;
}

.chat-message--user {
  align-self: flex-end;
  background: var(--inwo-blue-1);
  color: var(--text-on-dark);
}

.chat-message--bot {
  align-self: flex-start;
  background: var(--panel);
}

.chat-message__source {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.chat-dialog__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem;
}

.chat-chip {
  background: var(--panel);
  color: inherit;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.chat-dialog__form {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
}

.chat-dialog__form input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: inherit;
}

@media (max-width: 480px) {
  .chat-dialog {
    right: 0;
    bottom: 0;
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
  }

  .chat-dialog__panel {
    border-radius: 0;
    height: 100vh;
  }
}
