:root {
  /* Farben */
  --bg: #ffffff;
  --card: #f7f9fb;
  --line: #d1d5db;
  --accent: #0b74da;
  --text: #111827;
  --muted: #6b7280;
}

.tree-network {
  /* Box-Größe */
  max-width: 1000px;

  /* Box-Modell */
  margin: 3rem auto;

  /* Typografie */
  color: var(--text);

  /* Optik */
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tree-network h2 {
  /* Box-Modell */
  margin-bottom: 0.5rem;

  /* Typografie */
  color: var(--accent);
  text-align: center;
}

.tree-network p {
  /* Box-Modell */
  margin-bottom: 2rem;

  /* Typografie */
  text-align: center;
  color: var(--muted);
}

.tree-root {
  /* Layout */
  display: flex;
  justify-content: center;
  position: relative;

  /* Box-Modell */
  margin-bottom: 2.5rem;
}

.node.root {
  /* Layout */
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Box-Modell */
  gap: 0.5rem;
}

.node.root img {
  /* Box-Größe */
  width: 64px;
  height: 64px;
}

.node.root span {
  /* Typografie */
  font-weight: 600;
  color: var(--accent);
}

.tree-root::after {
  /* Layout */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);

  /* Box-Größe */
  width: 2px;
  height: 20px;

  /* Optik */
  background: var(--accent);
}

.tree-branches {
  /* Layout */
  display: grid;
  grid-template-columns: 1fr;
  position: relative;

  /* Box-Modell */
  gap: 1rem;
  padding-top: 1rem;
}

.tree-branches::before {
  /* Layout */
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;

  /* Box-Größe */
  height: 2px;

  /* Optik */
  background: var(--line);
}

.branch {
  /* Layout */
  position: relative;

  /* Box-Modell */
  padding-top: 1.25rem;
}

.branch::before {
  /* Layout */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  /* Box-Größe */
  width: 2px;
  height: 18px;

  /* Optik */
  background: var(--line);
}

.branch-title {
  /* Box-Modell */
  margin-bottom: var(--space-xs);

  /* Typografie */
  text-align: center;
  color: var(--accent);
  font-weight: 700;
}

.branch-list {
  /* Layout */
  display: flex;
  flex-direction: column;

  /* Box-Modell */
  margin: 1rem 0 0;
  padding: 0;
  gap: 0.75rem;

  /* Optik */
  list-style: none;
}

.node a {
  /* Layout */
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;

  /* Box-Modell */
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;

  /* Typografie */
  text-decoration: none;
  color: var(--text);

  /* Optik */
  background: var(--card);

  /* Interaktion */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.node a:hover,
.node a:focus {
  /* Box-Modell */
  border-color: var(--accent);

  /* Optik */
  box-shadow: 0 0 10px rgba(11, 116, 218, 0.25);

  /* Interaktion */
  transition: var(--transition-base);
  outline: none none;
}

.node a::after {
  /* Layout */
  display: none;
}

.node img {
  /* Box-Größe */
  width: 16px;
  height: 16px;
}

.node span {
  /* Typografie */
  font-weight: 500;
  color: var(--text);
}

@media (min-width: 768px) {
  .tree-branches {
    /* Grid */
    grid-template-columns: repeat(3, 1fr);

    /* Box-Modell */
    gap: 2rem;
  }

  .tree-branches::before {
    /* Layout */
    left: 5%;
    right: 5%;
  }
}
