/* SocialRena — Design Tokens & Basis-Komponenten (gemeinsam für Website und App) */
/* Schriften lokal gehostet (DSGVO-freundlich, keine Google-Server) */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../fonts/manrope-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900; src: url('../fonts/unbounded-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900; src: url('../fonts/unbounded-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900; src: url('../fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: light;
  --sr-brand-cyan: #00b4ee;
  --sr-brand-blue: #087bfa;
  --sr-brand-indigo: #5742f5;
  --sr-brand-purple: #a52bf4;
  --sr-brand-magenta: #cc38ef;
  --sr-brand-gradient: linear-gradient(105deg, #00b4ee 0%, #087bfa 28%, #5742f5 55%, #a52bf4 80%, #cc38ef 100%);
  --sr-btn-gradient: linear-gradient(100deg, #0a8cf5 0%, #3f63f6 45%, #8a3cf5 80%, #b43ff2 100%);

  --sr-text: #10143a;
  --sr-text-secondary: #5d6480;
  --sr-text-muted: #707891;
  --sr-link: #165dce;
  --sr-canvas: #f5f9ff;
  --sr-surface: #fff;
  --sr-surface-blue: #eaf5ff;
  --sr-surface-violet: #f3ecff;
  --sr-border: #dde5f1;
  --sr-border-soft: #e9eef6;
  --sr-border-input: #8995ac;
  --sr-success: #167449;
  --sr-success-bg: #e7f6ee;
  --sr-warning: #875500;
  --sr-warning-bg: #fff4dc;
  --sr-error: #bc3045;
  --sr-error-bg: #fdecef;
  --sr-info-bg: #e8f0fd;

  --sr-space-1: 4px; --sr-space-2: 8px; --sr-space-3: 12px; --sr-space-4: 16px;
  --sr-space-5: 20px; --sr-space-6: 24px; --sr-space-8: 32px; --sr-space-10: 40px;
  --sr-space-12: 48px; --sr-space-16: 64px; --sr-space-24: 96px; --sr-space-32: 128px;

  --sr-radius-sm: 10px;
  --sr-radius-input: 12px;
  --sr-radius-md: 16px;
  --sr-radius-card: 24px;
  --sr-radius-pill: 999px;

  --sr-shadow-card: 0 8px 28px rgb(28 59 110 / 7%);
  --sr-shadow-soft: 0 2px 10px rgb(28 59 110 / 5%);
  --sr-shadow-popover: 0 16px 48px rgb(16 20 58 / 14%);
  --sr-shadow-cta: 0 10px 28px rgb(63 99 246 / 28%);

  --sr-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sr-motion-fast: 150ms;
  --sr-motion-normal: 220ms;
  --sr-font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --sr-ease: cubic-bezier(.22, 1, .36, 1);
  --sr-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.5 var(--sr-font);
  color: var(--sr-text);
  background: var(--sr-canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sr-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sr-link); outline-offset: 3px; border-radius: 6px; }
.sr-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

/* Marke */
.sr-brand-text {
  background: var(--sr-brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--sr-radius-pill);
  border: 2px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.5;
  cursor: pointer; text-decoration: none !important;
  transition: transform var(--sr-motion-fast), box-shadow var(--sr-motion-normal), background var(--sr-motion-fast);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--sr-btn-gradient); color: #fff; box-shadow: var(--sr-shadow-cta); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgb(63 99 246 / 34%); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: #fff; color: var(--sr-link); border-color: #c9d6ea; }
.btn-secondary:hover { border-color: var(--sr-link); background: #fbfdff; }
.btn-tertiary { background: transparent; color: var(--sr-text-secondary); padding-inline: 14px; }
.btn-tertiary:hover { background: var(--sr-surface-blue); color: var(--sr-text); }
.btn-danger { background: var(--sr-error); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline-grad {
  background: linear-gradient(#fff, #fff) padding-box, var(--sr-brand-gradient) border-box;
  color: var(--sr-text);
}
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 0; background: transparent; color: var(--sr-text-secondary); cursor: pointer;
}
.icon-btn:hover { background: var(--sr-surface-blue); color: var(--sr-text); }
.icon-btn svg { width: 22px; height: 22px; }

/* Card */
.card { background: var(--sr-surface); border-radius: var(--sr-radius-card); box-shadow: var(--sr-shadow-card); border: 1px solid var(--sr-border-soft); }

/* Fields */
.field { display: grid; gap: 8px; }
.field > label, .label { font-weight: 600; font-size: 15px; }
.hint { font-size: 14px; color: var(--sr-text-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  background: #fff; border: 1px solid #c6d0e0; border-radius: var(--sr-radius-input);
  transition: border-color var(--sr-motion-fast), box-shadow var(--sr-motion-fast);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--sr-border-input); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sr-link); box-shadow: 0 0 0 4px rgb(22 93 206 / 12%); }
.textarea { resize: vertical; min-height: 140px; line-height: 1.55; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--sr-radius-pill); font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.badge svg { width: 14px; height: 14px; }
.badge-draft { background: #eef1f6; color: #4a5270; }
.badge-review { background: var(--sr-surface-violet); color: #6a2bb8; }
.badge-changes { background: var(--sr-warning-bg); color: var(--sr-warning); }
.badge-approved, .badge-published { background: var(--sr-success-bg); color: var(--sr-success); }
.badge-scheduled { background: var(--sr-info-bg); color: var(--sr-link); }
.badge-publishing { background: var(--sr-surface-blue); color: #0b6aa8; }
.badge-partial { background: var(--sr-warning-bg); color: var(--sr-warning); }
.badge-failed { background: var(--sr-error-bg); color: var(--sr-error); }

/* Platform-Punkte */
.pf { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; flex: none; }
.pf svg { width: 15px; height: 15px; }
.pf-sm { width: 22px; height: 22px; } .pf-sm svg { width: 12px; height: 12px; }
.pf-lg { width: 44px; height: 44px; } .pf-lg svg { width: 22px; height: 22px; }
.pf-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.pf-facebook { background: #1877f2; }
.pf-tiktok { background: #111; }
.pf-linkedin { background: #0a66c2; }
.pf-youtube { background: #ff0000; }
.pf-pinterest { background: #e60023; }
.pf-threads { background: #000; }
.pf-telegram { background: linear-gradient(160deg, #37bbfe, #1d93d2); }
.pf-whatsapp { background: linear-gradient(160deg, #5ae67f, #1fb855); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .sr-brand-text { background: none; color: CanvasText; }
  .btn-primary { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
}

/* ── Motion-Basis (v2) ── */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform 260ms var(--sr-ease), box-shadow 260ms var(--sr-ease), background 200ms, border-color 200ms, color 200ms; }
.btn svg { transition: transform 260ms var(--sr-ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(4px); }
.btn-primary { background-size: 200% 100%; background-image: linear-gradient(100deg, #0a8cf5 0%, #3f63f6 25%, #8a3cf5 50%, #b43ff2 62%, #3f63f6 85%, #0a8cf5 100%); background-position: 0% 0; transition: background-position 700ms var(--sr-ease), transform 260ms var(--sr-ease), box-shadow 260ms var(--sr-ease); }
.btn-primary:hover { background-position: 60% 0; }
.btn-primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 35%) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform 900ms var(--sr-ease); }
.btn:active { transform: scale(.97); }
.sr-brand-text { background-size: 200% auto; animation: sr-grad 7s ease-in-out infinite alternate; }
@keyframes sr-grad { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Scroll-Reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--sr-ease), transform 900ms var(--sr-ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.rv-l { transform: translateX(-32px); } .rv.rv-r { transform: translateX(32px); } .rv.rv-s { transform: scale(.94); }
.rv.in { opacity: 1; transform: none; }
.ripple { position: absolute; border-radius: 50%; background: rgb(255 255 255 / 45%); transform: scale(0); animation: sr-ripple 600ms var(--sr-ease) forwards; pointer-events: none; }
@keyframes sr-ripple { to { transform: scale(4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .sr-brand-text { animation: none; } }
