/* Übersichtsseiten (Community, Administration, Optionen) */

/* Die Inhaltszelle ist eine Tabelle. Ohne fixed layout drückt das Kartenraster
   die Tabelle über den sichtbaren Bereich hinaus und der Text wird abgeschnitten. */
table:has(> tbody > tr > td.body_mc .cc-hub) {
  width: 100%;
  table-layout: fixed;
}

.cc-hub {
  max-width: min(920px, 100%);
  min-width: 0;
  margin: 4px auto 8px;
  text-align: left;
}

.cc-hub-head {
  margin: 0 0 18px;
}

.cc-hub-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.cc-hub-head h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--text);
}

.cc-hub-lead {
  margin: 0;
  max-width: 42em;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.cc-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.cc-hub-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 148px;
  padding: 16px 40px 16px 16px;
  background:
    linear-gradient(165deg, rgba(62, 207, 255, 0.09), transparent 48%),
    var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition:
    border-color var(--ease),
    transform var(--ease),
    box-shadow var(--ease),
    background-color var(--ease);
}

.cc-hub-card::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  opacity: 0.65;
  transition: transform var(--ease), opacity var(--ease);
}

.cc-hub-card:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 0 0 3px var(--accent-glow);
}

.cc-hub-card:hover::after {
  opacity: 1;
  transform: translate(2px, 2px) rotate(-45deg);
}

.cc-hub-card:hover .cc-hub-title {
  color: var(--text);
}

.cc-hub-card:hover .cc-hub-text {
  color: var(--muted);
}

.cc-hub-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cc-hub-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  background: rgba(62, 207, 255, 0.12);
  color: var(--accent);
}

.cc-hub-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cc-hub-title {
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text);
}

.cc-hub-text {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}

.cc-hub-note {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--inset);
  color: var(--muted);
}

.cc-hub-note--error {
  border-style: solid;
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.1);
  color: var(--text);
  font-weight: 650;
}

.cc-hub-back {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  .cc-hub-card:hover {
    transform: none;
  }

  .cc-hub-card:hover::after {
    transform: rotate(-45deg);
  }
}
