/* ══ META CREATIVE CHECK ══
   Tool-Seite. Farben/Fonts kommen aus style.css (:root, DM Sans, Russo One).
   Die Anzeigen-Mockups nutzen bewusst den System-Font, wie Facebook/Instagram selbst. */

.cc-page {
  --nav-h: 78px;
  --line: rgba(255,255,255,0.08);
  --line2: rgba(255,255,255,0.14);
  --field: #131313;
  --muted: #8a8a8a;
  --warn: #E8C35C;
  --safe: rgba(248,187,208,0.24);
  --safe-line: rgba(248,187,208,0.9);
  --mock-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.cc-page h2 { text-transform: none; }

.cc-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;
}

/* ── HERO ── */
.cc-hero { padding: calc(var(--nav-h) + 72px) 60px 72px; background: var(--bg); }
.cc-hero-inner { max-width: 1180px; margin: 0 auto; }
.cc-hero .hero-h1 { max-width: 920px; }
.cc-hero .hero-sub { max-width: 640px; font-size: 17px; color: rgba(255,255,255,0.6); }
.cc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.cc-chips li {
  border: 1px solid var(--line); background: var(--bg2); border-radius: 100px;
  padding: 8px 14px; font-size: 12px; color: rgba(255,255,255,0.75);
}
.cc-chips strong { color: var(--green); font-weight: 800; }
.cc-chips .cc-chip-pink {
  border-color: rgba(248,187,208,0.45); background: var(--pink-dim);
  color: var(--pink); font-weight: 700;
}

/* ── CONTROLS ── */
.cc-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.cc-hint { font-size: 11px; line-height: 1.5; color: var(--muted); }
.cc-row { display: flex; justify-content: space-between; gap: 10px; }

