/* Kanal-Vorschau — gemeinsame Styles für Termin-Entwürfe */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #2c2c2c;
  background: #eceae6;
}

.page-nav {
  background: #111;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #3a3a3a;
}

.page-nav a {
  color: #f0d9a8;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.page-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-header {
  background: #1a1a1a;
  color: #f5f0e8;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.page-header h1 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.page-header .sub {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.sidebar {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  font-size: 0.8125rem;
}

.sidebar h2 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

.sidebar dl { margin: 0; }
.sidebar dt {
  font-weight: 600;
  margin-top: 0.65rem;
  color: #555;
}
.sidebar dt:first-child { margin-top: 0; }
.sidebar dd { margin: 0.15rem 0 0; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-oeffentlich { background: #fce4ec; color: #880e4f; }
.badge-geschlossen { background: #f3e5f5; color: #6a1b9a; }
.badge-entwurf { background: #fff3e0; color: #e65100; }
.badge-freigegeben { background: #e8f5e9; color: #2e7d32; }
.badge-skip { background: #eee; color: #777; }

.channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.channel {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.channel.disabled {
  opacity: 0.55;
}

.channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f7f5f2;
  border-bottom: 1px solid #e8e4df;
  font-weight: 600;
  font-size: 0.8125rem;
}

.channel-head .when {
  font-weight: 400;
  color: #666;
  font-size: 0.75rem;
}

.channel-body { padding: 1rem; }

/* ── Website ── */
.mock-website {
  font-family: Georgia, "Times New Roman", serif;
  max-width: 640px;
}

.mock-website h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.mock-website .meta-line {
  font-family: system-ui, sans-serif;
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 1rem;
}

.mock-website .c1-zeile {
  background: #f7f5f2;
  border-left: 3px solid #e8c547;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
}

.mock-website img {
  width: 100%;
  border-radius: 6px;
  margin: 1rem 0;
}

.mock-website .no-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8e4df, #d4cfc8);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.8125rem;
  margin: 1rem 0;
}

/* ── Instagram Feed ── */
.mock-ig-feed {
  max-width: 360px;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.mock-ig-feed .ig-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.mock-ig-feed .ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #e8c547;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
}

.mock-ig-feed .ig-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #efefef;
}

.mock-ig-feed .ig-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #333, #555);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
}

.mock-ig-feed .ig-caption {
  padding: 0.75rem;
  font-size: 0.8125rem;
  white-space: pre-wrap;
}

.mock-ig-feed .ig-hashtags {
  color: #00376b;
  margin-top: 0.35rem;
}

/* ── Instagram Story ── */
.mock-ig-story {
  width: 220px;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #2c1810, #1a1a1a);
  color: #fff;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  font-size: 0.875rem;
}

.mock-ig-story.has-photo {
  background-size: cover;
  background-position: center;
}

.mock-ig-story.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.75));
}

.mock-ig-story .story-text {
  position: relative;
  z-index: 1;
  font-weight: 600;
  line-height: 1.35;
}

.mock-ig-story .story-sticker {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  z-index: 1;
}

/* ── Facebook Event ── */
.mock-fb-event {
  max-width: 420px;
  border: 1px solid #dddfe2;
  border-radius: 8px;
  overflow: hidden;
}

.mock-fb-event .fb-cover {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background: #29487d;
}

.mock-fb-event .fb-cover .bild-vote-block {
  position: relative;
  z-index: 0;
  border-radius: 0;
}

.mock-fb-event .fb-cover .bild-vote-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.72));
  z-index: 1;
  pointer-events: none;
}

.mock-fb-event .fb-cover .bild-vote-block img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.mock-fb-event .fb-cover .vote-bar-inline {
  position: relative;
  z-index: 2;
  margin: 0;
  background: #ebe8e3;
  border-top: 1px solid #e8e4df;
}

.mock-fb-event .fb-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  font-size: 1.0625rem;
  font-weight: 700;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  line-height: 1.25;
  pointer-events: none;
}

.mock-fb-event .fb-details {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.8125rem;
}

.mock-fb-event .fb-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: #444;
}

/* ── Newsletter ── */
.mock-newsletter {
  max-width: 560px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  padding: 1.25rem 1.5rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.65;
}

.mock-newsletter .nl-betreff {
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

/* ── WhatsApp Status (9:16, Foto + Overlay — kein Chat) ── */
.mock-wa-status {
  width: 220px;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #0b3d36, #1a1a1a);
  color: #fff;
  padding: 2.75rem 1rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  font-size: 0.8125rem;
  margin: 0 auto;
}

.mock-wa-status.has-photo {
  background-size: cover;
  background-position: center;
}

.mock-wa-status.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,.8));
}

