/* BAUAUFTRAG_INSTAGRAM Schnitt A — Liste + Phone-Preview.
   Nur Token-Variablen aus tokens.css. tokens.css selbst unberührt. */

.ig-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ig-zeile {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: var(--flaeche);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.18s var(--spring), background 0.2s var(--ease);
}

.ig-zeile:hover { background: var(--flaeche-erhoben); }
.ig-zeile:active { transform: scale(0.985); }

.ig-zeile-oben {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-weight: 600;
  font-size: 15px;
}

.ig-zeile-unten {
  margin-top: 4px;
  color: var(--text-schwach);
  font-size: 13px;
}

.ig-status {
  margin-left: auto;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-schwach);
  text-transform: lowercase;
}

.ig-status-vorgeschlagen { color: var(--akzent); }
.ig-status-freigegeben { color: var(--ampel-gruen); }
.ig-status-abgelehnt { color: var(--ampel-rot); }

/* ---- Sheet / Phone-Preview ---- */
.ig-sheet-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 80;
  animation: ig-fade 0.25s var(--ease);
}

.ig-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  background: var(--flaeche-erhoben);
  border-radius: 0;
  z-index: 81;
  padding: 12px 16px 28px;
  box-shadow: none;
  animation: ig-up 0.35s var(--ease);
}

.ig-sheet-griff {
  width: 36px;
  height: 5px;
  border-radius: 0;
  background: var(--grau-300);
  margin: 4px auto 12px;
}

.ig-sheet-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ig-sheet-titel {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.ig-phone {
  margin: 0 auto 16px;
  width: min(320px, 100%);
  background: #000;
  border-radius: 0;
  padding: 10px 10px 14px;
  box-shadow: none;
  color: #f5f5f7;
}

.ig-phone-notch {
  width: 96px;
  height: 8px;
  border-radius: 0;
  background: #2a2a2c;
  margin: 4px auto 10px;
}

.ig-phone-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 10px;
}

.ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  /* Profil: orangefarbener Avatar (weinstein.architekten) — kein Token-Eingriff */
  background: #e85d04;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.05;
  padding: 2px;
}

.ig-handle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ig-phone-medium {
  position: relative;
  width: 100%;
  background: #111;
  overflow: hidden;
  border-radius: 0;
}

.ig-phone-medium[data-ratio="1:1"] { aspect-ratio: 1 / 1; }
.ig-phone-medium[data-ratio="4:5"] { aspect-ratio: 4 / 5; }
.ig-phone-medium[data-ratio="9:16"] { aspect-ratio: 9 / 16; max-height: 420px; }

.ig-phone-medium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-medium-warte {
  margin: 0;
  padding: 24px 16px;
  color: #f5f5f7;
  font-size: 14px;
  text-align: center;
}

.ig-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.ig-carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.ig-carousel-dots span.an { background: #00407b; }

.ig-reel-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 8px;
  border-radius: 0;
}

.ig-phone-caption {
  padding: 12px 6px 4px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ig-phone-meta {
  padding: 4px 6px 0;
  font-size: 12px;
  color: #a1a1a6;
}

.ig-block {
  margin: 14px 0;
}

.ig-firefly-status {
  font-weight: 600;
  margin-bottom: 6px !important;
}

.ig-firefly-meta {
  font-size: 13px !important;
  color: var(--text-schwach) !important;
  white-space: pre-wrap;
  margin-top: 8px !important;
}

.ig-firefly-prompt {
  margin: 8px 0 0;
  padding: 12px;
  max-height: 160px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--flaeche-2, #f5f5f7);
  border-radius: 0;
  color: var(--text);
}

.ig-firefly-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ig-firefly-aktionen .btn {
  flex: 1 1 auto;
  text-align: center;
  text-decoration: none;
}

.ig-stil-refs {
  margin: 10px 0 12px;
}

.ig-stil-refs > h4 {
  margin: 0 0 6px;
}

.ig-stil-refs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.ig-stil-ref {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--text-schwach, #888) 35%, transparent);
  border-radius: 0;
  background: var(--flaeche-2, #f5f5f7);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.ig-stil-ref.is-aktiv {
  border-color: var(--c-koenigsblau, #00407b);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-koenigsblau, #00407b) 50%, transparent);
}

.ig-stil-ref img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--flaeche-3, #e8e8ed);
}

.ig-stil-ref span {
  padding: 0 6px 6px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--text-schwach);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-stil-ref input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ig-analyse {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 0;
  background: var(--flaeche-2, #f5f5f7);
  border: 1px solid color-mix(in srgb, var(--text-schwach, #888) 28%, transparent);
}

.ig-analyse-titel,
.ig-stil-bib-titel {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-schwach);
}

.ig-analyse-ziel {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
}

.ig-analyse-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-schwach);
  white-space: pre-wrap;
}

.ig-stil-bib {
  margin: 0 0 18px;
}

.ig-stil-upload {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.ig-stil-upload-name {
  font-size: 12px;
  color: var(--text-schwach);
}

.ig-stil-notiz-feld {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--text-schwach, #888) 35%, transparent);
  background: var(--flaeche-1, #fff);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  resize: vertical;
}

.ig-stil-bib-karte {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--text-schwach, #888) 35%, transparent);
  border-radius: 0;
  background: var(--flaeche-2, #f5f5f7);
  overflow: hidden;
}

.ig-stil-bib-karte img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.ig-stil-bib-karte .ig-stil-notiz-feld {
  margin: 0 6px;
  font-size: 12px;
}

.ig-stil-bib-aktionen {
  display: flex;
  gap: 6px;
  padding: 0 6px 8px;
}

.ig-stil-bib-aktionen .btn {
  flex: 1;
  font-size: 12px;
  padding: 6px 8px;
}

.ig-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-schwach);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ig-block p, .ig-block ul {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.ig-musik {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ig-musik button {
  text-align: left;
  border: 1px solid var(--rahmen);
  background: var(--flaeche);
  color: var(--text);
  border-radius: 0;
  padding: 10px 12px;
  cursor: pointer;
  min-height: 44px;
}

.ig-musik button.an {
  border-color: var(--akzent);
  background: var(--akzent-hell);
}

.ig-musik strong { display: block; font-size: 14px; }
.ig-musik span { font-size: 12px; color: var(--text-schwach); }

.ig-aktionen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  background: linear-gradient(to top, var(--flaeche-erhoben) 70%, transparent);
}

.ig-aktionen .btn { width: 100%; min-height: 44px; }

.ig-ablehnen-feld,
.ig-aendern-feld {
  width: 100%;
  min-height: 72px;
  border-radius: 0;
  border: 1px solid var(--rahmen);
  background: var(--flaeche);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}

@keyframes ig-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ig-up {
  from { transform: translate(-50%, 24px); opacity: 0.6; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ig-zeile, .ig-sheet, .ig-sheet-scrim { animation: none; transition: none; }
}
