.rpro3-page {
  max-width: 760px;
}

.rpro3-subtitle {
  color: var(--color-muted, #666);
  margin-bottom: 0.75rem;
}

.rpro3-intro {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.rpro3-card {
  border: 1px solid var(--color-border, #ddd);
  border-radius: 8px;
  background: var(--color-surface, #fff);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.rpro3-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.rpro3-card h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.rpro3-field {
  margin-bottom: 1rem;
}

.rpro3-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.rpro3-field input[type='file'] {
  display: block;
  width: 100%;
  max-width: 100%;
}

.rpro3-field small {
  display: block;
  color: var(--color-muted, #666);
  margin-top: 0.25rem;
}

.rpro3-btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--color-border, #ccc);
  border-radius: 6px;
  background: var(--color-surface, #fff);
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

.rpro3-btn:hover:not(:disabled) {
  background: var(--color-hover, #f5f5f5);
}

.rpro3-btn-primary {
  background: var(--color-primary, #2563eb);
  border-color: var(--color-primary, #2563eb);
  color: #fff;
}

.rpro3-btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dark, #1d4ed8);
}

.rpro3-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rpro3-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.rpro3-error {
  background: var(--color-danger-bg, #fef2f2);
  border-left: 3px solid var(--color-danger, #dc2626);
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 1.25rem;
}

.rpro3-warning {
  background: var(--color-warning-bg, #fffbeb);
  border-left: 3px solid var(--color-warning, #f59e0b);
  padding: 0.6rem 0.9rem;
  border-radius: 0 4px 4px 0;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.rpro3-hint {
  background: var(--color-info-bg, #eff6ff);
  border-left: 3px solid var(--color-info, #3b82f6);
  padding: 0.5rem 0.75rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

.rpro3-photos-note {
  color: var(--color-muted, #666);
  font-size: 0.93rem;
}

/* Zählungen als Kachel-Grid */
.rpro3-counts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 0.5rem;
}

.rpro3-count {
  border: 1px solid var(--color-border, #eee);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  background: var(--color-hover, #fafafa);
}

.rpro3-count dt {
  font-size: 0.85rem;
  color: var(--color-muted, #666);
}

.rpro3-count dd {
  margin: 0.2rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.rpro3-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--color-hover, #f1f5f9);
  font-size: 0.92rem;
}

.rpro3-badge-new {
  background: var(--color-info-bg, #eff6ff);
  color: var(--color-info, #1d4ed8);
  font-weight: 600;
}

.rpro3-details {
  margin-top: 1rem;
  border: 1px solid var(--color-border, #eee);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.rpro3-details summary {
  cursor: pointer;
  font-weight: 600;
}

.rpro3-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.rpro3-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

.rpro3-table th,
.rpro3-table td {
  border: 1px solid var(--color-border, #eee);
  padding: 0.35rem 0.55rem;
  text-align: left;
  white-space: nowrap;
}

.rpro3-table th {
  background: var(--color-hover, #f5f5f5);
}

.rpro3-ambiguous {
  margin: 0.75rem 0 0 1rem;
  line-height: 1.5;
}

.rpro3-ambiguous > li {
  margin-bottom: 0.6rem;
}

.rpro3-ambiguous ul {
  margin: 0.2rem 0 0 1rem;
  font-size: 0.92rem;
  color: var(--color-muted, #555);
}

.rpro3-star {
  color: var(--color-primary, #2563eb);
}

.rpro3-success {
  border-color: var(--color-success, #16a34a);
}

.rpro3-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

.rpro3-result-list li {
  background: var(--color-hover, #f6f6f6);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

/* Umfang-Karte: was wird (nicht) importiert. */
.rpro3-scope-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.rpro3-scope-cols ul {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
}
.rpro3-scope-cols li {
  margin: 0.15rem 0;
}
@media (max-width: 640px) {
  .rpro3-scope-cols { grid-template-columns: 1fr; }
}
