@font-face {
  font-family: 'Vollkorn';
  src: url('/assets/vollkorn/Vollkorn-Regular.woff2') format('woff2');
  font-wight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter/InterVariable.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter/InterVariable-Italic.woff2") format("woff2");
}

body {
    font-family: "Inter", sans-serif;
}

html {
  background: url('/img/gras.svg') repeat;
  background-size: 32px 32px;
  color: #111;
}

body {
  max-width: 56rem;
  background-color: #f3f3f3;
  margin: 0 auto;
  font-family: 'Inter';
  font-size: 105%;
  padding: 1rem;
}

h1 a {
  color: #000;
  text-decoration: none;
}

nav ul {
  list-style-type: square;
}

p a, li a, nav a {
  color: #666;
}

nav ul a {
  background-color: #666;
  color: #fff;
  font-family: sans-serif;
  padding: .5rem;
  text-decoration: none;
  border-radius: 3px;
}

nav ul a:hover {
  background-color: #000;
  color: #fff;
}

table tr td {
  border-top: 1px solid #ccc;
  padding: .25em 0;
}

table tbody tr:hover {
  background-color: #e3e3e3;
}

footer {
  margin-top: 1rem;
  border-top: 1px solid #aaa;
  font-size: 85%;
}

.breadcrumb {
  list-style: none;      /* Aufzählungspunkte entfernen */
  display: flex;         /* Einträge nebeneinander */
  flex-wrap: wrap;       /* bei wenig Platz in die nächste Zeile umbrechen */
  gap: 0.25em;            /* Abstand zwischen den Einträgen */
  padding: 0;
  margin: 0 0 1em;
  font-size: 0.9rem;
}

/* Trennzeichen vor jedem Eintrag außer dem ersten */
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.25em;
  color: #888;
}

/* Aktuelle Seite absetzen */
.breadcrumb [aria-current="page"] {
  color: #666;
}

figure.news img {
  width: 100%;
}

figure img {
  max-width: 100%;
}

figcaption {
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
}

dt {
  font-weight: bold;
  margin-bottom: .15em;
}

dd {
  margin-bottom: .5em;
}

main p span.pkmn,
main p span.trainer,
main p span.item,
main p span.bitem {
  font-weight: bold;
  font-style: italic;
}

main p span.pkmn {
  color: #dd4400;
}

main p span.trainer {
  color: #006cb1;
}

main p span.item {
  color: #007700;
}

main p span.bitem {
  color: #5600b4;
}

.tm-table {
  width: 100%;
  border-collapse: collapse;
}

.tm-table th,
.tm-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
}

.tm-table th {
  font-weight: 700;
}


/* ==============================
   MOBILE
   ============================== */

@media (max-width: 600px) {

  .tm-table thead {
    display: none;
  }

  .tm-table,
  .tm-table tbody,
  .tm-table tr,
  .tm-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .tm-table tr {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
  }

  .tm-table td {
    position: relative;
    min-height: 1.5rem;
    padding: 0.3rem 0 0.3rem 5.5rem;
    border: 0;

    /* Nur lange normale Wörter dürfen umbrechen */
    overflow-wrap: break-word;
    word-break: normal;
  }
  
    .tm-table td abbr {
    display: inline-block;
  }

  /*
   * Beschriftung links
   */
  .tm-table td::before {
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 5rem;

    font-weight: 700;
  }

  .tm-table td:nth-child(1)::before {
    content: "TM";
  }

  .tm-table td:nth-child(2)::before {
    content: "Attacke";
  }

  .tm-table td:nth-child(3)::before {
    content: "Fundort";
  }

  .tm-table td:nth-child(4)::before {
    content: "einmalig";
  }

  .tm-table td:nth-child(5)::before {
    content: "Preis";
  }

  /*
   * Preis niemals innerhalb des Textes umbrechen
   */
  .tm-table td:nth-child(5) {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .tm-table td:first-child {
    padding-top: 0.3rem;
  }

  .tm-table td:last-child {
    padding-bottom: 0.3rem;
  }
}