:root {
  --jb-primary: #0b5394;
  --jb-soft: #e8f1fa;
  --jb-border: #d5dde6;
}

[x-cloak] { display: none !important; }

body { background: #f5f7fa; padding-bottom: 5rem; }

.page-header {
  background: var(--jb-primary);
  color: #fff;
  padding: 1.75rem 0 1.5rem;
}
.page-header .deadline {
  background: rgba(255, 255, 255, .15);
  border-radius: .5rem;
  padding: .4rem .8rem;
}

.form-section {
  background: #fff;
  border: 1px solid var(--jb-border);
  border-radius: .75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 1rem;
}
.section-title { font-size: 1.35rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.section-title .num {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--jb-primary); color: #fff; font-size: 1rem;
}
.section-title .badge { font-size: .7rem; }

.project-card {
  border: 1px solid var(--jb-border);
  border-left: 4px solid var(--jb-primary);
  border-radius: .5rem;
  padding: 1.25rem;
  margin-top: 1rem;
  scroll-margin-top: 1rem;
}

.guidelines summary { cursor: pointer; }
.guidelines ul { padding-left: 1.1rem; }

.counter { text-align: right; margin-top: .2rem; }

/* Uploads */
.file-row {
  display: flex; gap: .75rem;
  border: 1px solid var(--jb-border);
  border-radius: .5rem;
  padding: .6rem;
  margin-bottom: .5rem;
  background: #fbfcfd;
}
.file-thumb {
  flex: 0 0 72px; height: 72px;
  border-radius: .35rem; overflow: hidden;
  background: var(--jb-soft);
  display: grid; place-items: center;
  text-decoration: none;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-ext { font-weight: 700; color: var(--jb-primary); font-size: .85rem; }
.file-body { flex: 1; min-width: 0; }
.filepond--root { margin-bottom: 0; font-family: inherit; }
.filepond--panel-root { background: var(--jb-soft); border: 1px dashed #9db8d3; }

/* Inhaltsverzeichnis */
.toc { position: sticky; top: 1rem; }
.toc-item {
  display: flex; align-items: center; gap: .55rem;
  padding: .35rem .5rem; border-radius: .35rem;
  color: inherit; text-decoration: none; font-size: .925rem;
}
.toc-item:hover { background: var(--jb-soft); }
.toc-item.is-hidden { display: none; }
.toc-state {
  width: .8rem; height: .8rem; border-radius: 50%;
  border: 2px solid #adb5bd; flex: 0 0 auto;
}
.toc-state.is-done { background: #198754; border-color: #198754; }
.toc-state.is-partial { background: linear-gradient(90deg, #f0ad4e 50%, transparent 50%); border-color: #f0ad4e; }
.toc-state.is-error { background: #dc3545; border-color: #dc3545; }
.toc-state.is-optional { border-style: dashed; }

/* Aktionsleiste */
.action-bar {
  position: fixed; inset: auto 0 0 0;
  background: #fff;
  border-top: 1px solid var(--jb-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, .05);
  padding: .75rem 0;
  z-index: 10;
}