.cc-controls {
  scroll-margin-top: var(--nav-h);
  background: var(--bg2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 60px;
  display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap;
}
.cc-ctrl { display: flex; flex-direction: column; gap: 8px; }
.cc-ctrl-upload { min-width: 200px; max-width: 230px; }
.cc-ctrl-caption { flex: 1; min-width: 300px; }
.cc-ctrl-head { min-width: 200px; max-width: 260px; }

.cc-btn-upload {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: var(--green); color: var(--bg);
  border-radius: 100px; padding: 13px 24px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.cc-btn-upload:hover { box-shadow: 0 0 28px rgba(168,255,53,0.4); transform: translateY(-1px); }
#ccFile:focus-visible + .cc-hint,
.cc-btn-upload:focus-within { outline: 2px solid var(--pink); outline-offset: 3px; }

.cc-input {
  width: 100%; font: inherit; font-size: 13px;
  border-radius: 12px; border: 1px solid var(--line2);
  background: var(--field); color: var(--white);
  padding: 10px 13px; outline: none;
  transition: border-color .2s;
}
.cc-input::placeholder { color: #5c5c5c; }
.cc-input:focus { border-color: var(--pink); }
.cc-textarea { min-height: 72px; resize: vertical; line-height: 1.55; border-radius: 14px; padding: 12px 14px; }
.cc-select { cursor: pointer; }
.cc-select option, .cc-select optgroup { background: var(--bg2); color: var(--white); }

.cc-trunc {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px;
}
.cc-trunc-row { display: flex; flex-direction: column; gap: 3px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cc-trunc-row:last-child { border-bottom: none; }
.cc-trunc-top { display: flex; justify-content: space-between; gap: 10px; }
.cc-trunc-label { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9a9a9a; }
.cc-trunc-status { font-size: 10px; font-weight: 700; color: var(--green); }
.cc-trunc-status.is-cut { color: var(--pink); }
.cc-trunc-text { font-size: 12px; line-height: 1.5; word-break: break-word; }
.cc-trunc-text .shown { color: #e8e8e8; }
.cc-trunc-text .more { color: var(--muted); }
.cc-trunc-text .cut { color: #555; text-decoration: line-through; }

.cc-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-pill {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  border-radius: 100px; border: 1px solid var(--line2);
  background: var(--bg3); color: var(--white);
  padding: 10px 16px; transition: border-color .2s, color .2s;
}
.cc-pill:hover { border-color: var(--green); }
.cc-pill[aria-pressed="false"] { color: var(--muted); }
.cc-pill:focus-visible, .cc-tab:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ── TABS (sticky) ── */
.cc-tabs {
  position: sticky; top: var(--nav-h); z-index: 150;
  background: rgba(8,8,8,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 12px 60px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cc-tabs > .cc-label { margin-right: 4px; }
.cc-tablist { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-spacer { flex: 1; }
.cc-pill-add { padding: 8px 15px; border-style: dashed; background: transparent; color: var(--green); font-weight: 700; }
.cc-pill-dim { padding: 8px 15px; background: var(--bg2); color: #9a9a9a; }
.cc-pill-dim:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }
.cc-input-pill { width: 190px; border-radius: 100px; padding: 8px 14px; font-size: 12px; }

.cc-tab {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px; border-radius: 100px; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: #9a9a9a;
  background: var(--bg2); border: 1px solid var(--line2);
  cursor: grab; user-select: none;
  transition: transform .12s, border-color .12s, opacity .12s;
}
.cc-tab.is-active { background: #1c1c1c; color: var(--white); font-weight: 700; border-color: var(--pink); }
.cc-tab.is-over { border-color: var(--green); transform: translateX(4px); }
.cc-tab.is-drag { opacity: .4; cursor: grabbing; }
.cc-tab-grip { flex: none; }
.cc-tab-thumb {
  position: relative; width: 22px; height: 22px; border-radius: 5px; flex: none; overflow: hidden;
  background: #000 center / cover no-repeat;
}
.cc-tab-thumb.is-empty { background: transparent; border: 1px dashed #3a3a3a; }
.cc-tab-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-tab-badge { font-size: 9px; letter-spacing: 0.1em; color: #6e6e6e; }
.cc-tab-x {
  border: none; background: none; cursor: pointer; font: inherit;
  font-size: 15px; line-height: 1; color: #6e6e6e; padding: 0 2px;
}
.cc-tab-x:hover { color: var(--pink); }
.cc-tab-edit {
  background: transparent; border: none; border-bottom: 1px solid var(--pink);
  color: var(--white); font: inherit; font-size: 12px; font-weight: 700; outline: none; padding: 0 0 1px;
}

/* ── STAGE ── */
.cc-stage { position: relative; padding: 48px 60px 64px; }
.cc-grid {
  max-width: 1500px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; justify-content: center;
}
.cc-place { width: min(352px, 100%); display: flex; flex-direction: column; gap: 12px; }
.cc-place-tall { width: min(250px, 100%); }
.cc-place-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cc-place-head h2 { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.cc-place-head h2 em { font-style: normal; font-weight: 600; color: var(--green); }
.cc-place-head span { font-size: 11px; color: #6e6e6e; font-variant-numeric: tabular-nums; }

.cc-drop {
  position: absolute; inset: 16px; z-index: 30; pointer-events: none;
  border: 2px dashed var(--green); border-radius: 24px;
  background: rgba(168,255,53,0.06);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.cc-drop span { background: var(--green); color: var(--bg); font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 100px; }
.cc-stage.is-dragging .cc-drop { opacity: 1; }

/* media slot */
.cc-media { position: relative; width: 100%; background: #e4e6eb; overflow: hidden; }
.cc-media-fill { position: absolute; inset: 0; background: #000; }
.cc-media-round { border-radius: 8px; }
.cc-media > .m-img, .cc-media > video {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  background-position: center; background-repeat: no-repeat; object-position: center;
}
.cc-media > video { background: #000; }
.cc-media > .m-empty {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, #e9ebee 0 10px, #e2e5e9 10px 20px);
}
.cc-media-fill > .m-empty { background: repeating-linear-gradient(45deg, #1a1a1a 0 10px, #141414 10px 20px); }

/* Facebook-/Feed-Karten */
.fb-card {
  background: #fff; color: #1c1e21; border-radius: 14px; overflow: hidden;
  font-family: var(--mock-font); line-height: 1.35;
}
.fb-card-carousel { padding-bottom: 12px; }
.fb-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.fb-avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: block; background: #080808; }
.fb-who { flex: 1; min-width: 0; }
.fb-name { font-size: 13px; font-weight: 700; }
.fb-sub { font-size: 11px; color: #65676b; }
.fb-dots { color: #65676b; font-size: 16px; letter-spacing: 2px; }
.fb-caption { padding: 0 14px 10px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.fb-more { color: #65676b; }
.fb-foot { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #f0f2f5; }
.fb-foot-text { flex: 1; min-width: 0; }
.fb-domain { font-size: 11px; color: #65676b; text-transform: uppercase; letter-spacing: 0.3px; }
.fb-domain-plain { text-transform: none; letter-spacing: 0; }
.fb-headline { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-cta { background: #e4e6eb; border-radius: 6px; padding: 8px 13px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.fb-carousel { display: flex; gap: 8px; overflow: hidden; padding: 0 14px; }
.fb-ccard { flex: 0 0 62%; border: 1px solid #e4e6eb; border-radius: 10px; overflow: hidden; }
.fb-ccard-foot { padding: 9px 11px; background: #f0f2f5; display: flex; flex-direction: column; gap: 2px; }
.fb-ccard-foot b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-ccard-foot span { font-size: 11px; color: #65676b; }
.fb-right {
  background: #fff; color: #1c1e21; border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 9px; font-family: var(--mock-font);
}
.fb-right-tag { font-size: 10px; color: #65676b; letter-spacing: 0.4px; text-transform: uppercase; }
.fb-right-head { font-size: 12px; font-weight: 700; line-height: 1.35; }

/* Stories / Reels */
.cc-phone {
  position: relative; width: 100%; aspect-ratio: 9/16;
  border-radius: 18px; overflow: hidden; background: #000;
  font-family: var(--mock-font); color: #fff;
}
.cc-raw { border-radius: 8px; border: 1px solid var(--line2); }
.cc-shade { position: absolute; inset: 0; pointer-events: none; }
.cc-shade-story { background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 22%, transparent 62%, rgba(0,0,0,0.62) 100%); }
.cc-shade-reel { background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 45%); }
.st-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-direction: column; gap: 10px; }
.st-bars { display: flex; gap: 3px; }
.st-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.4); }
.st-bars i.on { background: #fff; }
.st-who { display: flex; align-items: center; gap: 8px; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.st-who span { font-size: 10px; color: rgba(255,255,255,0.8); }
.st-avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; display: block; }
.st-bottom { position: absolute; bottom: 14px; left: 12px; right: 12px; display: flex; flex-direction: column; gap: 10px; }
.rl-bottom { right: 56px; gap: 9px; }
.rl-bottom .st-avatar { width: 26px; height: 26px; }
.st-caption {
  font-size: 11px; line-height: 1.45; text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-cta { background: rgba(255,255,255,0.95); color: #1c1e21; border-radius: 8px; padding: 9px; text-align: center; font-size: 12px; font-weight: 800; }
.rl-icons { position: absolute; right: 10px; bottom: 110px; display: flex; flex-direction: column; gap: 18px; align-items: center; }

/* Safe Zones */
.cc-safe { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.cc-stage.safe-off .cc-safe { display: none; }
.sz { position: absolute; background: var(--safe); border: 0 solid var(--safe-line); border-width: 0; }
.sz[style*="border-bottom-style"] { border-bottom-width: 1px; }
.sz[style*="border-top-style"] { border-top-width: 1px; }
.sz[style*="border-left-style"] { border-left-width: 1px; }
.sz[style*="border-right-style"] { border-right-width: 1px; }
.sz-line { position: absolute; border-top: 1px dotted rgba(248,187,208,0.75); }
.sz-tag {
  position: absolute; font-family: 'DM Sans', sans-serif;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--bg); background: var(--pink); padding: 2px 5px; border-radius: 4px; white-space: nowrap;
}
.sz-tag-soft { background: rgba(248,187,208,0.75); text-transform: none; }

/* ── CTA ── */
.cc-cta-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 60px 80px; }
.cc-cta {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 28px;
  padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between;
  background-image: radial-gradient(circle at 100% 0%, rgba(248,187,208,0.12), transparent 55%);
}
.cc-cta-text { flex: 1; min-width: 280px; }
.cc-cta-text .hero-tag { margin-bottom: 18px; }
.cc-cta-text h2 {
  font-family: 'Russo One', sans-serif; font-weight: 400; text-transform: lowercase;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 16px;
}
.cc-cta-text p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 560px; }
.cc-cta-action { display: flex; flex-direction: column; gap: 12px; min-width: 240px; text-align: center; }
.cc-cta-action .btn-main { justify-content: center; }
.cc-disclaimer { margin-top: 24px; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.35); }

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
  .cc-hero, .cc-controls, .cc-tabs, .cc-stage, .cc-cta-wrap { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 900px), (max-height: 700px) {
  .cc-tabs { position: static; }
}
@media (max-width: 639px) {
  .cc-page { --nav-h: 62px; }
  .cc-hero { padding: calc(var(--nav-h) + 48px) 16px 48px; }
  .cc-hero .hero-h1 { font-size: clamp(34px, 9.5vw, 52px); }
  .cc-controls, .cc-tabs, .cc-stage { padding-left: 16px; padding-right: 16px; }
  .cc-cta-wrap { padding: 16px 16px 56px; }
  .cc-cta { padding: 36px 22px; border-radius: 22px; }
  .cc-ctrl-upload, .cc-ctrl-head, .cc-ctrl-caption { min-width: 0; max-width: none; width: 100%; }
  .cc-input-pill { width: 100%; }
  .cc-spacer { display: none; }
  .cc-cta-action { min-width: 0; width: 100%; }
  .cc-place-tall { width: calc(50% - 18px); min-width: 150px; }
  .cc-grid { gap: 28px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-btn-upload, .cc-tab, .cc-drop { transition: none; }
}
