/*
 * HTML sitemap (page-sitemap.php). Plain CSS, loaded only on the Sitemap
 * template, so it needs no Tailwind build. Colours/gradient follow the theme
 * tokens (bg-text-grad, white/30 dividers).
 */

.tk-sitemap {
  --tk-grad: linear-gradient(91.51deg, #F992BD -1.67%, #92D4F9 100%);
  --tk-line: rgba(255, 255, 255, 0.3);
  --tk-line-soft: rgba(255, 255, 255, 0.12);
  --tk-muted: rgba(255, 255, 255, 0.6);
  color: #fff;
  font-weight: 300;
}

.tk-sitemap a {
  color: #fff;
  text-decoration: none;
}

/* Jump navigation */
.tk-sitemap__jump ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tk-sitemap__jump a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--tk-line);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.2;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tk-sitemap__jump a:hover,
.tk-sitemap__jump a:focus-visible {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.tk-sitemap__jump-count {
  color: var(--tk-muted);
  font-size: 14px;
}

/* Sections */
.tk-sitemap__section {
  margin-top: 60px;
  scroll-margin-top: 140px;
}

@media (min-width: 1024px) {
  .tk-sitemap__section {
    margin-top: 100px;
  }
}

.tk-sitemap__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--tk-line);
}

.tk-sitemap__section-title {
  display: inline-block;
  margin: 0;
  padding: 0;
  background-image: var(--tk-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tk-sitemap .tk-sitemap__section-title a {
  color: transparent;
}

.tk-sitemap__section-title a:hover,
.tk-sitemap__section-title a:focus-visible {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}

.tk-sitemap__count {
  color: var(--tk-muted);
  font-size: 16px;
}

/* Groups (masonry-like columns, cards keep together) */
.tk-sitemap__groups {
  column-gap: 20px;
}

@media (min-width: 768px) {
  .tk-sitemap__groups {
    columns: 2;
  }
}

@media (min-width: 1280px) {
  .tk-sitemap__groups {
    columns: 3;
  }
}

.tk-sitemap__group {
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 25px 30px;
  border: 1px solid var(--tk-line-soft);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.03);
}

.tk-sitemap__group-title {
  margin: 0 0 10px;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--tk-line-soft);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
}

.tk-sitemap__group-title a {
  background-image: var(--tk-grad);
  -webkit-background-clip: text;
  background-clip: text;
}

.tk-sitemap__group-title a:hover,
.tk-sitemap__group-title a:focus-visible {
  color: transparent;
}

.tk-sitemap__groups--n1 {
  columns: 1;
}

@media (min-width: 768px) {
  .tk-sitemap__groups--n2 {
    columns: 2;
  }
}

/* Full-width card (e.g. "Allgemein", or a section without sub-groups): list flows in columns */
.tk-sitemap__groups--single {
  columns: 1;
}

@media (min-width: 768px) {
  .tk-sitemap__groups--single .tk-sitemap__list {
    columns: 2;
    column-gap: 40px;
  }
}

@media (min-width: 1280px) {
  .tk-sitemap__groups--single .tk-sitemap__list {
    columns: 3;
  }
}

.tk-sitemap__groups--single .tk-sitemap__item {
  break-inside: avoid;
}

/* Lists */
.tk-sitemap__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tk-sitemap__item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tk-sitemap__item:last-child {
  border-bottom: 0;
}

.tk-sitemap__link {
  font-size: 16px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

@media (min-width: 1280px) {
  .tk-sitemap__link {
    font-size: 17px;
  }
}

.tk-sitemap__link:hover,
.tk-sitemap__link:focus-visible {
  color: #92D4F9;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tk-sitemap__date {
  display: block;
  margin-top: 2px;
  color: var(--tk-muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Sub-pages */
.tk-sitemap__list--nested {
  margin: 8px 0 0 2px;
  padding-left: 16px;
  border-left: 1px solid var(--tk-line-soft);
}

.tk-sitemap__list--nested .tk-sitemap__item {
  padding: 5px 0;
  border-bottom: 0;
}

.tk-sitemap__list--nested .tk-sitemap__link {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

/* XML hint */
.tk-sitemap__xml {
  margin-top: 80px;
  color: var(--tk-muted);
  font-size: 15px;
  text-align: center;
}

.tk-sitemap__xml a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
