/* ==========================================================================
   1. BASICS & LAYOUT CONTAINER
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  border: 0;
  display: block;
  max-width: 100%;
  height: auto;
}

.tromp-container {
  width: 100%;
  max-width: 232px; /* Entspricht exakt .tabelle_tromp */
  margin: 0 auto;
}

/* ==========================================================================
   2. GRID LAYOUT
   ========================================================================== */
.tromp-grid {
  display: grid;
  grid-template-columns: repeat(2, 116px);
  grid-template-rows: repeat(2, 116px);
  width: 232px;
  height: 232px;
}

.tromp-item {
  display: block;
  width: 116px;
  height: 116px;
  transition: opacity 0.15s ease-in-out;
}

.tromp-item:hover,
.tromp-item:focus-visible {
  opacity: 0.8;
  outline: none;
}

/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */
.back-nav {
  margin-top: 16px;   /* Erzeugt den vertikalen Abstand des ursprünglichen P-Tags */
  padding-left: 10px; /* Ersetzt die beiden geschützten Leerzeichen &nbsp;&nbsp; links */
}

.back-link {
  display: inline-block;
  transition: transform 0.15s ease-in-out;
}

.back-link:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   4. MEDIA QUERY (Optimierung für extrem kleine Displays)
   ========================================================================== */
@media screen and (max-width: 250px) {
  .tromp-container {
    max-width: 116px;
  }
  
  .tromp-grid {
    grid-template-columns: 116px;
    grid-template-rows: repeat(4, 116px);
    height: auto;
  }
  
  .back-nav {
    text-align: center;
    padding-left: 0;
  }
}
