/* Mailtory-Branding fuer Forgejo -- ersetzt Forgejos Standard-Orange durch
   das Indigo/Violett/Pink-Schema von mailtory-homepage/fav/favicon.svg */

:root {
  --color-primary: #6366f1;
  --color-primary-contrast: #ffffff;
  --color-primary-dark-1: #6366f1;
  --color-primary-dark-2: #4f46e5;
  --color-primary-dark-3: #4338ca;
  --color-primary-dark-4: #3730a3;
  --color-primary-dark-5: #3730a3;
  --color-primary-dark-6: #312e81;
  --color-primary-dark-7: #312e81;
  --color-primary-light-1: #818cf8;
  --color-primary-light-2: #a5b4fc;
  --color-primary-light-3: #c7d2fe;
  --color-primary-light-4: #e0e7ff;
  --color-primary-light-5: #eef2ff;
  --color-primary-light-6: #f5f3ff;
  --color-primary-light-7: #faf5ff;
  --color-primary-alpha-10: #6366f119;
  --color-primary-alpha-20: #6366f133;
  --color-primary-alpha-30: #6366f14b;
  --color-primary-alpha-40: #6366f166;
  --color-primary-alpha-50: #6366f180;
  --color-primary-alpha-60: #6366f199;
  --color-primary-alpha-70: #6366f1b3;
  --color-primary-alpha-80: #6366f1cc;
  --color-primary-alpha-90: #6366f1e1;
  --color-primary-hover: var(--color-primary-dark-2);
  --color-primary-active: var(--color-primary-dark-4);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #a78bfa;
    --color-primary-contrast: #000000;
    --color-primary-dark-1: #a5b4fc;
    --color-primary-dark-2: #a5b4fc;
    --color-primary-dark-3: #c7d2fe;
    --color-primary-dark-4: #c7d2fe;
    --color-primary-dark-5: #e0e7ff;
    --color-primary-dark-6: #e0e7ff;
    --color-primary-dark-7: #eef2ff;
    --color-primary-light-1: #6366f1;
    --color-primary-light-2: #4f46e5;
    --color-primary-light-3: #4338ca;
    --color-primary-light-4: #3730a3;
    --color-primary-light-5: #3730a3;
    --color-primary-light-6: #312e81;
    --color-primary-light-7: #312e81;
    --color-primary-alpha-10: #a78bfa19;
    --color-primary-alpha-20: #a78bfa33;
    --color-primary-alpha-30: #a78bfa4b;
    --color-primary-alpha-40: #a78bfa66;
    --color-primary-alpha-50: #a78bfa80;
    --color-primary-alpha-60: #a78bfa99;
    --color-primary-alpha-70: #a78bfab3;
    --color-primary-alpha-80: #a78bfacc;
    --color-primary-alpha-90: #a78bfae1;
    --color-primary-hover: var(--color-primary-light-1);
    --color-primary-active: var(--color-primary-light-2);
  }
}

/* Pink-Akzent im Markenverlauf (Indigo -> Violett -> Pink) fuer den
   Navbar-Logo-Bereich, passend zum favicon.svg-Envelope-Grid */
#navbar {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899) 1;
}
.ui.button.primary,
.ui.primary.button,
.btn-octicon.primary {
  background-image: linear-gradient(135deg, #6366f1, #ec4899) !important;
  border: none !important;
}

/* ── Startseite "Maschinenraum" (11.11.2026) ───────────────────────────── */
.mt-home { --mt-bg:#0b1020; --mt-panel:#111833; --mt-line:#232c52; --mt-txt:#d7defa; --mt-dim:#8b97c7; --mt-grn:#34d399; --mt-pnk:#ec4899; --mt-ind:#818cf8; }
.mt-home .mt-wrap { max-width: 980px; margin: 0 auto; padding: 2.2rem 1rem 3rem; }
.mt-home .mt-term { background: var(--mt-bg); border: 1px solid var(--mt-line); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(99,102,241,.18); }
.mt-home .mt-term-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; background: #0e1530; border-bottom: 1px solid var(--mt-line); }
.mt-home .mt-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mt-home .mt-r { background: #ef4444; } .mt-home .mt-y { background: #f59e0b; } .mt-home .mt-g { background: #22c55e; }
.mt-home .mt-term-title { margin-left: .6rem; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--mt-dim); }
.mt-home .mt-term-body { padding: 1.3rem 1.4rem 1.5rem; font: 15px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--mt-txt); min-height: 11.5rem; }
.mt-home .mt-term-body p { margin: 0; white-space: pre-wrap; }
.mt-home .mt-pr { color: var(--mt-grn); margin-right: .5ch; }
.mt-home .mt-out { color: var(--mt-ind); margin-bottom: .6rem; }
.mt-home .mt-l5 { font-size: 1.05em; }
.mt-home .mt-cur { display: inline-block; width: .6ch; height: 1.1em; margin-left: .3ch; vertical-align: text-bottom; background: var(--mt-pnk); animation: mt-blink 1s steps(2, start) infinite; }
.mt-home .mt-l { opacity: 0; animation: mt-show .01s forwards; }
.mt-home .mt-l1 { animation-delay: .2s; } .mt-home .mt-l2 { animation-delay: .9s; } .mt-home .mt-l3 { animation-delay: 1.6s; }
.mt-home .mt-l4 { animation-delay: 2.2s; } .mt-home .mt-l5 { animation-delay: 2.9s; }
@keyframes mt-show { to { opacity: 1; } }
@keyframes mt-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .mt-home .mt-l { opacity: 1; animation: none; } .mt-home .mt-cur { animation: none; } }
.mt-home .mt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.mt-home .mt-card { background: var(--mt-panel); border: 1px solid var(--mt-line); border-radius: 10px; padding: 1rem 1.1rem; color: var(--mt-txt); transition: border-color .15s, transform .15s; }
.mt-home .mt-card:hover { border-color: var(--mt-ind); transform: translateY(-2px); }
.mt-home .mt-tag { font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--mt-pnk); margin-bottom: .5rem; }
.mt-home .mt-card h3 { margin: 0 0 .35rem; font-size: 1.02rem; color: #fff; }
.mt-home .mt-card p { margin: 0; color: var(--mt-dim); font-size: .88rem; line-height: 1.5; }
.mt-home .mt-pipe { background: var(--mt-bg); border: 1px dashed var(--mt-line); border-radius: 10px; padding: 1rem 1.2rem; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--mt-txt); overflow-x: auto; margin: 0 0 1.6rem; }
.mt-home .mt-c { color: var(--mt-dim); } .mt-home .mt-a { color: var(--mt-pnk); }
.mt-home .mt-cta { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.mt-home .mt-foot { text-align: center; margin: 1.4rem 0 0; font-size: .8rem; color: var(--mt-dim); }
@media (max-width: 600px) { .mt-home .mt-term-body { font-size: 13.5px; padding: 1rem; } }
.mt-home .ui.primary.button { color: #fff !important; }
.mt-home .mt-pipe { white-space: pre-wrap; }
/* Gaeste sehen den Menuepunkt "Explore" nicht (die Seiten verlangen ohnehin die Anmeldung) */
#navbar:not(:has(.user-menu)) a[href$="/explore/repos"], #navbar:not(:has(.user-menu)) a[href$="/explore/users"], #navbar:not(:has(.user-menu)) a[href$="/explore/organizations"] { display: none !important; }
/* Breites Logo (Papierflieger in Klammern): Hoehe feststehend, Breite folgt */
#navbar .navbar-brand img, #navbar a.item img[src$="logo.svg"] { width: auto !important; height: 30px !important; }
