/* Finis Creative World - pastel rainbow, chibi, mobile friendly */
:root {
  --ink: #3b2266;
  --ink-soft: #6c5a8e;
  --purple: #8b5cf0;
  --pink: #ff8fc4;
  --peach: #ffc75f;
  --mint: #7be0a6;
  --sky: #8fd8ff;
  --lilac: #c9a8ff;
  --card: #ffffff;
  --line: #eadcff;
  --bg1: #fff3fa;
  --bg2: #eef6ff;
  --radius: 26px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(170deg, var(--bg1) 0%, #f6efff 45%, var(--bg2) 100%) fixed;
  font: 17px/1.6 ui-rounded, "Nunito", "Segoe UI Rounded", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: var(--purple); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #e0569b; }
img { max-width: 100%; }

/* floating clouds */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.cloud { position: absolute; display: block; width: 160px; height: 52px; background: #fff; border-radius: 60px; opacity: .75;
  box-shadow: 0 6px 18px rgba(139, 92, 240, .08); animation: drift 60s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 70px; height: 70px; top: -34px; left: 24px; }
.cloud::after { width: 54px; height: 54px; top: -24px; left: 80px; }
.c1 { top: 16%; left: -10%; }
.c2 { top: 52%; left: -20%; transform: scale(.7); animation-duration: 85s; animation-delay: -30s; }
.c3 { top: 80%; left: -15%; transform: scale(1.2); animation-duration: 110s; animation-delay: -70s; }
@keyframes drift { to { left: 110%; } }
@media (prefers-reduced-motion: reduce) { .cloud { animation: none; } }

/* header */
.top { max-width: 1040px; margin: 0 auto; padding: 14px 16px 8px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1.05; }
.brand img { filter: drop-shadow(0 4px 8px rgba(139, 92, 240, .3)); transition: transform .2s; }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand span { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.brand b { display: block; font-size: 22px; color: var(--ink); letter-spacing: .3px; }
nav { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; justify-content: center; }
nav a { text-decoration: none; color: var(--ink); padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7);
  border: 2px solid var(--line); font-size: 16px; }
nav a:hover { background: #fff; border-color: var(--lilac); color: var(--ink); }
nav a.active { background: linear-gradient(90deg, #ffd3ea, #e3d4ff, #cdeeff); border-color: var(--lilac); }
.who { display: flex; align-items: center; gap: 8px; }
.who .me { text-decoration: none; color: var(--ink); }
.inline { display: inline; margin: 0; }
.rainbow { height: 8px; max-width: 1040px; margin: 0 auto 8px; border-radius: 8px;
  background: linear-gradient(90deg, #ff8fa8, #ffb36b, #ffe27a, #8fe3a6, #8fd8ff, #b59bff, #ff9fd6); opacity: .85; }

main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 24px; }
footer { text-align: center; color: var(--ink-soft); font-size: 15px; padding: 18px 16px 30px; }

/* cards */
.card { position: relative; background: var(--card); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin: 18px 0; box-shadow: 0 10px 0 rgba(201, 168, 255, .25), 0 18px 40px rgba(139, 92, 240, .08); }
.card.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.card.preview { border-style: dashed; background: #fffdf5; }
h1, h2, h3, h4 { line-height: 1.2; margin: .4em 0 .5em; }
h1 { font-size: 32px; color: var(--purple); }
h2 { font-size: 25px; color: #a14fd6; }
h3 { font-size: 20px; }
.md h2 { font-size: 24px; }
.md h3 { color: #d0569b; }
.md blockquote { margin: 1em 0; padding: 10px 16px; background: #f7f1ff; border-left: 6px solid var(--lilac); border-radius: 12px; }
.md code, pre { background: #f4efff; border-radius: 8px; padding: 1px 6px; font-size: 15px; }
pre { padding: 12px; overflow-x: auto; white-space: pre-wrap; }
.md img { border-radius: 18px; display: block; margin: 12px auto; }
.md hr, hr { border: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #ffd3ea, #e3d4ff, #cdeeff); margin: 22px 0; }
.md li { margin: 4px 0; }
.meta { color: var(--ink-soft); font-size: 15px; margin: 0 0 8px; }

/* hero */
.hero { display: flex; gap: 24px; align-items: center;
  background: linear-gradient(135deg, #fff 0%, #fff4fb 50%, #f0f8ff 100%); }
.hero-logo { flex: 0 0 auto; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(139, 92, 240, .3)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; border: 4px solid #fff;
  box-shadow: 0 8px 22px rgba(139, 92, 240, .18); }
.shots img:nth-child(1) { transform: rotate(-1.5deg); }
.shots img:nth-child(3) { transform: rotate(1.5deg); }

/* news */
.news { padding: 14px 0; border-top: 3px dotted var(--line); }
.news:first-of-type { border-top: 0; }
.news h3 { margin: 0 0 2px; }
.news h3 a { color: var(--ink); text-decoration: none; }
.news h3 a:hover { color: var(--purple); }

/* buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 800; text-decoration: none; color: #fff;
  padding: 10px 22px; border-radius: 999px; background: linear-gradient(90deg, #ff8fc4, #b38bff 55%, #6fc8ff);
  box-shadow: 0 5px 0 #a77ee8; transition: transform .1s, box-shadow .1s; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 #a77ee8; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #a77ee8; }
.btn.big { font-size: 19px; padding: 12px 28px; }
.btn.small { font-size: 15px; padding: 6px 14px; box-shadow: 0 3px 0 #a77ee8; }
.btn.ghost { background: #fff; color: var(--purple); border: 3px solid var(--lilac); box-shadow: 0 4px 0 var(--line); }
.btn.ghost:hover { color: #e0569b; }
.edit { position: absolute; top: 14px; right: 18px; font-size: 15px; background: #fff7d6; padding: 4px 12px; border-radius: 999px;
  text-decoration: none; border: 2px solid #ffe08a; z-index: 1; }
.badge { background: linear-gradient(90deg, #ffd3ea, #e3d4ff); padding: 3px 12px; border-radius: 999px; font-weight: 800; }

/* downloads */
.dls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 6px; }
.dl { display: block; text-decoration: none; color: var(--ink); padding: 18px 20px; border-radius: 22px; background: #f7f1ff;
  border: 3px solid var(--line); transition: transform .12s; }
.dl:hover { transform: translateY(-3px); color: var(--ink); border-color: var(--lilac); }
.dl b { display: block; font-size: 20px; margin-bottom: 4px; }
.dl span { font-weight: 400; font-size: 15px; color: var(--ink-soft); }
.dl.rec { background: linear-gradient(135deg, #e8fff1, #eaf6ff); border-color: #9be6bd; position: relative; }
.dl.rec::after { content: "⭐ Empfohlen"; position: absolute; top: -12px; right: 14px; background: var(--peach); color: var(--ink);
  font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }

/* forms */
.form { display: grid; gap: 14px; margin: 12px 0; }
.form label { display: grid; gap: 4px; font-weight: 700; }
.form label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
input[type=text], input[type=email], input[type=password], textarea {
  font: inherit; color: var(--ink); width: 100%; padding: 10px 14px; border-radius: 16px; border: 3px solid var(--line); background: #fdfbff; }
textarea { font-family: ui-monospace, Consolas, monospace; font-size: 15px; line-height: 1.5; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(201, 168, 255, .3); }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form.danger { margin-top: 26px; padding-top: 16px; border-top: 3px dotted #ffc2d6; }
.error { background: #ffe6ee; border: 2px solid #ffb3c9; padding: 8px 14px; border-radius: 14px; }
.ok { background: #e6fff0; border: 2px solid #9be6bd; padding: 8px 14px; border-radius: 14px; }
.help summary { cursor: pointer; font-weight: 700; color: var(--purple); }
.adminlist { list-style: none; padding: 0; }
.adminlist li { padding: 6px 0; border-bottom: 2px dotted var(--line); }

/* mobile */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top { justify-content: space-between; }
  nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  nav a { font-size: 15px; padding: 6px 12px; }
  .card { padding: 18px 16px; border-radius: 22px; }
  .hero { flex-direction: column; text-align: center; }
  .hero .md { text-align: left; }
  .shots { grid-template-columns: 1fr; }
  .shots img { transform: none !important; }
  .dls { grid-template-columns: 1fr; }
  h1 { font-size: 27px; }
  .edit { position: static; display: inline-block; margin-bottom: 8px; }
}