.mock-wa-status .wa-status-top {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  right: 0.75rem;
  font-size: 0.625rem;
  opacity: 0.9;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

.mock-wa-status .wa-status-sticker {
  position: absolute;
  top: 2rem;
  left: 0.75rem;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  z-index: 2;
}

.mock-wa-status .wa-status-text {
  position: relative;
  z-index: 1;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.mock-wa-status .wa-status-caption {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  opacity: 0.85;
}

.mock-wa-status .wa-status-reply {
  position: absolute;
  bottom: 0.5rem;
  left: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255,255,255,.15);
  border-radius: 999px;
  font-size: 0.625rem;
  color: rgba(255,255,255,.7);
  z-index: 2;
  text-align: center;
}

.mock-wa-status.format-text {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  background: linear-gradient(145deg, #075e54, #128c7e);
}

.mock-wa-status.format-text::before {
  display: none;
}

.mock-wa-status.format-text .wa-status-text {
  font-size: 1rem;
  max-width: 14em;
}

.channel-note {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #666;
}

.channel-grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.page-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.75rem;
  color: #888;
}

.page-footer a { color: #555; }

/* Index-Seite */
.index-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.index-list h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.index-list .intro {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.event-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow 0.15s;
}

.event-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.event-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
}

.event-card .date {
  font-size: 0.8125rem;
  color: #666;
}

.event-card .tags {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* ── A/B Varianten & Abstimmung ── */
.vote-choice-hint {
  margin: 0 0 0.65rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.6875rem;
  color: #666;
  background: #f5f3ef;
  border-radius: 6px;
}

.variant-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .variant-compare {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.variant-card {
  border: 2px solid #e8e4df;
  border-radius: 10px;
  overflow: hidden;
  background: #fafaf9;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.variant-card.vote-up-active {
  border-color: #66bb6a;
  box-shadow: 0 0 0 1px #66bb6a;
}

.variant-card.vote-down-active {
  border-color: #e57373;
  box-shadow: 0 0 0 1px #e57373;
  opacity: 0.92;
}

.variant-label {
  padding: 0.45rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e8e4df;
}

.variant-label-a { background: #e8f4fd; color: #1565c0; }
.variant-label-b { background: #f3e8fd; color: #6a1b9a; }

.variant-content {
  padding: 0.75rem;
}

.bild-vote-block {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.bild-vote-block.vote-up-active {
  box-shadow: 0 0 0 2px #66bb6a;
}

.bild-vote-block.vote-down-active {
  box-shadow: 0 0 0 2px #e57373;
  opacity: 0.95;
}

.bild-vote-block .mock-ig-story,
.bild-vote-block .mock-wa-status {
  margin: 0 auto;
}

.vote-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f0eeea;
  border-top: 1px solid #e8e4df;
}

.vote-bar-inline {
  border-top: none;
  background: #ebe8e3;
  font-size: 0.75rem;
}

.vote-bar-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  min-width: 2.25rem;
}

.vote-btn {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, transform 0.08s;
}

.vote-btn:hover {
  background: #f5f5f5;
  transform: scale(1.05);
}

.vote-btn.active-up {
  background: #e8f5e9;
  border-color: #66bb6a;
}

.vote-btn.active-down {
  background: #ffebee;
  border-color: #e57373;
}

.vote-counts {
  font-size: 0.6875rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.vote-status {
  font-size: 0.6875rem;
  color: #888;
  margin-left: auto;
}

.vote-meta {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  color: #999;
}

.vote-totals {
  color: #888;
  font-weight: 400;
}

.votes-summary {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4df;
  font-size: 0.75rem;
  color: #555;
}

.votes-summary h3 {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

.votes-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.votes-summary li { margin-bottom: 0.25rem; }

/* ── Kanal-Kommentare ── */
.comments-offline-note,
.comments-login-bar {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

.comments-login-bar {
  background: #fff8e8;
  border: 1px solid #f0d9a8;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
}

.comments-login-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.comments-login-hint {
  color: #666;
  flex: 1 1 12rem;
}

.comments-login-hint.is-error {
  color: #c62828;
}

.comments-login-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.comments-login-form select,
.comments-login-form input {
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.comments-login-form button,
.comments-logout-btn {
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.channel-comments-mount {
  margin-top: 0.75rem;
}

.channel-comments {
  border-top: 1px dashed #ddd;
  padding-top: 0.75rem;
}

.channel-comments-head {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #777;
  margin-bottom: 0.5rem;
}

.channel-comments-empty,
.channel-comments-login-note {
  font-size: 0.8125rem;
  color: #888;
  margin: 0 0 0.5rem;
}

.channel-comments-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.channel-comment {
  background: #fafaf9;
  border: 1px solid #ece8e3;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.5rem;
}

.channel-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.6875rem;
  color: #888;
  margin-bottom: 0.25rem;
}

.channel-comment-meta strong {
  color: #444;
  font-size: 0.75rem;
}

.channel-comment-delete {
  margin-left: auto;
  font: inherit;
  font-size: 0.6875rem;
  color: #b71c1c;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.channel-comment-text {
  font-size: 0.8125rem;
  color: #333;
  white-space: pre-wrap;
}

.channel-comment-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.channel-comment-form textarea {
  flex: 1 1 14rem;
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  min-height: 2.5rem;
}

.channel-comment-form button {
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.mock-ig-feed.in-variant {
  max-width: 100%;
}

.mock-wa-status.in-variant {
  width: 100%;
  max-width: 220px;
}

.mock-fb-event.in-variant,
.mock-newsletter.in-variant,
.mock-website.in-variant {
  max-width: 100%;
}

.mock-ig-story.in-variant {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}
