/* Erfolge – Detailseite (tokenbasiert, Light/Dark kompatibel) */

/* Accessibility helper */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.erfolge-detail{
  display:flex;
  flex-direction:column;
  gap: 22px;
}

.erfolge-toolbar{
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

:root[data-theme="dark"] .erfolge-toolbar{
  box-shadow: 0 14px 36px rgba(0,0,0,.38);
}

.erfolge-pills{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content:center;
  padding: 6px 4px 10px;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
  font-size: .9rem;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.pill:hover{
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--bg-muted) 70%, var(--surface-card));
}

.erfolge-tools{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  padding-top: 12px;
  margin-top: 8px;
}

.search input{
  width: min(420px, 78vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text);
  outline: none;
}

.search input::placeholder{ color: var(--muted); }

.erfolge-columns{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.erfolge-card{
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

:root[data-theme="dark"] .erfolge-card{
  box-shadow: 0 14px 36px rgba(0,0,0,.38);
}

.erfolge-card-head{
  padding: 16px 16px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  text-align:center;
}

.erfolge-card-head h2{
  margin:0;
  position:relative;
  display:inline-block;
  padding-bottom: 10px;
}

.erfolge-card-head h2::after{
  content:"";
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom:0;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand, var(--text));
  opacity: .9;
}

.erfolge-list{
  padding: 10px 14px 14px;
}

.decade-block{
  scroll-margin-top: 120px;
}

.decade-block h3{
  margin: 16px 0 8px;
  font-size: .95rem;
  color: var(--text);
  opacity: .9;
}

.year-list{
  list-style:none;
  padding:0;
  margin:0;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  overflow:hidden;
}

.year-row{
  display:flex;
  gap: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--surface-card) 88%, var(--bg-muted));
  border-bottom: 1px dashed color-mix(in srgb, var(--border) 65%, transparent);
}

.year-row:last-child{ border-bottom: none; }

.year-row:hover{
  background: color-mix(in srgb, var(--bg-muted) 70%, var(--surface-card));
}

.year{
  width: 56px;
  font-weight: 700;
  color: var(--text);
}

.name{
  color: var(--text);
  opacity: .95;
}

.erfolge-footer{
  display:flex;
  justify-content:center;
  padding: 6px 0 0;
}

.btn-outline.back{
  text-decoration:none;
}

/* Responsive */
@media (max-width: 980px){
  .erfolge-columns{ grid-template-columns: 1fr; }
  .erfolge-toolbar{ padding: 14px 14px; }
  .year{ width: 64px; }
}
