/* ============================================================
   Leuschner.DEV — Design System
   ============================================================ */

:root {
  --bg:           #09090b;
  --bg-card:      #111113;
  --bg-card-2:    #18181b;
  --bg-input:     #0f0f12;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(139, 92, 246, 0.5);
  --text:         #fafafa;
  --text-2:       #a1a1aa;
  --text-3:       #52525b;
  --accent:       #8b5cf6;
  --accent-dim:   rgba(139, 92, 246, 0.12);
  --accent-glow:  rgba(139, 92, 246, 0.25);
  --success:      #22c55e;
  --success-dim:  rgba(34, 197, 94, 0.12);
  --error:        #ef4444;
  --error-dim:    rgba(239, 68, 68, 0.12);
  --warning:      #f59e0b;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-xs:    5px;
  --shadow:       0 8px 32px rgba(0, 0, 0, 0.4);
  --transition:   0.18s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% -10%, rgba(139, 92, 246, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
select, input, textarea { font: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.site-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 100px 0 72px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: var(--accent-dim);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #fafafa 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .accent-text {
  background: linear-gradient(135deg, #a78bfa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ============================================================
   OVERVIEW INSIGHTS
   ============================================================ */
.overview-insights-section {
  padding: 0 0 56px;
  position: relative;
  z-index: 1;
}

.overview-shell {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(129, 140, 248, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.overview-copy {
  max-width: 640px;
  margin-bottom: 24px;
}

.overview-eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.overview-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.overview-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.overview-card,
.account-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 9, 11, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.overview-card {
  padding: 20px;
}

.overview-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 10px;
}

.overview-value {
  display: block;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin-bottom: 8px;
}

.overview-value--small {
  font-size: clamp(20px, 2.4vw, 28px);
}

.overview-subtle {
  display: block;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.account-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-content {
  min-width: 0;
  flex: 1;
}

.account-content h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.account-content h3 span {
  color: var(--text-2);
  font-size: 16px;
  font-weight: 500;
}

.account-content p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  background: var(--accent-dim);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.account-link:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 6px;
}

/* ============================================================
   APP GRID
   ============================================================ */
.apps-section {
  padding: 0 0 100px;
  position: relative;
  z-index: 1;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* ============================================================
   APP CARD
   ============================================================ */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.card-accent-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--app-color, #8b5cf6), transparent 80%);
  flex-shrink: 0;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.app-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--app-color, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--app-color, #8b5cf6), color-mix(in srgb, var(--app-color, #8b5cf6) 60%, #000));
}

.app-meta {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-category-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
}

.app-description {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.app-icon-box img,
.app-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-tag {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.card-footer {
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.platform-icon {
  color: var(--text-3);
  display: flex;
  align-items: center;
}

.platform-icon svg {
  width: 16px;
  height: 16px;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-dim);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-card:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.35);
}

.btn-card svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.app-card:hover .btn-card svg {
  transform: translateX(2px);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-3);
  grid-column: 1 / -1;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 0.4;
}

/* ============================================================
   APP DETAIL PAGE
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
  padding: 8px 0;
  margin-bottom: 32px;
  transition: color var(--transition);
}

.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }

.app-hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.app-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  overflow: hidden;
  color: white;
  flex-shrink: 0;
}

.app-hero-info {
  flex: 1;
  min-width: 0;
}

.app-hero-info h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.app-hero-info .app-tagline {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.app-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.version-badge {
  font-size: 12px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

.status-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.status-badge.active {
  background: var(--success-dim);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.development {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.app-description-full {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Platform Buttons */
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  transition: all var(--transition);
}

.platform-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-card-2);
}

.platform-btn svg { width: 18px; height: 18px; }

/* ============================================================
   REPOSITORY INSIGHTS
   ============================================================ */
.repo-insights-section {
  margin-bottom: 40px;
  padding: 24px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.repo-insights-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.repo-eyebrow {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.repo-insights-header h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.repo-branch-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}

.repo-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.repo-stat-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 0;
}

.repo-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.repo-stat-value {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 8px;
}

.repo-stat-value--small {
  font-size: clamp(20px, 2.2vw, 26px);
}

.repo-stat-subtle {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ============================================================
   TYPE SWITCHER
   ============================================================ */
.type-switcher {
  display: inline-flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.type-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
}

.type-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.type-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-card-2);
}

.type-btn.active {
  background: var(--accent-dim);
  border-color: rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}

/* ============================================================
   BUG REPORT FORM
   ============================================================ */
.bug-section-header {
  margin-bottom: 28px;
}

.bug-section-header h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bug-section-header p {
  font-size: 14px;
  color: var(--text-2);
}

.bug-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 7px;
}

.form-label .required {
  color: var(--error);
  margin-left: 3px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-3);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: #18181b;
  color: var(--text);
}

/* Submit Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.btn-submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   FEEDBACK MESSAGES
   ============================================================ */
.form-feedback {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
  gap: 10px;
}

.form-feedback.show { display: flex; }

.form-feedback svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.form-feedback.success {
  background: var(--success-dim);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.form-feedback.error {
  background: var(--error-dim);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.form-feedback .feedback-text { flex: 1; }
.form-feedback .feedback-title { font-weight: 600; margin-bottom: 2px; }
.form-feedback .feedback-body { opacity: 0.85; font-size: 13px; }

/* ============================================================
   CHANGELOG
   ============================================================ */
.changelog-header {
  margin-bottom: 20px;
}

.changelog-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.changelog-header h2 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.changelog-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

/* Version-Überschrift */
.changelog-body .cl-version {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 24px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.changelog-body .cl-version:first-child {
  margin-top: 0;
}

/* Unterabschnitt */
.changelog-body .cl-h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 16px 0 8px;
}

/* Liste */
.changelog-body .cl-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.changelog-body .cl-list li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.changelog-body .cl-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

.changelog-body .cl-list li code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 3px;
  color: #c4b5fd;
}

/* Absatz */
.changelog-body .cl-p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .changelog-body { padding: 18px; }
}

/* ============================================================
   SCREENSHOT UPLOAD
   ============================================================ */
.upload-area {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  min-height: 100px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
}

.upload-area:hover,
.upload-area:focus,
.upload-area.dragover {
  border-color: var(--border-focus);
  background: rgba(139, 92, 246, 0.05);
  outline: none;
}

.upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px;
  color: var(--text-3);
  font-size: 14px;
  pointer-events: none;
  user-select: none;
}

.upload-placeholder svg {
  width: 28px;
  height: 28px;
}

.upload-placeholder.hidden { display: none; }

.upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  pointer-events: none;
}

.upload-previews:empty { display: none; }

.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  pointer-events: all;
  border: none;
  z-index: 3;
  transition: background var(--transition);
}

.preview-remove:hover { background: var(--error); }

.upload-hint {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
  min-height: 16px;
}

.upload-hint.error { color: #fca5a5; }

/* Honeypot: off-screen statt display:none (schwerer für Bots zu erkennen) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-2);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-2);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

/* ============================================================
   PAGE TRANSITION FADE
   ============================================================ */
.page-fade {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero { padding: 64px 0 48px; }
  .apps-grid { grid-template-columns: 1fr; }

  .overview-shell {
    padding: 22px;
    border-radius: 24px;
  }

  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .account-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .app-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .repo-insights-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .repo-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app-hero-icon { width: 64px; height: 64px; font-size: 28px; }
  .app-hero-info h1 { font-size: 22px; }

  .form-row { grid-template-columns: 1fr; }
  .bug-form { padding: 20px; }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container, .container--narrow { padding: 0 16px; }
  .card-body { padding: 18px; }
  .card-footer { padding: 12px 18px; }
  .overview-shell { padding: 18px; }
  .overview-grid { grid-template-columns: 1fr; }
  .account-card { padding: 18px; }
  .repo-insights-section { padding: 20px; }
  .repo-stats-grid { grid-template-columns: 1fr; }
}

/* ---- Issues: kombinierte Karte ---- */
.issues-bar {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin: 10px 0 8px;
  background: rgba(255, 255, 255, 0.06);
  gap: 1px;
}

.issues-bar-open {
  background: #f59e0b;
  border-radius: 2px 0 0 2px;
  min-width: 3px;
}

.issues-bar-closed {
  background: var(--success);
  border-radius: 0 2px 2px 0;
  min-width: 3px;
}

.issues-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.issues-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.issues-dot--open   { background: #f59e0b; }
.issues-dot--closed { background: var(--success); }

/* ============================================================
   ISSUES & FEATURES SECTION
   ============================================================ */

.issues-section {
  margin-top: 0;
}

.issues-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.issues-section-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
}

.issues-section-header h2 svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.issues-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.issue-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.issue-filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.issue-filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.issues-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.issue-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color var(--transition);
}

.issue-item:hover {
  border-color: var(--border-hover);
}

.issue-item[hidden] {
  display: none;
}

.issue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.issue-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.issue-badge--bug {
  background: var(--error-dim);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.issue-badge--feature {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.issue-badge--open {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.issue-badge--closed {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.issue-badge--severity {
  background: var(--bg-card-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.issue-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.issue-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 8px;
}

.issue-date {
  font-size: 12px;
  color: var(--text-3);
  display: block;
}

.issues-empty-hint {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  padding: 24px 0;
}

@media (max-width: 600px) {
  .issues-section-header {
    flex-direction: column;
  }
}

/* ============================================================
   DUPLIKAT-HINWEIS (Titel-Input)
   ============================================================ */

.title-duplicates {
  margin-top: 8px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
  animation: fadeSlideIn 0.18s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

.dup-header svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dup-list {
  list-style: none;
  padding: 6px 0;
}

.dup-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  flex-wrap: wrap;
}

.dup-item + .dup-item {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.dup-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.dup-title {
  color: var(--text-2);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dup-state {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}

.dup-state--open {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.dup-state--closed {
  background: var(--success-dim);
  color: var(--success);
}

/* ============================================================
   MELDUNGEN DEAKTIVIERT
   ============================================================ */

.reports-disabled {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: 14px;
}

.reports-disabled svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================================
   DATENSCHUTZ-HINWEIS (Formular)
   ============================================================ */

.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.privacy-notice svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-notice p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

.privacy-notice strong {
  color: var(--text);
  font-weight: 600;
}

.dup-item--clickable {
  cursor: pointer;
}

.dup-item--clickable:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dup-item--clickable:hover .dup-title {
  color: var(--text);
}

.dup-open-hint {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   ISSUE-VORSCHAU MODAL
   ============================================================ */

.modal-open {
  overflow: hidden;
}

.issue-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.issue-modal[hidden] {
  display: none;
}

.issue-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: backdropIn 0.18s ease;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.issue-modal-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.issue-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.issue-modal-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.issue-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.issue-modal-close:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-card-2);
}

.issue-modal-close svg {
  width: 14px;
  height: 14px;
}

.issue-modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  padding: 16px 20px 0;
  flex-shrink: 0;
}

.issue-modal-body {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  padding: 12px 20px 20px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}
}
